@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.
- package/README.md +1 -1
- package/dist/assets/t9n/map-tools/resources.json +2 -1
- package/dist/assets/t9n/map-tools/resources_en.json +2 -1
- package/dist/assets/t9n/solution-spatial-ref/resources.json +0 -1
- package/dist/assets/t9n/solution-spatial-ref/resources_en.json +0 -1
- package/dist/assets/t9n/solution-spatial-ref/resources_fr.json +6 -0
- package/dist/assets/t9n/solution-spatial-ref/resources_he.json +6 -0
- package/dist/assets/t9n/spatial-ref/resources.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_en.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_fr.json +3 -0
- package/dist/assets/t9n/spatial-ref/resources_he.json +3 -0
- package/dist/cjs/{basemap-gallery_6.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +124 -3
- package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-checkbox_3.cjs.entry.js} +123 -319
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +4 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +8 -5
- package/dist/{collection/components/basemap-gallery/test/basemap-gallery.e2e.js → cjs/common-13719149.js} +17 -9
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -7
- package/dist/cjs/edit-card_2.cjs.entry.js +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +21 -21256
- package/dist/cjs/solution-item-icon.cjs.entry.js +327 -0
- package/dist/cjs/{solution-store-c443e657.js → solution-resource-f9e3b289.js} +2 -1698
- package/dist/cjs/solution-store-2414dd8a.js +1707 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +21293 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +15 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +47 -6
- package/dist/collection/components/edit-card/edit-card.css +0 -12
- package/dist/collection/components/floor-filter/floor-filter.css +19 -0
- package/dist/collection/components/floor-filter/floor-filter.js +163 -0
- package/dist/collection/components/info-card/info-card.js +3 -2
- package/dist/collection/components/layer-table/layer-table.css +8 -0
- package/dist/collection/components/layer-table/layer-table.js +18 -2
- package/dist/collection/components/map-card/map-card.js +19 -1
- package/dist/collection/components/map-picker/map-picker.css +0 -4
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +54 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.css +1 -7
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +37 -291
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +24 -12
- package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +32 -128
- package/dist/collection/components/spatial-ref/spatial-ref.css +20 -0
- package/dist/collection/components/spatial-ref/spatial-ref.js +445 -0
- package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +71 -0
- package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +158 -0
- package/dist/collection/demos/crowdsource-manager.html +4 -0
- package/dist/collection/demos/solution-spatial-ref.html +9 -16
- package/dist/collection/demos/spatial-ref.html +53 -0
- package/dist/collection/utils/{templates.e2e.js → test/templates.e2e.js} +2 -2
- package/dist/collection/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/crowdsource-manager.js +86 -73
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/floor-filter.d.ts +11 -0
- package/dist/components/floor-filter.js +11 -0
- package/dist/components/floor-filter2.js +115 -0
- package/dist/components/info-card2.js +3 -2
- package/dist/components/layer-table2.js +5 -3
- package/dist/components/map-card2.js +45 -37
- package/dist/components/map-picker2.js +2 -2
- package/dist/components/map-tools2.js +52 -11
- package/dist/components/solution-configuration.js +79 -72
- package/dist/components/solution-resource-item2.js +2 -1
- package/dist/components/solution-resource.js +1836 -0
- package/dist/components/solution-spatial-ref2.js +41 -21277
- package/dist/components/solution-store.js +2 -1830
- package/dist/components/spatial-ref.d.ts +11 -0
- package/dist/components/spatial-ref.js +11 -0
- package/dist/components/spatial-ref2.js +21374 -0
- package/dist/esm/{basemap-gallery_6.entry.js → basemap-gallery_7.entry.js} +124 -4
- package/dist/esm/{calcite-tree_3.entry.js → calcite-checkbox_3.entry.js} +125 -321
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -1
- package/dist/esm/card-manager_3.entry.js +8 -5
- package/dist/{collection/components/layer-table/test/layer-table.e2e.js → esm/common-e4a8e353.js} +15 -9
- package/dist/esm/crowdsource-manager.entry.js +12 -7
- package/dist/esm/edit-card_2.entry.js +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/solution-configuration.entry.js +2 -1
- package/dist/esm/solution-contents_3.entry.js +20 -21255
- package/dist/esm/solution-item-icon.entry.js +323 -0
- package/dist/esm/{solution-store-b29d50f7.js → solution-resource-be35d35b.js} +1 -1697
- package/dist/esm/solution-store-e734626a.js +1704 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +21289 -0
- package/dist/solutions-components/demos/crowdsource-manager.html +4 -0
- package/dist/solutions-components/demos/solution-spatial-ref.html +9 -16
- package/dist/solutions-components/demos/spatial-ref.html +53 -0
- package/dist/solutions-components/{p-64d29ba2.entry.js → p-0bc27ba7.entry.js} +2 -2
- package/dist/{collection/components/map-card/test/map-card.e2e.js → solutions-components/p-1b228f97.js} +2 -10
- package/dist/solutions-components/p-5b8c8942.entry.js +21 -0
- package/dist/solutions-components/p-63c6fc29.entry.js +6 -0
- package/dist/solutions-components/p-64945b43.entry.js +18 -0
- package/dist/solutions-components/p-770bff06.entry.js +6 -0
- package/dist/solutions-components/p-7741dbab.entry.js +6 -0
- package/dist/solutions-components/p-80465067.entry.js +6 -0
- package/dist/solutions-components/p-846df994.entry.js +6 -0
- package/dist/solutions-components/p-b3f8d2cb.js +192 -0
- package/dist/solutions-components/p-c26d8b36.entry.js +6 -0
- package/dist/solutions-components/{p-4d942b0f.entry.js → p-f35147d5.entry.js} +1 -1
- package/dist/solutions-components/p-ff0d7712.js +44 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/{templates.e2e.ts → test/templates.e2e.ts} +2 -2
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +9 -1
- package/dist/types/components/floor-filter/floor-filter.d.ts +61 -0
- package/dist/types/components/layer-table/layer-table.d.ts +4 -0
- package/dist/types/components/map-card/map-card.d.ts +4 -0
- package/dist/types/components/map-tools/map-tools.d.ts +24 -0
- package/dist/types/components/solution-spatial-ref/solution-spatial-ref.d.ts +11 -93
- package/dist/types/components/spatial-ref/spatial-ref.d.ts +142 -0
- package/dist/types/components.d.ts +123 -16
- package/dist/types/preact.d.ts +8 -1
- package/package.json +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +0 -136
- package/dist/collection/components/basemap-gallery/test/basemap-gallery.spec.js +0 -37
- package/dist/collection/components/buffer-tools/test/buffer-tools.e2e.js +0 -29
- package/dist/collection/components/buffer-tools/test/buffer-tools.spec.js +0 -160
- package/dist/collection/components/card-manager/test/card-manager.e2e.js +0 -29
- package/dist/collection/components/card-manager/test/card-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.e2e.js +0 -29
- package/dist/collection/components/crowdsource-manager/test/crowdsource-manager.spec.js +0 -37
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.e2e.js +0 -29
- package/dist/collection/components/crowdsource-reporter/test/crowdsource-reporter.spec.js +0 -37
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.e2e.js +0 -29
- package/dist/collection/components/deduct-calculator/test/deduct-calculator.spec.js +0 -37
- package/dist/collection/components/edit-card/test/edit-card.e2e.js +0 -14
- package/dist/collection/components/edit-card/test/edit-card.spec.js +0 -22
- package/dist/collection/components/info-card/test/info-card.e2e.js +0 -29
- package/dist/collection/components/info-card/test/info-card.spec.js +0 -37
- package/dist/collection/components/json-editor/test/json-editor.e2e.js +0 -36
- package/dist/collection/components/json-editor/test/json-editor.spec.js +0 -65
- package/dist/collection/components/layer-table/test/layer-table.spec.js +0 -37
- package/dist/collection/components/layout-manager/test/layout-manager.e2e.js +0 -29
- package/dist/collection/components/layout-manager/test/layout-manager.spec.js +0 -37
- package/dist/collection/components/list-item/test/list-item.e2e.js +0 -29
- package/dist/collection/components/list-item/test/list-item.spec.js +0 -37
- package/dist/collection/components/map-card/test/map-card.spec.js +0 -37
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.e2e.js +0 -29
- package/dist/collection/components/map-draw-tools/test/map-draw-tools.spec.js +0 -37
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.e2e.js +0 -29
- package/dist/collection/components/map-fullscreen/test/map-fullscreen.spec.js +0 -37
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.e2e.js +0 -29
- package/dist/collection/components/map-layer-picker/test/map-layer-picker.spec.js +0 -114
- package/dist/collection/components/map-legend/test/map-legend.e2e.js +0 -14
- package/dist/collection/components/map-legend/test/map-legend.spec.js +0 -22
- package/dist/collection/components/map-picker/test/map-picker.e2e.js +0 -29
- package/dist/collection/components/map-picker/test/map-picker.spec.js +0 -37
- package/dist/collection/components/map-search/test/map-search.e2e.js +0 -29
- package/dist/collection/components/map-search/test/map-search.spec.js +0 -37
- package/dist/collection/components/map-select-tools/test/map-select-tools.e2e.js +0 -29
- package/dist/collection/components/map-select-tools/test/map-select-tools.spec.js +0 -366
- package/dist/collection/components/map-tools/test/map-tools.e2e.js +0 -29
- package/dist/collection/components/map-tools/test/map-tools.spec.js +0 -37
- package/dist/collection/components/pci-calculator/test/pci-calculator.e2e.js +0 -29
- package/dist/collection/components/pci-calculator/test/pci-calculator.spec.js +0 -37
- package/dist/collection/components/pdf-download/test/pdf-download.e2e.js +0 -76
- package/dist/collection/components/pdf-download/test/pdf-download.spec.js +0 -107
- package/dist/collection/components/public-notification/test/public-notification.spec.js +0 -161
- package/dist/collection/components/refine-selection/test/refine-selection.e2e.js +0 -14
- package/dist/collection/components/refine-selection/test/refine-selection.spec.js +0 -22
- package/dist/collection/components/solution-configuration/test/solution-configuration.e2e.js +0 -36
- package/dist/collection/components/solution-configuration/test/solution-configuration.spec.js +0 -119
- package/dist/collection/components/solution-contents/test/solution-contents.e2e.js +0 -94
- package/dist/collection/components/solution-contents/test/solution-contents.spec.js +0 -143
- package/dist/collection/components/solution-item/test/solution-item.e2e.js +0 -36
- package/dist/collection/components/solution-item/test/solution-item.spec.js +0 -77
- package/dist/collection/components/solution-item-details/test/solution-item-details.e2e.js +0 -36
- package/dist/collection/components/solution-item-details/test/solution-item-details.spec.js +0 -142
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.e2e.js +0 -29
- package/dist/collection/components/solution-item-icon/test/solution-item-icon.spec.js +0 -39
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.e2e.js +0 -36
- package/dist/collection/components/solution-item-sharing/test/solution-item-sharing.spec.js +0 -54
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.e2e.js +0 -36
- package/dist/collection/components/solution-organization-variables/test/solution-organization-variables.spec.js +0 -65
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.e2e.js +0 -36
- package/dist/collection/components/solution-resource-item/test/solution-resource-item.spec.js +0 -55
- package/dist/collection/components/solution-template-data/test/solution-template-data.e2e.js +0 -36
- package/dist/collection/components/solution-template-data/test/solution-template-data.spec.js +0 -60
- package/dist/collection/components/solution-variables/test/solution-variables.e2e.js +0 -36
- package/dist/collection/components/solution-variables/test/solution-variables.spec.js +0 -131
- package/dist/esm/calcite-checkbox.entry.js +0 -132
- package/dist/solutions-components/p-17d176b5.js +0 -230
- package/dist/solutions-components/p-1d9a5198.entry.js +0 -37
- package/dist/solutions-components/p-3707d9bd.entry.js +0 -6
- package/dist/solutions-components/p-41bbccbc.entry.js +0 -6
- package/dist/solutions-components/p-4f2fce86.entry.js +0 -6
- package/dist/solutions-components/p-5ffaaaf4.entry.js +0 -6
- package/dist/solutions-components/p-736e76fb.entry.js +0 -17
- package/dist/solutions-components/p-dda517b9.entry.js +0 -6
- /package/dist/collection/components/{solution-spatial-ref → spatial-ref}/spatialreferences.js +0 -0
- /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;
|