@esri/solutions-components 0.6.17 → 0.6.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/t9n/map-tools/resources.json +2 -1
  3. package/dist/assets/t9n/map-tools/resources_en.json +2 -1
  4. package/dist/assets/t9n/solution-spatial-ref/resources.json +0 -1
  5. package/dist/assets/t9n/solution-spatial-ref/resources_en.json +0 -1
  6. package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +6 -0
  7. package/dist/assets/t9n/solution-spatial-ref/resources_he.json +6 -0
  8. package/dist/assets/t9n/spatial-ref/resources.json +3 -0
  9. package/dist/assets/t9n/spatial-ref/resources_en.json +3 -0
  10. package/dist/assets/t9n/spatial-ref/resources_fr.json +3 -0
  11. package/dist/assets/t9n/spatial-ref/resources_he.json +3 -0
  12. package/dist/cjs/{basemap-gallery_6.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +124 -3
  13. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-checkbox_3.cjs.entry.js} +123 -319
  14. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +4 -3
  15. package/dist/cjs/card-manager_3.cjs.entry.js +8 -5
  16. package/dist/{collection/components/basemap-gallery/test/basemap-gallery.e2e.js → cjs/common-13719149.js} +17 -9
  17. package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -7
  18. package/dist/cjs/edit-card_2.cjs.entry.js +4 -3
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
  21. package/dist/cjs/solution-contents_3.cjs.entry.js +21 -21256
  22. package/dist/cjs/solution-item-icon.cjs.entry.js +327 -0
  23. package/dist/cjs/{solution-store-c443e657.js → solution-resource-f9e3b289.js} +2 -1698
  24. package/dist/cjs/solution-store-2414dd8a.js +1707 -0
  25. package/dist/cjs/solutions-components.cjs.js +1 -1
  26. package/dist/cjs/spatial-ref.cjs.entry.js +21293 -0
  27. package/dist/collection/collection-manifest.json +2 -0
  28. package/dist/collection/components/card-manager/card-manager.js +1 -1
  29. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +15 -0
  30. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
  31. package/dist/collection/components/edit-card/edit-card.css +0 -12
  32. package/dist/collection/components/floor-filter/floor-filter.css +19 -0
  33. package/dist/collection/components/floor-filter/floor-filter.js +163 -0
  34. package/dist/collection/components/info-card/info-card.js +3 -2
  35. package/dist/collection/components/layer-table/layer-table.css +8 -0
  36. package/dist/collection/components/layer-table/layer-table.js +18 -2
  37. package/dist/collection/components/map-card/map-card.js +19 -1
  38. package/dist/collection/components/map-picker/map-picker.css +0 -4
  39. package/dist/collection/components/map-picker/map-picker.js +1 -1
  40. package/dist/collection/components/map-tools/map-tools.js +54 -1
  41. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +1 -7
  42. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +37 -291
  43. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +24 -12
  44. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +32 -128
  45. package/dist/collection/components/spatial-ref/spatial-ref.css +20 -0
  46. package/dist/collection/components/spatial-ref/spatial-ref.js +445 -0
  47. package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +71 -0
  48. package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +158 -0
  49. package/dist/collection/demos/crowdsource-manager.html +4 -0
  50. package/dist/collection/demos/solution-spatial-ref.html +9 -16
  51. package/dist/collection/demos/spatial-ref.html +53 -0
  52. package/dist/collection/utils/{templates.e2e.js → test/templates.e2e.js} +2 -2
  53. package/dist/collection/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  54. package/dist/components/card-manager2.js +1 -1
  55. package/dist/components/crowdsource-manager.js +86 -73
  56. package/dist/components/edit-card2.js +1 -1
  57. package/dist/components/floor-filter.d.ts +11 -0
  58. package/dist/components/floor-filter.js +11 -0
  59. package/dist/components/floor-filter2.js +115 -0
  60. package/dist/components/info-card2.js +3 -2
  61. package/dist/components/layer-table2.js +5 -3
  62. package/dist/components/map-card2.js +45 -37
  63. package/dist/components/map-picker2.js +2 -2
  64. package/dist/components/map-tools2.js +52 -11
  65. package/dist/components/solution-configuration.js +79 -72
  66. package/dist/components/solution-resource-item2.js +2 -1
  67. package/dist/components/solution-resource.js +1836 -0
  68. package/dist/components/solution-spatial-ref2.js +41 -21277
  69. package/dist/components/solution-store.js +2 -1830
  70. package/dist/components/spatial-ref.d.ts +11 -0
  71. package/dist/components/spatial-ref.js +11 -0
  72. package/dist/components/spatial-ref2.js +21374 -0
  73. package/dist/esm/{basemap-gallery_6.entry.js → basemap-gallery_7.entry.js} +124 -4
  74. package/dist/esm/{calcite-tree_3.entry.js → calcite-checkbox_3.entry.js} +125 -321
  75. package/dist/esm/calcite-shell-panel_14.entry.js +2 -1
  76. package/dist/esm/card-manager_3.entry.js +8 -5
  77. package/dist/{collection/components/layer-table/test/layer-table.e2e.js → esm/common-e4a8e353.js} +15 -9
  78. package/dist/esm/crowdsource-manager.entry.js +12 -7
  79. package/dist/esm/edit-card_2.entry.js +4 -3
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/polyfills/core-js.js +11 -0
  82. package/dist/esm/polyfills/dom.js +79 -0
  83. package/dist/esm/polyfills/es5-html-element.js +1 -0
  84. package/dist/esm/polyfills/index.js +34 -0
  85. package/dist/esm/polyfills/system.js +6 -0
  86. package/dist/esm/solution-configuration.entry.js +2 -1
  87. package/dist/esm/solution-contents_3.entry.js +20 -21255
  88. package/dist/esm/solution-item-icon.entry.js +323 -0
  89. package/dist/esm/{solution-store-b29d50f7.js → solution-resource-be35d35b.js} +1 -1697
  90. package/dist/esm/solution-store-e734626a.js +1704 -0
  91. package/dist/esm/solutions-components.js +1 -1
  92. package/dist/esm/spatial-ref.entry.js +21289 -0
  93. package/dist/solutions-components/demos/crowdsource-manager.html +4 -0
  94. package/dist/solutions-components/demos/solution-spatial-ref.html +9 -16
  95. package/dist/solutions-components/demos/spatial-ref.html +53 -0
  96. package/dist/solutions-components/{p-64d29ba2.entry.js → p-0bc27ba7.entry.js} +2 -2
  97. package/dist/{collection/components/map-card/test/map-card.e2e.js → solutions-components/p-1b228f97.js} +2 -10
  98. package/dist/solutions-components/p-5b8c8942.entry.js +21 -0
  99. package/dist/solutions-components/p-63c6fc29.entry.js +6 -0
  100. package/dist/solutions-components/p-64945b43.entry.js +18 -0
  101. package/dist/solutions-components/p-770bff06.entry.js +6 -0
  102. package/dist/solutions-components/p-7741dbab.entry.js +6 -0
  103. package/dist/solutions-components/p-80465067.entry.js +6 -0
  104. package/dist/solutions-components/p-846df994.entry.js +6 -0
  105. package/dist/solutions-components/p-b3f8d2cb.js +192 -0
  106. package/dist/solutions-components/p-c26d8b36.entry.js +6 -0
  107. package/dist/solutions-components/{p-4d942b0f.entry.js → p-f35147d5.entry.js} +1 -1
  108. package/dist/solutions-components/p-ff0d7712.js +44 -0
  109. package/dist/solutions-components/solutions-components.esm.js +1 -1
  110. package/dist/solutions-components/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
  111. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
  112. package/dist/types/components/floor-filter/floor-filter.d.ts +61 -0
  113. package/dist/types/components/layer-table/layer-table.d.ts +4 -0
  114. package/dist/types/components/map-card/map-card.d.ts +4 -0
  115. package/dist/types/components/map-tools/map-tools.d.ts +24 -0
  116. package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +11 -93
  117. package/dist/types/components/spatial-ref/spatial-ref.d.ts +142 -0
  118. package/dist/types/components.d.ts +123 -16
  119. package/dist/types/preact.d.ts +8 -1
  120. package/package.json +6 -6
  121. package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -136
  122. package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +0 -37
  123. package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
  124. package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
  125. package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
  126. package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
  127. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
  128. package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
  129. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
  130. package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
  131. package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
  132. package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
  133. package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
  134. package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
  135. package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
  136. package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
  137. package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
  138. package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
  139. package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
  140. package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
  141. package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
  142. package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
  143. package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
  144. package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
  145. package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
  146. package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
  147. package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +0 -29
  148. package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +0 -37
  149. package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
  150. package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
  151. package/dist/collection/components/map-legend/test/map-legend.e2e.js +0 -14
  152. package/dist/collection/components/map-legend/test/map-legend.spec.js +0 -22
  153. package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
  154. package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
  155. package/dist/collection/components/map-search/test/map-search.e2e.js +0 -29
  156. package/dist/collection/components/map-search/test/map-search.spec.js +0 -37
  157. package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
  158. package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
  159. package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
  160. package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
  161. package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
  162. package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
  163. package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
  164. package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
  165. package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
  166. package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
  167. package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
  168. package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
  169. package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
  170. package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
  171. package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
  172. package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
  173. package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
  174. package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
  175. package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
  176. package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
  177. package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
  178. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
  179. package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
  180. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
  181. package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
  182. package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
  183. package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
  184. package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
  185. package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
  186. package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
  187. package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
  188. package/dist/esm/calcite-checkbox.entry.js +0 -132
  189. package/dist/solutions-components/p-17d176b5.js +0 -230
  190. package/dist/solutions-components/p-1d9a5198.entry.js +0 -37
  191. package/dist/solutions-components/p-3707d9bd.entry.js +0 -6
  192. package/dist/solutions-components/p-41bbccbc.entry.js +0 -6
  193. package/dist/solutions-components/p-4f2fce86.entry.js +0 -6
  194. package/dist/solutions-components/p-5ffaaaf4.entry.js +0 -6
  195. package/dist/solutions-components/p-736e76fb.entry.js +0 -17
  196. package/dist/solutions-components/p-dda517b9.entry.js +0 -6
  197. /package/dist/collection/components/{solution-spatial-ref → spatial-ref}/spatialreferences.js +0 -0
  198. /package/dist/types/components/{solution-spatial-ref → spatial-ref}/spatialreferences.d.ts +0 -0
