@esri/solutions-components 0.10.23 → 0.10.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. package/dist/cjs/{calcite-accordion-item.cjs.entry.js → calcite-accordion_2.cjs.entry.js} +83 -1
  2. package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  4. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
  5. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  6. package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
  7. package/dist/cjs/feature-list.cjs.entry.js +2 -2
  8. package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  11. package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
  12. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  13. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  14. package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
  15. package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
  16. package/dist/cjs/solutions-components.cjs.js +1 -1
  17. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  18. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
  19. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/layer-table/layer-table.js +3 -3
  22. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
  23. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
  24. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  25. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  26. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  27. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  28. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  29. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  30. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  31. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  32. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  33. package/dist/collection/demos/solution-item-accordion.html +345 -0
  34. package/dist/collection/utils/interfaces.ts +11 -0
  35. package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
  36. package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
  37. package/dist/components/calcite-accordion-item.js +1 -222
  38. package/dist/components/calcite-accordion.js +1 -110
  39. package/dist/components/downloadUtils.js +234 -159
  40. package/dist/components/index.es.js +35 -46
  41. package/dist/components/layer-table2.js +3 -3
  42. package/dist/components/solution-item-accordion.d.ts +11 -0
  43. package/dist/components/solution-item-accordion.js +336 -0
  44. package/dist/components/solution-item-details2.js +1 -1
  45. package/dist/components/solution-item-icon2.js +1 -1
  46. package/dist/components/solution-item-sharing2.js +1 -1
  47. package/dist/components/solution-organization-variables2.js +1 -1
  48. package/dist/components/solution-resource-item2.js +1 -1
  49. package/dist/components/solution-spatial-ref2.js +1 -1
  50. package/dist/components/solution-template-data2.js +1 -1
  51. package/dist/components/solution-variables2.js +1 -1
  52. package/dist/components/spatial-ref.js +1 -1
  53. package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-9289b7ca.js} +1 -1
  54. package/dist/esm/{ar-e0e64e78.js → ar-8dded5d5.js} +8 -8
  55. package/dist/esm/{bg-d2d8dbe0.js → bg-c1cdf619.js} +8 -8
  56. package/dist/esm/{bs-d883901d.js → bs-a40506a4.js} +8 -8
  57. package/dist/esm/buffer-tools_3.entry.js +1 -1
  58. package/dist/esm/{ca-064729ad.js → ca-67879a0c.js} +8 -8
  59. package/dist/esm/calcite-accordion_2.entry.js +279 -0
  60. package/dist/esm/calcite-action-bar.entry.js +4 -4
  61. package/dist/esm/calcite-action-group.entry.js +3 -3
  62. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  63. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  64. package/dist/esm/calcite-action_2.entry.js +6 -6
  65. package/dist/esm/calcite-alert_5.entry.js +6 -6
  66. package/dist/esm/calcite-avatar.entry.js +1 -1
  67. package/dist/esm/calcite-block-section.entry.js +3 -3
  68. package/dist/esm/calcite-block_5.entry.js +9 -9
  69. package/dist/esm/calcite-button.entry.js +5 -5
  70. package/dist/esm/calcite-card-group.entry.js +1 -1
  71. package/dist/esm/calcite-card.entry.js +3 -3
  72. package/dist/esm/calcite-carousel.entry.js +3 -3
  73. package/dist/esm/calcite-checkbox.entry.js +3 -3
  74. package/dist/esm/calcite-chip-group.entry.js +1 -1
  75. package/dist/esm/calcite-chip_2.entry.js +4 -4
  76. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  77. package/dist/esm/calcite-color-picker.entry.js +3 -3
  78. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  79. package/dist/esm/calcite-combobox_3.entry.js +8 -8
  80. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  81. package/dist/esm/calcite-dialog.entry.js +5 -5
  82. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  83. package/dist/esm/calcite-fab.entry.js +1 -1
  84. package/dist/esm/calcite-filter_5.entry.js +3 -3
  85. package/dist/esm/calcite-graph_2.entry.js +4 -4
  86. package/dist/esm/calcite-icon_2.entry.js +2 -2
  87. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  88. package/dist/esm/calcite-input-number.entry.js +5 -5
  89. package/dist/esm/calcite-input-text.entry.js +5 -5
  90. package/dist/esm/{calcite-input-time-picker-66e7a9f3.js → calcite-input-time-picker-37845feb.js} +56 -56
  91. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  92. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  93. package/dist/esm/calcite-input_2.entry.js +5 -5
  94. package/dist/esm/calcite-label.entry.js +2 -2
  95. package/dist/esm/calcite-link.entry.js +1 -1
  96. package/dist/esm/calcite-menu-item.entry.js +3 -3
  97. package/dist/esm/calcite-menu.entry.js +3 -3
  98. package/dist/esm/calcite-meter.entry.js +3 -3
  99. package/dist/esm/calcite-modal_3.entry.js +5 -5
  100. package/dist/esm/calcite-navigation.entry.js +1 -1
  101. package/dist/esm/calcite-notice.entry.js +4 -4
  102. package/dist/esm/calcite-option_2.entry.js +3 -3
  103. package/dist/esm/calcite-pagination.entry.js +3 -3
  104. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  105. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  106. package/dist/esm/calcite-pick-list.entry.js +2 -2
  107. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  108. package/dist/esm/calcite-radio-button.entry.js +3 -3
  109. package/dist/esm/calcite-rating.entry.js +5 -5
  110. package/dist/esm/calcite-scrim.entry.js +3 -3
  111. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  112. package/dist/esm/calcite-sheet.entry.js +3 -3
  113. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  114. package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
  115. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  116. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  117. package/dist/esm/calcite-stepper.entry.js +3 -3
  118. package/dist/esm/calcite-switch.entry.js +3 -3
  119. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  120. package/dist/esm/calcite-table-row.entry.js +1 -1
  121. package/dist/esm/calcite-table.entry.js +3 -3
  122. package/dist/esm/calcite-text-area.entry.js +5 -5
  123. package/dist/esm/calcite-tile-group.entry.js +1 -1
  124. package/dist/esm/calcite-tile.entry.js +1 -1
  125. package/dist/esm/calcite-time-picker.entry.js +4 -4
  126. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  127. package/dist/esm/calcite-tip.entry.js +3 -3
  128. package/dist/esm/calcite-tooltip.entry.js +3 -3
  129. package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
  130. package/dist/esm/card-manager_3.entry.js +4 -4
  131. package/dist/esm/{cs-3751e560.js → cs-b01aecfc.js} +8 -8
  132. package/dist/esm/{da-227f8ad5.js → da-87ac64be.js} +8 -8
  133. package/dist/esm/{date-87a67cb4.js → date-7a1345c1.js} +1 -1
  134. package/dist/esm/{de-a5d2b25b.js → de-0eb6c065.js} +8 -8
  135. package/dist/esm/{de-at-66232b80.js → de-at-2db1a5d5.js} +8 -8
  136. package/dist/esm/{de-ch-1264ed4c.js → de-ch-063c0a6b.js} +8 -8
  137. package/dist/esm/{dom-63d2d41c.js → dom-451ed293.js} +1 -1
  138. package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
  139. package/dist/esm/{el-f5bf7ca3.js → el-eb29e645.js} +8 -8
  140. package/dist/esm/{en-au-2ac8f62e.js → en-au-00f884ad.js} +8 -8
  141. package/dist/esm/{en-ca-a1602b49.js → en-ca-1e7456d7.js} +8 -8
  142. package/dist/esm/{en-gb-28354b2e.js → en-gb-60a33692.js} +8 -8
  143. package/dist/esm/{es-feb7aad2.js → es-74f8b164.js} +8 -8
  144. package/dist/esm/{es-mx-5d64f899.js → es-mx-2bfa704a.js} +8 -8
  145. package/dist/esm/{et-173d2f49.js → et-b1a2d978.js} +8 -8
  146. package/dist/esm/feature-list.entry.js +2 -2
  147. package/dist/esm/{fi-ff9bb719.js → fi-70441d5b.js} +8 -8
  148. package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-4b1f5138.js} +1 -1
  149. package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-b9709e71.js} +1 -1
  150. package/dist/esm/{form-08e1bcb7.js → form-fa4c471b.js} +1 -1
  151. package/dist/esm/{fr-e3af6835.js → fr-cea05ec9.js} +8 -8
  152. package/dist/esm/{fr-ch-491f1abe.js → fr-ch-8faa2fcf.js} +8 -8
  153. package/dist/esm/{he-47aa8dde.js → he-058ece46.js} +8 -8
  154. package/dist/esm/{hi-1700df3e.js → hi-163a268e.js} +8 -8
  155. package/dist/esm/{hr-68b828f5.js → hr-2b69b2ad.js} +8 -8
  156. package/dist/esm/{hu-df6a8f29.js → hu-e46e0cb6.js} +8 -8
  157. package/dist/esm/{id-8091582d.js → id-ebccdbbb.js} +8 -8
  158. package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
  159. package/dist/esm/{it-1f5e149d.js → it-813be6d0.js} +8 -8
  160. package/dist/esm/{it-ch-bf7fcac6.js → it-ch-bc95119e.js} +8 -8
  161. package/dist/esm/{ja-a5117166.js → ja-3488d28c.js} +8 -8
  162. package/dist/esm/{ko-9d7a9e79.js → ko-54faa268.js} +8 -8
  163. package/dist/esm/{label-4c4e06d6.js → label-414f1003.js} +1 -1
  164. package/dist/esm/loader.js +1 -1
  165. package/dist/esm/{locale-4441c976.js → locale-337dc231.js} +1 -1
  166. package/dist/esm/{lt-2e1c53de.js → lt-8c773940.js} +8 -8
  167. package/dist/esm/{lv-ca1ba866.js → lv-4882a326.js} +8 -8
  168. package/dist/esm/map-select-tools_3.entry.js +1 -1
  169. package/dist/esm/{mk-421d0d41.js → mk-d045a827.js} +8 -8
  170. package/dist/esm/{nb-5b103e32.js → nb-529fd6f8.js} +8 -8
  171. package/dist/esm/{nl-eac33461.js → nl-ebd398ac.js} +8 -8
  172. package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-80c6ee4b.js} +1 -1
  173. package/dist/esm/{pl-03531ccb.js → pl-4cd334ed.js} +8 -8
  174. package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
  175. package/dist/esm/{pt-b5d8bffc.js → pt-be0c86a5.js} +8 -8
  176. package/dist/esm/{pt-br-dee45728.js → pt-br-29226fc3.js} +8 -8
  177. package/dist/esm/public-notification.entry.js +1 -1
  178. package/dist/esm/{ro-df6cb584.js → ro-6555f5dd.js} +8 -8
  179. package/dist/esm/{ru-e7c02faa.js → ru-67b5c59c.js} +8 -8
  180. package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-c8da5fde.js} +1 -1
  181. package/dist/esm/{sk-cae387d2.js → sk-81f19081.js} +8 -8
  182. package/dist/esm/{sl-2892ad87.js → sl-4b892d99.js} +8 -8
  183. package/dist/esm/solution-contents_3.entry.js +1 -1
  184. package/dist/esm/solution-item-accordion.entry.js +229 -0
  185. package/dist/esm/solution-item-icon.entry.js +324 -0
  186. package/dist/esm/solutions-components.js +1 -1
  187. package/dist/esm/spatial-ref.entry.js +1 -1
  188. package/dist/esm/{sr-11e6839f.js → sr-6cb6f797.js} +8 -8
  189. package/dist/esm/{sv-fd5c6ca5.js → sv-aacab364.js} +8 -8
  190. package/dist/esm/{t9n-b7ea1a61.js → t9n-7d4462c0.js} +1 -1
  191. package/dist/esm/{th-170cf6b1.js → th-6b423678.js} +8 -8
  192. package/dist/esm/{time-a7f1020b.js → time-b0bba3f9.js} +1 -1
  193. package/dist/esm/{tr-1d6ca382.js → tr-0e2b854e.js} +8 -8
  194. package/dist/esm/{uk-35eec84e.js → uk-af0a30cc.js} +8 -8
  195. package/dist/esm/{utils-62514064.js → utils-37bc2853.js} +1 -1
  196. package/dist/esm/{vi-2713ee26.js → vi-62071c6f.js} +8 -8
  197. package/dist/esm/{zh-cn-ed066014.js → zh-cn-8f53db2f.js} +8 -8
  198. package/dist/esm/{zh-hk-a118dced.js → zh-hk-a8c68b9c.js} +8 -8
  199. package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-3006115d.js} +8 -8
  200. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
  201. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  202. package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
  203. package/dist/solutions-components/{p-02ea30d1.entry.js → p-00cfce5b.entry.js} +1 -1
  204. package/dist/solutions-components/{p-ac11cf8f.entry.js → p-01510268.entry.js} +1 -1
  205. package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
  206. package/dist/solutions-components/{p-de3ee7a6.entry.js → p-075a3c9d.entry.js} +1 -1
  207. package/dist/solutions-components/{p-267ef1b8.entry.js → p-0bd7752a.entry.js} +1 -1
  208. package/dist/solutions-components/{p-8c6a301f.entry.js → p-109cabd8.entry.js} +2 -2
  209. package/dist/solutions-components/{p-87f928a5.entry.js → p-116927af.entry.js} +3 -3
  210. package/dist/solutions-components/{p-8da5aeea.entry.js → p-118e1989.entry.js} +1 -1
  211. package/dist/solutions-components/p-16261018.js +11 -0
  212. package/dist/solutions-components/{p-c5facecd.entry.js → p-16d721ef.entry.js} +1 -1
  213. package/dist/solutions-components/{p-f7bc99fb.entry.js → p-1794a1aa.entry.js} +3 -3
  214. package/dist/solutions-components/{p-cf9e6515.entry.js → p-19697807.entry.js} +2 -2
  215. package/dist/solutions-components/{p-25b5ffea.js → p-1a7c4e9a.js} +1 -1
  216. package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
  217. package/dist/solutions-components/p-1cfc581f.js +11 -0
  218. package/dist/solutions-components/{p-d784f756.entry.js → p-20393dcf.entry.js} +1 -1
  219. package/dist/solutions-components/{p-4e7aa926.js → p-203b4081.js} +1 -1
  220. package/dist/solutions-components/p-228c3bf3.entry.js +17 -0
  221. package/dist/solutions-components/{p-e4ef6f49.js → p-24192cfe.js} +1 -1
  222. package/dist/solutions-components/{p-d75ef009.entry.js → p-25ee25ea.entry.js} +2 -2
  223. package/dist/solutions-components/{p-7b2ef872.entry.js → p-2756e4ac.entry.js} +1 -1
  224. package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
  225. package/dist/solutions-components/{p-aa68a36e.entry.js → p-2ace1fe7.entry.js} +2 -2
  226. package/dist/solutions-components/{p-8bb2c169.js → p-2afb3a2b.js} +1 -1
  227. package/dist/solutions-components/{p-95c3b305.entry.js → p-2b212cd0.entry.js} +1 -1
  228. package/dist/solutions-components/p-2c00221b.js +6 -0
  229. package/dist/solutions-components/{p-3c1ecf85.entry.js → p-2fafe489.entry.js} +1 -1
  230. package/dist/solutions-components/{p-9560a1fd.entry.js → p-30b555dc.entry.js} +1 -1
  231. package/dist/solutions-components/{p-347d9ce0.js → p-328fbcb5.js} +1 -1
  232. package/dist/solutions-components/{p-aa341d46.entry.js → p-32cf5a71.entry.js} +1 -1
  233. package/dist/solutions-components/{p-712873f0.js → p-33fe9a28.js} +1 -1
  234. package/dist/solutions-components/{p-80f49acc.js → p-35f33a32.js} +1 -1
  235. package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
  236. package/dist/solutions-components/{p-fb3e0eae.js → p-3955461a.js} +1 -1
  237. package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
  238. package/dist/solutions-components/{p-54a9017c.entry.js → p-3f6d5f14.entry.js} +1 -1
  239. package/dist/solutions-components/{p-1a06bf01.js → p-3fb350ea.js} +1 -1
  240. package/dist/solutions-components/{p-a79f4c52.entry.js → p-41744516.entry.js} +1 -1
  241. package/dist/solutions-components/{p-c40b0ec5.js → p-4182a628.js} +3 -3
  242. package/dist/solutions-components/{p-304cef31.js → p-42552409.js} +3 -3
  243. package/dist/solutions-components/{p-0e851a4b.js → p-4336e44a.js} +1 -1
  244. package/dist/solutions-components/{p-c25e8c35.js → p-441f1992.js} +1 -1
  245. package/dist/solutions-components/{p-fa68f43a.entry.js → p-451b483d.entry.js} +1 -1
  246. package/dist/solutions-components/{p-9bc84681.js → p-472be784.js} +1 -1
  247. package/dist/solutions-components/p-48c58b28.js +6 -0
  248. package/dist/solutions-components/{p-ca6055a3.js → p-4993c7b1.js} +1 -1
  249. package/dist/solutions-components/{p-b8ce880d.js → p-4a35785b.js} +1 -1
  250. package/dist/solutions-components/{p-de8121a4.js → p-4d97016e.js} +1 -1
  251. package/dist/solutions-components/{p-990d8b4b.js → p-4f4f00a9.js} +1 -1
  252. package/dist/solutions-components/{p-b3e8da19.entry.js → p-50203a2d.entry.js} +1 -1
  253. package/dist/solutions-components/{p-19b466d0.js → p-546a2802.js} +1 -1
  254. package/dist/solutions-components/{p-66b01781.js → p-54fa7a94.js} +2 -2
  255. package/dist/solutions-components/{p-04294b8e.js → p-57b673e2.js} +1 -1
  256. package/dist/solutions-components/{p-c163b67f.js → p-593a6f17.js} +1 -1
  257. package/dist/solutions-components/{p-5a3cab12.entry.js → p-5c0d42e9.entry.js} +1 -1
  258. package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
  259. package/dist/solutions-components/{p-2aa44a02.entry.js → p-5d4efa42.entry.js} +2 -2
  260. package/dist/solutions-components/{p-7fce703f.entry.js → p-5d8a5e53.entry.js} +1 -1
  261. package/dist/solutions-components/{p-c7046172.entry.js → p-5fe92f6e.entry.js} +2 -2
  262. package/dist/solutions-components/{p-da80cfbc.entry.js → p-6384a9a5.entry.js} +1 -1
  263. package/dist/solutions-components/{p-b8f33145.js → p-6518727d.js} +1 -1
  264. package/dist/solutions-components/{p-52f19286.entry.js → p-67392838.entry.js} +1 -1
  265. package/dist/solutions-components/{p-54b7e680.js → p-6e0b76ce.js} +1 -1
  266. package/dist/solutions-components/{p-1017609e.js → p-6e3f1d71.js} +2 -2
  267. package/dist/solutions-components/{p-5f7c1e49.js → p-6f39a13f.js} +1 -1
  268. package/dist/solutions-components/{p-0b6e5486.js → p-71c0a413.js} +1 -1
  269. package/dist/solutions-components/{p-fedbf657.entry.js → p-728ec094.entry.js} +1 -1
  270. package/dist/solutions-components/{p-b8b78283.entry.js → p-72d0eda0.entry.js} +1 -1
  271. package/dist/solutions-components/p-743ad3a7.entry.js +6 -0
  272. package/dist/solutions-components/{p-732bb88c.entry.js → p-78c438c0.entry.js} +1 -1
  273. package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-7b63f249.entry.js} +1 -1
  274. package/dist/solutions-components/{p-91b7a7dc.entry.js → p-7f090468.entry.js} +1 -1
  275. package/dist/solutions-components/{p-770a0e12.js → p-7f31be6a.js} +1 -1
  276. package/dist/solutions-components/{p-cb07016a.entry.js → p-8419b5a1.entry.js} +2 -2
  277. package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-86ca6cfe.entry.js} +1 -1
  278. package/dist/solutions-components/{p-66afdfdd.entry.js → p-8846430d.entry.js} +3 -3
  279. package/dist/solutions-components/{p-508b2b7b.js → p-89ddc916.js} +1 -1
  280. package/dist/solutions-components/{p-9db30b19.entry.js → p-89f14b8a.entry.js} +1 -1
  281. package/dist/solutions-components/{p-23dd68de.entry.js → p-8ae73529.entry.js} +2 -2
  282. package/dist/solutions-components/{p-64bf4d2e.entry.js → p-8badcaf5.entry.js} +1 -1
  283. package/dist/solutions-components/{p-eb2859d6.js → p-8eacc640.js} +1 -1
  284. package/dist/solutions-components/{p-798b9928.entry.js → p-8f840208.entry.js} +1 -1
  285. package/dist/solutions-components/{p-c7eaade6.entry.js → p-9232245b.entry.js} +1 -1
  286. package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
  287. package/dist/solutions-components/{p-919e9de7.entry.js → p-92de7cd3.entry.js} +1 -1
  288. package/dist/solutions-components/{p-9c5f4347.js → p-96919110.js} +1 -1
  289. package/dist/solutions-components/{p-222e0445.entry.js → p-981afe9e.entry.js} +1 -1
  290. package/dist/solutions-components/{p-550da58b.js → p-9901e971.js} +1 -1
  291. package/dist/solutions-components/{p-986ff43b.entry.js → p-9957c7b8.entry.js} +1 -1
  292. package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-9c6f2672.entry.js} +1 -1
  293. package/dist/solutions-components/{p-bb0f549a.js → p-a0ef9cee.js} +1 -1
  294. package/dist/solutions-components/{p-d47abf9b.entry.js → p-a16449b2.entry.js} +1 -1
  295. package/dist/solutions-components/{p-08d1cc1f.js → p-a2d4c97e.js} +2 -2
  296. package/dist/solutions-components/{p-bae65813.entry.js → p-a68f4775.entry.js} +1 -1
  297. package/dist/solutions-components/{p-79f78acc.entry.js → p-a8d4a522.entry.js} +1 -1
  298. package/dist/solutions-components/{p-6c080ac7.entry.js → p-a9f65057.entry.js} +1 -1
  299. package/dist/solutions-components/{p-40175313.entry.js → p-ab8f4820.entry.js} +2 -2
  300. package/dist/solutions-components/{p-f6f2018a.js → p-abc30e04.js} +1 -1
  301. package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
  302. package/dist/solutions-components/{p-9524e5e4.js → p-acf135cc.js} +1 -1
  303. package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
  304. package/dist/solutions-components/p-af8a7aff.entry.js +6 -0
  305. package/dist/solutions-components/{p-924ec704.js → p-b3b042df.js} +1 -1
  306. package/dist/solutions-components/{p-8fb06a85.entry.js → p-b6b4c707.entry.js} +1 -1
  307. package/dist/solutions-components/{p-4c179300.entry.js → p-b7a49673.entry.js} +1 -1
  308. package/dist/solutions-components/{p-40f5df15.entry.js → p-b955a19b.entry.js} +1 -1
  309. package/dist/solutions-components/{p-c4953b5e.entry.js → p-b9eefee6.entry.js} +2 -2
  310. package/dist/solutions-components/p-bb9492ed.js +6 -0
  311. package/dist/solutions-components/{p-8537518d.entry.js → p-bc86c87d.entry.js} +2 -2
  312. package/dist/solutions-components/{p-8614d1a0.entry.js → p-bd3c130b.entry.js} +1 -1
  313. package/dist/solutions-components/{p-e74bc7b3.js → p-bdc425fc.js} +1 -1
  314. package/dist/solutions-components/{p-92ba99ff.js → p-beba6703.js} +1 -1
  315. package/dist/solutions-components/{p-cd6eee11.js → p-c1242d4b.js} +1 -1
  316. package/dist/solutions-components/{p-a4e35c2d.entry.js → p-c26ac7d9.entry.js} +1 -1
  317. package/dist/solutions-components/{p-b76ed1c7.entry.js → p-c3782a7e.entry.js} +2 -2
  318. package/dist/solutions-components/{p-936037e4.js → p-c5520bba.js} +1 -1
  319. package/dist/solutions-components/{p-29a09798.js → p-c58ec2d0.js} +3 -3
  320. package/dist/solutions-components/{p-53b5a39e.js → p-c5d26e3a.js} +1 -1
  321. package/dist/solutions-components/{p-a37d1b17.entry.js → p-c8325ead.entry.js} +1 -1
  322. package/dist/solutions-components/{p-94ae78d6.js → p-cba777d2.js} +1 -1
  323. package/dist/solutions-components/{p-01dae909.js → p-d1371897.js} +1 -1
  324. package/dist/solutions-components/{p-d1cc620f.entry.js → p-d6c50190.entry.js} +1 -1
  325. package/dist/solutions-components/{p-fcd33b4f.js → p-d726e895.js} +1 -1
  326. package/dist/solutions-components/{p-270ead49.js → p-d8a54947.js} +1 -1
  327. package/dist/solutions-components/{p-a85fd786.entry.js → p-da6e25cb.entry.js} +1 -1
  328. package/dist/solutions-components/{p-ee9b7fab.js → p-db2c82ad.js} +1 -1
  329. package/dist/solutions-components/{p-e0ee0556.entry.js → p-dbcfdc6d.entry.js} +1 -1
  330. package/dist/solutions-components/{p-67c34d05.entry.js → p-ddc97e93.entry.js} +1 -1
  331. package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
  332. package/dist/solutions-components/{p-245c35ce.js → p-e013e797.js} +1 -1
  333. package/dist/solutions-components/{p-0d6b3f44.js → p-e3bb02cc.js} +1 -1
  334. package/dist/solutions-components/{p-5440c8dd.js → p-e5ec69a4.js} +1 -1
  335. package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
  336. package/dist/solutions-components/{p-49bbe45e.js → p-ea119eee.js} +1 -1
  337. package/dist/solutions-components/{p-062f4457.js → p-ec59efb8.js} +1 -1
  338. package/dist/solutions-components/{p-bc6cf10f.entry.js → p-ef360459.entry.js} +1 -1
  339. package/dist/solutions-components/{p-0dc73313.js → p-f14d11f1.js} +1 -1
  340. package/dist/solutions-components/{p-6319ca20.js → p-f4d6771a.js} +1 -1
  341. package/dist/solutions-components/{p-5f705984.js → p-f4e30ab2.js} +1 -1
  342. package/dist/solutions-components/{p-7ae41cd8.js → p-f7680693.js} +1 -1
  343. package/dist/solutions-components/{p-9277a339.entry.js → p-faf7740b.entry.js} +1 -1
  344. package/dist/solutions-components/{p-707ee1d1.entry.js → p-fb95ec69.entry.js} +2 -2
  345. package/dist/solutions-components/{p-2264e8d5.entry.js → p-fbf86656.entry.js} +1 -1
  346. package/dist/solutions-components/{p-7c854814.js → p-fd730974.js} +2 -2
  347. package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-ff96d7ee.entry.js} +3 -3
  348. package/dist/solutions-components/solutions-components.esm.js +1 -1
  349. package/dist/solutions-components/utils/interfaces.ts +11 -0
  350. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
  351. package/dist/types/components.d.ts +23 -2
  352. package/dist/types/preact.d.ts +2 -0
  353. package/dist/types/utils/interfaces.d.ts +10 -0
  354. package/package.json +6 -6
  355. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
  356. package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
  357. package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
  358. package/dist/solutions-components/p-2d17790c.js +0 -6
  359. package/dist/solutions-components/p-2e06ec97.js +0 -6
  360. package/dist/solutions-components/p-33db098c.js +0 -6
  361. package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
  362. package/dist/solutions-components/p-79f5a8be.js +0 -11
  363. package/dist/solutions-components/p-a5e64f6b.entry.js +0 -6
  364. package/dist/solutions-components/p-d36878db.js +0 -11
  365. package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -12,7 +12,7 @@ const locale = require('./locale-a09603ee.js');
