@esri/solutions-components 0.0.2 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (892) hide show
  1. package/README.md +6 -5
  2. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js +0 -2
  3. package/dist/cjs/CalciteHeading-d765addc.js +0 -2
  4. package/dist/cjs/_commonjsHelpers-84e109b5.js +26 -0
  5. package/dist/cjs/array-cd6c0c32.js +0 -2
  6. package/dist/cjs/calcite-accordion-item.cjs.entry.js +0 -2
  7. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -2
  8. package/dist/cjs/calcite-action-bar.cjs.entry.js +0 -2
  9. package/dist/cjs/calcite-action-group.cjs.entry.js +0 -2
  10. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +0 -2
  11. package/dist/cjs/calcite-action-pad.cjs.entry.js +0 -2
  12. package/dist/cjs/calcite-action.cjs.entry.js +0 -2
  13. package/dist/cjs/calcite-alert.cjs.entry.js +0 -2
  14. package/dist/cjs/calcite-avatar.cjs.entry.js +0 -2
  15. package/dist/cjs/calcite-block-section.cjs.entry.js +0 -2
  16. package/dist/cjs/calcite-block.cjs.entry.js +0 -2
  17. package/dist/cjs/calcite-button.cjs.entry.js +0 -2
  18. package/dist/cjs/calcite-card.cjs.entry.js +0 -2
  19. package/dist/cjs/calcite-checkbox_4.cjs.entry.js +0 -2
  20. package/dist/cjs/calcite-chip.cjs.entry.js +0 -2
  21. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js +3 -4
  22. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js +2 -3
  23. package/dist/cjs/calcite-color-picker.cjs.entry.js +3 -4
  24. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +0 -2
  25. package/dist/cjs/calcite-combobox-item.cjs.entry.js +0 -2
  26. package/dist/cjs/calcite-combobox.cjs.entry.js +0 -2
  27. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +0 -2
  28. package/dist/cjs/calcite-date-picker.cjs.entry.js +0 -2
  29. package/dist/cjs/calcite-dropdown-group.cjs.entry.js +0 -2
  30. package/dist/cjs/calcite-dropdown-item.cjs.entry.js +0 -2
  31. package/dist/cjs/calcite-dropdown.cjs.entry.js +0 -2
  32. package/dist/cjs/calcite-fab.cjs.entry.js +0 -2
  33. package/dist/cjs/calcite-filter.cjs.entry.js +0 -2
  34. package/dist/cjs/calcite-flow.cjs.entry.js +0 -2
  35. package/dist/cjs/calcite-graph.cjs.entry.js +0 -2
  36. package/dist/cjs/calcite-handle.cjs.entry.js +0 -2
  37. package/dist/cjs/calcite-icon.cjs.entry.js +0 -2
  38. package/dist/cjs/calcite-inline-editable.cjs.entry.js +0 -2
  39. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +0 -2
  40. package/dist/cjs/calcite-input-message.cjs.entry.js +0 -2
  41. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +0 -2
  42. package/dist/cjs/calcite-input_2.cjs.entry.js +0 -2
  43. package/dist/cjs/calcite-label.cjs.entry.js +0 -2
  44. package/dist/cjs/calcite-link.cjs.entry.js +0 -2
  45. package/dist/cjs/calcite-list-item-group.cjs.entry.js +0 -2
  46. package/dist/cjs/calcite-list-item.cjs.entry.js +0 -2
  47. package/dist/cjs/calcite-list.cjs.entry.js +0 -2
  48. package/dist/cjs/calcite-loader.cjs.entry.js +0 -2
  49. package/dist/cjs/calcite-modal.cjs.entry.js +0 -2
  50. package/dist/cjs/calcite-notice.cjs.entry.js +0 -2
  51. package/dist/cjs/calcite-option-group.cjs.entry.js +0 -2
  52. package/dist/cjs/calcite-option.cjs.entry.js +0 -2
  53. package/dist/cjs/calcite-pagination.cjs.entry.js +0 -2
  54. package/dist/cjs/calcite-panel_14.cjs.entry.js +41 -8
  55. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +0 -2
  56. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +0 -2
  57. package/dist/cjs/calcite-pick-list.cjs.entry.js +0 -2
  58. package/dist/cjs/calcite-popover-manager.cjs.entry.js +0 -2
  59. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +0 -2
  60. package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -2
  61. package/dist/cjs/calcite-radio-group-item.cjs.entry.js +0 -2
  62. package/dist/cjs/calcite-radio-group.cjs.entry.js +0 -2
  63. package/dist/cjs/calcite-radio.cjs.entry.js +0 -2
  64. package/dist/cjs/calcite-rating.cjs.entry.js +0 -2
  65. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -2
  66. package/dist/cjs/calcite-select.cjs.entry.js +0 -2
  67. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +0 -2
  68. package/dist/cjs/calcite-slider.cjs.entry.js +0 -2
  69. package/dist/cjs/calcite-sortable-list.cjs.entry.js +0 -2
  70. package/dist/cjs/calcite-split-button.cjs.entry.js +0 -2
  71. package/dist/cjs/calcite-stepper-item.cjs.entry.js +0 -2
  72. package/dist/cjs/calcite-stepper.cjs.entry.js +0 -2
  73. package/dist/cjs/calcite-switch.cjs.entry.js +0 -2
  74. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +0 -2
  75. package/dist/cjs/calcite-tile-select.cjs.entry.js +0 -2
  76. package/dist/cjs/calcite-tile.cjs.entry.js +0 -2
  77. package/dist/cjs/calcite-time-picker.cjs.entry.js +0 -2
  78. package/dist/cjs/calcite-tip-group.cjs.entry.js +0 -2
  79. package/dist/cjs/calcite-tip-manager.cjs.entry.js +0 -2
  80. package/dist/cjs/calcite-tip.cjs.entry.js +0 -2
  81. package/dist/cjs/calcite-tooltip.cjs.entry.js +0 -2
  82. package/dist/cjs/calcite-value-list-item.cjs.entry.js +0 -2
  83. package/dist/cjs/calcite-value-list.cjs.entry.js +0 -2
  84. package/dist/cjs/common-a4edb52d.js +216 -0
  85. package/dist/cjs/date-0554c4d1.js +0 -2
  86. package/dist/cjs/debounce-df22462b.js +0 -2
  87. package/dist/cjs/dom-62511f59.js +0 -2
  88. package/dist/cjs/editStore-36fc36e6.js +2024 -0
  89. package/dist/cjs/forIn-6a1c2f6d.js +0 -2
  90. package/dist/cjs/form-0b5b2d4e.js +0 -2
  91. package/dist/cjs/generalHelpers-cee7d0da.js +168 -0
  92. package/dist/cjs/guid-c6be9504.js +0 -2
  93. package/dist/cjs/{index-706750dc.js → index-69e74dd7.js} +5 -19
  94. package/dist/cjs/index-81c17948.js +0 -2
  95. package/dist/cjs/index.cjs.js +0 -2
  96. package/dist/cjs/interfaces-5ba2c1a7.js +0 -2
  97. package/dist/cjs/key-2a6290c8.js +0 -2
  98. package/dist/cjs/label-46482470.js +0 -2
  99. package/dist/cjs/loader.cjs.js +1 -3
  100. package/dist/cjs/locale-0db34680.js +0 -2
  101. package/dist/cjs/math-71f8de66.js +0 -2
  102. package/dist/cjs/number-697ce34c.js +0 -2
  103. package/dist/cjs/observers-88bbd6ef.js +0 -2
  104. package/dist/cjs/popper-8c8dc960.js +0 -2
  105. package/dist/cjs/request-6905140c.js +550 -0
  106. package/dist/cjs/resources-20f88094.js +0 -2
  107. package/dist/cjs/resources-27c22d8a.js +0 -2
  108. package/dist/cjs/{resources-369e7421.js → resources-2a401414.js} +1 -3
  109. package/dist/cjs/resources-46af0638.js +0 -2
  110. package/dist/cjs/resources-509951f9.js +0 -2
  111. package/dist/cjs/resources-5b7958e4.js +0 -2
  112. package/dist/cjs/resources-a265534b.js +0 -2
  113. package/dist/cjs/resources-e231446d.js +0 -2
  114. package/dist/cjs/resources-ef6c71a1.js +0 -2
  115. package/dist/cjs/shared-list-render-63d3ea89.js +0 -2
  116. package/dist/cjs/solution-configuration.cjs.entry.js +172 -14
  117. package/dist/cjs/solution-contents_3.cjs.entry.js +42 -68
  118. package/dist/cjs/solutions.cjs.js +1 -3
  119. package/dist/cjs/sortable.esm-14548a17.js +0 -2
  120. package/dist/cjs/store-manager.cjs.entry.js +17 -8
  121. package/dist/cjs/templates-a0242ced.js +422 -0
  122. package/dist/cjs/time-c87dc79e.js +0 -2
  123. package/dist/cjs/utils-c19d354a.js +0 -2
  124. package/dist/cjs/utils-cb7373e6.js +0 -2
  125. package/dist/collection/assets/nls/fr/strings.js +2 -0
  126. package/dist/collection/assets/nls/strings.js +2 -0
  127. package/dist/collection/collection-manifest.json +9 -9
  128. package/dist/collection/components/json-editor/json-editor.js +40 -2
  129. package/dist/collection/components/solution-configuration/solution-configuration.js +251 -24
  130. package/dist/collection/components/solution-contents/solution-contents.js +12 -3
  131. package/dist/collection/components/solution-item/solution-item.css +1 -0
  132. package/dist/collection/components/solution-item/solution-item.js +2 -2
  133. package/dist/collection/components/solution-item-details/solution-item-details.js +4 -3
  134. package/dist/collection/components/solution-item-icon/solution-item-icon.js +0 -1
  135. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +2 -2
  136. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +2 -2
  137. package/dist/collection/components/solution-resource-item/solution-resource-item.js +2 -2
  138. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +68 -68
  139. package/dist/collection/components/solution-spatial-ref/spatialreferences.js +0 -2
  140. package/dist/collection/components/solution-template-data/solution-template-data.js +4 -4
  141. package/dist/collection/components/solution-variables/solution-variables.js +2 -2
  142. package/dist/collection/components/store-manager/store-manager.js +49 -5
  143. package/dist/collection/demos/browse-solutions.html +136 -54
  144. package/dist/collection/demos/solution-configuration.html +139 -12
  145. package/dist/collection/demos/solution-spatial-ref.html +1 -1
  146. package/dist/collection/index.js +0 -1
  147. package/dist/collection/utils/common.js +25 -77
  148. package/dist/collection/utils/common.ts +42 -73
  149. package/dist/collection/utils/editStore.js +0 -1
  150. package/dist/{solutions/p-ecbfddde.js → collection/utils/interfaces.js} +16 -17
  151. package/dist/collection/utils/interfaces.ts +126 -0
  152. package/dist/collection/utils/templates.js +8 -6
  153. package/dist/collection/utils/templates.ts +19 -33
  154. package/dist/custom-elements/index.js +3161 -152
  155. package/dist/esm/CalciteExpandToggle-5df46988.js +0 -2
  156. package/dist/esm/CalciteHeading-79b4b347.js +0 -2
  157. package/dist/esm/_commonjsHelpers-84c626bc.js +22 -0
  158. package/dist/esm/array-71e0c501.js +0 -2
  159. package/dist/esm/calcite-accordion-item.entry.js +0 -2
  160. package/dist/esm/calcite-accordion.entry.js +0 -2
  161. package/dist/esm/calcite-action-bar.entry.js +0 -2
  162. package/dist/esm/calcite-action-group.entry.js +0 -2
  163. package/dist/esm/calcite-action-menu_3.entry.js +0 -2
  164. package/dist/esm/calcite-action-pad.entry.js +0 -2
  165. package/dist/esm/calcite-action.entry.js +0 -2
  166. package/dist/esm/calcite-alert.entry.js +0 -2
  167. package/dist/esm/calcite-avatar.entry.js +0 -2
  168. package/dist/esm/calcite-block-section.entry.js +0 -2
  169. package/dist/esm/calcite-block.entry.js +0 -2
  170. package/dist/esm/calcite-button.entry.js +0 -2
  171. package/dist/esm/calcite-card.entry.js +0 -2
  172. package/dist/esm/calcite-checkbox_4.entry.js +0 -2
  173. package/dist/esm/calcite-chip.entry.js +0 -2
  174. package/dist/esm/calcite-color-picker-hex-input.entry.js +3 -4
  175. package/dist/esm/calcite-color-picker-swatch.entry.js +2 -3
  176. package/dist/esm/calcite-color-picker.entry.js +3 -4
  177. package/dist/esm/calcite-combobox-item-group.entry.js +0 -2
  178. package/dist/esm/calcite-combobox-item.entry.js +0 -2
  179. package/dist/esm/calcite-combobox.entry.js +0 -2
  180. package/dist/esm/calcite-date-picker-day_3.entry.js +0 -2
  181. package/dist/esm/calcite-date-picker.entry.js +0 -2
  182. package/dist/esm/calcite-dropdown-group.entry.js +0 -2
  183. package/dist/esm/calcite-dropdown-item.entry.js +0 -2
  184. package/dist/esm/calcite-dropdown.entry.js +0 -2
  185. package/dist/esm/calcite-fab.entry.js +0 -2
  186. package/dist/esm/calcite-filter.entry.js +0 -2
  187. package/dist/esm/calcite-flow.entry.js +0 -2
  188. package/dist/esm/calcite-graph.entry.js +0 -2
  189. package/dist/esm/calcite-handle.entry.js +0 -2
  190. package/dist/esm/calcite-icon.entry.js +0 -2
  191. package/dist/esm/calcite-inline-editable.entry.js +0 -2
  192. package/dist/esm/calcite-input-date-picker.entry.js +0 -2
  193. package/dist/esm/calcite-input-message.entry.js +0 -2
  194. package/dist/esm/calcite-input-time-picker.entry.js +0 -2
  195. package/dist/esm/calcite-input_2.entry.js +0 -2
  196. package/dist/esm/calcite-label.entry.js +0 -2
  197. package/dist/esm/calcite-link.entry.js +0 -2
  198. package/dist/esm/calcite-list-item-group.entry.js +0 -2
  199. package/dist/esm/calcite-list-item.entry.js +0 -2
  200. package/dist/esm/calcite-list.entry.js +0 -2
  201. package/dist/esm/calcite-loader.entry.js +0 -2
  202. package/dist/esm/calcite-modal.entry.js +0 -2
  203. package/dist/esm/calcite-notice.entry.js +0 -2
  204. package/dist/esm/calcite-option-group.entry.js +0 -2
  205. package/dist/esm/calcite-option.entry.js +0 -2
  206. package/dist/esm/calcite-pagination.entry.js +0 -2
  207. package/dist/esm/calcite-panel_14.entry.js +37 -4
  208. package/dist/esm/calcite-pick-list-group.entry.js +0 -2
  209. package/dist/esm/calcite-pick-list-item.entry.js +0 -2
  210. package/dist/esm/calcite-pick-list.entry.js +0 -2
  211. package/dist/esm/calcite-popover-manager.entry.js +0 -2
  212. package/dist/esm/calcite-radio-button-group.entry.js +0 -2
  213. package/dist/esm/calcite-radio-button.entry.js +0 -2
  214. package/dist/esm/calcite-radio-group-item.entry.js +0 -2
  215. package/dist/esm/calcite-radio-group.entry.js +0 -2
  216. package/dist/esm/calcite-radio.entry.js +0 -2
  217. package/dist/esm/calcite-rating.entry.js +0 -2
  218. package/dist/esm/calcite-scrim.entry.js +0 -2
  219. package/dist/esm/calcite-select.entry.js +0 -2
  220. package/dist/esm/calcite-shell-center-row.entry.js +0 -2
  221. package/dist/esm/calcite-slider.entry.js +0 -2
  222. package/dist/esm/calcite-sortable-list.entry.js +0 -2
  223. package/dist/esm/calcite-split-button.entry.js +0 -2
  224. package/dist/esm/calcite-stepper-item.entry.js +0 -2
  225. package/dist/esm/calcite-stepper.entry.js +0 -2
  226. package/dist/esm/calcite-switch.entry.js +0 -2
  227. package/dist/esm/calcite-tile-select-group.entry.js +0 -2
  228. package/dist/esm/calcite-tile-select.entry.js +0 -2
  229. package/dist/esm/calcite-tile.entry.js +0 -2
  230. package/dist/esm/calcite-time-picker.entry.js +0 -2
  231. package/dist/esm/calcite-tip-group.entry.js +0 -2
  232. package/dist/esm/calcite-tip-manager.entry.js +0 -2
  233. package/dist/esm/calcite-tip.entry.js +0 -2
  234. package/dist/esm/calcite-tooltip.entry.js +0 -2
  235. package/dist/esm/calcite-value-list-item.entry.js +0 -2
  236. package/dist/esm/calcite-value-list.entry.js +0 -2
  237. package/dist/esm/common-70333fb9.js +213 -0
  238. package/dist/esm/date-5d75460a.js +0 -2
  239. package/dist/esm/debounce-23ad5849.js +0 -2
  240. package/dist/esm/dom-1cc617ae.js +0 -2
  241. package/dist/esm/editStore-197be454.js +2022 -0
  242. package/dist/esm/forIn-c922d47c.js +0 -2
  243. package/dist/esm/form-636dfed1.js +0 -2
  244. package/dist/esm/generalHelpers-91e92dc0.js +161 -0
  245. package/dist/esm/guid-740f1f1a.js +0 -2
  246. package/dist/esm/index-a3c3e3db.js +0 -2
  247. package/dist/esm/{index-934f242e.js → index-c1264d13.js} +3 -17
  248. package/dist/esm/index.js +0 -2
  249. package/dist/esm/interfaces-4f07beec.js +0 -2
  250. package/dist/esm/key-1748eb79.js +0 -2
  251. package/dist/esm/label-851f8926.js +0 -2
  252. package/dist/esm/loader.js +1 -3
  253. package/dist/esm/locale-31c8d43b.js +0 -2
  254. package/dist/esm/math-d8795f31.js +0 -2
  255. package/dist/esm/number-47ecb380.js +0 -2
  256. package/dist/esm/observers-b13ff24b.js +0 -2
  257. package/dist/esm/popper-25874f2f.js +0 -2
  258. package/dist/esm/request-9c2c9a49.js +548 -0
  259. package/dist/esm/resources-12c3b829.js +0 -2
  260. package/dist/esm/resources-32d7dd89.js +0 -2
  261. package/dist/esm/resources-466ccf86.js +0 -2
  262. package/dist/esm/resources-4cc0ef44.js +0 -2
  263. package/dist/esm/resources-861d0240.js +0 -2
  264. package/dist/esm/resources-b023c30a.js +0 -2
  265. package/dist/esm/{resources-c537bacb.js → resources-d7e09977.js} +1 -3
  266. package/dist/esm/resources-e56b6e53.js +0 -2
  267. package/dist/esm/resources-ec79cfd7.js +0 -2
  268. package/dist/esm/shared-list-render-b5dacd2e.js +0 -2
  269. package/dist/esm/solution-configuration.entry.js +172 -14
  270. package/dist/esm/solution-contents_3.entry.js +42 -68
  271. package/dist/esm/solutions.js +1 -3
  272. package/dist/esm/sortable.esm-7856912e.js +0 -2
  273. package/dist/esm/store-manager.entry.js +17 -8
  274. package/dist/esm/templates-c15e0de2.js +414 -0
  275. package/dist/esm/time-a3b29c35.js +0 -2
  276. package/dist/esm/utils-021cb956.js +0 -2
  277. package/dist/esm/utils-5fdd203c.js +0 -2
  278. package/dist/solutions/assets/nls/fr/strings.js +2 -0
  279. package/dist/solutions/assets/nls/strings.js +2 -0
  280. package/dist/solutions/demos/browse-solutions.html +136 -54
  281. package/dist/solutions/demos/solution-configuration.html +139 -12
  282. package/dist/solutions/demos/solution-spatial-ref.html +1 -1
  283. package/dist/solutions/index.esm.js +0 -2
  284. package/dist/solutions/p-03c9247d.entry.js +10 -0
  285. package/dist/solutions/p-03da5f23.entry.js +6 -0
  286. package/dist/solutions/p-054256c8.entry.js +10 -0
  287. package/dist/solutions/p-05c73b7d.js +1 -2
  288. package/dist/solutions/p-06c2b347.entry.js +6 -0
  289. package/dist/solutions/p-09a06209.entry.js +6 -0
  290. package/dist/solutions/p-09e5283f.entry.js +6 -0
  291. package/dist/solutions/p-0a0ca7d3.entry.js +6 -0
  292. package/dist/solutions/p-0b8525e2.js +1 -2
  293. package/dist/solutions/p-0bddf168.entry.js +10 -0
  294. package/dist/solutions/p-0dd00bd7.entry.js +6 -0
  295. package/dist/solutions/p-0f8fd0f8.entry.js +10 -0
  296. package/dist/solutions/p-1345c0c8.js +6 -0
  297. package/dist/solutions/p-1387e8ef.entry.js +10 -0
  298. package/dist/solutions/p-17195493.entry.js +6 -0
  299. package/dist/solutions/p-172b8454.js +38 -0
  300. package/dist/solutions/p-173c3a97.entry.js +10 -0
  301. package/dist/solutions/p-175fe700.entry.js +6 -0
  302. package/dist/solutions/p-17f21116.entry.js +6 -0
  303. package/dist/solutions/p-18657c74.entry.js +10 -0
  304. package/dist/solutions/p-20c8a31e.entry.js +14 -0
  305. package/dist/solutions/p-228131f3.js +3 -3
  306. package/dist/solutions/p-2480c2c3.entry.js +10 -0
  307. package/dist/solutions/p-291cbb4f.js +1 -2
  308. package/dist/solutions/p-29d230fb.entry.js +6 -0
  309. package/dist/solutions/p-2de43402.entry.js +10 -0
  310. package/dist/solutions/p-2e1cd889.js +1 -2
  311. package/dist/solutions/p-386bc1f5.entry.js +10 -0
  312. package/dist/solutions/p-3956acc6.entry.js +6 -0
  313. package/dist/solutions/p-3ce922dd.js +20 -0
  314. package/dist/solutions/p-3e67ed97.js +1 -2
  315. package/dist/solutions/p-3eac2c21.entry.js +10 -0
  316. package/dist/solutions/p-3fd65329.entry.js +6 -0
  317. package/dist/solutions/p-41c2e1cc.js +1 -2
  318. package/dist/solutions/p-42f5b6d1.entry.js +10 -0
  319. package/dist/solutions/p-44e661a2.js +1 -2
  320. package/dist/solutions/p-4847f326.entry.js +10 -0
  321. package/dist/solutions/p-4a5b86a0.entry.js +10 -0
  322. package/dist/solutions/p-4f8cae93.entry.js +10 -0
  323. package/dist/solutions/p-51c9f2db.entry.js +10 -0
  324. package/dist/solutions/p-52d835be.entry.js +10 -0
  325. package/dist/solutions/p-55dddf06.entry.js +10 -0
  326. package/dist/solutions/p-56a376ea.entry.js +6 -0
  327. package/dist/solutions/p-57e5029a.entry.js +6 -0
  328. package/dist/solutions/p-58b7f4aa.entry.js +10 -0
  329. package/dist/solutions/p-5cd9ccc3.entry.js +22 -0
  330. package/dist/solutions/p-5dd4cf97.entry.js +6 -0
  331. package/dist/solutions/p-5edf418e.entry.js +10 -0
  332. package/dist/solutions/p-64711824.entry.js +10 -0
  333. package/dist/solutions/p-68bf7243.entry.js +11 -0
  334. package/dist/solutions/p-7096464e.js +3 -4
  335. package/dist/solutions/p-720922e5.entry.js +10 -0
  336. package/dist/solutions/p-73e2d13f.js +1 -2
  337. package/dist/solutions/p-73e8d41c.entry.js +10 -0
  338. package/dist/solutions/p-7804ce97.js +1 -2
  339. package/dist/solutions/p-79064f42.entry.js +6 -0
  340. package/dist/solutions/p-7976d171.entry.js +6 -0
  341. package/dist/solutions/p-7a98627f.entry.js +10 -0
  342. package/dist/solutions/p-7aaed3f1.entry.js +10 -0
  343. package/dist/solutions/p-7cc9c6af.js +2 -7
  344. package/dist/solutions/p-7df393df.js +1 -2
  345. package/dist/solutions/p-7f93b2dd.entry.js +6 -0
  346. package/dist/solutions/p-82ab483b.entry.js +10 -0
  347. package/dist/solutions/p-8565f0c1.entry.js +10 -0
  348. package/dist/solutions/p-85cf288c.js +1 -2
  349. package/dist/solutions/p-8701d184.entry.js +10 -0
  350. package/dist/solutions/p-946521e1.js +2 -3
  351. package/dist/solutions/p-974d27a4.entry.js +10 -0
  352. package/dist/solutions/p-9c08ce38.entry.js +6 -0
  353. package/dist/solutions/p-9deb6df3.js +36 -0
  354. package/dist/solutions/p-9df9ac35.js +1 -2
  355. package/dist/solutions/p-9ed0c781.entry.js +6 -0
  356. package/dist/solutions/p-9f3fa133.entry.js +10 -0
  357. package/dist/solutions/p-a10dc180.js +1 -2
  358. package/dist/solutions/p-a201c2ea.entry.js +6 -0
  359. package/dist/solutions/p-a598cbb6.entry.js +10 -0
  360. package/dist/solutions/p-a59dfe85.entry.js +6 -0
  361. package/dist/solutions/p-a5fbf459.entry.js +11 -0
  362. package/dist/solutions/p-a6faf819.entry.js +10 -0
  363. package/dist/solutions/p-a8b4d400.entry.js +10 -0
  364. package/dist/solutions/p-a93a4772.entry.js +10 -0
  365. package/dist/solutions/{p-07099311.entry.js → p-a9dd9571.entry.js} +1 -2
  366. package/dist/solutions/p-a9df64c4.js +1 -2
  367. package/dist/solutions/p-aa11e35b.entry.js +10 -0
  368. package/dist/solutions/p-ae4a329c.entry.js +6 -0
  369. package/dist/solutions/p-af9be2ca.js +1 -2
  370. package/dist/solutions/p-b16a91ae.entry.js +6 -0
  371. package/dist/solutions/p-b5693287.entry.js +6 -0
  372. package/dist/solutions/p-b5bbe558.entry.js +10 -0
  373. package/dist/solutions/p-b81ebd54.entry.js +10 -0
  374. package/dist/solutions/p-b85c1b6a.entry.js +6 -0
  375. package/dist/solutions/p-bb3adfc7.entry.js +10 -0
  376. package/dist/solutions/p-c11b966c.entry.js +10 -0
  377. package/dist/solutions/p-c1e7f656.entry.js +6 -0
  378. package/dist/solutions/p-c27b17b8.entry.js +10 -0
  379. package/dist/solutions/p-c34e0641.js +1 -2
  380. package/dist/solutions/p-c5216bba.entry.js +10 -0
  381. package/dist/solutions/p-c8a69756.entry.js +10 -0
  382. package/dist/solutions/p-cb35cbb3.entry.js +6 -0
  383. package/dist/solutions/p-cb5cb9a8.js +1 -2
  384. package/dist/solutions/p-cef98db7.js +6 -0
  385. package/dist/solutions/p-d69bc5fd.entry.js +10 -0
  386. package/dist/solutions/p-de45b192.entry.js +6 -0
  387. package/dist/solutions/p-e4edca3b.js +1 -2
  388. package/dist/solutions/p-e581f631.js +1 -2
  389. package/dist/solutions/p-e762b2d1.js +3 -3
  390. package/dist/solutions/p-eb2efc0f.js +1 -2
  391. package/dist/solutions/p-ec178ea9.js +1 -2
  392. package/dist/solutions/p-ed17446f.entry.js +6 -0
  393. package/dist/solutions/p-edd6d948.entry.js +10 -0
  394. package/dist/solutions/p-ee6eca93.js +18 -0
  395. package/dist/solutions/{p-4573d7c2.js → p-f1867a12.js} +2 -3
  396. package/dist/solutions/p-f187755e.js +1 -2
  397. package/dist/solutions/p-f49bc4a8.js +1 -2
  398. package/dist/solutions/p-f75876eb.js +21 -0
  399. package/dist/solutions/p-f780039d.js +1 -2
  400. package/dist/solutions/p-fa58627d.entry.js +10 -0
  401. package/dist/solutions/p-fbdf3e06.js +2 -3
  402. package/dist/solutions/p-fc1c8168.js +3 -3
  403. package/dist/solutions/p-fd2712a3.entry.js +10 -0
  404. package/dist/solutions/solutions.esm.js +1 -2
  405. package/dist/solutions/utils/common.ts +42 -73
  406. package/dist/solutions/utils/interfaces.ts +126 -0
  407. package/dist/solutions/utils/templates.ts +19 -33
  408. package/dist/types/components/json-editor/json-editor.d.ts +11 -0
  409. package/dist/types/components/solution-configuration/solution-configuration.d.ts +73 -9
  410. package/dist/types/components/solution-contents/solution-contents.d.ts +2 -9
  411. package/dist/types/components/solution-item/solution-item.d.ts +1 -11
  412. package/dist/types/components/solution-item-details/solution-item-details.d.ts +1 -10
  413. package/dist/types/components/solution-item-sharing/solution-item-sharing.d.ts +1 -8
  414. package/dist/types/components/solution-organization-variables/solution-organization-variables.d.ts +1 -5
  415. package/dist/types/components/solution-resource-item/solution-resource-item.d.ts +1 -4
  416. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +14 -26
  417. package/dist/types/components/solution-spatial-ref/spatialreferences.d.ts +1 -4
  418. package/dist/types/components/solution-template-data/solution-template-data.d.ts +1 -7
  419. package/dist/types/components/solution-variables/solution-variables.d.ts +1 -7
  420. package/dist/types/components/store-manager/store-manager.d.ts +9 -0
  421. package/dist/types/components.d.ts +49 -17
  422. package/dist/types/utils/common.d.ts +13 -38
  423. package/dist/types/utils/interfaces.d.ts +111 -0
  424. package/dist/types/utils/templates.d.ts +2 -25
  425. package/package.json +4 -3
  426. package/dist/cjs/CalciteExpandToggle-3e4e3b6c.js.map +0 -1
  427. package/dist/cjs/CalciteHeading-d765addc.js.map +0 -1
  428. package/dist/cjs/array-cd6c0c32.js.map +0 -1
  429. package/dist/cjs/calcite-accordion-item.cjs.entry.js.map +0 -1
  430. package/dist/cjs/calcite-accordion.cjs.entry.js.map +0 -1
  431. package/dist/cjs/calcite-action-bar.cjs.entry.js.map +0 -1
  432. package/dist/cjs/calcite-action-group.cjs.entry.js.map +0 -1
  433. package/dist/cjs/calcite-action-menu_3.cjs.entry.js.map +0 -1
  434. package/dist/cjs/calcite-action-pad.cjs.entry.js.map +0 -1
  435. package/dist/cjs/calcite-action.cjs.entry.js.map +0 -1
  436. package/dist/cjs/calcite-alert.cjs.entry.js.map +0 -1
  437. package/dist/cjs/calcite-avatar.cjs.entry.js.map +0 -1
  438. package/dist/cjs/calcite-block-section.cjs.entry.js.map +0 -1
  439. package/dist/cjs/calcite-block.cjs.entry.js.map +0 -1
  440. package/dist/cjs/calcite-button.cjs.entry.js.map +0 -1
  441. package/dist/cjs/calcite-card.cjs.entry.js.map +0 -1
  442. package/dist/cjs/calcite-checkbox_4.cjs.entry.js.map +0 -1
  443. package/dist/cjs/calcite-chip.cjs.entry.js.map +0 -1
  444. package/dist/cjs/calcite-color-picker-hex-input.cjs.entry.js.map +0 -1
  445. package/dist/cjs/calcite-color-picker-swatch.cjs.entry.js.map +0 -1
  446. package/dist/cjs/calcite-color-picker.cjs.entry.js.map +0 -1
  447. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js.map +0 -1
  448. package/dist/cjs/calcite-combobox-item.cjs.entry.js.map +0 -1
  449. package/dist/cjs/calcite-combobox.cjs.entry.js.map +0 -1
  450. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js.map +0 -1
  451. package/dist/cjs/calcite-date-picker.cjs.entry.js.map +0 -1
  452. package/dist/cjs/calcite-dropdown-group.cjs.entry.js.map +0 -1
  453. package/dist/cjs/calcite-dropdown-item.cjs.entry.js.map +0 -1
  454. package/dist/cjs/calcite-dropdown.cjs.entry.js.map +0 -1
  455. package/dist/cjs/calcite-fab.cjs.entry.js.map +0 -1
  456. package/dist/cjs/calcite-filter.cjs.entry.js.map +0 -1
  457. package/dist/cjs/calcite-flow.cjs.entry.js.map +0 -1
  458. package/dist/cjs/calcite-graph.cjs.entry.js.map +0 -1
  459. package/dist/cjs/calcite-handle.cjs.entry.js.map +0 -1
  460. package/dist/cjs/calcite-icon.cjs.entry.js.map +0 -1
  461. package/dist/cjs/calcite-inline-editable.cjs.entry.js.map +0 -1
  462. package/dist/cjs/calcite-input-date-picker.cjs.entry.js.map +0 -1
  463. package/dist/cjs/calcite-input-message.cjs.entry.js.map +0 -1
  464. package/dist/cjs/calcite-input-time-picker.cjs.entry.js.map +0 -1
  465. package/dist/cjs/calcite-input_2.cjs.entry.js.map +0 -1
  466. package/dist/cjs/calcite-label.cjs.entry.js.map +0 -1
  467. package/dist/cjs/calcite-link.cjs.entry.js.map +0 -1
  468. package/dist/cjs/calcite-list-item-group.cjs.entry.js.map +0 -1
  469. package/dist/cjs/calcite-list-item.cjs.entry.js.map +0 -1
  470. package/dist/cjs/calcite-list.cjs.entry.js.map +0 -1
  471. package/dist/cjs/calcite-loader.cjs.entry.js.map +0 -1
  472. package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
  473. package/dist/cjs/calcite-notice.cjs.entry.js.map +0 -1
  474. package/dist/cjs/calcite-option-group.cjs.entry.js.map +0 -1
  475. package/dist/cjs/calcite-option.cjs.entry.js.map +0 -1
  476. package/dist/cjs/calcite-pagination.cjs.entry.js.map +0 -1
  477. package/dist/cjs/calcite-panel_14.cjs.entry.js.map +0 -1
  478. package/dist/cjs/calcite-pick-list-group.cjs.entry.js.map +0 -1
  479. package/dist/cjs/calcite-pick-list-item.cjs.entry.js.map +0 -1
  480. package/dist/cjs/calcite-pick-list.cjs.entry.js.map +0 -1
  481. package/dist/cjs/calcite-popover-manager.cjs.entry.js.map +0 -1
  482. package/dist/cjs/calcite-radio-button-group.cjs.entry.js.map +0 -1
  483. package/dist/cjs/calcite-radio-button.cjs.entry.js.map +0 -1
  484. package/dist/cjs/calcite-radio-group-item.cjs.entry.js.map +0 -1
  485. package/dist/cjs/calcite-radio-group.cjs.entry.js.map +0 -1
  486. package/dist/cjs/calcite-radio.cjs.entry.js.map +0 -1
  487. package/dist/cjs/calcite-rating.cjs.entry.js.map +0 -1
  488. package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
  489. package/dist/cjs/calcite-select.cjs.entry.js.map +0 -1
  490. package/dist/cjs/calcite-shell-center-row.cjs.entry.js.map +0 -1
  491. package/dist/cjs/calcite-slider.cjs.entry.js.map +0 -1
  492. package/dist/cjs/calcite-sortable-list.cjs.entry.js.map +0 -1
  493. package/dist/cjs/calcite-split-button.cjs.entry.js.map +0 -1
  494. package/dist/cjs/calcite-stepper-item.cjs.entry.js.map +0 -1
  495. package/dist/cjs/calcite-stepper.cjs.entry.js.map +0 -1
  496. package/dist/cjs/calcite-switch.cjs.entry.js.map +0 -1
  497. package/dist/cjs/calcite-tile-select-group.cjs.entry.js.map +0 -1
  498. package/dist/cjs/calcite-tile-select.cjs.entry.js.map +0 -1
  499. package/dist/cjs/calcite-tile.cjs.entry.js.map +0 -1
  500. package/dist/cjs/calcite-time-picker.cjs.entry.js.map +0 -1
  501. package/dist/cjs/calcite-tip-group.cjs.entry.js.map +0 -1
  502. package/dist/cjs/calcite-tip-manager.cjs.entry.js.map +0 -1
  503. package/dist/cjs/calcite-tip.cjs.entry.js.map +0 -1
  504. package/dist/cjs/calcite-tooltip.cjs.entry.js.map +0 -1
  505. package/dist/cjs/calcite-value-list-item.cjs.entry.js.map +0 -1
  506. package/dist/cjs/calcite-value-list.cjs.entry.js.map +0 -1
  507. package/dist/cjs/common-df66d950.js +0 -53
  508. package/dist/cjs/common-df66d950.js.map +0 -1
  509. package/dist/cjs/date-0554c4d1.js.map +0 -1
  510. package/dist/cjs/debounce-df22462b.js.map +0 -1
  511. package/dist/cjs/dom-62511f59.js.map +0 -1
  512. package/dist/cjs/editStore-7a250b85.js +0 -227
  513. package/dist/cjs/editStore-7a250b85.js.map +0 -1
  514. package/dist/cjs/forIn-6a1c2f6d.js.map +0 -1
  515. package/dist/cjs/form-0b5b2d4e.js.map +0 -1
  516. package/dist/cjs/guid-c6be9504.js.map +0 -1
  517. package/dist/cjs/index-706750dc.js.map +0 -1
  518. package/dist/cjs/index-81c17948.js.map +0 -1
  519. package/dist/cjs/index.cjs.js.map +0 -1
  520. package/dist/cjs/interfaces-5ba2c1a7.js.map +0 -1
  521. package/dist/cjs/key-2a6290c8.js.map +0 -1
  522. package/dist/cjs/label-46482470.js.map +0 -1
  523. package/dist/cjs/loader.cjs.js.map +0 -1
  524. package/dist/cjs/locale-0db34680.js.map +0 -1
  525. package/dist/cjs/math-71f8de66.js.map +0 -1
  526. package/dist/cjs/number-697ce34c.js.map +0 -1
  527. package/dist/cjs/observers-88bbd6ef.js.map +0 -1
  528. package/dist/cjs/popper-8c8dc960.js.map +0 -1
  529. package/dist/cjs/resources-20f88094.js.map +0 -1
  530. package/dist/cjs/resources-27c22d8a.js.map +0 -1
  531. package/dist/cjs/resources-369e7421.js.map +0 -1
  532. package/dist/cjs/resources-46af0638.js.map +0 -1
  533. package/dist/cjs/resources-509951f9.js.map +0 -1
  534. package/dist/cjs/resources-5b7958e4.js.map +0 -1
  535. package/dist/cjs/resources-a265534b.js.map +0 -1
  536. package/dist/cjs/resources-e231446d.js.map +0 -1
  537. package/dist/cjs/resources-ef6c71a1.js.map +0 -1
  538. package/dist/cjs/shared-list-render-63d3ea89.js.map +0 -1
  539. package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
  540. package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
  541. package/dist/cjs/solutions.cjs.js.map +0 -1
  542. package/dist/cjs/sortable.esm-14548a17.js.map +0 -1
  543. package/dist/cjs/store-manager.cjs.entry.js.map +0 -1
  544. package/dist/cjs/templates-fe6dd431.js +0 -237
  545. package/dist/cjs/templates-fe6dd431.js.map +0 -1
  546. package/dist/cjs/time-c87dc79e.js.map +0 -1
  547. package/dist/cjs/utils-c19d354a.js.map +0 -1
  548. package/dist/cjs/utils-cb7373e6.js.map +0 -1
  549. package/dist/collection/components/json-editor/json-editor.js.map +0 -1
  550. package/dist/collection/components/solution-configuration/solution-configuration.js.map +0 -1
  551. package/dist/collection/components/solution-contents/solution-contents.js.map +0 -1
  552. package/dist/collection/components/solution-item/solution-item.js.map +0 -1
  553. package/dist/collection/components/solution-item-details/solution-item-details.js.map +0 -1
  554. package/dist/collection/components/solution-item-icon/solution-item-icon.js.map +0 -1
  555. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js.map +0 -1
  556. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js.map +0 -1
  557. package/dist/collection/components/solution-resource-item/solution-resource-item.js.map +0 -1
  558. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js.map +0 -1
  559. package/dist/collection/components/solution-spatial-ref/spatialreferences.js.map +0 -1
  560. package/dist/collection/components/solution-template-data/solution-template-data.js.map +0 -1
  561. package/dist/collection/components/solution-variables/solution-variables.js.map +0 -1
  562. package/dist/collection/components/store-manager/store-manager.js.map +0 -1
  563. package/dist/collection/index.js.map +0 -1
  564. package/dist/collection/utils/common.js.map +0 -1
  565. package/dist/collection/utils/editStore.js.map +0 -1
  566. package/dist/collection/utils/templates.js.map +0 -1
  567. package/dist/custom-elements/index.js.map +0 -1
  568. package/dist/esm/CalciteExpandToggle-5df46988.js.map +0 -1
  569. package/dist/esm/CalciteHeading-79b4b347.js.map +0 -1
  570. package/dist/esm/array-71e0c501.js.map +0 -1
  571. package/dist/esm/calcite-accordion-item.entry.js.map +0 -1
  572. package/dist/esm/calcite-accordion.entry.js.map +0 -1
  573. package/dist/esm/calcite-action-bar.entry.js.map +0 -1
  574. package/dist/esm/calcite-action-group.entry.js.map +0 -1
  575. package/dist/esm/calcite-action-menu_3.entry.js.map +0 -1
  576. package/dist/esm/calcite-action-pad.entry.js.map +0 -1
  577. package/dist/esm/calcite-action.entry.js.map +0 -1
  578. package/dist/esm/calcite-alert.entry.js.map +0 -1
  579. package/dist/esm/calcite-avatar.entry.js.map +0 -1
  580. package/dist/esm/calcite-block-section.entry.js.map +0 -1
  581. package/dist/esm/calcite-block.entry.js.map +0 -1
  582. package/dist/esm/calcite-button.entry.js.map +0 -1
  583. package/dist/esm/calcite-card.entry.js.map +0 -1
  584. package/dist/esm/calcite-checkbox_4.entry.js.map +0 -1
  585. package/dist/esm/calcite-chip.entry.js.map +0 -1
  586. package/dist/esm/calcite-color-picker-hex-input.entry.js.map +0 -1
  587. package/dist/esm/calcite-color-picker-swatch.entry.js.map +0 -1
  588. package/dist/esm/calcite-color-picker.entry.js.map +0 -1
  589. package/dist/esm/calcite-combobox-item-group.entry.js.map +0 -1
  590. package/dist/esm/calcite-combobox-item.entry.js.map +0 -1
  591. package/dist/esm/calcite-combobox.entry.js.map +0 -1
  592. package/dist/esm/calcite-date-picker-day_3.entry.js.map +0 -1
  593. package/dist/esm/calcite-date-picker.entry.js.map +0 -1
  594. package/dist/esm/calcite-dropdown-group.entry.js.map +0 -1
  595. package/dist/esm/calcite-dropdown-item.entry.js.map +0 -1
  596. package/dist/esm/calcite-dropdown.entry.js.map +0 -1
  597. package/dist/esm/calcite-fab.entry.js.map +0 -1
  598. package/dist/esm/calcite-filter.entry.js.map +0 -1
  599. package/dist/esm/calcite-flow.entry.js.map +0 -1
  600. package/dist/esm/calcite-graph.entry.js.map +0 -1
  601. package/dist/esm/calcite-handle.entry.js.map +0 -1
  602. package/dist/esm/calcite-icon.entry.js.map +0 -1
  603. package/dist/esm/calcite-inline-editable.entry.js.map +0 -1
  604. package/dist/esm/calcite-input-date-picker.entry.js.map +0 -1
  605. package/dist/esm/calcite-input-message.entry.js.map +0 -1
  606. package/dist/esm/calcite-input-time-picker.entry.js.map +0 -1
  607. package/dist/esm/calcite-input_2.entry.js.map +0 -1
  608. package/dist/esm/calcite-label.entry.js.map +0 -1
  609. package/dist/esm/calcite-link.entry.js.map +0 -1
  610. package/dist/esm/calcite-list-item-group.entry.js.map +0 -1
  611. package/dist/esm/calcite-list-item.entry.js.map +0 -1
  612. package/dist/esm/calcite-list.entry.js.map +0 -1
  613. package/dist/esm/calcite-loader.entry.js.map +0 -1
  614. package/dist/esm/calcite-modal.entry.js.map +0 -1
  615. package/dist/esm/calcite-notice.entry.js.map +0 -1
  616. package/dist/esm/calcite-option-group.entry.js.map +0 -1
  617. package/dist/esm/calcite-option.entry.js.map +0 -1
  618. package/dist/esm/calcite-pagination.entry.js.map +0 -1
  619. package/dist/esm/calcite-panel_14.entry.js.map +0 -1
  620. package/dist/esm/calcite-pick-list-group.entry.js.map +0 -1
  621. package/dist/esm/calcite-pick-list-item.entry.js.map +0 -1
  622. package/dist/esm/calcite-pick-list.entry.js.map +0 -1
  623. package/dist/esm/calcite-popover-manager.entry.js.map +0 -1
  624. package/dist/esm/calcite-radio-button-group.entry.js.map +0 -1
  625. package/dist/esm/calcite-radio-button.entry.js.map +0 -1
  626. package/dist/esm/calcite-radio-group-item.entry.js.map +0 -1
  627. package/dist/esm/calcite-radio-group.entry.js.map +0 -1
  628. package/dist/esm/calcite-radio.entry.js.map +0 -1
  629. package/dist/esm/calcite-rating.entry.js.map +0 -1
  630. package/dist/esm/calcite-scrim.entry.js.map +0 -1
  631. package/dist/esm/calcite-select.entry.js.map +0 -1
  632. package/dist/esm/calcite-shell-center-row.entry.js.map +0 -1
  633. package/dist/esm/calcite-slider.entry.js.map +0 -1
  634. package/dist/esm/calcite-sortable-list.entry.js.map +0 -1
  635. package/dist/esm/calcite-split-button.entry.js.map +0 -1
  636. package/dist/esm/calcite-stepper-item.entry.js.map +0 -1
  637. package/dist/esm/calcite-stepper.entry.js.map +0 -1
  638. package/dist/esm/calcite-switch.entry.js.map +0 -1
  639. package/dist/esm/calcite-tile-select-group.entry.js.map +0 -1
  640. package/dist/esm/calcite-tile-select.entry.js.map +0 -1
  641. package/dist/esm/calcite-tile.entry.js.map +0 -1
  642. package/dist/esm/calcite-time-picker.entry.js.map +0 -1
  643. package/dist/esm/calcite-tip-group.entry.js.map +0 -1
  644. package/dist/esm/calcite-tip-manager.entry.js.map +0 -1
  645. package/dist/esm/calcite-tip.entry.js.map +0 -1
  646. package/dist/esm/calcite-tooltip.entry.js.map +0 -1
  647. package/dist/esm/calcite-value-list-item.entry.js.map +0 -1
  648. package/dist/esm/calcite-value-list.entry.js.map +0 -1
  649. package/dist/esm/common-ccccf04d.js +0 -50
  650. package/dist/esm/common-ccccf04d.js.map +0 -1
  651. package/dist/esm/date-5d75460a.js.map +0 -1
  652. package/dist/esm/debounce-23ad5849.js.map +0 -1
  653. package/dist/esm/dom-1cc617ae.js.map +0 -1
  654. package/dist/esm/editStore-30a293f5.js +0 -225
  655. package/dist/esm/editStore-30a293f5.js.map +0 -1
  656. package/dist/esm/forIn-c922d47c.js.map +0 -1
  657. package/dist/esm/form-636dfed1.js.map +0 -1
  658. package/dist/esm/guid-740f1f1a.js.map +0 -1
  659. package/dist/esm/index-934f242e.js.map +0 -1
  660. package/dist/esm/index-a3c3e3db.js.map +0 -1
  661. package/dist/esm/index.js.map +0 -1
  662. package/dist/esm/interfaces-4f07beec.js.map +0 -1
  663. package/dist/esm/key-1748eb79.js.map +0 -1
  664. package/dist/esm/label-851f8926.js.map +0 -1
  665. package/dist/esm/loader.js.map +0 -1
  666. package/dist/esm/locale-31c8d43b.js.map +0 -1
  667. package/dist/esm/math-d8795f31.js.map +0 -1
  668. package/dist/esm/number-47ecb380.js.map +0 -1
  669. package/dist/esm/observers-b13ff24b.js.map +0 -1
  670. package/dist/esm/popper-25874f2f.js.map +0 -1
  671. package/dist/esm/resources-12c3b829.js.map +0 -1
  672. package/dist/esm/resources-32d7dd89.js.map +0 -1
  673. package/dist/esm/resources-466ccf86.js.map +0 -1
  674. package/dist/esm/resources-4cc0ef44.js.map +0 -1
  675. package/dist/esm/resources-861d0240.js.map +0 -1
  676. package/dist/esm/resources-b023c30a.js.map +0 -1
  677. package/dist/esm/resources-c537bacb.js.map +0 -1
  678. package/dist/esm/resources-e56b6e53.js.map +0 -1
  679. package/dist/esm/resources-ec79cfd7.js.map +0 -1
  680. package/dist/esm/shared-list-render-b5dacd2e.js.map +0 -1
  681. package/dist/esm/solution-configuration.entry.js.map +0 -1
  682. package/dist/esm/solution-contents_3.entry.js.map +0 -1
  683. package/dist/esm/solutions.js.map +0 -1
  684. package/dist/esm/sortable.esm-7856912e.js.map +0 -1
  685. package/dist/esm/store-manager.entry.js.map +0 -1
  686. package/dist/esm/templates-3480c08e.js +0 -230
  687. package/dist/esm/templates-3480c08e.js.map +0 -1
  688. package/dist/esm/time-a3b29c35.js.map +0 -1
  689. package/dist/esm/utils-021cb956.js.map +0 -1
  690. package/dist/esm/utils-5fdd203c.js.map +0 -1
  691. package/dist/solutions/index.esm.js.map +0 -1
  692. package/dist/solutions/p-019fe34e.entry.js +0 -11
  693. package/dist/solutions/p-019fe34e.entry.js.map +0 -1
  694. package/dist/solutions/p-01d537aa.entry.js +0 -11
  695. package/dist/solutions/p-01d537aa.entry.js.map +0 -1
  696. package/dist/solutions/p-05c73b7d.js.map +0 -1
  697. package/dist/solutions/p-05da6de1.entry.js +0 -11
  698. package/dist/solutions/p-05da6de1.entry.js.map +0 -1
  699. package/dist/solutions/p-05eb87fc.entry.js +0 -11
  700. package/dist/solutions/p-05eb87fc.entry.js.map +0 -1
  701. package/dist/solutions/p-07099311.entry.js.map +0 -1
  702. package/dist/solutions/p-07f15398.entry.js +0 -7
  703. package/dist/solutions/p-07f15398.entry.js.map +0 -1
  704. package/dist/solutions/p-093edbdc.entry.js +0 -11
  705. package/dist/solutions/p-093edbdc.entry.js.map +0 -1
  706. package/dist/solutions/p-0b8525e2.js.map +0 -1
  707. package/dist/solutions/p-0c91e100.js +0 -7
  708. package/dist/solutions/p-0c91e100.js.map +0 -1
  709. package/dist/solutions/p-0fcee724.entry.js +0 -7
  710. package/dist/solutions/p-0fcee724.entry.js.map +0 -1
  711. package/dist/solutions/p-17a2150d.entry.js +0 -11
  712. package/dist/solutions/p-17a2150d.entry.js.map +0 -1
  713. package/dist/solutions/p-1aaa9800.entry.js +0 -7
  714. package/dist/solutions/p-1aaa9800.entry.js.map +0 -1
  715. package/dist/solutions/p-228131f3.js.map +0 -1
  716. package/dist/solutions/p-22d67647.entry.js +0 -11
  717. package/dist/solutions/p-22d67647.entry.js.map +0 -1
  718. package/dist/solutions/p-291cbb4f.js.map +0 -1
  719. package/dist/solutions/p-2a5c409a.entry.js +0 -7
  720. package/dist/solutions/p-2a5c409a.entry.js.map +0 -1
  721. package/dist/solutions/p-2aca233c.entry.js +0 -11
  722. package/dist/solutions/p-2aca233c.entry.js.map +0 -1
  723. package/dist/solutions/p-2b6ef800.entry.js +0 -7
  724. package/dist/solutions/p-2b6ef800.entry.js.map +0 -1
  725. package/dist/solutions/p-2bae730e.entry.js +0 -11
  726. package/dist/solutions/p-2bae730e.entry.js.map +0 -1
  727. package/dist/solutions/p-2d59c6d7.entry.js +0 -11
  728. package/dist/solutions/p-2d59c6d7.entry.js.map +0 -1
  729. package/dist/solutions/p-2e1cd889.js.map +0 -1
  730. package/dist/solutions/p-35eafdfb.entry.js +0 -11
  731. package/dist/solutions/p-35eafdfb.entry.js.map +0 -1
  732. package/dist/solutions/p-372da016.entry.js +0 -7
  733. package/dist/solutions/p-372da016.entry.js.map +0 -1
  734. package/dist/solutions/p-37407f95.entry.js +0 -7
  735. package/dist/solutions/p-37407f95.entry.js.map +0 -1
  736. package/dist/solutions/p-3ae90cbb.entry.js +0 -7
  737. package/dist/solutions/p-3ae90cbb.entry.js.map +0 -1
  738. package/dist/solutions/p-3c3ccd03.entry.js +0 -11
  739. package/dist/solutions/p-3c3ccd03.entry.js.map +0 -1
  740. package/dist/solutions/p-3e168893.entry.js +0 -11
  741. package/dist/solutions/p-3e168893.entry.js.map +0 -1
  742. package/dist/solutions/p-3e67ed97.js.map +0 -1
  743. package/dist/solutions/p-3ed5096e.entry.js +0 -11
  744. package/dist/solutions/p-3ed5096e.entry.js.map +0 -1
  745. package/dist/solutions/p-41c2e1cc.js.map +0 -1
  746. package/dist/solutions/p-44e661a2.js.map +0 -1
  747. package/dist/solutions/p-4573d7c2.js.map +0 -1
  748. package/dist/solutions/p-4635ae4a.entry.js +0 -11
  749. package/dist/solutions/p-4635ae4a.entry.js.map +0 -1
  750. package/dist/solutions/p-46bcadbd.entry.js +0 -11
  751. package/dist/solutions/p-46bcadbd.entry.js.map +0 -1
  752. package/dist/solutions/p-4b0b2534.entry.js +0 -11
  753. package/dist/solutions/p-4b0b2534.entry.js.map +0 -1
  754. package/dist/solutions/p-51e4c002.entry.js +0 -7
  755. package/dist/solutions/p-51e4c002.entry.js.map +0 -1
  756. package/dist/solutions/p-520d8443.entry.js +0 -11
  757. package/dist/solutions/p-520d8443.entry.js.map +0 -1
  758. package/dist/solutions/p-591d5666.entry.js +0 -11
  759. package/dist/solutions/p-591d5666.entry.js.map +0 -1
  760. package/dist/solutions/p-5aff6fc3.entry.js +0 -11
  761. package/dist/solutions/p-5aff6fc3.entry.js.map +0 -1
  762. package/dist/solutions/p-5c95f5ee.entry.js +0 -11
  763. package/dist/solutions/p-5c95f5ee.entry.js.map +0 -1
  764. package/dist/solutions/p-606933f1.entry.js +0 -11
  765. package/dist/solutions/p-606933f1.entry.js.map +0 -1
  766. package/dist/solutions/p-62464fb3.entry.js +0 -11
  767. package/dist/solutions/p-62464fb3.entry.js.map +0 -1
  768. package/dist/solutions/p-6e970d4c.entry.js +0 -7
  769. package/dist/solutions/p-6e970d4c.entry.js.map +0 -1
  770. package/dist/solutions/p-6f861da6.entry.js +0 -11
  771. package/dist/solutions/p-6f861da6.entry.js.map +0 -1
  772. package/dist/solutions/p-7096464e.js.map +0 -1
  773. package/dist/solutions/p-73e2d13f.js.map +0 -1
  774. package/dist/solutions/p-745f85bf.entry.js +0 -11
  775. package/dist/solutions/p-745f85bf.entry.js.map +0 -1
  776. package/dist/solutions/p-7480bdae.entry.js +0 -7
  777. package/dist/solutions/p-7480bdae.entry.js.map +0 -1
  778. package/dist/solutions/p-7611d9ad.entry.js +0 -11
  779. package/dist/solutions/p-7611d9ad.entry.js.map +0 -1
  780. package/dist/solutions/p-77b056db.entry.js +0 -7
  781. package/dist/solutions/p-77b056db.entry.js.map +0 -1
  782. package/dist/solutions/p-7804ce97.js.map +0 -1
  783. package/dist/solutions/p-7cc15662.entry.js +0 -15
  784. package/dist/solutions/p-7cc15662.entry.js.map +0 -1
  785. package/dist/solutions/p-7cc9c6af.js.map +0 -1
  786. package/dist/solutions/p-7d84c932.entry.js +0 -11
  787. package/dist/solutions/p-7d84c932.entry.js.map +0 -1
  788. package/dist/solutions/p-7df393df.js.map +0 -1
  789. package/dist/solutions/p-7f49ef40.entry.js +0 -11
  790. package/dist/solutions/p-7f49ef40.entry.js.map +0 -1
  791. package/dist/solutions/p-7f5c2987.entry.js +0 -7
  792. package/dist/solutions/p-7f5c2987.entry.js.map +0 -1
  793. package/dist/solutions/p-7fd90af2.entry.js +0 -11
  794. package/dist/solutions/p-7fd90af2.entry.js.map +0 -1
  795. package/dist/solutions/p-815449b1.entry.js +0 -11
  796. package/dist/solutions/p-815449b1.entry.js.map +0 -1
  797. package/dist/solutions/p-819aff56.entry.js +0 -11
  798. package/dist/solutions/p-819aff56.entry.js.map +0 -1
  799. package/dist/solutions/p-85cf288c.js.map +0 -1
  800. package/dist/solutions/p-87d812ce.entry.js +0 -7
  801. package/dist/solutions/p-87d812ce.entry.js.map +0 -1
  802. package/dist/solutions/p-8b616d33.entry.js +0 -7
  803. package/dist/solutions/p-8b616d33.entry.js.map +0 -1
  804. package/dist/solutions/p-8efca26d.entry.js +0 -7
  805. package/dist/solutions/p-8efca26d.entry.js.map +0 -1
  806. package/dist/solutions/p-946521e1.js.map +0 -1
  807. package/dist/solutions/p-970f1072.js +0 -22
  808. package/dist/solutions/p-970f1072.js.map +0 -1
  809. package/dist/solutions/p-9a953609.entry.js +0 -11
  810. package/dist/solutions/p-9a953609.entry.js.map +0 -1
  811. package/dist/solutions/p-9b381784.entry.js +0 -11
  812. package/dist/solutions/p-9b381784.entry.js.map +0 -1
  813. package/dist/solutions/p-9dad5583.entry.js +0 -11
  814. package/dist/solutions/p-9dad5583.entry.js.map +0 -1
  815. package/dist/solutions/p-9df9ac35.js.map +0 -1
  816. package/dist/solutions/p-9ee74ad4.entry.js +0 -7
  817. package/dist/solutions/p-9ee74ad4.entry.js.map +0 -1
  818. package/dist/solutions/p-9fab6046.entry.js +0 -22
  819. package/dist/solutions/p-9fab6046.entry.js.map +0 -1
  820. package/dist/solutions/p-9fc06fc3.entry.js +0 -15
  821. package/dist/solutions/p-9fc06fc3.entry.js.map +0 -1
  822. package/dist/solutions/p-a10dc180.js.map +0 -1
  823. package/dist/solutions/p-a1c40865.entry.js +0 -11
  824. package/dist/solutions/p-a1c40865.entry.js.map +0 -1
  825. package/dist/solutions/p-a3b16f15.entry.js +0 -7
  826. package/dist/solutions/p-a3b16f15.entry.js.map +0 -1
  827. package/dist/solutions/p-a7906d52.entry.js +0 -11
  828. package/dist/solutions/p-a7906d52.entry.js.map +0 -1
  829. package/dist/solutions/p-a8a106f7.entry.js +0 -7
  830. package/dist/solutions/p-a8a106f7.entry.js.map +0 -1
  831. package/dist/solutions/p-a8d2d1a3.entry.js +0 -7
  832. package/dist/solutions/p-a8d2d1a3.entry.js.map +0 -1
  833. package/dist/solutions/p-a98c5d29.entry.js +0 -11
  834. package/dist/solutions/p-a98c5d29.entry.js.map +0 -1
  835. package/dist/solutions/p-a9df64c4.js.map +0 -1
  836. package/dist/solutions/p-ad54d2e2.entry.js +0 -11
  837. package/dist/solutions/p-ad54d2e2.entry.js.map +0 -1
  838. package/dist/solutions/p-adf3704d.entry.js +0 -11
  839. package/dist/solutions/p-adf3704d.entry.js.map +0 -1
  840. package/dist/solutions/p-af46b00f.entry.js +0 -11
  841. package/dist/solutions/p-af46b00f.entry.js.map +0 -1
  842. package/dist/solutions/p-af9be2ca.js.map +0 -1
  843. package/dist/solutions/p-b797d79b.entry.js +0 -23
  844. package/dist/solutions/p-b797d79b.entry.js.map +0 -1
  845. package/dist/solutions/p-c09fc04d.entry.js +0 -11
  846. package/dist/solutions/p-c09fc04d.entry.js.map +0 -1
  847. package/dist/solutions/p-c11f84d9.entry.js +0 -11
  848. package/dist/solutions/p-c11f84d9.entry.js.map +0 -1
  849. package/dist/solutions/p-c195dbb7.entry.js +0 -7
  850. package/dist/solutions/p-c195dbb7.entry.js.map +0 -1
  851. package/dist/solutions/p-c34e0641.js.map +0 -1
  852. package/dist/solutions/p-c5428bbc.entry.js +0 -11
  853. package/dist/solutions/p-c5428bbc.entry.js.map +0 -1
  854. package/dist/solutions/p-cb5cb9a8.js.map +0 -1
  855. package/dist/solutions/p-ce3e9060.entry.js +0 -11
  856. package/dist/solutions/p-ce3e9060.entry.js.map +0 -1
  857. package/dist/solutions/p-d132d8ad.entry.js +0 -7
  858. package/dist/solutions/p-d132d8ad.entry.js.map +0 -1
  859. package/dist/solutions/p-d320e3a2.entry.js +0 -7
  860. package/dist/solutions/p-d320e3a2.entry.js.map +0 -1
  861. package/dist/solutions/p-d70ef015.entry.js +0 -11
  862. package/dist/solutions/p-d70ef015.entry.js.map +0 -1
  863. package/dist/solutions/p-e4edca3b.js.map +0 -1
  864. package/dist/solutions/p-e581f631.js.map +0 -1
  865. package/dist/solutions/p-e65a8700.entry.js +0 -11
  866. package/dist/solutions/p-e65a8700.entry.js.map +0 -1
  867. package/dist/solutions/p-e762b2d1.js.map +0 -1
  868. package/dist/solutions/p-eb2efc0f.js.map +0 -1
  869. package/dist/solutions/p-ec178ea9.js.map +0 -1
  870. package/dist/solutions/p-ecbfddde.js.map +0 -1
  871. package/dist/solutions/p-eceb11d1.js +0 -22
  872. package/dist/solutions/p-eceb11d1.js.map +0 -1
  873. package/dist/solutions/p-ede2beab.entry.js +0 -7
  874. package/dist/solutions/p-ede2beab.entry.js.map +0 -1
  875. package/dist/solutions/p-f0a6135d.entry.js +0 -11
  876. package/dist/solutions/p-f0a6135d.entry.js.map +0 -1
  877. package/dist/solutions/p-f187755e.js.map +0 -1
  878. package/dist/solutions/p-f3c6b68d.entry.js +0 -7
  879. package/dist/solutions/p-f3c6b68d.entry.js.map +0 -1
  880. package/dist/solutions/p-f49bc4a8.js.map +0 -1
  881. package/dist/solutions/p-f6e8ee98.entry.js +0 -7
  882. package/dist/solutions/p-f6e8ee98.entry.js.map +0 -1
  883. package/dist/solutions/p-f780039d.js.map +0 -1
  884. package/dist/solutions/p-fa40e7e7.entry.js +0 -7
  885. package/dist/solutions/p-fa40e7e7.entry.js.map +0 -1
  886. package/dist/solutions/p-fb25fc4a.entry.js +0 -7
  887. package/dist/solutions/p-fb25fc4a.entry.js.map +0 -1
  888. package/dist/solutions/p-fbdf3e06.js.map +0 -1
  889. package/dist/solutions/p-fc1c8168.js.map +0 -1
  890. package/dist/solutions/p-ff3697a9.entry.js +0 -7
  891. package/dist/solutions/p-ff3697a9.entry.js.map +0 -1
  892. package/dist/solutions/solutions.esm.js.map +0 -1