@@ -0,0 +1,323 @@
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
+ import { r as registerInstance, h, a as getAssetPath, g as getElement } from './index-c7de2486.js';
7
+
8
+ const solutionItemIconCss = ".item-type-icon{pointer-events:none;display:block;height:1rem;box-sizing:border-box;margin-left:0.75rem;margin-right:0.75rem;min-width:0;flex-grow:0;flex-shrink:1}.item-type-icon-group-1-up>.block{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.item-type-icon-group-2-up>.block{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.item-type-icon-group-3-up>.block{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.item-type-icon-group-4-up>.block{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.item-type-icon-group-5-up>.block{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.item-type-icon-group-6-up>.block{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.item-type-icon-group-7-up>.block{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.item-type-icon-group-8-up>.block{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.tablet-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.tablet-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.tablet-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.tablet-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.tablet-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.tablet-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.tablet-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.tablet-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.phone-block-group-1-up>.item-type-icon{flex-basis:calc(100% - 1.5rem);width:calc(100% - 1.5rem)}.phone-block-group-2-up>.item-type-icon{flex-basis:calc(50% - 1.5rem);width:calc(50% - 1.5rem)}.phone-block-group-3-up>.item-type-icon{flex-basis:calc(33.33333% - 1.5rem);width:calc(33.33333% - 1.5rem)}.phone-block-group-4-up>.item-type-icon{flex-basis:calc(25% - 1.5rem);width:calc(25% - 1.5rem)}.phone-block-group-5-up>.item-type-icon{flex-basis:calc(20% - 1.5rem);width:calc(20% - 1.5rem)}.phone-block-group-6-up>.item-type-icon{flex-basis:calc(16.66666% - 1.5rem);width:calc(16.66666% - 1.5rem)}.phone-block-group-7-up>.item-type-icon{flex-basis:calc(14.2857% - 1.5rem);width:calc(14.2857% - 1.5rem)}.phone-block-group-8-up>.item-type-icon{flex-basis:calc(12.5% - 1.5rem);width:calc(12.5% - 1.5rem)}.code-face .item-type-icon{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:normal}.code-face .item-type-icon b,.code-face .item-type-icon strong{font-weight:400}.code-italic .item-type-icon{letter-spacing:0em;font-family:\"Consolas\", \"Andale Mono\", \"Lucida Console\", \"Monaco\", monospace;font-weight:400;font-style:italic}.code-italic .item-type-icon b,.code-italic .item-type-icon strong{font-weight:400}.item-type-icon{margin-top:0.15em !important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{margin-inline-end:0.375rem}";
9
+
10
+ const SolutionItemIcon = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.isPortal = false;
14
+ this.type = "";
15
+ this.typeKeywords = [];
16
+ }
17
+ //--------------------------------------------------------------------------
18
+ //
19
+ // Lifecycle
20
+ //
21
+ //--------------------------------------------------------------------------
22
+ /**
23
+ * Renders the component.
24
+ */
25
+ render() {
26
+ return h("div", { title: this.type }, h("img", { class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
27
+ }
28
+ //--------------------------------------------------------------------------
29
+ //
30
+ // Properties (protected)
31
+ //
32
+ //--------------------------------------------------------------------------
33
+ //--------------------------------------------------------------------------
34
+ //
35
+ // Event Listeners
36
+ //
37
+ //--------------------------------------------------------------------------
38
+ //--------------------------------------------------------------------------
39
+ //
40
+ // Events
41
+ //
42
+ //--------------------------------------------------------------------------
43
+ //--------------------------------------------------------------------------
44
+ //
45
+ // Public Methods (async)
46
+ //
47
+ //--------------------------------------------------------------------------
48
+ //--------------------------------------------------------------------------
49
+ //
50
+ // Private Methods
51
+ //
52
+ //--------------------------------------------------------------------------
53
+ /**
54
+ * This function was copied and slightly modified from the arcgis-portal-app.
55
+ *
56
+ * This will construct the path to the icon based on type and typeKeyword info.
57
+ *
58
+ * @param type The item type
59
+ * @param typeKeywords The item typeKeywords
60
+ */
61
+ _getIconUrl(type, typeKeywords) {
62
+ const itemType = (type && type.toLowerCase()) || "", imgDir = "./item-icons/", size = "16"; //for now we only support 16x16 pixel images
63
+ let isHosted = false, isRouteLayer = false, isMarkupLayer = false, isTable = false, isSpatiotemporal = false, isRelational = false, imgName = "";
64
+ typeKeywords = typeKeywords || [];
65
+ if (itemType.indexOf("service") > 0 || itemType === "feature collection" || itemType === "kml" || itemType === "wms" || itemType === "wmts" || itemType === "wfs") {
66
+ isHosted = typeKeywords.indexOf("Hosted Service") > -1;
67
+ if (itemType === "feature service" || itemType === "feature collection" || itemType === "kml" || itemType === "wfs") {
68
+ isTable = typeKeywords.indexOf("Table") > -1;
69
+ isRouteLayer = typeKeywords.indexOf("Route Layer") > -1;
70
+ isMarkupLayer = typeKeywords.indexOf("Markup") > -1;
71
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
72
+ imgName = isSpatiotemporal && isTable ? "spatiotemporaltable" : (isTable ? "table" : (isRouteLayer ? "routelayer" : (isMarkupLayer ? "markup" : (isSpatiotemporal ? "spatiotemporal" : (isHosted ? "featureshosted" : "features")))));
73
+ }
74
+ else if (itemType === "map service" || itemType === "wms" || itemType === "wmts") {
75
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
76
+ isRelational = typeKeywords.indexOf("Relational") !== -1;
77
+ if (isSpatiotemporal || isRelational) {
78
+ imgName = "mapimages";
79
+ }
80
+ else {
81
+ imgName = (isHosted || typeKeywords.indexOf("Tiled") > -1 || itemType === "wmts") ? "maptiles" : "mapimages";
82
+ }
83
+ }
84
+ else if (itemType === "scene service") {
85
+ if (typeKeywords.indexOf("Line") > -1) {
86
+ imgName = "sceneweblayerline";
87
+ }
88
+ else if (typeKeywords.indexOf("3DObject") > -1) {
89
+ imgName = "sceneweblayermultipatch";
90
+ }
91
+ else if (typeKeywords.indexOf("Point") > -1) {
92
+ imgName = "sceneweblayerpoint";
93
+ }
94
+ else if (typeKeywords.indexOf("IntegratedMesh") > -1) {
95
+ imgName = "sceneweblayermesh";
96
+ }
97
+ else if (typeKeywords.indexOf("PointCloud") > -1) {
98
+ imgName = "sceneweblayerpointcloud";
99
+ }
100
+ else if (typeKeywords.indexOf("Polygon") > -1) {
101
+ imgName = "sceneweblayerpolygon";
102
+ }
103
+ else if (typeKeywords.indexOf("Building") > -1) {
104
+ imgName = "sceneweblayerbuilding";
105
+ }
106
+ else {
107
+ imgName = "sceneweblayer";
108
+ }
109
+ }
110
+ else if (itemType === "image service") {
111
+ imgName = typeKeywords.indexOf("Elevation 3D Layer") > -1 ? "elevationlayer" : (typeKeywords.indexOf("Tiled Imagery") > -1 ? "tiledimagerylayer" : "imagery");
112
+ }
113
+ else if (itemType === "stream service") {
114
+ imgName = "streamlayer";
115
+ }
116
+ else if (itemType === "vector tile service") {
117
+ imgName = "vectortile";
118
+ }
119
+ else if (itemType === "datastore catalog service") {
120
+ imgName = "datastorecollection";
121
+ }
122
+ else if (itemType === "geocoding service") {
123
+ imgName = "geocodeservice";
124
+ }
125
+ else if (itemType === "geoprocessing service") {
126
+ imgName = (typeKeywords.indexOf("Web Tool") > -1 && (this.isPortal)) ? "tool" : "layers";
127
+ }
128
+ else {
129
+ imgName = "layers";
130
+ }
131
+ }
132
+ else if (itemType === "web map" || itemType === "cityengine web scene") {
133
+ imgName = "maps";
134
+ }
135
+ else if (itemType === "web scene") {
136
+ imgName = typeKeywords.indexOf("ViewingMode-Local") > -1 ? "webscenelocal" : "websceneglobal";
137
+ }
138
+ else if (itemType === "web mapping application" || itemType === "mobile application" || itemType === "application" ||
139
+ itemType === "operation view" || itemType === "desktop application") {
140
+ imgName = "apps";
141
+ }
142
+ else if (itemType === "map document" || itemType === "map package" || itemType === "published map" || itemType === "scene document" ||
143
+ itemType === "globe document" || itemType === "basemap package" || itemType === "mobile basemap package" || itemType === "mobile map package" ||
144
+ itemType === "project package" || itemType === "project template" || itemType === "pro map" || itemType === "layout" ||
145
+ (itemType === "layer" && typeKeywords.indexOf("ArcGIS Pro") > -1) || (itemType === "explorer map" && typeKeywords.indexOf("Explorer Document"))) {
146
+ imgName = "mapsgray";
147
+ }
148
+ else if (itemType === "service definition" || itemType === "csv" || itemType === "shapefile" || itemType === "cad drawing" || itemType === "geojson" || itemType === "360 vr experience" || itemType === "netcdf" || itemType === "administrative report") {
149
+ imgName = "datafiles";
150
+ }
151
+ else if (itemType === "explorer add in" || itemType === "desktop add in" || itemType === "windows viewer add in" || itemType === "windows viewer configuration") {
152
+ imgName = "appsgray";
153
+ }
154
+ else if (itemType === "arcgis pro add in" || itemType === "arcgis pro configuration") {
155
+ imgName = "addindesktop";
156
+ }
157
+ else if (itemType === "rule package" || itemType === "file geodatabase" || itemType === "sqlite geodatabase" || itemType === "csv collection" || itemType === "kml collection" ||
158
+ itemType === "windows mobile package" || itemType === "map template" || itemType === "desktop application template" || itemType === "gml" ||
159
+ itemType === "arcpad package" || itemType === "code sample" || itemType === "form" || itemType === "document link" ||
160
+ itemType === "operations dashboard add in" || itemType === "rules package" || itemType === "image" || itemType === "workflow manager package" ||
161
+ (itemType === "explorer map" && typeKeywords.indexOf("Explorer Mapping Application") > -1 || typeKeywords.indexOf("Document") > -1)) {
162
+ imgName = "datafilesgray";
163
+ }
164
+ else if (itemType === "network analysis service" || itemType === "geoprocessing service" ||
165
+ itemType === "geodata service" || itemType === "geometry service" || itemType === "geoprocessing package" ||
166
+ itemType === "locator package" || itemType === "geoprocessing sample" || itemType === "workflow manager service") {
167
+ imgName = "toolsgray";
168
+ }
169
+ else if (itemType === "layer" || itemType === "layer package" || itemType === "explorer layer") {
170
+ imgName = "layersgray";
171
+ }
172
+ else if (itemType === "scene package") {
173
+ imgName = "scenepackage";
174
+ }
175
+ else if (itemType === "mobile scene package") {
176
+ imgName = "mobilescenepackage";
177
+ }
178
+ else if (itemType === "tile package" || itemType === "compact tile package") {
179
+ imgName = "tilepackage";
180
+ }
181
+ else if (itemType === "task file") {
182
+ imgName = "taskfile";
183
+ }
184
+ else if (itemType === "report template") {
185
+ imgName = "report-template";
186
+ }
187
+ else if (itemType === "statistical data collection") {
188
+ imgName = "statisticaldatacollection";
189
+ }
190
+ else if (itemType === "insights workbook") {
191
+ imgName = "workbook";
192
+ }
193
+ else if (itemType === "insights model") {
194
+ imgName = "insightsmodel";
195
+ }
196
+ else if (itemType === "insights page") {
197
+ imgName = "insightspage";
198
+ }
199
+ else if (itemType === "insights theme") {
200
+ imgName = "insightstheme";
201
+ }
202
+ else if (itemType === "hub initiative") {
203
+ imgName = "hubinitiative";
204
+ }
205
+ else if (itemType === "hub page") {
206
+ imgName = "hubpage";
207
+ }
208
+ else if (itemType === "hub site application") {
209
+ imgName = "hubsite";
210
+ }
211
+ else if (itemType === "hub event") {
212
+ imgName = "hubevent";
213
+ }
214
+ else if (itemType === "relational database connection") {
215
+ imgName = "relationaldatabaseconnection";
216
+ }
217
+ else if (itemType === "big data file share") {
218
+ imgName = "datastorecollection";
219
+ }
220
+ else if (itemType === "image collection") {
221
+ imgName = "imagecollection";
222
+ }
223
+ else if (itemType === "desktop style") {
224
+ imgName = "desktopstyle";
225
+ }
226
+ else if (itemType === "style") {
227
+ imgName = "style";
228
+ }
229
+ else if (itemType === "dashboard") {
230
+ imgName = "dashboard";
231
+ }
232
+ else if (itemType === "raster function template") {
233
+ imgName = "rasterprocessingtemplate";
234
+ }
235
+ else if (itemType === "vector tile package") {
236
+ imgName = "vectortilepackage";
237
+ }
238
+ else if (itemType === "ortho mapping project") {
239
+ imgName = "orthomappingproject";
240
+ }
241
+ else if (itemType === "ortho mapping template") {
242
+ imgName = "orthomappingtemplate";
243
+ }
244
+ else if (itemType === "solution") {
245
+ imgName = "solutions";
246
+ }
247
+ else if (itemType === "geopackage") {
248
+ imgName = "geopackage";
249
+ }
250
+ else if (itemType === "deep learning package") {
251
+ imgName = "deeplearningpackage";
252
+ }
253
+ else if (itemType === "real time analytic") {
254
+ imgName = "realtimeanalytics";
255
+ }
256
+ else if (itemType === "big data analytic") {
257
+ imgName = "bigdataanalytics";
258
+ }
259
+ else if (itemType === "feed") {
260
+ imgName = "feed";
261
+ }
262
+ else if (itemType === "excalibur imagery project") {
263
+ imgName = "excaliburimageryproject";
264
+ }
265
+ else if (itemType === "notebook") {
266
+ imgName = "notebook";
267
+ }
268
+ else if (itemType === "storymap") {
269
+ imgName = "storymap";
270
+ }
271
+ else if (itemType === "survey123 add in") {
272
+ imgName = "survey123addin";
273
+ }
274
+ else if (itemType === "mission") {
275
+ imgName = "mission";
276
+ }
277
+ else if (itemType === "mission report") {
278
+ imgName = "missionreport";
279
+ }
280
+ else if (itemType === "quickcapture project") {
281
+ imgName = "quickcaptureproject";
282
+ }
283
+ else if (itemType === "pro report") {
284
+ imgName = "proreport";
285
+ }
286
+ else if (itemType === "urban model") {
287
+ imgName = "urbanmodel";
288
+ }
289
+ else if (itemType === "web experience") {
290
+ imgName = "experiencebuilder";
291
+ }
292
+ else if (itemType === "web experience template") {
293
+ imgName = "webexperiencetemplate";
294
+ }
295
+ else if (itemType === "workflow") {
296
+ imgName = "workflow";
297
+ }
298
+ else if (itemType === "kernel gateway connection") {
299
+ imgName = "kernelgatewayconnection";
300
+ }
301
+ else if (itemType === "insights script") {
302
+ imgName = "insightsscript";
303
+ }
304
+ else if (itemType === "hub initiative template") {
305
+ imgName = "hubinitiativetemplate";
306
+ }
307
+ else if (itemType === "storymap theme") {
308
+ imgName = "storymaptheme";
309
+ }
310
+ else if (itemType === "group") {
311
+ imgName = "group";
312
+ }
313
+ else {
314
+ imgName = "maps";
315
+ }
316
+ return imgName ? getAssetPath(imgDir + imgName + size + ".png") : null;
317
+ }
318
+ static get assetsDirs() { return ["item-icons"]; }
319
+ get el() { return getElement(this); }
320
+ };
321
+ SolutionItemIcon.style = solutionItemIconCss;
322
+
323
+ export { SolutionItemIcon as solution_item_icon };