12
12
  const mapViewUtils = require('./mapViewUtils-18c46b84.js');
13
13
  const interfaces = require('./interfaces-09c4c40e.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-f229e839.js');
15
- const downloadUtils = require('./downloadUtils-470f6a27.js');
15
+ const downloadUtils = require('./downloadUtils-17f08e5e.js');
16
16
  require('./esri-loader-08dc41bd.js');
17
17
  require('./_commonjsHelpers-baf43783.js');
18
18
  require('./index-da709a10.js');
@@ -5,7 +5,7 @@
5
5
  */
6
6
  'use strict';
7
7
 
8
- const downloadUtils = require('./downloadUtils-470f6a27.js');
8
+ const downloadUtils = require('./downloadUtils-17f08e5e.js');
9
9
  const locale = require('./locale-a09603ee.js');
10
10
 
11
11
  /** @license
@@ -12,7 +12,7 @@ const interfaces = require('./interfaces-09c4c40e.js');
12
12
  const locale = require('./locale-a09603ee.js');
13
13
  const mapViewUtils = require('./mapViewUtils-18c46b84.js');
14
14
  const publicNotificationStore = require('./publicNotificationStore-f229e839.js');
15
- const downloadUtils = require('./downloadUtils-470f6a27.js');
15
+ const downloadUtils = require('./downloadUtils-17f08e5e.js');
16
16
  require('./esri-loader-08dc41bd.js');
17
17
  require('./_commonjsHelpers-baf43783.js');
18
18
  require('./index-da709a10.js');
@@ -236,7 +236,7 @@ const SolutionSpatialRef = class {
236
236
  }
237
237
  render() {
238
238
  this._updateUIFromStore();
239
- return (index.h(index.Host, { key: '68fd2c3252945db218075d37c50882c61844062a' }, index.h("label", { key: '1f8b3c293fa91ebfe1a1355a6759cdec714db574', class: "switch-label" }, index.h("calcite-switch", { key: 'c75c9adcda04e9fad111517e5b4592ffc697be2b', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), index.h("br", { key: '532569ffbdb0142b4d75b15809f9dbb18a5b7fcf' }), index.h("div", { key: '34cd37abd6a5d3017f7d68c0e96727d221069c80', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), index.h("label", { key: '882f235fc7382fd493c9f9b1d2f05830a8e4632c', class: "switch-label spatial-ref-component" }, index.h("calcite-switch", { key: '16833cff9ecf4ca2565a1f81e9e41d9658dfcac3', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
239
+ return (index.h(index.Host, { key: 'ca1dd62000a2fdbd82a00830fc3ac94b47db73f7' }, index.h("label", { key: 'fa1ca79af87525ce25a6acf0a5b6a093429f5b77', class: "switch-label" }, index.h("calcite-switch", { key: '8dbcdbc8f417dfe1a05578fc9bbf3417ae93abfb', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), index.h("br", { key: 'd3c2296bf3568e7b5b167fe0516184ae0c2d26f1' }), index.h("div", { key: 'fee9eac900cae65363658fa769347c3db0783007', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), index.h("label", { key: '317e1422cdcb2147a961f2edfbcedb30c4246f6d', class: "switch-label spatial-ref-component" }, index.h("calcite-switch", { key: '6f0b7eb7216d0a663e5f2d436b7523b2d2301841', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
240
240
  }
241
241
  //--------------------------------------------------------------------------
242
242
  //
@@ -0,0 +1,233 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-5a0af791.js');
11
+ const locale = require('./locale-a09603ee.js');
12
+ require('./esri-loader-08dc41bd.js');
13
+ require('./_commonjsHelpers-baf43783.js');
14
+
15
+ const solutionItemAccordionCss = ":host{display:block}.padding-start-1{padding-inline-start:1rem}";
16
+ const SolutionItemAccordionStyle0 = solutionItemAccordionCss;
17
+
18
+ const SolutionItemAccordion = class {
19
+ constructor(hostRef) {
20
+ index.registerInstance(this, hostRef);
21
+ this.templateInfos = [];
22
+ this._sortedTemplateInfos = [];
23
+ this._translations = undefined;
24
+ }
25
+ get el() { return index.getElement(this); }
26
+ //--------------------------------------------------------------------------
27
+ //
28
+ // Properties (protected)
29
+ //
30
+ //--------------------------------------------------------------------------
31
+ /**
32
+ * string[]: The order we should sort templates based on
33
+ */
34
+ _sortOrder = [
35
+ "Hub Site Application",
36
+ "Hub Page",
37
+ "Web Experience",
38
+ "Instant App",
39
+ "Web Mapping Application",
40
+ "Dashboard",
41
+ "StoryMap",
42
+ "Form",
43
+ "QuickCapture Project",
44
+ "Workflow",
45
+ "Big Data Analytic",
46
+ "Real Time Analytic",
47
+ "Feed",
48
+ "Tool",
49
+ "Notebook",
50
+ "Data Pipeline",
51
+ "Project Package",
52
+ "Desktop Application Template",
53
+ "TypeNotFound",
54
+ "Web Map",
55
+ "Web Scene",
56
+ "Feature Layer (hosted, view)",
57
+ "Feature Layer (hosted)",
58
+ "Tile Layer",
59
+ "CSV",
60
+ "Microsoft Excel",
61
+ "Microsoft Word",
62
+ "Report Template",
63
+ "Rule Package",
64
+ "Group"
65
+ ];
66
+ /**
67
+ * string[]: Array of template types.
68
+ * This array is used during render to ensure only one Accordion item is added for each type.
69
+ */
70
+ _types = [];
71
+ //--------------------------------------------------------------------------
72
+ //
73
+ // Watch handlers
74
+ //
75
+ //--------------------------------------------------------------------------
76
+ async templateInfosWatchHandler() {
77
+ this._types = [];
78
+ this._sortedTemplateInfos = this._sortTemplates();
79
+ }
80
+ //--------------------------------------------------------------------------
81
+ //
82
+ // Methods (public)
83
+ //
84
+ //--------------------------------------------------------------------------
85
+ //--------------------------------------------------------------------------
86
+ //
87
+ // Events (public)
88
+ //
89
+ //--------------------------------------------------------------------------
90
+ //--------------------------------------------------------------------------
91
+ //
92
+ // Functions (lifecycle)
93
+ //
94
+ //--------------------------------------------------------------------------
95
+ /**
96
+ * StencilJS: Called once just after the component is first connected to the DOM.
97
+ */
98
+ async componentWillLoad() {
99
+ await this._getTranslations();
100
+ }
101
+ /**
102
+ * StencilJS: Called before each render
103
+ */
104
+ async componentWillRender() {
105
+ if (this._sortedTemplateInfos.length === 0 && this.templateInfos?.length > 0) {
106
+ this._sortedTemplateInfos = this._sortTemplates();
107
+ }
108
+ }
109
+ /**
110
+ * Renders the component.
111
+ */
112
+ render() {
113
+ return (index.h(index.Host, { key: 'c9fea75fb3cd0558366bb086eccb28c4e2b7b07d' }, this._getAccordion()));
114
+ }
115
+ //--------------------------------------------------------------------------
116
+ //
117
+ // Functions (protected)
118
+ //
119
+ //--------------------------------------------------------------------------
120
+ /**
121
+ * Get the Accordion component
122
+ *
123
+ * @returns the Accordion component
124
+ *
125
+ * @protected
126
+ */
127
+ _getAccordion() {
128
+ return (index.h("calcite-accordion", null, this._sortedTemplateInfos.reduce((prev, cur) => {
129
+ if (this._types.indexOf(cur.type) < 0) {
130
+ this._types.push(cur.type);
131
+ prev.push(this._getAccordionItem(cur));
132
+ }
133
+ return prev;
134
+ }, [])));
135
+ }
136
+ /**
137
+ * Get the Accordion Item component with the appropriate icon and template type
138
+ * Only one accordion item per type.
139
+ *
140
+ * @returns the Accordion Item component
141
+ *
142
+ * @protected
143
+ */
144
+ _getAccordionItem(templateInfo) {
145
+ const templateInfos = this._sortedTemplateInfos.filter(t => t.type === templateInfo.type);
146
+ return (index.h("calcite-accordion-item", { description: `${templateInfo.type} (${templateInfos.length})` }, index.h("solution-item-icon", { class: "padding-start-1", slot: "actions-start", type: templateInfo.type, typeKeywords: templateInfo.typeKeywords }), this._getList(templateInfos)));
147
+ }
148
+ /**
149
+ * Get the list of template infos for the current type
150
+ *
151
+ * @param templateInfos filtered list of templateInfos for the current type
152
+ *
153
+ * @returns the List component
154
+ *
155
+ * @protected
156
+ */
157
+ _getList(templateInfos) {
158
+ return (index.h("calcite-list", { class: "padding-start-1" }, templateInfos.map(t => this._getListItem(t))));
159
+ }
160
+ /**
161
+ * Get list item for the current type
162
+ *
163
+ * @param templateInfo the current templateInfo to handle
164
+ *
165
+ * @returns the List item component
166
+ *
167
+ * @protected
168
+ */
169
+ _getListItem(templateInfo) {
170
+ return (index.h("calcite-list-item", { description: templateInfo.description, label: templateInfo.title, value: templateInfo.id }));
171
+ }
172
+ /**
173
+ * Sort the templates based on the defined order in _sortOrder
174
+ *
175
+ * @returns the sorted templates
176
+ *
177
+ * @protected
178
+ */
179
+ _sortTemplates() {
180
+ return this.templateInfos.sort((a, b) => {
181
+ const aType = this._updateType(a);
182
+ const bType = this._updateType(b);
183
+ const indexA = this._sortOrder.indexOf(aType);
184
+ const indexB = this._sortOrder.indexOf(bType);
185
+ return indexA - indexB;
186
+ });
187
+ }
188
+ /**
189
+ * Some template types are displayed with a value that is different than the stored type value.
190
+ * This function will catch and update the type value to match how we would like it sorted and displayed.
191
+ *
192
+ * @returns the sorted templates
193
+ *
194
+ * @protected
195
+ */
196
+ _updateType(templateInfo) {
197
+ let updatedType = templateInfo.type;
198
+ if (templateInfo.type === "Feature Service") {
199
+ updatedType = templateInfo.typeKeywords.indexOf("View Service") > -1 ?
200
+ "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
201
+ }
202
+ if (templateInfo.type === "Web Mapping Application") {
203
+ updatedType = templateInfo.typeKeywords.indexOf("configurableApp") > -1 ?
204
+ "Instant App" : updatedType;
205
+ }
206
+ templateInfo.type = templateInfo.type === "Geoprocessing Service" ? "Tool" :
207
+ templateInfo.type === "Vector Tile Service" ? "Tile Layer" : updatedType;
208
+ if (this._sortOrder.indexOf(updatedType) < 0) {
209
+ // If we encounter an item type that is not in the list
210
+ // put it between the "Desktop Application Template" and "Web Map" section
211
+ // Do not set this as the templates type value as we want its actual type to be displayed
212
+ // this is just used for sorting
213
+ updatedType = "TypeNotFound";
214
+ }
215
+ return updatedType;
216
+ }
217
+ /**
218
+ * Fetches the component's translations
219
+ *
220
+ * @returns Promise when complete
221
+ * @protected
222
+ */
223
+ async _getTranslations() {
224
+ const messages = await locale.getLocaleComponentStrings(this.el);
225
+ this._translations = messages[0];
226
+ }
227
+ static get watchers() { return {
228
+ "templateInfos": ["templateInfosWatchHandler"]
229
+ }; }
230
+ };
231
+ SolutionItemAccordion.style = SolutionItemAccordionStyle0;
232
+
233
+ exports.solution_item_accordion = SolutionItemAccordion;
@@ -0,0 +1,328 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-5a0af791.js');
11
+
12
+ const solutionItemIconCss = ".item-type-icon{pointer-events:none;display:block;height:1rem;margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}";
13
+ const SolutionItemIconStyle0 = solutionItemIconCss;
14
+
15
+ const SolutionItemIcon = class {
16
+ constructor(hostRef) {
17
+ index.registerInstance(this, hostRef);
18
+ this.isPortal = false;
19
+ this.type = "";
20
+ this.typeKeywords = [];
21
+ }
22
+ get el() { return index.getElement(this); }
23
+ //--------------------------------------------------------------------------
24
+ //
25
+ // Lifecycle
26
+ //
27
+ //--------------------------------------------------------------------------
28
+ /**
29
+ * Renders the component.
30
+ */
31
+ render() {
32
+ return index.h("div", { key: '79a661148dd8e3bd73229b642b8253c525e3d747', title: this.type }, index.h("img", { key: 'e0b21dbd11b8edc4abfdb9af39b40c774b830753', class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
33
+ }
34
+ //--------------------------------------------------------------------------
35
+ //
36
+ // Properties (protected)
37
+ //
38
+ //--------------------------------------------------------------------------
39
+ //--------------------------------------------------------------------------
40
+ //
41
+ // Event Listeners
42
+ //
43
+ //--------------------------------------------------------------------------
44
+ //--------------------------------------------------------------------------
45
+ //
46
+ // Events
47
+ //
48
+ //--------------------------------------------------------------------------
49
+ //--------------------------------------------------------------------------
50
+ //
51
+ // Public Methods (async)
52
+ //
53
+ //--------------------------------------------------------------------------
54
+ //--------------------------------------------------------------------------
55
+ //
56
+ // Private Methods
57
+ //
58
+ //--------------------------------------------------------------------------
59
+ /**
60
+ * This function was copied and slightly modified from the arcgis-portal-app.
61
+ *
62
+ * This will construct the path to the icon based on type and typeKeyword info.
63
+ *
64
+ * @param type The item type
65
+ * @param typeKeywords The item typeKeywords
66
+ */
67
+ _getIconUrl(type, typeKeywords) {
68
+ const itemType = (type && type.toLowerCase()) || "", imgDir = "./item-icons/", size = "16"; //for now we only support 16x16 pixel images
69
+ let isHosted = false, isRouteLayer = false, isMarkupLayer = false, isTable = false, isSpatiotemporal = false, isRelational = false, imgName = "";
70
+ typeKeywords = typeKeywords || [];
71
+ if (itemType.indexOf("service") > 0 || itemType === "feature collection" || itemType === "kml" || itemType === "wms" || itemType === "wmts" || itemType === "wfs") {
72
+ isHosted = typeKeywords.indexOf("Hosted Service") > -1;
73
+ if (itemType === "feature service" || itemType === "feature collection" || itemType === "kml" || itemType === "wfs") {
74
+ isTable = typeKeywords.indexOf("Table") > -1;
75
+ isRouteLayer = typeKeywords.indexOf("Route Layer") > -1;
76
+ isMarkupLayer = typeKeywords.indexOf("Markup") > -1;
77
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
78
+ imgName = isSpatiotemporal && isTable ? "spatiotemporaltable" : (isTable ? "table" : (isRouteLayer ? "routelayer" : (isMarkupLayer ? "markup" : (isSpatiotemporal ? "spatiotemporal" : (isHosted ? "featureshosted" : "features")))));
79
+ }
80
+ else if (itemType === "map service" || itemType === "wms" || itemType === "wmts") {
81
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
82
+ isRelational = typeKeywords.indexOf("Relational") !== -1;
83
+ if (isSpatiotemporal || isRelational) {
84
+ imgName = "mapimages";
85
+ }
86
+ else {
87
+ imgName = (isHosted || typeKeywords.indexOf("Tiled") > -1 || itemType === "wmts") ? "maptiles" : "mapimages";
88
+ }
89
+ }
90
+ else if (itemType === "scene service") {
91
+ if (typeKeywords.indexOf("Line") > -1) {
92
+ imgName = "sceneweblayerline";
93
+ }
94
+ else if (typeKeywords.indexOf("3DObject") > -1) {
95
+ imgName = "sceneweblayermultipatch";
96
+ }
97
+ else if (typeKeywords.indexOf("Point") > -1) {
98
+ imgName = "sceneweblayerpoint";
99
+ }
100
+ else if (typeKeywords.indexOf("IntegratedMesh") > -1) {
101
+ imgName = "sceneweblayermesh";
102
+ }
103
+ else if (typeKeywords.indexOf("PointCloud") > -1) {
104
+ imgName = "sceneweblayerpointcloud";
105
+ }
106
+ else if (typeKeywords.indexOf("Polygon") > -1) {
107
+ imgName = "sceneweblayerpolygon";
108
+ }
109
+ else if (typeKeywords.indexOf("Building") > -1) {
110
+ imgName = "sceneweblayerbuilding";
111
+ }
112
+ else {
113
+ imgName = "sceneweblayer";
114
+ }
115
+ }
116
+ else if (itemType === "image service") {
117
+ imgName = typeKeywords.indexOf("Elevation 3D Layer") > -1 ? "elevationlayer" : (typeKeywords.indexOf("Tiled Imagery") > -1 ? "tiledimagerylayer" : "imagery");
118
+ }
119
+ else if (itemType === "stream service") {
120
+ imgName = "streamlayer";
121
+ }
122
+ else if (itemType === "vector tile service") {
123
+ imgName = "vectortile";
124
+ }
125
+ else if (itemType === "datastore catalog service") {
126
+ imgName = "datastorecollection";
127
+ }
128
+ else if (itemType === "geocoding service") {
129
+ imgName = "geocodeservice";
130
+ }
131
+ else if (itemType === "geoprocessing service") {
132
+ imgName = (typeKeywords.indexOf("Web Tool") > -1 && (this.isPortal)) ? "tool" : "layers";
133
+ }
134
+ else {
135
+ imgName = "layers";
136
+ }
137
+ }
138
+ else if (itemType === "web map" || itemType === "cityengine web scene") {
139
+ imgName = "maps";
140
+ }
141
+ else if (itemType === "web scene") {
142
+ imgName = typeKeywords.indexOf("ViewingMode-Local") > -1 ? "webscenelocal" : "websceneglobal";
143
+ }
144
+ else if (itemType === "web mapping application" || itemType === "mobile application" || itemType === "application" ||
145
+ itemType === "operation view" || itemType === "desktop application") {
146
+ imgName = "apps";
147
+ }
148
+ else if (itemType === "map document" || itemType === "map package" || itemType === "published map" || itemType === "scene document" ||
149
+ itemType === "globe document" || itemType === "basemap package" || itemType === "mobile basemap package" || itemType === "mobile map package" ||
150
+ itemType === "project package" || itemType === "project template" || itemType === "pro map" || itemType === "layout" ||
151
+ (itemType === "layer" && typeKeywords.indexOf("ArcGIS Pro") > -1) || (itemType === "explorer map" && typeKeywords.indexOf("Explorer Document"))) {
152
+ imgName = "mapsgray";
153
+ }
154
+ else if (itemType === "service definition" || itemType === "csv" || itemType === "shapefile" || itemType === "cad drawing" || itemType === "geojson" || itemType === "360 vr experience" || itemType === "netcdf" || itemType === "administrative report") {
155
+ imgName = "datafiles";
156
+ }
157
+ else if (itemType === "explorer add in" || itemType === "desktop add in" || itemType === "windows viewer add in" || itemType === "windows viewer configuration") {
158
+ imgName = "appsgray";
159
+ }
160
+ else if (itemType === "arcgis pro add in" || itemType === "arcgis pro configuration") {
161
+ imgName = "addindesktop";
162
+ }
163
+ else if (itemType === "rule package" || itemType === "file geodatabase" || itemType === "sqlite geodatabase" || itemType === "csv collection" || itemType === "kml collection" ||
164
+ itemType === "windows mobile package" || itemType === "map template" || itemType === "desktop application template" || itemType === "gml" ||
165
+ itemType === "arcpad package" || itemType === "code sample" || itemType === "form" || itemType === "document link" ||
166
+ itemType === "operations dashboard add in" || itemType === "rules package" || itemType === "image" || itemType === "workflow manager package" ||
167
+ (itemType === "explorer map" && typeKeywords.indexOf("Explorer Mapping Application") > -1 || typeKeywords.indexOf("Document") > -1)) {
168
+ imgName = "datafilesgray";
169
+ }
170
+ else if (itemType === "network analysis service" || itemType === "geoprocessing service" ||
171
+ itemType === "geodata service" || itemType === "geometry service" || itemType === "geoprocessing package" ||
172
+ itemType === "locator package" || itemType === "geoprocessing sample" || itemType === "workflow manager service") {
173
+ imgName = "toolsgray";
174
+ }
175
+ else if (itemType === "layer" || itemType === "layer package" || itemType === "explorer layer") {
176
+ imgName = "layersgray";
177
+ }
178
+ else if (itemType === "scene package") {
179
+ imgName = "scenepackage";
180
+ }
181
+ else if (itemType === "mobile scene package") {
182
+ imgName = "mobilescenepackage";
183
+ }
184
+ else if (itemType === "tile package" || itemType === "compact tile package") {
185
+ imgName = "tilepackage";
186
+ }
187
+ else if (itemType === "task file") {
188
+ imgName = "taskfile";
189
+ }
190
+ else if (itemType === "report template") {
191
+ imgName = "report-template";
192
+ }
193
+ else if (itemType === "statistical data collection") {
194
+ imgName = "statisticaldatacollection";
195
+ }
196
+ else if (itemType === "insights workbook") {
197
+ imgName = "workbook";
198
+ }
199
+ else if (itemType === "insights model") {
200
+ imgName = "insightsmodel";
201
+ }
202
+ else if (itemType === "insights page") {
203
+ imgName = "insightspage";
204
+ }
205
+ else if (itemType === "insights theme") {
206
+ imgName = "insightstheme";
207
+ }
208
+ else if (itemType === "hub initiative") {
209
+ imgName = "hubinitiative";
210
+ }
211
+ else if (itemType === "hub page") {
212
+ imgName = "hubpage";
213
+ }
214
+ else if (itemType === "hub site application") {
215
+ imgName = "hubsite";
216
+ }
217
+ else if (itemType === "hub event") {
218
+ imgName = "hubevent";
219
+ }
220
+ else if (itemType === "relational database connection") {
221
+ imgName = "relationaldatabaseconnection";
222
+ }
223
+ else if (itemType === "big data file share") {
224
+ imgName = "datastorecollection";
225
+ }
226
+ else if (itemType === "image collection") {
227
+ imgName = "imagecollection";
228
+ }
229
+ else if (itemType === "desktop style") {
230
+ imgName = "desktopstyle";
231
+ }
232
+ else if (itemType === "style") {
233
+ imgName = "style";
234
+ }
235
+ else if (itemType === "dashboard") {
236
+ imgName = "dashboard";
237
+ }
238
+ else if (itemType === "raster function template") {
239
+ imgName = "rasterprocessingtemplate";
240
+ }
241
+ else if (itemType === "vector tile package") {
242
+ imgName = "vectortilepackage";
243
+ }
244
+ else if (itemType === "ortho mapping project") {
245
+ imgName = "orthomappingproject";
246
+ }
247
+ else if (itemType === "ortho mapping template") {
248
+ imgName = "orthomappingtemplate";
249
+ }
250
+ else if (itemType === "solution") {
251
+ imgName = "solutions";
252
+ }
253
+ else if (itemType === "geopackage") {
254
+ imgName = "geopackage";
255
+ }
256
+ else if (itemType === "deep learning package") {
257
+ imgName = "deeplearningpackage";
258
+ }
259
+ else if (itemType === "real time analytic") {
260
+ imgName = "realtimeanalytics";
261
+ }
262
+ else if (itemType === "big data analytic") {
263
+ imgName = "bigdataanalytics";
264
+ }
265
+ else if (itemType === "feed") {
266
+ imgName = "feed";
267
+ }
268
+ else if (itemType === "excalibur imagery project") {
269
+ imgName = "excaliburimageryproject";
270
+ }
271
+ else if (itemType === "notebook") {
272
+ imgName = "notebook";
273
+ }
274
+ else if (itemType === "storymap") {
275
+ imgName = "storymap";
276
+ }
277
+ else if (itemType === "survey123 add in") {
278
+ imgName = "survey123addin";
279
+ }
280
+ else if (itemType === "mission") {
281
+ imgName = "mission";
282
+ }
283
+ else if (itemType === "mission report") {
284
+ imgName = "missionreport";
285
+ }
286
+ else if (itemType === "quickcapture project") {
287
+ imgName = "quickcaptureproject";
288
+ }
289
+ else if (itemType === "pro report") {
290
+ imgName = "proreport";
291
+ }
292
+ else if (itemType === "urban model") {
293
+ imgName = "urbanmodel";
294
+ }
295
+ else if (itemType === "web experience") {
296
+ imgName = "experiencebuilder";
297
+ }
298
+ else if (itemType === "web experience template") {
299
+ imgName = "webexperiencetemplate";
300
+ }
301
+ else if (itemType === "workflow") {
302
+ imgName = "workflow";
303
+ }
304
+ else if (itemType === "kernel gateway connection") {
305
+ imgName = "kernelgatewayconnection";
306
+ }
307
+ else if (itemType === "insights script") {
308
+ imgName = "insightsscript";
309
+ }
310
+ else if (itemType === "hub initiative template") {
311
+ imgName = "hubinitiativetemplate";
312
+ }
313
+ else if (itemType === "storymap theme") {
314
+ imgName = "storymaptheme";
315
+ }
316
+ else if (itemType === "group") {
317
+ imgName = "group";
318
+ }
319
+ else {
320
+ imgName = "maps";
321
+ }
322
+ return imgName ? index.getAssetPath(imgDir + imgName + size + ".png") : null;
323
+ }
324
+ static get assetsDirs() { return ["item-icons"]; }
325
+ };
326
+ SolutionItemIcon.style = SolutionItemIconStyle0;
327
+
328
+ exports.solution_item_icon = SolutionItemIcon;