@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,327 @@
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-ee37804b.js');
11
+
12
+ 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}";
13
+
14
+ const SolutionItemIcon = class {
15
+ constructor(hostRef) {
16
+ index.registerInstance(this, hostRef);
17
+ this.isPortal = false;
18
+ this.type = "";
19
+ this.typeKeywords = [];
20
+ }
21
+ //--------------------------------------------------------------------------
22
+ //
23
+ // Lifecycle
24
+ //
25
+ //--------------------------------------------------------------------------
26
+ /**
27
+ * Renders the component.
28
+ */
29
+ render() {
30
+ return index.h("div", { title: this.type }, index.h("img", { class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
31
+ }
32
+ //--------------------------------------------------------------------------
33
+ //
34
+ // Properties (protected)
35
+ //
36
+ //--------------------------------------------------------------------------
37
+ //--------------------------------------------------------------------------
38
+ //
39
+ // Event Listeners
40
+ //
41
+ //--------------------------------------------------------------------------
42
+ //--------------------------------------------------------------------------
43
+ //
44
+ // Events
45
+ //
46
+ //--------------------------------------------------------------------------
47
+ //--------------------------------------------------------------------------
48
+ //
49
+ // Public Methods (async)
50
+ //
51
+ //--------------------------------------------------------------------------
52
+ //--------------------------------------------------------------------------
53
+ //
54
+ // Private Methods
55
+ //
56
+ //--------------------------------------------------------------------------
57
+ /**
58
+ * This function was copied and slightly modified from the arcgis-portal-app.
59
+ *
60
+ * This will construct the path to the icon based on type and typeKeyword info.
61
+ *
62
+ * @param type The item type
63
+ * @param typeKeywords The item typeKeywords
64
+ */
65
+ _getIconUrl(type, typeKeywords) {
66
+ const itemType = (type && type.toLowerCase()) || "", imgDir = "./item-icons/", size = "16"; //for now we only support 16x16 pixel images
67
+ let isHosted = false, isRouteLayer = false, isMarkupLayer = false, isTable = false, isSpatiotemporal = false, isRelational = false, imgName = "";
68
+ typeKeywords = typeKeywords || [];
69
+ if (itemType.indexOf("service") > 0 || itemType === "feature collection" || itemType === "kml" || itemType === "wms" || itemType === "wmts" || itemType === "wfs") {
70
+ isHosted = typeKeywords.indexOf("Hosted Service") > -1;
71
+ if (itemType === "feature service" || itemType === "feature collection" || itemType === "kml" || itemType === "wfs") {
72
+ isTable = typeKeywords.indexOf("Table") > -1;
73
+ isRouteLayer = typeKeywords.indexOf("Route Layer") > -1;
74
+ isMarkupLayer = typeKeywords.indexOf("Markup") > -1;
75
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
76
+ imgName = isSpatiotemporal && isTable ? "spatiotemporaltable" : (isTable ? "table" : (isRouteLayer ? "routelayer" : (isMarkupLayer ? "markup" : (isSpatiotemporal ? "spatiotemporal" : (isHosted ? "featureshosted" : "features")))));
77
+ }
78
+ else if (itemType === "map service" || itemType === "wms" || itemType === "wmts") {
79
+ isSpatiotemporal = typeKeywords.indexOf("Spatiotemporal") !== -1;
80
+ isRelational = typeKeywords.indexOf("Relational") !== -1;
81
+ if (isSpatiotemporal || isRelational) {
82
+ imgName = "mapimages";
83
+ }
84
+ else {
85
+ imgName = (isHosted || typeKeywords.indexOf("Tiled") > -1 || itemType === "wmts") ? "maptiles" : "mapimages";
86
+ }
87
+ }
88
+ else if (itemType === "scene service") {
89
+ if (typeKeywords.indexOf("Line") > -1) {
90
+ imgName = "sceneweblayerline";
91
+ }
92
+ else if (typeKeywords.indexOf("3DObject") > -1) {
93
+ imgName = "sceneweblayermultipatch";
94
+ }
95
+ else if (typeKeywords.indexOf("Point") > -1) {
96
+ imgName = "sceneweblayerpoint";
97
+ }
98
+ else if (typeKeywords.indexOf("IntegratedMesh") > -1) {
99
+ imgName = "sceneweblayermesh";
100
+ }
101
+ else if (typeKeywords.indexOf("PointCloud") > -1) {
102
+ imgName = "sceneweblayerpointcloud";
103
+ }
104
+ else if (typeKeywords.indexOf("Polygon") > -1) {
105
+ imgName = "sceneweblayerpolygon";
106
+ }
107
+ else if (typeKeywords.indexOf("Building") > -1) {
108
+ imgName = "sceneweblayerbuilding";
109
+ }
110
+ else {
111
+ imgName = "sceneweblayer";
112
+ }
113
+ }
114
+ else if (itemType === "image service") {
115
+ imgName = typeKeywords.indexOf("Elevation 3D Layer") > -1 ? "elevationlayer" : (typeKeywords.indexOf("Tiled Imagery") > -1 ? "tiledimagerylayer" : "imagery");
116
+ }
117
+ else if (itemType === "stream service") {
118
+ imgName = "streamlayer";
119
+ }
120
+ else if (itemType === "vector tile service") {
121
+ imgName = "vectortile";
122
+ }
123
+ else if (itemType === "datastore catalog service") {
124
+ imgName = "datastorecollection";
125
+ }
126
+ else if (itemType === "geocoding service") {
127
+ imgName = "geocodeservice";
128
+ }
129
+ else if (itemType === "geoprocessing service") {
130
+ imgName = (typeKeywords.indexOf("Web Tool") > -1 && (this.isPortal)) ? "tool" : "layers";
131
+ }
132
+ else {
133
+ imgName = "layers";
134
+ }
135
+ }
136
+ else if (itemType === "web map" || itemType === "cityengine web scene") {
137
+ imgName = "maps";
138
+ }
139
+ else if (itemType === "web scene") {
140
+ imgName = typeKeywords.indexOf("ViewingMode-Local") > -1 ? "webscenelocal" : "websceneglobal";
141
+ }
142
+ else if (itemType === "web mapping application" || itemType === "mobile application" || itemType === "application" ||
143
+ itemType === "operation view" || itemType === "desktop application") {
144
+ imgName = "apps";
145
+ }
146
+ else if (itemType === "map document" || itemType === "map package" || itemType === "published map" || itemType === "scene document" ||
147
+ itemType === "globe document" || itemType === "basemap package" || itemType === "mobile basemap package" || itemType === "mobile map package" ||
148
+ itemType === "project package" || itemType === "project template" || itemType === "pro map" || itemType === "layout" ||
149
+ (itemType === "layer" && typeKeywords.indexOf("ArcGIS Pro") > -1) || (itemType === "explorer map" && typeKeywords.indexOf("Explorer Document"))) {
150
+ imgName = "mapsgray";
151
+ }
152
+ else if (itemType === "service definition" || itemType === "csv" || itemType === "shapefile" || itemType === "cad drawing" || itemType === "geojson" || itemType === "360 vr experience" || itemType === "netcdf" || itemType === "administrative report") {
153
+ imgName = "datafiles";
154
+ }
155
+ else if (itemType === "explorer add in" || itemType === "desktop add in" || itemType === "windows viewer add in" || itemType === "windows viewer configuration") {
156
+ imgName = "appsgray";
157
+ }
158
+ else if (itemType === "arcgis pro add in" || itemType === "arcgis pro configuration") {
159
+ imgName = "addindesktop";
160
+ }
161
+ else if (itemType === "rule package" || itemType === "file geodatabase" || itemType === "sqlite geodatabase" || itemType === "csv collection" || itemType === "kml collection" ||
162
+ itemType === "windows mobile package" || itemType === "map template" || itemType === "desktop application template" || itemType === "gml" ||
163
+ itemType === "arcpad package" || itemType === "code sample" || itemType === "form" || itemType === "document link" ||
164
+ itemType === "operations dashboard add in" || itemType === "rules package" || itemType === "image" || itemType === "workflow manager package" ||
165
+ (itemType === "explorer map" && typeKeywords.indexOf("Explorer Mapping Application") > -1 || typeKeywords.indexOf("Document") > -1)) {
166
+ imgName = "datafilesgray";
167
+ }
168
+ else if (itemType === "network analysis service" || itemType === "geoprocessing service" ||
169
+ itemType === "geodata service" || itemType === "geometry service" || itemType === "geoprocessing package" ||
170
+ itemType === "locator package" || itemType === "geoprocessing sample" || itemType === "workflow manager service") {
171
+ imgName = "toolsgray";
172
+ }
173
+ else if (itemType === "layer" || itemType === "layer package" || itemType === "explorer layer") {
174
+ imgName = "layersgray";
175
+ }
176
+ else if (itemType === "scene package") {
177
+ imgName = "scenepackage";
178
+ }
179
+ else if (itemType === "mobile scene package") {
180
+ imgName = "mobilescenepackage";
181
+ }
182
+ else if (itemType === "tile package" || itemType === "compact tile package") {
183
+ imgName = "tilepackage";
184
+ }
185
+ else if (itemType === "task file") {
186
+ imgName = "taskfile";
187
+ }
188
+ else if (itemType === "report template") {
189
+ imgName = "report-template";
190
+ }
191
+ else if (itemType === "statistical data collection") {
192
+ imgName = "statisticaldatacollection";
193
+ }
194
+ else if (itemType === "insights workbook") {
195
+ imgName = "workbook";
196
+ }
197
+ else if (itemType === "insights model") {
198
+ imgName = "insightsmodel";
199
+ }
200
+ else if (itemType === "insights page") {
201
+ imgName = "insightspage";
202
+ }
203
+ else if (itemType === "insights theme") {
204
+ imgName = "insightstheme";
205
+ }
206
+ else if (itemType === "hub initiative") {
207
+ imgName = "hubinitiative";
208
+ }
209
+ else if (itemType === "hub page") {
210
+ imgName = "hubpage";
211
+ }
212
+ else if (itemType === "hub site application") {
213
+ imgName = "hubsite";
214
+ }
215
+ else if (itemType === "hub event") {
216
+ imgName = "hubevent";
217
+ }
218
+ else if (itemType === "relational database connection") {
219
+ imgName = "relationaldatabaseconnection";
220
+ }
221
+ else if (itemType === "big data file share") {
222
+ imgName = "datastorecollection";
223
+ }
224
+ else if (itemType === "image collection") {
225
+ imgName = "imagecollection";
226
+ }
227
+ else if (itemType === "desktop style") {
228
+ imgName = "desktopstyle";
229
+ }
230
+ else if (itemType === "style") {
231
+ imgName = "style";
232
+ }
233
+ else if (itemType === "dashboard") {
234
+ imgName = "dashboard";
235
+ }
236
+ else if (itemType === "raster function template") {
237
+ imgName = "rasterprocessingtemplate";
238
+ }
239
+ else if (itemType === "vector tile package") {
240
+ imgName = "vectortilepackage";
241
+ }
242
+ else if (itemType === "ortho mapping project") {
243
+ imgName = "orthomappingproject";
244
+ }
245
+ else if (itemType === "ortho mapping template") {
246
+ imgName = "orthomappingtemplate";
247
+ }
248
+ else if (itemType === "solution") {
249
+ imgName = "solutions";
250
+ }
251
+ else if (itemType === "geopackage") {
252
+ imgName = "geopackage";
253
+ }
254
+ else if (itemType === "deep learning package") {
255
+ imgName = "deeplearningpackage";
256
+ }
257
+ else if (itemType === "real time analytic") {
258
+ imgName = "realtimeanalytics";
259
+ }
260
+ else if (itemType === "big data analytic") {
261
+ imgName = "bigdataanalytics";
262
+ }
263
+ else if (itemType === "feed") {
264
+ imgName = "feed";
265
+ }
266
+ else if (itemType === "excalibur imagery project") {
267
+ imgName = "excaliburimageryproject";
268
+ }
269
+ else if (itemType === "notebook") {
270
+ imgName = "notebook";
271
+ }
272
+ else if (itemType === "storymap") {
273
+ imgName = "storymap";
274
+ }
275
+ else if (itemType === "survey123 add in") {
276
+ imgName = "survey123addin";
277
+ }
278
+ else if (itemType === "mission") {
279
+ imgName = "mission";
280
+ }
281
+ else if (itemType === "mission report") {
282
+ imgName = "missionreport";
283
+ }
284
+ else if (itemType === "quickcapture project") {
285
+ imgName = "quickcaptureproject";
286
+ }
287
+ else if (itemType === "pro report") {
288
+ imgName = "proreport";
289
+ }
290
+ else if (itemType === "urban model") {
291
+ imgName = "urbanmodel";
292
+ }
293
+ else if (itemType === "web experience") {
294
+ imgName = "experiencebuilder";
295
+ }
296
+ else if (itemType === "web experience template") {
297
+ imgName = "webexperiencetemplate";
298
+ }
299
+ else if (itemType === "workflow") {
300
+ imgName = "workflow";
301
+ }
302
+ else if (itemType === "kernel gateway connection") {
303
+ imgName = "kernelgatewayconnection";
304
+ }
305
+ else if (itemType === "insights script") {
306
+ imgName = "insightsscript";
307
+ }
308
+ else if (itemType === "hub initiative template") {
309
+ imgName = "hubinitiativetemplate";
310
+ }
311
+ else if (itemType === "storymap theme") {
312
+ imgName = "storymaptheme";
313
+ }
314
+ else if (itemType === "group") {
315
+ imgName = "group";
316
+ }
317
+ else {
318
+ imgName = "maps";
319
+ }
320
+ return imgName ? index.getAssetPath(imgDir + imgName + size + ".png") : null;
321
+ }
322
+ static get assetsDirs() { return ["item-icons"]; }
323
+ get el() { return index.getElement(this); }
324
+ };
325
+ SolutionItemIcon.style = solutionItemIconCss;
326
+
327
+ exports.solution_item_icon = SolutionItemIcon;