@@ -1,237 +0,0 @@
1
- /*!
2
- * Copyright 2021 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- /** @license
9
- * Copyright 2021 Esri
10
- *
11
- * Licensed under the Apache License, Version 2.0 (the "License");
12
- * you may not use this file except in compliance with the License.
13
- * You may obtain a copy of the License at
14
- *
15
- * http://www.apache.org/licenses/LICENSE-2.0
16
- *
17
- * Unless required by applicable law or agreed to in writing, software
18
- * distributed under the License is distributed on an "AS IS" BASIS,
19
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
- * See the License for the specific language governing permissions and
21
- * limitations under the License.
22
- */
23
- function getInventoryItems(templates) {
24
- const topLevelItemIds = _getTopLevelItemIds(templates);
25
- return templates.reduce((prev, cur) => {
26
- if (topLevelItemIds.indexOf(cur.itemId) > -1) {
27
- prev.push(_getItemFromTemplate(cur, templates));
28
- }
29
- return prev;
30
- }, []);
31
- }
32
- function getSolutionVariables(templates, translations) {
33
- const vars = [];
34
- templates.forEach(t => {
35
- const item = {
36
- id: t.itemId,
37
- title: t.item.title || t.item.name,
38
- type: t.type,
39
- value: undefined,
40
- dependencies: [{
41
- id: t.itemId,
42
- title: translations.itemId,
43
- value: `{{${t.itemId}.itemId}}`,
44
- }]
45
- };
46
- if (t.item.url) {
47
- item.dependencies.push({
48
- id: t.itemId,
49
- title: translations.url,
50
- value: `{{${t.itemId}.url}}`,
51
- });
52
- }
53
- if (t.type === "Feature Service") {
54
- // TODO need to set source service name var...
55
- // TODO need to set soure service shape field name "{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape"
56
- item.dependencies.push({
57
- id: t.itemId,
58
- title: translations.solutionExtent,
59
- value: `{{${t.itemId}.solutionExtent}}`,
60
- });
61
- _addLayersOrTables(t.properties.layers || [], item, t, translations);
62
- _addLayersOrTables(t.properties.tables || [], item, t, translations);
63
- }
64
- vars.push(item);
65
- });
66
- return vars;
67
- }
68
- function _addLayersOrTables(children, item, t, translations) {
69
- children.forEach(l => {
70
- const name = l.name && l.name.indexOf("||") > -1 ? l.name.split("||")[1].replace("}}", "").trim() : l.name;
71
- item.dependencies.push({
72
- id: t.itemId,
73
- title: `${name} (${translations.id})`,
74
- value: `{{${t.itemId}.layer${l.id}.id}}`,
75
- });
76
- item.dependencies.push({
77
- id: t.itemId,
78
- title: `${name} (${translations.name})`,
79
- value: `{{${t.itemId}.layer${l.id}.name||${name}}}`,
80
- });
81
- });
82
- }
83
- function getOrganizationVariables(translations) {
84
- const orgVars = [{
85
- id: "",
86
- title: translations.geocodeUrl,
87
- value: "{{organization.helperServices.geocode:getDefaultLocatorURL}}"
88
- }, {
89
- id: "",
90
- title: translations.geometryUrl,
91
- value: "{{organization.helperServices.geometry.url}}"
92
- }, {
93
- id: "",
94
- title: translations.portalBaseUrl,
95
- value: "{{portalBaseUrl}}"
96
- }, {
97
- id: "",
98
- title: translations.routeUrl,
99
- value: "{{organization.helperServices.route.url}}"
100
- }, {
101
- id: "",
102
- title: translations.solutionItemExtent,
103
- value: "{{solutionItemExtent}}"
104
- }];
105
- return orgVars;
106
- }
107
- function getModels(templates) {
108
- const ids = [];
109
- const models = {};
110
- const monacoDefined = typeof (monaco) !== "undefined";
111
- templates.forEach(t => {
112
- var _a, _b, _c, _d;
113
- if (ids.indexOf(t.itemId) < 0) {
114
- ids.push(t.itemId);
115
- models[t.itemId] = {
116
- dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\t'), "json") : undefined,
117
- dataOriginValue: JSON.stringify(t.data),
118
- propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\t'), "json") : undefined,
119
- propsOriginValue: JSON.stringify(t.properties),
120
- propsDiffOriginValue: JSON.stringify(t.properties),
121
- state: undefined,
122
- shareInfo: undefined,
123
- isEditing: false,
124
- itemId: t.itemId,
125
- updateItemValues: {},
126
- originalItemValues: {},
127
- name: (_a = t.item) === null || _a === void 0 ? void 0 : _a.name,
128
- title: (_b = t.item) === null || _b === void 0 ? void 0 : _b.title,
129
- itemOriginValue: JSON.stringify(t.item),
130
- spatialReference: (_d = (_c = t.properties) === null || _c === void 0 ? void 0 : _c.service) === null || _d === void 0 ? void 0 : _d.spatialReference
131
- };
132
- }
133
- });
134
- return models;
135
- }
136
- function getFeatureServices(templates) {
137
- return templates.reduce((prev, cur) => {
138
- const name = cur.item.title || cur.item.name;
139
- if (cur.type === "Feature Service" &&
140
- cur.item.typeKeywords.indexOf("View Service") < 0 &&
141
- prev.indexOf(name) < 0) {
142
- prev.push(name);
143
- }
144
- return prev;
145
- }, []);
146
- }
147
- function getSpatialReferenceInfo(services) {
148
- const defaultServices = {};
149
- services.forEach(service => {
150
- defaultServices[service] = true;
151
- });
152
- return {
153
- enabled: false,
154
- services: defaultServices,
155
- spatialReference: undefined
156
- };
157
- }
158
- function _getItemFromTemplate(t, templates) {
159
- return {
160
- id: t.itemId || "",
161
- title: t.item.title || "",
162
- dependencies: _getDependencies(t.dependencies || [], templates),
163
- type: t.item.type || "",
164
- typeKeywords: t.item.typeKeywords || [],
165
- solutionItem: {
166
- itemId: t.itemId,
167
- itemDetails: _getItemDetails(t.item, t.type === "Group", t.itemId),
168
- isResource: _getIsResource(t),
169
- data: t.data,
170
- properties: t.properties,
171
- type: t.type,
172
- groupDetails: _getGroupDetails(t, templates)
173
- }
174
- };
175
- }
176
- function _getDependencies(dependencies, templates) {
177
- return templates.reduce((prev, curr) => {
178
- if (dependencies.indexOf(curr.itemId) > -1) {
179
- prev.push(_getItemFromTemplate(curr, templates));
180
- }
181
- return prev;
182
- }, []);
183
- }
184
- function _getItemDetails(item, isGroup, itemId) {
185
- return {
186
- itemId,
187
- thumbnail: item.thumbnail || "",
188
- title: item.title || "",
189
- snippet: item.snippet || "",
190
- description: item.description || "",
191
- tags: item.tags || [],
192
- accessInformation: !isGroup ? item.accessInformation || "" : "",
193
- licenseInfo: !isGroup ? item.licenseInfo || "" : ""
194
- };
195
- }
196
- function _getGroupDetails(t, templates) {
197
- return t.type === "Group" ? templates.reduce((prev, cur) => {
198
- if (cur.itemId !== t.itemId && cur.type !== "Group") {
199
- prev.push({
200
- id: cur.itemId,
201
- title: cur.item.name || cur.item.title,
202
- isShared: (cur.groups || []).indexOf(t.itemId) > -1,
203
- shareItem: (cur.groups || []).indexOf(t.itemId) > -1,
204
- type: cur.type,
205
- typeKeywords: cur.item.typeKeywords
206
- });
207
- }
208
- return prev;
209
- }, []) : [];
210
- }
211
- function _getIsResource(template) {
212
- return template.type !== "Group" && JSON.stringify(template.data) === "{}";
213
- }
214
- function _getTopLevelItemIds(templates) {
215
- // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on
216
- const topLevelItemCandidateIds = templates.map((template) => template.itemId);
217
- templates.forEach((template) => {
218
- (template.dependencies || []).forEach((dependencyId) => {
219
- const iNode = topLevelItemCandidateIds.indexOf(dependencyId);
220
- if (iNode >= 0) {
221
- // Node is somebody's dependency, so remove the node from the list of top-level nodes
222
- // If iNode == -1, then it's a shared dependency and it has already been removed
223
- topLevelItemCandidateIds.splice(iNode, 1);
224
- }
225
- });
226
- });
227
- return topLevelItemCandidateIds;
228
- }
229
-
230
- exports.getFeatureServices = getFeatureServices;
231
- exports.getInventoryItems = getInventoryItems;
232
- exports.getModels = getModels;
233
- exports.getOrganizationVariables = getOrganizationVariables;
234
- exports.getSolutionVariables = getSolutionVariables;
235
- exports.getSpatialReferenceInfo = getSpatialReferenceInfo;
236
-
237
- //# sourceMappingURL=templates-fe6dd431.js.map
@@ -1 +0,0 @@
1
- {"file":"templates-fe6dd431.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;SAgDgB,iBAAiB,CAC/B,SAAgB;EAEhB,MAAM,eAAe,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;EACvD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG;IAChC,IAAI,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;MAC5C,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;KAChD;IACD,OAAO,IAAI,CAAC;GACb,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;SAEe,oBAAoB,CAClC,SAAgB,EAChB,YAAiB;EAEjB,MAAM,IAAI,GAAoB,EAAE,CAAC;EACjC,SAAS,CAAC,OAAO,CAAC,CAAC;IACjB,MAAM,IAAI,GAAG;MACX,EAAE,EAAE,CAAC,CAAC,MAAM;MACZ,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI;MAClC,IAAI,EAAE,CAAC,CAAC,IAAI;MACZ,KAAK,EAAE,SAAS;MAChB,YAAY,EAAE,CAAC;UACb,EAAE,EAAE,CAAC,CAAC,MAAM;UACZ,KAAK,EAAE,YAAY,CAAC,MAAM;UAC1B,KAAK,EAAE,KAAK,CAAC,CAAC,MAAM,WAAW;SAChC,CAAC;KACH,CAAC;IACF,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;MACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM;QACZ,KAAK,EAAE,YAAY,CAAC,GAAG;QACvB,KAAK,EAAE,KAAK,CA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 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n/*\r\n | Helper functions to get required values from solutions templates\r\n*/\r\n\r\nimport { IItemDetails } from \"../components/solution-item-details/solution-item-details\";\r\nimport { IInventoryItem } from \"../components/solution-contents/solution-contents\";\r\nimport { IItemShare } from \"../components/solution-item-sharing/solution-item-sharing\";\r\nimport { IVariableItem } from \"../components/solution-variables/solution-variables\";\r\nimport { IOrganizationVariableItem } from \"../components/solution-organization-variables/solution-organization-variables\";\r\n\r\nexport interface ISolutionModel {\r\n dataModel: monaco.editor.ITextModel;\r\n dataOriginValue: string;\r\n propsModel: monaco.editor.ITextModel;\r\n propsOriginValue: string;\r\n propsDiffOriginValue: string;\r\n state: any;\r\n shareInfo: any;\r\n isEditing: boolean;\r\n itemId: string;\r\n updateItemValues: any;\r\n originalItemValues: any;\r\n name: string;\r\n title: string;\r\n itemOriginValue: string;\r\n spatialReference: any;\r\n}\r\n\r\ninterface ISolutionModels {\r\n [key: string]: ISolutionModel;\r\n} \r\n\r\nexport function getInventoryItems(\r\n templates: any[]\r\n): IInventoryItem[] {\r\n const topLevelItemIds = _getTopLevelItemIds(templates);\r\n return templates.reduce((prev, cur) => {\r\n if (topLevelItemIds.indexOf(cur.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(cur, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSolutionVariables(\r\n templates: any[],\r\n translations: any\r\n): IVariableItem[] {\r\n const vars: IVariableItem[] = [];\r\n templates.forEach(t => {\r\n const item = {\r\n id: t.itemId,\r\n title: t.item.title || t.item.name,\r\n type: t.type,\r\n value: undefined,\r\n dependencies: [{\r\n id: t.itemId,\r\n title: translations.itemId,\r\n value: `{{${t.itemId}.itemId}}`,\r\n }]\r\n };\r\n if (t.item.url) {\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.url,\r\n value: `{{${t.itemId}.url}}`,\r\n });\r\n }\r\n if (t.type === \"Feature Service\") {\r\n // TODO need to set source service name var...\r\n // TODO need to set soure service shape field name \"{{d05b3cf1ffcb4a4fa677627dfb18609e.name}}.Shape\"\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: translations.solutionExtent,\r\n value: `{{${t.itemId}.solutionExtent}}`,\r\n })\r\n _addLayersOrTables(t.properties.layers || [], item, t, translations);\r\n _addLayersOrTables(t.properties.tables || [], item, t, translations);\r\n }\r\n vars.push(item);\r\n })\r\n\r\n return vars;\r\n}\r\n\r\nfunction _addLayersOrTables(\r\n children: any[],\r\n item: any,\r\n t: any,\r\n translations: any\r\n): void {\r\n children.forEach(l => {\r\n const name = l.name && l.name.indexOf(\"||\") > -1 ? l.name.split(\"||\")[1].replace(\"}}\", \"\").trim() : l.name;\r\n\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.id})`,\r\n value: `{{${t.itemId}.layer${l.id}.id}}`,\r\n });\r\n item.dependencies.push({\r\n id: t.itemId,\r\n title: `${name} (${translations.name})`,\r\n value: `{{${t.itemId}.layer${l.id}.name||${name}}}`,\r\n });\r\n });\r\n} \r\n\r\nexport function getOrganizationVariables(\r\n translations: any\r\n): IOrganizationVariableItem[] {\r\n const orgVars: IOrganizationVariableItem[] = [{\r\n id: \"\",\r\n title: translations.geocodeUrl,\r\n value: \"{{organization.helperServices.geocode:getDefaultLocatorURL}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.geometryUrl,\r\n value: \"{{organization.helperServices.geometry.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.portalBaseUrl,\r\n value: \"{{portalBaseUrl}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.routeUrl,\r\n value: \"{{organization.helperServices.route.url}}\"\r\n }, {\r\n id: \"\",\r\n title: translations.solutionItemExtent,\r\n value: \"{{solutionItemExtent}}\"\r\n }];\r\n return orgVars;\r\n}\r\n\r\nexport function getModels(templates: any[]): ISolutionModels {\r\n const ids: string[] = [];\r\n const models: ISolutionModels = {};\r\n const monacoDefined = typeof(monaco) !== \"undefined\";\r\n templates.forEach(t => {\r\n if (ids.indexOf(t.itemId) < 0) {\r\n ids.push(t.itemId);\r\n models[t.itemId] = {\r\n dataModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.data, null, '\\t'), \"json\") : undefined,\r\n dataOriginValue: JSON.stringify(t.data),\r\n propsModel: monacoDefined ? monaco.editor.createModel(JSON.stringify(t.properties, null, '\\t'), \"json\") : undefined,\r\n propsOriginValue: JSON.stringify(t.properties),\r\n propsDiffOriginValue: JSON.stringify(t.properties),\r\n state: undefined,\r\n shareInfo: undefined,\r\n isEditing: false,\r\n itemId: t.itemId,\r\n updateItemValues: {},\r\n originalItemValues: {},\r\n name: t.item?.name,\r\n title: t.item?.title,\r\n itemOriginValue: JSON.stringify(t.item),\r\n spatialReference: t.properties?.service?.spatialReference\r\n };\r\n }\r\n });\r\n return models;\r\n}\r\n\r\nexport function getFeatureServices(\r\n templates: any[]\r\n): any[] {\r\n return templates.reduce((prev, cur) => {\r\n const name: string = cur.item.title || cur.item.name;\r\n if (cur.type === \"Feature Service\" &&\r\n cur.item.typeKeywords.indexOf(\"View Service\") < 0 &&\r\n prev.indexOf(name) < 0\r\n ) {\r\n prev.push(name)\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nexport function getSpatialReferenceInfo(\r\n services: string[]\r\n): any {\r\n const defaultServices: any = {};\r\n services.forEach(service => {\r\n defaultServices[service] = true;\r\n });\r\n return {\r\n enabled: false,\r\n services: defaultServices,\r\n spatialReference: undefined\r\n }\r\n}\r\n\r\nfunction _getItemFromTemplate(\r\n t: any,\r\n templates: any[]\r\n): IInventoryItem {\r\n return {\r\n id: t.itemId || \"\",\r\n title: t.item.title || \"\",\r\n dependencies: _getDependencies(t.dependencies || [], templates),\r\n type: t.item.type || \"\",\r\n typeKeywords: t.item.typeKeywords || [],\r\n solutionItem: {\r\n itemId: t.itemId,\r\n itemDetails: _getItemDetails(t.item, t.type === \"Group\", t.itemId),\r\n isResource: _getIsResource(t),\r\n data: t.data,\r\n properties: t.properties,\r\n type: t.type,\r\n groupDetails: _getGroupDetails(t, templates)\r\n }\r\n };\r\n}\r\n\r\nfunction _getDependencies(\r\n dependencies: string[],\r\n templates: any[]\r\n): IInventoryItem[] {\r\n return templates.reduce((prev, curr) => {\r\n if (dependencies.indexOf(curr.itemId) > -1) {\r\n prev.push(_getItemFromTemplate(curr, templates))\r\n }\r\n return prev;\r\n }, []);\r\n}\r\n\r\nfunction _getItemDetails(\r\n item: any,\r\n isGroup: boolean,\r\n itemId: string\r\n): IItemDetails {\r\n return {\r\n itemId,\r\n thumbnail: item.thumbnail || \"\",\r\n title: item.title || \"\",\r\n snippet: item.snippet || \"\",\r\n description: item.description || \"\",\r\n tags: item.tags || [],\r\n accessInformation: !isGroup ? item.accessInformation || \"\" : \"\",\r\n licenseInfo: !isGroup ? item.licenseInfo || \"\" : \"\"\r\n };\r\n}\r\n\r\nfunction _getGroupDetails(\r\n t: any,\r\n templates: any[]\r\n): IItemShare[] {\r\n return t.type === \"Group\" ? templates.reduce((prev, cur) => {\r\n if (cur.itemId !== t.itemId && cur.type !== \"Group\") {\r\n prev.push({\r\n id: cur.itemId,\r\n title: cur.item.name || cur.item.title,\r\n isShared: (cur.groups || []).indexOf(t.itemId) > -1,\r\n shareItem: (cur.groups || []).indexOf(t.itemId) > -1,\r\n type: cur.type,\r\n typeKeywords: cur.item.typeKeywords\r\n });\r\n }\r\n return prev;\r\n }, []) : [];\r\n}\r\n\r\nfunction _getIsResource(\r\n template: any\r\n): boolean {\r\n return template.type !== \"Group\" && JSON.stringify(template.data) === \"{}\";\r\n}\r\n\r\nfunction _getTopLevelItemIds(templates: any[]) {\r\n // Find the top-level nodes. Start with all nodes, then remove those that other nodes depend on\r\n const topLevelItemCandidateIds = templates.map((template) => template.itemId);\r\n templates.forEach((template) => {\r\n (template.dependencies || []).forEach((dependencyId) => {\r\n const iNode = topLevelItemCandidateIds.indexOf(dependencyId);\r\n if (iNode >= 0) {\r\n // Node is somebody's dependency, so remove the node from the list of top-level nodes\r\n // If iNode == -1, then it's a shared dependency and it has already been removed\r\n topLevelItemCandidateIds.splice(iNode, 1);\r\n }\r\n });\r\n });\r\n return topLevelItemCandidateIds;\r\n}\r\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"time-c87dc79e.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AAEY,MAAC,0BAA0B,GAAG,EAAE;AACrC,SAAS,WAAW,CAAC,IAAI,EAAE;AAClC,EAAE,IAAI,CAACA,oBAAa,CAAC,IAAI,CAAC,EAAE;AAC5B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,EAAE,OAAO,YAAY,IAAI,CAAC,IAAI,YAAY,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/D,CAAC;AACM,SAAS,eAAe,CAAC,IAAI,EAAE;AACtC,EAAE,IAAI,CAACA,oBAAa,CAAC,IAAI,CAAC,EAAE;AAC5B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,MAAM,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,EAAE,IAAI,YAAY,KAAK,CAAC,EAAE;AAC1B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,OAAO,YAAY,GAAG,EAAE,GAAG,cAAc,CAAC,YAAY,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;AACtE,CAAC;AACM,SAAS,eAAe,CAAC,KAAK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AI,CAAC,IAAI,cAAc,GAAG,EAAE,CAAC;AAC5F,IAAI,MAAM,WAAW,GAAGA,oBAAa,CAAC,MAAM,CAAC,IAAI,cAAc,IAAI,CAAC,IAAI,cAAc,GAAG,EAAE,CAAC;AAC5F,IAAI,IAAI,CAAC,SAAS,IAAI,WAAW,IAAI,CAAC,MAAM,MAAM,SAAS,IAAI,WAAW,IAAI,WAAW,CAAC,EAAE;AAC5F,MAAM,IAAI,QAAQ,GAAG,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,IAAI,WAAW,EAAE;AACvB,QAAQ,QAAQ,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AACnE,OAAO;AACP,MAAM,OAAO,QAAQ,CAAC;AACtB,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,CAAC;AACM,SAAS,cAAc,CAAC,MAAM,EAAE;AACvC,EAAE,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3C,EAAE,OAAO,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,cAAc,CAAC;AACvF;;;;;;;;;","names":["isValidNumber"],"sources":["./node_modules/@esri/calcite-components/dist/collection/utils/time.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { isValidNumber } from \"./number\";\nexport const maxTenthForMinuteAndSecond = 5;\nexport function getMeridiem(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n return hourAsNumber >= 0 && hourAsNumber <= 11 ? \"AM\" : \"PM\";\n}\nexport function getMeridiemHour(hour) {\n if (!isValidNumber(hour)) {\n return null;\n }\n const hourAsNumber = parseInt(hour);\n if (hourAsNumber === 0) {\n return \"12\";\n }\n return hourAsNumber > 12 ? formatTimePart(hourAsNumber - 12) : hour;\n}\nexport function parseTimeString(value) {\n const timeString = formatTimeString(value);\n const [hour, minute, second] = timeString ? timeString.split(\":\") : [null, null, null];\n return {\n hour,\n minute,\n second: second || (hour && minute ? \"00\" : null)\n };\n}\nexport function formatTimeString(value) {\n if (!value || value.endsWith(\":\") || value.startsWith(\":\")) {\n return null;\n }\n const splitValue = value.split(\":\");\n if (splitValue.length > 1) {\n const [hour, minute, second] = splitValue;\n const hourAsNumber = parseInt(splitValue[0]);\n const minuteAsNumber = parseInt(splitValue[1]);\n const secondAsNumber = parseInt(splitValue[2]);\n const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;\n const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;\n const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;\n if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {\n let newValue = `${formatTimePart(hourAsNumber)}:${formatTimePart(minuteAsNumber)}`;\n if (secondValid) {\n newValue = `${newValue}:${formatTimePart(secondAsNumber)}`;\n }\n return newValue;\n }\n }\n return null;\n}\nexport function formatTimePart(number) {\n const numberAsString = number.toString();\n return number >= 0 && number <= 9 ? numberAsString.padStart(2, \"0\") : numberAsString;\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"utils-c19d354a.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACY,MAAC,YAAY,GAAG,wBAAwB;AACxC,MAAC,iBAAiB,GAAG,8BAA8B;AACnD,MAAC,qBAAqB,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE;AACjE,MAAC,wBAAwB,GAAG;;ACPxC;AACA;AACA;AACA;AAIO,SAAS,YAAY,CAAC,OAAO,EAAE;AAC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AAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1D,CAAC;AACM,SAAS,QAAQ,CAAC,OAAO,EAAE;AAIlC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,yEAAyE,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;AAC7K,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B;;;;;;;;;;;;","names":["nodeListToArray"],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/calcite-combobox/utils.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport const ComboboxItem = \"CALCITE-COMBOBOX-ITEM\";\nexport const ComboboxItemGroup = \"CALCITE-COMBOBOX-ITEM-GROUP\";\nexport const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;\nexport const ComboboxDefaultPlacement = \"bottom-leading\";\n","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nimport { nodeListToArray } from \"../../utils/dom\";\nimport { ComboboxChildSelector } from \"./resources\";\nimport { Build } from \"@stencil/core\";\nexport function getAncestors(element) {\n var _a, _b;\n const parent = (_a = element.parentElement) === null || _a === void 0 ? void 0 : _a.closest(ComboboxChildSelector);\n const grandparent = (_b = parent === null || parent === void 0 ? void 0 : parent.parentElement) === null || _b === void 0 ? void 0 : _b.closest(ComboboxChildSelector);\n return [parent, grandparent].filter((el) => el);\n}\nexport function getItemAncestors(item) {\n var _a;\n return (((_a = item.ancestors) === null || _a === void 0 ? void 0 : _a.filter((el) => el.nodeName === \"CALCITE-COMBOBOX-ITEM\")) || []);\n}\nexport function getItemChildren(item) {\n return nodeListToArray(item.querySelectorAll(\"calcite-combobox-item\"));\n}\nexport function hasActiveChildren(node) {\n const items = nodeListToArray(node.querySelectorAll(\"calcite-combobox-item\"));\n return items.filter((item) => item.selected).length > 0;\n}\nexport function getDepth(element) {\n if (!Build.isBrowser) {\n return 0;\n }\n const result = document.evaluate(\"ancestor::calcite-combobox-item | ancestor::calcite-combobox-item-group\", element, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n return result.snapshotLength;\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"utils-cb7373e6.js","mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;AAC5B,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;AAClF,KAAK,QAAQ,CAAC,EAAE,CAAC;AACjB,KAAK,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACtC,CAAC;AACW,MAAC,OAAO,GAAG,cAAc;AACrC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAC/B,SAAS,UAAU,CAAC,GAAG,EAAE;AAChC,EAAE,OAAO,cAAc,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC;AACnD,CAAC;AACM,SAAS,cAAc,CAAC,GAAG,EAAE;AACpC,EAAE,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3D,CAAC;AACM,SAAS,aAAa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WAAW,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;AAChD,MAAM,OAAO,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC;AACvF,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,CAAC;AACD,SAAS,WAAW,CAAC,WAAW,EAAE,GAAG,QAAQ,EAAE;AAC/C,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,OAAO,IAAI,WAAW,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC;AAC5F,CAAC;AACM,SAAS,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE;AAC3C,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,OAAO,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;AACvJ;;;;;;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/calcite-color-picker/utils.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n */\nexport function rgbToHex(color) {\n const { r, g, b } = color;\n return `#${r.toString(16).padStart(2, \"0\")}${g.toString(16).padStart(2, \"0\")}${b\n .toString(16)\n .padStart(2, \"0\")}`.toLowerCase();\n}\nexport const hexChar = /^[0-9A-F]$/i;\nconst shortHandHex = /^#[0-9A-F]{3}$/i;\nconst longhandHex = /^#[0-9A-F]{6}$/i;\nexport function isValidHex(hex) {\n return isShorthandHex(hex) || isLonghandHex(hex);\n}\nexport function isShorthandHex(hex) {\n return hex && hex.length === 4 && shortHandHex.test(hex);\n}\nexport function isLonghandHex(hex) {\n return hex && hex.length === 7 && longhandHex.test(hex);\n}\nexport function normalizeHex(hex) {\n hex = hex.toLowerCase();\n if (!hex.startsWith(\"#\")) {\n hex = `#${hex}`;\n }\n if (isShorthandHex(hex)) {\n return rgbToHex(hexToRGB(hex));\n }\n return hex;\n}\nexport function hexToRGB(hex) {\n if (!isValidHex(hex)) {\n return null;\n }\n hex = hex.replace(\"#\", \"\");\n if (hex.length === 3) {\n const [first, second, third] = hex.split(\"\");\n const r = parseInt(`${first}${first}`, 16);\n const g = parseInt(`${second}${second}`, 16);\n const b = parseInt(`${third}${third}`, 16);\n return { r, g, b };\n }\n const r = parseInt(hex.slice(0, 2), 16);\n const g = parseInt(hex.slice(2, 4), 16);\n const b = parseInt(hex.slice(4, 6), 16);\n return { r, g, b };\n}\n// these utils allow users to pass enum values as strings without having to access the enum\n// based on the approach suggested by https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321365759,\nconst enumify = (x) => x;\nexport const CSSColorMode = enumify({\n HEX: \"hex\",\n HEXA: \"hexa\",\n RGB_CSS: \"rgb-css\",\n RGBA_CSS: \"rgba-css\",\n HSL_CSS: \"hsl-css\",\n HSLA_CSS: \"hsla-css\"\n});\nexport const ObjectColorMode = enumify({\n RGB: \"rgb\",\n RGBA: \"rgba\",\n HSL: \"hsl\",\n HSLA: \"hsla\",\n HSV: \"hsv\",\n HSVA: \"hsva\"\n});\nexport function parseMode(colorValue) {\n if (typeof colorValue === \"string\") {\n if (colorValue.startsWith(\"#\")) {\n const { length } = colorValue;\n if (length === 4 || length === 7) {\n return CSSColorMode.HEX;\n }\n if (length === 5 || length === 9) {\n return CSSColorMode.HEXA;\n }\n }\n if (colorValue.startsWith(\"rgba(\")) {\n return CSSColorMode.RGBA_CSS;\n }\n if (colorValue.startsWith(\"rgb(\")) {\n return CSSColorMode.RGB_CSS;\n }\n if (colorValue.startsWith(\"hsl(\")) {\n return CSSColorMode.HSL_CSS;\n }\n if (colorValue.startsWith(\"hsla(\")) {\n return CSSColorMode.HSLA_CSS;\n }\n }\n if (typeof colorValue === \"object\") {\n if (hasChannels(colorValue, \"r\", \"g\", \"b\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.RGBA : ObjectColorMode.RGB;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"l\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSLA : ObjectColorMode.HSL;\n }\n if (hasChannels(colorValue, \"h\", \"s\", \"v\")) {\n return hasChannels(colorValue, \"a\") ? ObjectColorMode.HSVA : ObjectColorMode.HSV;\n }\n }\n return null;\n}\nfunction hasChannels(colorObject, ...channels) {\n return channels.every((channel) => channel && colorObject && `${channel}` in colorObject);\n}\nexport function colorEqual(value1, value2) {\n return (value1 === null || value1 === void 0 ? void 0 : value1.rgbNumber()) === (value2 === null || value2 === void 0 ? void 0 : value2.rgbNumber());\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-editor.js","sourceRoot":"","sources":["../../../src/components/json-editor/json-editor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAQ7C,MAAM,OAAO,UAAU;EANvB;IAeE,4EAA4E;IAC5E,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,4EAA4E;IAE5E;;;OAGG;IACsB,aAAQ,GAAQ,EAAE,CAAC;IAE5C;;OAEG;IACsB,iBAAY,GAAQ,EAAE,CAAC;IAEhD;;;OAGG;IACqC,UAAK,GAAQ,SAAS,CAAC;IAO/D;;;;;;OAMG;IACqC,eAAU,GAAQ,EAAE,CAAC;IAE7D;;;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,CAAC;EACjC,CAAC;EAED;;;;;;KAMG;EACH,OAAO;IACL,OAAO,IAAI,CAAC,UAAU,KAAK,MAAM,CAAA;EACnC,CAAC;EAED;;;;;;;;;KASG;EACH,iBAAiB;IACf,MAAM,CAAC,GAAQ,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,EAAE,iCAAiC,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,CAAC,CAAC;IACjF,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,EAAE,8BAA8B,CAAC,CAAC;IACjE,OAAO,CAAC,aAAa,IAAI,SAAS,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;EAClG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\n/**\r\n * Encapsulates the Monaco Editor (https://microsoft.github.io/monaco-editor/) into a\r\n * web component for JSON content.\r\n *\r\n * Attributes:\r\n * `instanceid`: id of component (required, because it's used to distinguish between multiple instances of component)\r\n * `value`: Initial content of editor\r\n *\r\n * @example\r\n * <json-editor\r\n * instanceid=\"a1f271c0de554604beed2adc1f244be1\"\r\n * value=\"{\\\"id\\\": \\\"12345\\\"}\"\r\n * ></json-editor>\r\n *\r\n * `instanceid` attribute and `value` are required\r\n *\r\n *\r\n*/\r\n\r\nimport { Component, Element, Host, h, Listen, Prop } from '@stencil/core';\r\nimport state from '../../utils/editStore';\r\nimport { getProp } from '../../utils/common';\r\n\r\n@Component({\r\n tag: 'json-editor',\r\n styleUrl: 'json-editor.css',\r\n shadow: false,\r\n assetsDirs: ['assets']\r\n})\r\nexport class JsonEditor {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLJsonEditorElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the original source item json as it was when the component was created.\r\n *\r\n */\r\n @Prop({ mutable: true }) original: any = \"\";\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n * This should be an item Id for one of the models in the store.\r\n */\r\n @Prop({ mutable: true, reflect: true }) value: any = undefined;\r\n\r\n /**\r\n * Contains the public model for this component.\r\n */\r\n @Prop({ mutable: true, reflect: true }) model: any; //monaco.editor.ITextModel;\r\n\r\n /**\r\n * Contains a unique identifier for when we have multiple instances of the editor.\r\n * For example when we want to show an items data as well as an items properties.\r\n *\r\n * Need to rethink this..would like it to be more generic.\r\n * We are currently tied to either data or props as this helps us know how to get the correct model from the store.\r\n */\r\n @Prop({ mutable: true, reflect: true }) instanceid: any = \"\";\r\n\r\n /**\r\n * Contains a public value to indicate if the model has any errors\r\n * that would prevent saving it.\r\n */\r\n @Prop({ mutable: true, reflect: true }) hasErrors: boolean = false;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render() {\r\n return (\r\n <Host class=\"json-editor-position\">\r\n <div id={`${this.instanceid}-editor-container`} class=\"editor-container padding-right\">\r\n <div class=\"editor-controls\">\r\n <div class=\"editor-buttons\">\r\n {/* undo */}\r\n <calcite-button\r\n id={`${this.instanceid}-undo`}\r\n color=\"blue\"\r\n appearance=\"solid\"\r\n title={this.translations.undo}\r\n onClick={() => this._undo()}\r\n scale=\"s\"\r\n class=\"edit-button\"\r\n >\r\n <calcite-icon icon=\"undo\" scale=\"s\"></calcite-icon>\r\n </calcite-button>\r\n {/* redo */}\r\n <calcite-button\r\n id={`${this.instanceid}-redo`}\r\n color=\"blue\"\r\n appearance=\"solid\"\r\n title={this.translations.redo}\r\n onClick={() => this._redo()}\r\n scale=\"s\"\r\n class=\"edit-button\"\r\n >\r\n <calcite-icon icon=\"redo\" scale=\"s\"></calcite-icon>\r\n </calcite-button>\r\n {/* diff */}\r\n <calcite-button\r\n id={`${this.instanceid}-diff`}\r\n color=\"blue\"\r\n appearance=\"solid\"\r\n title={this.translations.diff}\r\n onClick={() => this._toggleEditor()}\r\n scale=\"s\"\r\n class=\"edit-button\"\r\n >\r\n <calcite-icon icon=\"compare\" scale=\"s\"></calcite-icon>\r\n </calcite-button>\r\n {/* search */}\r\n <calcite-button\r\n id={`${this.instanceid}-search`}\r\n appearance=\"outline\"\r\n color=\"blue\"\r\n title={this.translations.search}\r\n onClick={() => this._search()}\r\n scale=\"s\"\r\n class=\"edit-button\"\r\n >\r\n <calcite-icon icon=\"search\" scale=\"s\"></calcite-icon>\r\n </calcite-button>\r\n {/* cancel */}\r\n <calcite-button\r\n id={`${this.instanceid}-reset`}\r\n color=\"blue\"\r\n appearance=\"solid\"\r\n disabled\r\n title={this.translations.cancelEdits}\r\n onClick={() => this._reset()}\r\n scale=\"s\"\r\n class=\"edit-button\"\r\n >\r\n <calcite-icon icon=\"reset\" scale=\"s\"></calcite-icon>\r\n </calcite-button>\r\n </div>\r\n </div>\r\n <div class=\"edit-parent\">\r\n <div id={`${this.instanceid}-container`} class=\"json-edit-container\"></div>\r\n <div id={`${this.instanceid}-diff-container`} class=\"json-edit-container not-visible\"></div>\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n componentWillLoad(): void {\r\n this._initValueObserver();\r\n }\r\n\r\n disconnectedCallback(): void {\r\n // The doc makes me question what all we should do here\r\n // StencilJS doc: Called every time the component is disconnected from the DOM, ie, it can\r\n // be dispatched more than once, DO not confuse with a \"onDestroy\" kind of event.\r\n this._destroyEditor();\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n private _editor: any;\r\n private _diffEditor: any;\r\n private _useDiffEditor: boolean = false;\r\n private _currentModel: any;\r\n private _searchBtnHandler: any;\r\n private _cancelEditsBtnHandler: any;\r\n private _loaded: boolean = false;\r\n private _valueObserver: MutationObserver;\r\n private _contentChanged: any;\r\n private _decorationsChanged: any;\r\n\r\n private _initValueObserver() {\r\n this._valueObserver = new MutationObserver(ml => {\r\n ml.forEach(mutation => {\r\n if (mutation.type === 'attributes' && mutation.attributeName === \"value\") {\r\n if (state && state.models && Object.keys(state.models).indexOf(this.value) > -1) {\r\n const newValue: string = mutation.target[mutation.attributeName];\r\n if ((newValue !== mutation.oldValue && this._loaded)) {\r\n // store the current state\r\n this._saveCurrentModel(mutation.oldValue);\r\n\r\n // get the model and state from the store\r\n this._setEditModel(newValue);\r\n } else if (!this._loaded) {\r\n this._setEditModel(this.value);\r\n }\r\n }\r\n }\r\n });\r\n });\r\n this._valueObserver.observe(this.el, { attributes: true, attributeOldValue: true });\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Listen(\"organizationVariableSelected\", { target: 'window' })\r\n organizationVariableSelected(event: CustomEvent): void {\r\n if (this._isTabActive()) {\r\n this._insertValue(event.detail.value);\r\n }\r\n }\r\n\r\n @Listen(\"solutionVariableSelected\", { target: 'window' })\r\n solutionVariableSelected(event: CustomEvent): void {\r\n if (this._isTabActive()) {\r\n this._insertValue(event.detail.value);\r\n }\r\n }\r\n\r\n @Listen(\"modelsChanged\", { target: 'window' })\r\n _modelsChanged(): void {\r\n if (!this._loaded && this.value) {\r\n if (state && state.models && Object.keys(state.models).indexOf(this.value) > -1) {\r\n //get the model and state from the store\r\n this._setEditModel(this.value);\r\n }\r\n }\r\n }\r\n\r\n @Listen(\"solutionItemSelected\", { target: 'window' })\r\n _solutionItemSelected(event: CustomEvent): void {\r\n if (this.value && event.detail.itemId !== this.value) {\r\n this._saveCurrentModel(this.value)\r\n }\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Initializes the editor when the web component is connected.\r\n *\r\n * @protected\r\n */\r\n _initEditor(): void {\r\n // Set up embedded editor\r\n if (monaco && monaco.editor) {\r\n this._editor = monaco.editor.create(document.getElementById(`${this.instanceid}-container`), {\r\n model: this.model,\r\n language: 'json',\r\n readOnly: false,\r\n theme: \"vs\",\r\n minimap: {\r\n enabled: false\r\n },\r\n automaticLayout: true,\r\n scrollBeyondLastLine: false\r\n });\r\n this._currentModel = this._editor.getModel();\r\n\r\n this._contentChanged = this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));\r\n this._decorationsChanged = this._editor.onDidChangeModelDecorations(this._onDecorationsChange.bind(this));\r\n\r\n this._diffEditor = monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`), {\r\n automaticLayout: true\r\n });\r\n this._setDiffModel();\r\n\r\n this._loaded = true;\r\n }\r\n }\r\n\r\n\r\n /**\r\n * Update the undo redo buttons as necessary\r\n *\r\n * @protected\r\n */\r\n _onEditorChange(): void {\r\n this._toggleUndoRedo();\r\n }\r\n\r\n /**\r\n * Decorations are added when errors are found in the editor content\r\n *\r\n * @protected\r\n */\r\n _onDecorationsChange(): void {\r\n const model = this._editor.getModel();\r\n if (model === null) {\r\n return;\r\n }\r\n\r\n const owner = model.getModeId();\r\n const markers = monaco.editor.getModelMarkers({ owner });\r\n\r\n this.hasErrors = markers.length > 0;\r\n }\r\n\r\n /**\r\n * Undo the current edit operation\r\n *\r\n * @protected\r\n */\r\n _undo(): void {\r\n if (this._currentModel?.canUndo()) {\r\n this._currentModel.undo();\r\n this._toggleUndoRedo();\r\n }\r\n }\r\n\r\n /**\r\n * Redo the previous edit operation\r\n *\r\n * @protected\r\n */\r\n _redo(): void {\r\n if (this._currentModel?.canRedo()) {\r\n this._currentModel.redo();\r\n this._toggleUndoRedo();\r\n }\r\n }\r\n\r\n /**\r\n * Show/Hide the appropriate editor\r\n *\r\n * @protected\r\n */\r\n _toggleEditor(): void {\r\n this._useDiffEditor = !this._useDiffEditor;\r\n let diffContainer = document.getElementById(`${this.instanceid}-diff-container`);\r\n let container = document.getElementById(`${this.instanceid}-container`);\r\n if (this._useDiffEditor) {\r\n this._setDiffModel();\r\n diffContainer.classList.remove(\"not-visible\");\r\n container.classList.add(\"not-visible\");\r\n } else {\r\n diffContainer.classList.add(\"not-visible\");\r\n container.classList.remove(\"not-visible\");\r\n }\r\n }\r\n\r\n /**\r\n * Toggle the undo and redo buttons\r\n *\r\n * @protected\r\n */\r\n _toggleUndoRedo(): void {\r\n if (this._currentModel?.canUndo()) {\r\n this._enableButton(`${this.instanceid}-undo`);\r\n } else {\r\n this._disableButton(`${this.instanceid}-undo`);\r\n }\r\n\r\n if (this._currentModel?.canRedo()) {\r\n this._enableButton(`${this.instanceid}-redo`);\r\n } else {\r\n this._disableButton(`${this.instanceid}-redo`);\r\n }\r\n\r\n if (this._currentModel?.canUndo() || this._currentModel?.canRedo()) {\r\n this._enableButton(`${this.instanceid}-reset`);\r\n } else {\r\n this._disableButton(`${this.instanceid}-reset`);\r\n }\r\n }\r\n\r\n /**\r\n * Overrides the editors selection with the value passed in\r\n *\r\n * @protected\r\n */\r\n _insertValue(v: string): void {\r\n const editor: any = this._getEditor();\r\n const range = editor.getSelection();\r\n // use pushEditOperations so it will push to the undo stack\r\n this._currentModel.pushEditOperations([],[{\r\n forceMoveMarkers: true,\r\n text: v,\r\n range\r\n }]);\r\n editor.revealRange(range);\r\n }\r\n\r\n /**\r\n * Gets the current active editor for diff editor\r\n *\r\n * @protected\r\n */\r\n _getEditor(): any {\r\n return this._useDiffEditor ? this._diffEditor : this._editor;\r\n }\r\n\r\n /**\r\n * Frees the editor events and memory when the web component is disconnected.\r\n *\r\n * @protected\r\n */\r\n _destroyEditor(): void {\r\n this._searchBtnHandler?.removeEventListener(\"click\", this._search);\r\n this._cancelEditsBtnHandler?.removeEventListener(\"click\", this._reset);\r\n \r\n this._valueObserver?.disconnect();\r\n\r\n this._contentChanged?.dispose();\r\n this._decorationsChanged?.dispose();\r\n\r\n this._editor?.dispose();\r\n\r\n this.original = \"\";\r\n }\r\n\r\n /**\r\n * Resets the stored model to the original value.\r\n *\r\n * @protected\r\n */\r\n _reset(): void {\r\n // update the model\r\n const org = this._getOriginalValue();\r\n this.model = monaco.editor.createModel(JSON.stringify(JSON.parse(org), null, '\\t'), \"json\");\r\n\r\n // update the editor\r\n this._editor.setModel(this.model);\r\n this._setCurrentModel();\r\n this._setDiffModel();\r\n this._saveCurrentModel(this.value);\r\n this._setEditorFocus();\r\n\r\n // update the ui\r\n this._toggleUndoRedo();\r\n }\r\n\r\n /**\r\n * Disables a button.\r\n *\r\n * @param buttonId Id of button to disable\r\n *\r\n * @protected\r\n */\r\n _disableButton(buttonId: string): void {\r\n document.getElementById(buttonId)?.setAttribute(\"disabled\", \"\");\r\n }\r\n\r\n /**\r\n * Enables a button.\r\n *\r\n * @param buttonId Id of button to enable\r\n *\r\n * @protected\r\n */\r\n _enableButton(buttonId: string): void {\r\n document.getElementById(buttonId)?.removeAttribute(\"disabled\");\r\n }\r\n\r\n /**\r\n * Handles click on \"Search\" button.\r\n *\r\n * @protected\r\n */\r\n _search(): void {\r\n const editor: any = this._getEditor();\r\n // force focus should likely just be a workaround\r\n //https://github.com/microsoft/monaco-editor/issues/2355\r\n editor.focus();\r\n editor.trigger('toggleFind', 'actions.find');\r\n }\r\n\r\n /**\r\n * Save the current model state to the store\r\n *\r\n * @protected\r\n */\r\n _saveCurrentModel(id: string): void {\r\n if (this._editor && id && Object.keys(state.models).indexOf(id) > -1) {\r\n state.models[id][this._isData() ? \"dataModel\" : \"propsModel\"] = this.model;\r\n state.models[id].state = this._editor.saveViewState();\r\n }\r\n }\r\n\r\n /**\r\n * Change the editors model\r\n *\r\n * @protected\r\n */\r\n _setEditModel(id): void {\r\n const data = state.models[id];\r\n\r\n this.model = this._isData() ? data.dataModel : data.propsModel;\r\n this.original = this._isData() ? data.dataOriginValue : data.propsOriginValue;\r\n\r\n if (this._editor) {\r\n this._editor.setModel(this.model);\r\n if (data.state) {\r\n this._editor.restoreViewState(data.state);\r\n }\r\n this._setDiffModel();\r\n this._setEditorFocus();\r\n } else {\r\n this._initEditor();\r\n }\r\n\r\n this._setCurrentModel();\r\n\r\n this._toggleUndoRedo();\r\n }\r\n\r\n /**\r\n * Set the current model and event handler\r\n *\r\n * @protected\r\n */\r\n _setCurrentModel(): void {\r\n this._currentModel = this._editor.getModel();\r\n if (this._contentChanged) {\r\n this._contentChanged.dispose();\r\n }\r\n this._contentChanged = this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));\r\n }\r\n\r\n /**\r\n * Set the models for the diff editor\r\n *\r\n * @protected\r\n */\r\n _setDiffModel(): void {\r\n if (this._diffEditor) {\r\n this._diffEditor.setModel({\r\n original: monaco.editor.createModel(JSON.stringify(JSON.parse(this.original), null, '\\t'), \"json\"),\r\n modified: this._editor.getModel()\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Set the models for the diff editor\r\n *\r\n * @protected\r\n */\r\n _setEditorFocus(): void {\r\n if (this._useDiffEditor) {\r\n this._diffEditor.focus();\r\n } else {\r\n this._editor.focus();\r\n }\r\n }\r\n\r\n /**\r\n * When the json-editor is embedded within a solition-item component we will have two tabs\r\n * with the json editor. This provides a way for us to check if that parent tab is active \r\n * while inserting variables.\r\n *\r\n * @protected\r\n */\r\n _isTabActive(): boolean {\r\n const tab = document.getElementById(`${this.instanceid}-tab`) as HTMLCalciteTabElement;\r\n return tab ? tab.active : true;\r\n }\r\n\r\n /**\r\n * When the json-editor is embedded within a solition-item component we will have two tabs\r\n * with the json editor. One for the data section of the item and one for the props section.\r\n * This provides a way to check what one we are working with.\r\n *\r\n * @protected\r\n */\r\n _isData(): boolean {\r\n return this.instanceid === \"data\"\r\n }\r\n\r\n /**\r\n * When the json-editor is embedded within a solition-item component it needs to be aware\r\n * if the spatial reference control has modified the data.\r\n * Edits from the spatial reference control do not add to the undo/redo stack and are not removed on reset as\r\n * they are only controlled via the spatial reference control.\r\n * This allows us to use the true original value or the one that has been modified by the spatial ref control\r\n * when using the diff editor or resetting.\r\n *\r\n * @protected\r\n */\r\n _getOriginalValue(): string{\r\n const m: any = state.models[this.value];\r\n const serviceActive = getProp(state, `spatialReferenceInfo.services.${m?.name}`);\r\n const srEnabled = getProp(state, 'spatialReferenceInfo.enabled');\r\n return (serviceActive && srEnabled && !this._isData()) ? m.propsDiffOriginValue : this.original;\r\n }\r\n}\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-configuration.js","sourceRoot":"","sources":["../../../src/components/solution-configuration/solution-configuration.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAS,MAAM,eAAe,CAAC;AAKhG,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAE1C,OAAO,0BAA0B,CAAC;AA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,GAAG,IAAI,CAAC;EACxB,CAAC;EAED;;KAEG;EACK,UAAU,CAAC,CAAM;IACvB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3E,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAChF,IAAI,CAAC,IAAI,GAAG;MACV,MAAM,EAAE,EAAE;MACV,WAAW,EAAE,EAAE;MACf,UAAU,EAAE,KAAK;MACjB,IAAI,EAAE,EAAE;MACR,UAAU,EAAE,EAAE;MACd,IAAI,EAAE,EAAE;KACT,CAAC;EACJ,CAAC;EAED;;KAEG;EACK,WAAW;IACjB,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;EACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, h, Host, Listen, Method, Prop, State, VNode } from '@stencil/core';\r\nimport { IInventoryItem } from '../solution-contents/solution-contents';\r\nimport { ISolutionItem } from '../solution-item/solution-item';\r\nimport { IOrganizationVariableItem } from '../solution-organization-variables/solution-organization-variables';\r\nimport { IVariableItem } from '../solution-variables/solution-variables';\r\nimport * as utils from '../../utils/templates';\r\nimport state from '../../utils/editStore';\r\n\r\nimport '@esri/calcite-components';\r\n\r\nexport interface ISolutionConfiguration {\r\n contents: IInventoryItem[]\r\n}\r\n\r\n@Component({\r\n tag: 'solution-configuration',\r\n styleUrl: 'solution-configuration.css',\r\n shadow: false\r\n})\r\nexport class SolutionConfiguration {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLSolutionConfigurationElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @State() modelsSet = false;\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n */\r\n @Prop({ mutable: true, reflect: true }) value: ISolutionConfiguration = {\r\n contents: []\r\n };\r\n\r\n /**\r\n * Contains the raw templates from the solution item\r\n */\r\n @Prop({mutable: true, reflect: true}) templates: string;\r\n\r\n /**\r\n * Contains the current solution item we are working with\r\n */\r\n @Prop({ mutable: true }) item: ISolutionItem = {\r\n itemId: \"\",\r\n itemDetails: {},\r\n isResource: false,\r\n data: {},\r\n properties: {},\r\n type: \"\"\r\n };\r\n\r\n /**\r\n * Contains the current solution item id\r\n */\r\n @Prop({ mutable: true }) solutionItemId: string;\r\n\r\n /**\r\n * Used to show/hide the content tree\r\n */\r\n @Prop({ mutable: true }) treeOpen = true;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n connectedCallback(): void {\r\n this._initTemplatesObserver();\r\n }\r\n\r\n render(): VNode {\r\n return (\r\n <Host>\r\n <div class=\"configuration-container\">\r\n <div class=\"configuration\">\r\n <calcite-tabs class=\"config-tabs\">\r\n <calcite-tab-nav slot=\"tab-nav\">\r\n <calcite-tab-title>{this.translations.definitionTab}</calcite-tab-title>\r\n <calcite-tab-title>{this.translations.spatialReferenceTab}</calcite-tab-title>\r\n </calcite-tab-nav>\r\n <calcite-tab active class=\"config-tab\">\r\n <div class=\"config-solution\">\r\n <div class={this.treeOpen ? \"config-inventory\" : \"config-inventory-hide\"}>\r\n <solution-contents\r\n id=\"configInventory\"\r\n key={`${this.solutionItemId }-contents`}\r\n translations={this.translations}\r\n value={this.value.contents}\r\n />\r\n </div>\r\n <calcite-button\r\n appearance=\"transparent\"\r\n class=\"collapse-btn\"\r\n icon-start={this.treeOpen ? \"chevrons-left\" : \"chevrons-right\"}\r\n id=\"collapse-vars\"\r\n onClick={() => this._toggleTree()}\r\n scale=\"s\"\r\n title={this.translations.cancelEdits}\r\n />\r\n <div class=\"config-item\">\r\n <solution-item\r\n key={`${this.solutionItemId}-item`}\r\n organizationVariables={this._organizationVariables}\r\n solutionVariables={this._solutionVariables}\r\n translations={this.translations}\r\n value={this.item}\r\n />\r\n </div>\r\n </div>\r\n </calcite-tab>\r\n <calcite-tab class=\"config-tab\">\r\n <div class=\"config-solution\">\r\n <solution-spatial-ref\r\n id=\"configure-solution-spatial-ref\"\r\n key={`${this.solutionItemId}-spatial-ref`}\r\n services={state.featureServices}\r\n translations={this.translations}\r\n />\r\n </div>\r\n </calcite-tab>\r\n </calcite-tabs>\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n private _templatesObserver: MutationObserver;\r\n\r\n private _solutionVariables: IVariableItem[];\r\n\r\n private _organizationVariables: IOrganizationVariableItem[];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Listen(\"solutionItemSelected\", { target: 'window' })\r\n _solutionItemSelected(event: CustomEvent): void {\r\n this.item = event.detail;\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Method()\r\n async getEditModels(): Promise<any> {\r\n return Promise.resolve(state.models);\r\n }\r\n\r\n @Method()\r\n async getSpatialReferenceInfo(): Promise<any> {\r\n return Promise.resolve(state.spatialReferenceInfo);\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Observe changes to the templates prop\r\n */\r\n private _initTemplatesObserver() {\r\n this._templatesObserver = new MutationObserver(ml => {\r\n ml.some(mutation => {\r\n if (mutation.type === 'attributes' && mutation.attributeName === \"templates\" &&\r\n mutation.target[mutation.attributeName] !== mutation.oldValue) {\r\n const v = JSON.parse(mutation.target[mutation.attributeName]);\r\n this._initProps(v);\r\n this._initState(v);\r\n return true;\r\n }\r\n })\r\n });\r\n this._templatesObserver.observe(this.el, { attributes: true, attributeOldValue: true });\r\n }\r\n\r\n /**\r\n * Update the store with the initial value\r\n */\r\n private _initState(v: any): void {\r\n state.models = utils.getModels(v);\r\n state.featureServices = utils.getFeatureServices(v);\r\n state.spatialReferenceInfo = utils.getSpatialReferenceInfo(state.featureServices);\r\n this.modelsSet = true;\r\n }\r\n\r\n /**\r\n * Update the Props with the initial values\r\n */\r\n private _initProps(v: any): void {\r\n this.value.contents = [...utils.getInventoryItems(v)];\r\n this._solutionVariables = utils.getSolutionVariables(v, this.translations);\r\n this._organizationVariables = utils.getOrganizationVariables(this.translations);\r\n this.item = {\r\n itemId: \"\",\r\n itemDetails: {},\r\n isResource: false,\r\n data: {},\r\n properties: {},\r\n type: \"\"\r\n };\r\n }\r\n\r\n /**\r\n * Toggle treeOpen prop to show/hide content tree\r\n */\r\n private _toggleTree(): void {\r\n this.treeOpen = !this.treeOpen;\r\n }\r\n}\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-contents.js","sourceRoot":"","sources":["../../../src/components/solution-contents/solution-contents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAS,MAAM,eAAe,CAAC;AAE9F,OAAO,0BAA0B,CAAC;AAiBlC,MAAM,OAAO,gBAAgB;EAN7B;IAgBE,4EAA4E;IAC5E,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,4EAA4E;IAE5E;;OAEG;IACsB,iBAAY,GAAQ,EAAE,CAAC;IAEhD;;OAEG;IACK,UAAK,GAAqB,EAAE,CAAC;GAmFtC;EAjFC,4EAA4E;EAC5E,EAAE;EACF,aAAa;EACb,EAAE;EACF,4EAA4E;EAE5E,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,wBACG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CACpB,CACV,CACR,CAAC;EACJ,CAAC;EAED,eAAe,CAAC,IAAsB;IACpC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;MACtB,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QACxD,CACE,yBAAmB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC;UACxE,0BAAoB,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,GAAI;UACtE,YAAM,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,GAAG,CAAC,KAAK,IAAG,GAAG,CAAC,KAAK,CAAQ;UAC5D,oBAAc,IAAI,EAAC,UAAU,IAC1B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAC1B,CACG,CACrB;QACH,CAAC;UACC,CACE,yBAAmB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC;YACxE,0BAAoB,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,GAAI;YACtE,YAAM,KAAK,EAAC,WAAW,EAAC,KAAK,EAAE,GAAG,CAAC,KAAK,IAAG,GAAG,CAAC,KAAK,CAAQ,CAC1C,CACrB,CAAC;IACN,CAAC,CAAC,CAAC;EACL,CAAC;EAsBD,4EAA4E;EAC5E,EAAE;EACF,0BAA0B;EAC1B,EAAE;EACF,4EAA4E;EAE5E,4EAA4E;EAC5E,EAAE;EACF,mBAAmB;EACnB,EAAE;EACF,4EAA4E;EAE5E;;;;;KAKG;EACK,iBAAiB,CACvB,YAA2B;IAE3B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;EAC/C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, Event, EventEmitter, Host, h, Prop, VNode } from '@stencil/core';\r\nimport { ISolutionItem } from '../solution-item/solution-item';\r\nimport '@esri/calcite-components';\r\n\r\nexport interface IInventoryItem {\r\n id: string;\r\n title: string;\r\n dependencies?: IInventoryItem[];\r\n type: string;\r\n typeKeywords: string[];\r\n solutionItem: ISolutionItem\r\n}\r\n\r\n@Component({\r\n tag: 'solution-contents',\r\n styleUrl: 'solution-contents.css',\r\n shadow: false,\r\n assetsDirs: ['item-type-icons']\r\n})\r\nexport class SolutionContents {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Element() el: HTMLSolutionContentsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n */\r\n @Prop() value: IInventoryItem[] = [];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render(): VNode {\r\n return (\r\n <Host>\r\n <calcite-tree>\r\n {this.renderHierarchy(this.value)}\r\n </calcite-tree>\r\n </Host>\r\n );\r\n }\r\n\r\n renderHierarchy(objs: IInventoryItem[]): HTMLCalciteTreeItemElement[] {\r\n return objs.map((obj) => {\r\n return (obj.dependencies && obj.dependencies.length > 0) ?\r\n (\r\n <calcite-tree-item onClick={() => this._treeItemSelected(obj.solutionItem)}>\r\n <solution-item-icon type={obj.type} typeKeywords={obj.typeKeywords} />\r\n <span class=\"icon-text\" title={obj.title}>{obj.title}</span>\r\n <calcite-tree slot=\"children\" >\r\n {this.renderHierarchy(obj.dependencies)}\r\n </calcite-tree>\r\n </calcite-tree-item>\r\n )\r\n :\r\n (\r\n <calcite-tree-item onClick={() => this._treeItemSelected(obj.solutionItem)}>\r\n <solution-item-icon type={obj.type} typeKeywords={obj.typeKeywords} />\r\n <span class=\"icon-text\" title={obj.title}>{obj.title}</span>\r\n </calcite-tree-item>\r\n );\r\n });\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Event() solutionItemSelected: EventEmitter;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Publishes the `solutionItemSelected` event containing `itemId`, the id of the selected item.\r\n *\r\n * @param solutionItem the\r\n * @param type Item type to understand if it's an item or group\r\n */\r\n private _treeItemSelected(\r\n solutionItem: ISolutionItem\r\n ): void {\r\n this.solutionItemSelected.emit(solutionItem);\r\n }\r\n}\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-item.js","sourceRoot":"","sources":["../../../src/components/solution-item/solution-item.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAS,MAAM,eAAe,CAAC;AAEzE,OAAO,0BAA0B,CAAC;AAkBlC,MAAM,OAAO,YAAY;EALzB;IAcE,4EAA4E;IAC5E,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,4EAA4E;IAE5E;;OAEG;IACsB,iBAAY,GAAQ,EAAE,CAAC;IAEhD;;OAEG;IACqC,UAAK,GAAkB;MAC7D,MAAM,EAAE,EAAE;MACV,WAAW,EAAE,EAAE;MACf,UAAU,EAAE,KAAK;MACjB,IAAI,EAAE,EAAE;MACR,UAAU,EAAE,EAAE;MACd,IAAI,EAAE,EAAE;MACR,YAAY,EAAE,SAAS;KACxB,CAAC;IAEF;;KA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AqB;QAClE,6BAAoB,IAAI,CAAC,YAAY,CAAC,aAAa,CAAqB,CACxD;MAElB,mBAAa,MAAM,QAAC,KAAK,EAAC,YAAY;QACpC,6BACE,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAC5B,CACS;MACd,mBAAa,KAAK,EAAC,YAAY,EAAC,EAAE,EAAC,UAAU;QAC3C,8BACE,UAAU,EAAC,MAAM,EACjB,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,EACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAC,GAC9B,CACS;MACd,mBAAa,KAAK,EAAC,YAAY,EAAC,EAAE,EAAC,WAAW;QAC5C,8BACE,UAAU,EAAC,OAAO,EAClB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACzB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,EACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,KAAK,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAC,GACpC,CACS,CACD,CAAA;EACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, h, Host, Prop, VNode } from '@stencil/core';\r\nimport { ITemplateData } from '../solution-template-data/solution-template-data';\r\nimport '@esri/calcite-components';\r\nimport { IItemShare } from '../solution-item-sharing/solution-item-sharing';\r\n\r\nexport interface ISolutionItem {\r\n itemId: string,\r\n itemDetails: any, //use the interface\r\n isResource: boolean, // this should be removed and determined from the data\r\n data: ITemplateData,\r\n properties: ITemplateData,\r\n type: string,\r\n groupDetails?: IItemShare[]\r\n}\r\n\r\n@Component({\r\n tag: 'solution-item',\r\n styleUrl: 'solution-item.css',\r\n shadow: false\r\n})\r\nexport class SolutionItem {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n @Element() el: HTMLSolutionItemElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n */\r\n @Prop({ mutable: true, reflect: true }) value: ISolutionItem = {\r\n itemId: \"\",\r\n itemDetails: {},\r\n isResource: false,\r\n data: {},\r\n properties: {},\r\n type: \"\",\r\n groupDetails: undefined\r\n };\r\n\r\n /**\r\n * Contains the solution based variables\r\n */\r\n @Prop({ mutable: true, reflect: true }) solutionVariables: any[] = [];\r\n\r\n /**\r\n * Contains the organization based variables\r\n */\r\n @Prop({ mutable: true, reflect: true }) organizationVariables: any[] = [];\r\n\r\n /**\r\n * Contains the public type value for this component.\r\n * \r\n */\r\n //@Prop({ mutable: true, reflect: true }) type: string = \"\";\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render(): VNode {\r\n return (\r\n <Host>\r\n <div class=\"configuration-container\">\r\n <div class=\"configuration\">\r\n {this.value.type === \"Group\" ? this._showGroupTabs() : this._showItemTabs()}\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n _showGroupTabs(): VNode {\r\n return <calcite-tabs class=\"config-tabs\">\r\n <calcite-tab-nav slot=\"tab-nav\">\r\n <calcite-tab-title>{this.translations.groupDetailsTab}</calcite-tab-title>\r\n <calcite-tab-title>{this.translations.sharingTab}</calcite-tab-title>\r\n </calcite-tab-nav>\r\n\r\n <calcite-tab active class=\"config-tab\">\r\n <solution-item-details \r\n translations={this.translations}\r\n type={this.value.type}\r\n value={this.value.itemDetails}\r\n />\r\n </calcite-tab>\r\n <calcite-tab class=\"config-tab\">\r\n <solution-item-sharing\r\n groupId={this.value.itemId}\r\n translations={this.translations}\r\n value={this.value.groupDetails}\r\n />\r\n </calcite-tab>\r\n </calcite-tabs>\r\n }\r\n\r\n _showItemTabs(): VNode {\r\n return <calcite-tabs class=\"config-tabs\">\r\n <calcite-tab-nav slot=\"tab-nav\">\r\n <calcite-tab-title>{this.translations.itemDetailsTab}</calcite-tab-title>\r\n <calcite-tab-title>{this.translations.dataTab}</calcite-tab-title>\r\n <calcite-tab-title>{this.translations.propertiesTab}</calcite-tab-title>\r\n </calcite-tab-nav>\r\n\r\n <calcite-tab active class=\"config-tab\">\r\n <solution-item-details\r\n translations={this.translations}\r\n type={this.value.type}\r\n value={this.value.itemDetails}\r\n />\r\n </calcite-tab>\r\n <calcite-tab class=\"config-tab\" id=\"data-tab\">\r\n <solution-template-data\r\n instanceid=\"data\"\r\n isResource={this.value.isResource}\r\n itemid={this.value.itemId}\r\n organizationVariables={this.organizationVariables}\r\n solutionVariables={this.solutionVariables}\r\n translations={this.translations}\r\n value={{value: this.value.data}}\r\n />\r\n </calcite-tab>\r\n <calcite-tab class=\"config-tab\" id=\"props-tab\">\r\n <solution-template-data\r\n instanceid=\"props\"\r\n itemid={this.value.itemId}\r\n organizationVariables={this.organizationVariables}\r\n solutionVariables={this.solutionVariables}\r\n translations={this.translations} \r\n value={{value: this.value.properties}}\r\n />\r\n </calcite-tab>\r\n </calcite-tabs>\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-item-details.js","sourceRoot":"","sources":["../../../src/components/solution-item-details/solution-item-details.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAS,MAAM,eAAe,CAAC;AACjF,OAAO,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAkB7C,MAAM,OAAO,mBAAmB;EALhC;IAeE,4EAA4E;IAC5E,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,4EAA4E;IAE5E;;OAEG;IACsB,iBAAY,GAAQ,EAAE,CAAC;IAEhD;;OAEG;IACqC,UAAK,GAAiB;MAC5D,SAAS,EAAE,IAAI;MACf,KAAK,EAAE,EAAE;MACT,OAAO,EAAE,EAAE;MACX,WAAW,EAAE,EAAE;MACf,IAAI,EAAE,EAAE;MACR,iBAAiB,EAAE,EAAE;MACrB,WAAW,EAAE,EAAE;MACf,M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;WAC7C;UACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAClC;aAAM;UACL,yBAAyB;UACzB,OAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;SACtC;OACF;KACF;EACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, h, Host, Listen, Prop, VNode } from '@stencil/core';\r\nimport '@esri/calcite-components';\r\nimport state from '../../utils/editStore';\r\nimport { getProp } from '../../utils/common';\r\n\r\nexport interface IItemDetails {\r\n thumbnail: string;\r\n title: string;\r\n snippet: string;\r\n description: string;\r\n tags: string[];\r\n accessInformation?: string;\r\n licenseInfo?: string;\r\n itemId: string\r\n}\r\n\r\n@Component({\r\n tag: 'solution-item-details',\r\n styleUrl: 'solution-item-details.css',\r\n shadow: false,\r\n})\r\nexport class SolutionItemDetails {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Element() el: HTMLSolutionItemDetailsElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Contains the public value for this component.\r\n */\r\n @Prop({ mutable: true, reflect: true }) value: IItemDetails = {\r\n thumbnail: null,\r\n title: \"\",\r\n snippet: \"\",\r\n description: \"\",\r\n tags: [],\r\n accessInformation: \"\",\r\n licenseInfo: \"\",\r\n itemId: \"\"\r\n };\r\n\r\n @Prop({ mutable: true, reflect: true }) type = \"\";\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render(): VNode {\r\n this._validateValue();\r\n return (\r\n <Host>\r\n <div class=\"parent-container\">\r\n <div class=\"inputBottomSeparation\">\r\n <calcite-input id=\"item-title\" value={this.value.title} />\r\n </div>\r\n\r\n <div class=\"inputBottomSeparation\">\r\n\r\n <input accept=\".jpg,.gif,.png,image/jpg,image/gif,image/png\" class=\"display-none\" onChange={(event) => (this._updateThumbnail(event))} ref={(el) => (this.browseForThumbnail = el)} type=\"file\" />\r\n\r\n <button class=\"font-size--3 btn-link inline-block\" onClick={() => this._getThumbnail()}>\r\n <svg class=\"icon-inline icon-inline--on-left\" height=\"16\" viewBox=\"0 0 16 16\" width=\"16\">\r\n <path d=\"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z\" />\r\n </svg> {this.translations.editThumbnail}\r\n </button>\r\n\r\n <div class=\"flex\">\r\n <div class=\"img-container\">\r\n <img class=\"scale-down\" height=\"133\" ref={(el) => (this.thumbnail = el)} width=\"200\" />\r\n </div>\r\n <div class=\"snippet-count-container\">\r\n <calcite-input id=\"item-snippet\" maxlength={250} type=\"textarea\" value={this.value.snippet} />\r\n <label class=\"font-size--3\" id=\"item-snippet-count\" ref={(el) => (this.itemSnippetCount = el)} />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <calcite-label>{this.translations.description}\r\n <label id=\"item-description-label\">\r\n <calcite-input id=\"item-description\" type=\"textarea\" value={this.value.description} />\r\n </label>\r\n </calcite-label>\r\n\r\n <calcite-label>{this.translations.tags}\r\n <label id=\"item-tags-label\">\r\n <calcite-input id=\"item-tags\" value={(this.value.tags && Array.isArray(this.value.tags) ? this.value.tags : [this.value.tags]).join(\",\")} />\r\n </label>\r\n </calcite-label>\r\n\r\n {this.type !== \"Group\" ? <calcite-label>{this.translations.credits}\r\n <label id=\"item-credits-label\">\r\n <calcite-input id=\"item-credits\" value={this.value.accessInformation} />\r\n </label>\r\n </calcite-label> : null}\r\n\r\n {this.type !== \"Group\" ? <calcite-label>\r\n <label id=\"item-terms-label\">{this.translations.termsOfUse}\r\n <calcite-input id=\"item-terms\" type=\"textarea\" value={this.value.licenseInfo} />\r\n </label>\r\n </calcite-label> : null}\r\n \r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Handle to the element for browsing for a file.\r\n */\r\n private browseForThumbnail: HTMLInputElement;\r\n\r\n /**\r\n * Handle to the snippet character-count feedback.\r\n */\r\n private itemSnippetCount: HTMLLabelElement;\r\n\r\n /**\r\n * Handle to the thumbnail image display.\r\n */\r\n private thumbnail: HTMLImageElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Updates the component's value with changes to the input fields.\r\n */\r\n @Listen(\"calciteInputInput\")\r\n inputReceivedHandler(event: any): void {\r\n switch (event.target.id) {\r\n case \"item-title\": \r\n this.value.title = event.target.value;\r\n this._updateStore(\"title\", event.target.value);\r\n break;\r\n case \"item-snippet\":\r\n this.value.snippet = event.target.value;\r\n this._updateLengthLabel(this.value.snippet);\r\n this._updateStore(\"snippet\", event.target.value);\r\n break;\r\n case \"item-description\":\r\n this.value.description = event.target.value;\r\n this._updateStore(\"description\", event.target.value);\r\n break;\r\n case \"item-tags\":\r\n this.value.tags = event.target.value;\r\n this._updateStore(\"tags\", event.target.value);\r\n break;\r\n case \"item-credits\":\r\n this.value.accessInformation = event.target.value;\r\n this._updateStore(\"accessInformation\", event.target.value);\r\n break;\r\n case \"item-terms\":\r\n this.value.licenseInfo = event.target.value;\r\n this._updateStore(\"licenseInfo\", event.target.value);\r\n break;\r\n }\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Opens image file browse dialog.\r\n *\r\n */\r\n private _getThumbnail(): void {\r\n this.browseForThumbnail.click();\r\n }\r\n\r\n /**\r\n * Updates the length label to reflect the current number of characters\r\n * relative to the max number of characters supported.\r\n *\r\n */\r\n private _updateLengthLabel(phrase: string): void {\r\n this.itemSnippetCount.innerText =\r\n this.translations.snippetCountPattern.replace(\"{{n}}\", phrase.length.toString());\r\n }\r\n\r\n /**\r\n * Gets and displays image result from browse.\r\n *\r\n */\r\n private _updateThumbnail(\r\n event: any\r\n ): void {\r\n const files = event.currentTarget.files;\r\n if (files && files[0]) {\r\n const reader = new FileReader();\r\n reader.onloadend = () => {\r\n this.thumbnail.src = reader.result as string;\r\n }\r\n reader.readAsDataURL(files[0]);\r\n }\r\n }\r\n\r\n /**\r\n * Use the value from the store if it exists\r\n *\r\n */\r\n private _validateValue(): void {\r\n const m: any = getProp(state, `models.${this.value.itemId}`);\r\n if (m) {\r\n Object.keys(this.value).forEach(k => {\r\n if (m.updateItemValues.hasOwnProperty(k)) {\r\n this.value[k] = m.updateItemValues[k];\r\n } else if (m.originalItemValues.hasOwnProperty(k)) {\r\n this.value[k] = m.originalItemValues[k];\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Add or remove the value from the store\r\n *\r\n */\r\n private _updateStore(\r\n prop: string,\r\n v: string\r\n ): void {\r\n const model: any = getProp(state, `models.${this.value.itemId}`);\r\n if (model.itemOriginValue) {\r\n const item = JSON.parse(model.itemOriginValue);\r\n if (item.hasOwnProperty(prop)) {\r\n // store when it matches\r\n if (item[prop] !== v) {\r\n if (!model.originalItemValues.hasOwnProperty(prop)) {\r\n model.originalItemValues[prop] = item[prop];\r\n }\r\n model.updateItemValues[prop] = v;\r\n } else {\r\n // remove when it doesn't\r\n delete(model.updateItemValues[prop]);\r\n }\r\n }\r\n }\r\n }\r\n}\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-item-icon.js","sourceRoot":"","sources":["../../../src/components/solution-item-icon/solution-item-icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAO1E,MAAM,OAAO,gBAAgB;EAL7B;IAeE,4EAA4E;IAC5E,EAAE;IACF,uBAAuB;IACvB,EAAE;IACF,4EAA4E;IAE5E;;OAEG;IACsB,iBAAY,GAAQ,EAAE,CAAC;IAEhD;;OAEG;IACK,aAAQ,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACK,SAAI,GAAG,EAAE,CAAC;IAElB;;OAEG;IACK,iBAAY,GAAa,EAAE,CAAC;GA6PrC;EA3PC,4EAA4E;EAC5E,EAAE;EACF,aAAa;EACb,EAAE;EACF,4EAA4E;EAE5E,MAAM;IACJ,OAAO,WAAK,KAAK,EAAE,IAAI,CAAC,IAAI;MAC1B,WAAK,KAAK,EAAC,sCAAsC,EAC/C,MAAM,EAAC,IAAI,EACX,GAAG,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,OAAO,GAAG,YAAY,CAAC;KACxB;SAAM,IAAI,QAAQ,KAAK,gBAAgB,EAAE;MACxC,OAAO,GAAG,mBAAmB,CAAC;KAC/B;SAAM,IAAI,QAAQ,KAAK,yBAAyB,EAAE;MACjD,OAAO,GAAG,uBAAuB,CAAC;KACnC;SAAM,IAAI,QAAQ,KAAK,UAAU,EAAE;MAClC,OAAO,GAAG,UAAU,CAAC;KACtB;SAAM,IAAI,QAAQ,KAAK,2BAA2B,EAAE;MACnD,OAAO,GAAG,yBAAyB,CAAC;KACrC;SAAM,IAAI,QAAQ,KAAK,iBAAiB,EAAE;MACzC,OAAO,GAAG,gBAAgB,CAAC;KAC5B;SAAM,IAAI,QAAQ,KAAK,yBAAyB,EAAE;MACjD,OAAO,GAAG,uBAAuB,CAAC;KACnC;SAAM,IAAI,QAAQ,KAAK,gBAAgB,EAAE;MACxC,OAAO,GAAG,eAAe,CAAC;KAC3B;SAAM,IAAI,QAAQ,KAAK,OAAO,EAAC;MAC9B,OAAO,GAAG,OAAO,CAAA;KAClB;SAAM;MACL,OAAO,GAAG,MAAM,CAAC;KAClB;IACD,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;EACzE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["/** @license\r\n * Copyright 2021 Esri\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n\r\nimport { Component, Element, getAssetPath, h, Prop } from '@stencil/core';\r\n\r\n@Component({\r\n tag: 'solution-item-icon',\r\n styleUrl: 'solution-item-icon.css',\r\n assetsDirs: ['item-icons']\r\n})\r\nexport class SolutionItemIcon {\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Host element access\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n @Element() el: HTMLSolutionItemIconElement;\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Properties (public)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * Contains the translations for this component.\r\n */\r\n @Prop({ mutable: true }) translations: any = {};\r\n\r\n /**\r\n * Indicate if this is portal\r\n */\r\n @Prop() isPortal = false;\r\n\r\n /**\r\n * The type for the item\r\n */\r\n @Prop() type = \"\";\r\n\r\n /**\r\n * The typeKeywords for the item\r\n */\r\n @Prop() typeKeywords: string[] = [];\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Lifecycle\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n render() {\r\n return <div title={this.type}>\r\n <img class=\"item-type-icon item-type-icon-margin\"\r\n height=\"16\"\r\n src={this._getIconUrl(this.type, this.typeKeywords)}\r\n width=\"16\"\r\n />\r\n </div>;\r\n }\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Variables (private)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Event Listeners\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Events\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Public Methods (async)\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n //--------------------------------------------------------------------------\r\n //\r\n // Private Methods\r\n //\r\n //--------------------------------------------------------------------------\r\n\r\n /**\r\n * This function was copied and slightly modified from the arcgis-portal-app.\r\n *\r\n * This will construct the path to the icon based on type and typeKeyword info.\r\n *\r\n * @param type The item type\r\n * @param typeKeywords The item typeKeywords\r\n */\r\n private _getIconUrl(\r\n type: string,\r\n typeKeywords: string[]\r\n ): string {\r\n const \r\n itemType = (type && type.toLowerCase()) || \"\",\r\n imgDir = \"./item-icons/\",\r\n size = \"16\"; //for now we only support 16x16 pixel images\r\n let \r\n isHosted = false,\r\n isRouteLayer = false,\r\n isMarkupLayer = false,\r\n isTable = false,\r\n isSpatiotemporal = false,\r\n isRelational = false,\r\n imgName = \"\";\r\n typeKeywords = typeKeywords || [];\r\n\r\n if (itemType.indexOf(\"service\") > 0 || itemType === \"feature collection\" || itemType === \"kml\" || itemType === \"wms\" || itemType === \"wmts\" || itemType === \"wfs\") {\r\n isHosted = typeKeywords.indexOf(\"Hosted Service\") > -1;\r\n if (itemType === \"feature service\" || itemType === \"feature collection\" || itemType === \"kml\" || itemType === \"wfs\") {\r\n isTable = typeKeywords.indexOf(\"Table\") > -1;\r\n isRouteLayer = typeKeywords.indexOf(\"Route Layer\") > -1;\r\n isMarkupLayer = typeKeywords.indexOf(\"Markup\") > -1;\r\n isSpatiotemporal = typeKeywords.indexOf(\"Spatiotemporal\") !== -1;\r\n imgName = isSpatiotemporal && isTable ? \"spatiotemporaltable\" : (isTable ? \"table\" : (isRouteLayer ? \"routelayer\" : (isMarkupLayer ? \"markup\" : (isSpatiotemporal ? \"spatiotemporal\" : (isHosted ? \"featureshosted\" : \"features\")))));\r\n } else if (itemType === \"map service\" || itemType === \"wms\" || itemType === \"wmts\") {\r\n isSpatiotemporal = typeKeywords.indexOf(\"Spatiotemporal\") !== -1;\r\n isRelational = typeKeywords.indexOf(\"Relational\") !== -1;\r\n if (isSpatiotemporal || isRelational) {\r\n imgName = \"mapimages\";\r\n } else {\r\n imgName = (isHosted || typeKeywords.indexOf(\"Tiled\") > -1 || itemType === \"wmts\") ? \"maptiles\" : \"mapimages\";\r\n }\r\n } else if (itemType === \"scene service\") {\r\n if (typeKeywords.indexOf(\"Line\") > -1) {\r\n imgName = \"sceneweblayerline\";\r\n } else if (typeKeywords.indexOf(\"3DObject\") > -1) {\r\n imgName = \"sceneweblayermultipatch\";\r\n } else if (typeKeywords.indexOf(\"Point\") > -1) {\r\n imgName = \"sceneweblayerpoint\";\r\n } else if (typeKeywords.indexOf(\"IntegratedMesh\") > -1) {\r\n imgName = \"sceneweblayermesh\";\r\n } else if (typeKeywords.indexOf(\"PointCloud\") > -1) {\r\n imgName = \"sceneweblayerpointcloud\";\r\n } else if (typeKeywords.indexOf(\"Polygon\") > -1) {\r\n imgName = \"sceneweblayerpolygon\";\r\n } else if (typeKeywords.indexOf(\"Building\") > -1) {\r\n imgName = \"sceneweblayerbuilding\";\r\n } else {\r\n imgName = \"sceneweblayer\";\r\n }\r\n } else if (itemType === \"image service\") {\r\n imgName = typeKeywords.indexOf(\"Elevation 3D Layer\") > -1 ? \"elevationlayer\" : (typeKeywords.indexOf(\"Tiled Imagery\") > -1 ? \"tiledimagerylayer\" : \"imagery\");\r\n } else if (itemType === \"stream service\") {\r\n imgName = \"streamlayer\";\r\n } else if (itemType === \"vector tile service\") {\r\n imgName = \"vectortile\";\r\n } else if (itemType === \"datastore catalog service\") {\r\n imgName = \"datastorecollection\";\r\n } else if (itemType === \"geocoding service\") {\r\n imgName = \"geocodeservice\";\r\n } else if (itemType === \"geoprocessing service\") {\r\n imgName = (typeKeywords.indexOf(\"Web Tool\") > -1 && (this.isPortal)) ? \"tool\" : \"layers\";\r\n } else {\r\n imgName = \"layers\";\r\n }\r\n } else if (itemType === \"web map\" || itemType === \"cityengine web scene\") {\r\n imgName = \"maps\";\r\n } else if (itemType === \"web scene\") {\r\n imgName = typeKeywords.indexOf(\"ViewingMode-Local\") > -1 ? \"webscenelocal\" : \"websceneglobal\";\r\n } else if (itemType === \"web mapping application\" || itemType === \"mobile application\" || itemType === \"application\" ||\r\n itemType === \"operation view\" || itemType === \"desktop application\") {\r\n imgName = \"apps\";\r\n } else if (itemType === \"map document\" || itemType === \"map package\" || itemType === \"published map\" || itemType === \"scene document\" ||\r\n itemType === \"globe document\" || itemType === \"basemap package\" || itemType === \"mobile basemap package\" || itemType === \"mobile map package\" ||\r\n itemType === \"project package\" || itemType === \"project template\" || itemType === \"pro map\" || itemType === \"layout\" ||\r\n (itemType === \"layer\" && typeKeywords.indexOf(\"ArcGIS Pro\") > -1) || (itemType === \"explorer map\" && typeKeywords.indexOf(\"Explorer Document\"))) {\r\n imgName = \"mapsgray\";\r\n } else if (itemType === \"service definition\" || itemType === \"csv\" || itemType === \"shapefile\" || itemType === \"cad drawing\" || itemType === \"geojson\" || itemType === \"360 vr experience\" || itemType === \"netcdf\" || itemType === \"administrative report\") {\r\n imgName = \"datafiles\";\r\n } else if (itemType === \"explorer add in\" || itemType === \"desktop add in\" || itemType === \"windows viewer add in\" || itemType === \"windows viewer configuration\") {\r\n imgName = \"appsgray\";\r\n } else if (itemType === \"arcgis pro add in\" || itemType === \"arcgis pro configuration\") {\r\n imgName = \"addindesktop\";\r\n } else if (itemType === \"rule package\" || itemType === \"file geodatabase\" || itemType === \"sqlite geodatabase\" || itemType === \"csv collection\" || itemType === \"kml collection\" ||\r\n itemType === \"windows mobile package\" || itemType === \"map template\" || itemType === \"desktop application template\" || itemType === \"gml\" ||\r\n itemType === \"arcpad package\" || itemType === \"code sample\" || itemType === \"form\" || itemType === \"document link\" ||\r\n itemType === \"operations dashboard add in\" || itemType === \"rules package\" || itemType === \"image\" || itemType === \"workflow manager package\" ||\r\n (itemType === \"explorer map\" && typeKeywords.indexOf(\"Explorer Mapping Application\") > -1 || typeKeywords.indexOf(\"Document\") > -1)) {\r\n imgName = \"datafilesgray\";\r\n } else if (itemType === \"network analysis service\" || itemType === \"geoprocessing service\" ||\r\n itemType === \"geodata service\" || itemType === \"geometry service\" || itemType === \"geoprocessing package\" ||\r\n itemType === \"locator package\" || itemType === \"geoprocessing sample\" || itemType === \"workflow manager service\") {\r\n imgName = \"toolsgray\";\r\n } else if (itemType === \"layer\" || itemType === \"layer package\" || itemType === \"explorer layer\") {\r\n imgName = \"layersgray\";\r\n } else if (itemType === \"scene package\") {\r\n imgName = \"scenepackage\";\r\n } else if (itemType === \"mobile scene package\") {\r\n imgName = \"mobilescenepackage\";\r\n } else if (itemType === \"tile package\" || itemType === \"compact tile package\") {\r\n imgName = \"tilepackage\";\r\n } else if (itemType === \"task file\") {\r\n imgName = \"taskfile\";\r\n } else if (itemType === \"report template\") {\r\n imgName = \"report-template\";\r\n } else if (itemType === \"statistical data collection\") {\r\n imgName = \"statisticaldatacollection\";\r\n } else if (itemType === \"insights workbook\") {\r\n imgName = \"workbook\";\r\n } else if (itemType === \"insights model\") {\r\n imgName = \"insightsmodel\";\r\n } else if (itemType === \"insights page\") {\r\n imgName = \"insightspage\";\r\n } else if (itemType === \"insights theme\") {\r\n imgName = \"insightstheme\";\r\n } else if (itemType === \"hub initiative\") {\r\n imgName = \"hubinitiative\";\r\n } else if (itemType === \"hub page\") {\r\n imgName = \"hubpage\";\r\n } else if (itemType === \"hub site application\") {\r\n imgName = \"hubsite\";\r\n } else if (itemType === \"hub event\") {\r\n imgName = \"hubevent\";\r\n } else if (itemType === \"relational database connection\") {\r\n imgName = \"relationaldatabaseconnection\";\r\n } else if (itemType === \"big data file share\") {\r\n imgName = \"datastorecollection\";\r\n } else if (itemType === \"image collection\") {\r\n imgName = \"imagecollection\";\r\n } else if (itemType === \"desktop style\") {\r\n imgName = \"desktopstyle\";\r\n } else if (itemType === \"style\") {\r\n imgName = \"style\";\r\n } else if (itemType === \"dashboard\") {\r\n imgName = \"dashboard\";\r\n } else if (itemType === \"raster function template\") {\r\n imgName = \"rasterprocessingtemplate\";\r\n } else if (itemType === \"vector tile package\") {\r\n imgName = \"vectortilepackage\";\r\n } else if (itemType === \"ortho mapping project\") {\r\n imgName = \"orthomappingproject\";\r\n } else if (itemType === \"ortho mapping template\") {\r\n imgName = \"orthomappingtemplate\";\r\n } else if (itemType === \"solution\") {\r\n imgName = \"solutions\";\r\n } else if (itemType === \"geopackage\") {\r\n imgName = \"geopackage\";\r\n } else if (itemType === \"deep learning package\") {\r\n imgName = \"deeplearningpackage\";\r\n } else if (itemType === \"real time analytic\") {\r\n imgName = \"realtimeanalytics\";\r\n } else if (itemType === \"big data analytic\") {\r\n imgName = \"bigdataanalytics\";\r\n } else if (itemType === \"feed\") {\r\n imgName = \"feed\";\r\n } else if (itemType === \"excalibur imagery project\") {\r\n imgName = \"excaliburimageryproject\";\r\n } else if (itemType === \"notebook\") {\r\n imgName = \"notebook\";\r\n } else if (itemType === \"storymap\") {\r\n imgName = \"storymap\";\r\n } else if (itemType === \"survey123 add in\") {\r\n imgName = \"survey123addin\";\r\n } else if (itemType === \"mission\") {\r\n imgName = \"mission\";\r\n } else if (itemType === \"mission report\") {\r\n imgName = \"missionreport\";\r\n } else if (itemType === \"quickcapture project\") {\r\n imgName = \"quickcaptureproject\";\r\n } else if (itemType === \"pro report\") {\r\n imgName = \"proreport\";\r\n } else if (itemType === \"urban model\") {\r\n imgName = \"urbanmodel\";\r\n } else if (itemType === \"web experience\") {\r\n imgName = \"experiencebuilder\";\r\n } else if (itemType === \"web experience template\") {\r\n imgName = \"webexperiencetemplate\";\r\n } else if (itemType === \"workflow\") {\r\n imgName = \"workflow\";\r\n } else if (itemType === \"kernel gateway connection\") {\r\n imgName = \"kernelgatewayconnection\";\r\n } else if (itemType === \"insights script\") {\r\n imgName = \"insightsscript\";\r\n } else if (itemType === \"hub initiative template\") {\r\n imgName = \"hubinitiativetemplate\";\r\n } else if (itemType === \"storymap theme\") {\r\n imgName = \"storymaptheme\";\r\n } else if (itemType === \"group\"){\r\n imgName = \"group\"\r\n } else {\r\n imgName = \"maps\";\r\n }\r\n return imgName ? getAssetPath(imgDir + imgName + size + \".png\") : null;\r\n }\r\n\r\n}\r\n"]}