@esri/solutions-components 0.10.7 → 0.10.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +24 -8
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +354 -967
- package/dist/cjs/calcite-graph_2.cjs.entry.js +1082 -0
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_3.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +246 -18
- package/dist/cjs/crowdsource-manager.cjs.entry.js +171 -50
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/share-item.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources.json +5 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources_en.json +5 -1
- package/dist/collection/assets/t9n/layer-table/resources.json +1 -0
- package/dist/collection/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/collection/assets/t9n/map-card/resources.json +6 -1
- package/dist/collection/assets/t9n/map-card/resources_en.json +6 -1
- package/dist/collection/components/card-manager/card-manager.js +34 -8
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +176 -84
- package/dist/collection/components/layer-table/layer-table.js +175 -8
- package/dist/collection/components/map-card/map-card.css +4 -0
- package/dist/collection/components/map-card/map-card.js +368 -3
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +9 -3
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.css +8 -0
- package/dist/collection/components/map-picker/map-picker.js +74 -3
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-results-flow-item/refine-results-flow-item.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/share-item/share-item.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-manager.html +1 -0
- package/dist/components/card-manager2.js +20 -8
- package/dist/components/crowdsource-manager.js +175 -55
- package/dist/components/layer-table2.js +72 -10
- package/dist/components/map-card2.js +288 -47
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +9 -3
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +24 -5
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-results-flow-item.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/share-item.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +24 -8
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +369 -982
- package/dist/esm/calcite-graph_2.entry.js +1077 -0
- package/dist/esm/calcite-shell-panel_14.entry.js +6 -6
- package/dist/esm/calcite-tree_3.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +248 -20
- package/dist/esm/crowdsource-manager.entry.js +172 -51
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/refine-results-flow-item.entry.js +1 -1
- package/dist/esm/share-item.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources.json +5 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_en.json +5 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources.json +1 -0
- package/dist/solutions-components/assets/t9n/layer-table/resources_en.json +1 -0
- package/dist/solutions-components/assets/t9n/map-card/resources.json +6 -1
- package/dist/solutions-components/assets/t9n/map-card/resources_en.json +6 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +1 -0
- package/dist/solutions-components/p-0abc1354.entry.js +6 -0
- package/dist/solutions-components/p-0f7b5d36.entry.js +6 -0
- package/dist/solutions-components/{p-a9818be2.entry.js → p-20c465e9.entry.js} +1 -1
- package/dist/solutions-components/{p-db18bce8.entry.js → p-36b50b5b.entry.js} +1 -1
- package/dist/solutions-components/{p-85512ae3.entry.js → p-445213cf.entry.js} +1 -1
- package/dist/solutions-components/{p-d49f895d.entry.js → p-4a5f0a97.entry.js} +1 -1
- package/dist/solutions-components/{p-002c97df.entry.js → p-5d201016.entry.js} +1 -1
- package/dist/solutions-components/{p-b7cec3bd.entry.js → p-618bafec.entry.js} +1 -1
- package/dist/solutions-components/p-6a66d5a9.entry.js +6 -0
- package/dist/solutions-components/p-71a2d5b8.entry.js +6 -0
- package/dist/solutions-components/p-7a64b026.entry.js +17 -0
- package/dist/solutions-components/p-7d514d7f.entry.js +6 -0
- package/dist/solutions-components/p-85c25564.entry.js +6 -0
- package/dist/solutions-components/{p-235bf02e.entry.js → p-913413c3.entry.js} +1 -1
- package/dist/solutions-components/{p-49aa2929.entry.js → p-bebd4646.entry.js} +1 -1
- package/dist/solutions-components/p-ce454f5a.entry.js +11 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/card-manager/card-manager.d.ts +11 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +88 -22
- package/dist/types/components/layer-table/layer-table.d.ts +30 -0
- package/dist/types/components/map-card/map-card.d.ts +124 -0
- package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +4 -0
- package/dist/types/components/map-picker/map-picker.d.ts +12 -0
- package/dist/types/components.d.ts +130 -8
- package/dist/types/preact.d.ts +4 -2
- package/package.json +5 -5
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +0 -453
- package/dist/esm/calcite-dropdown-group_2.entry.js +0 -448
- package/dist/solutions-components/p-129fd80e.entry.js +0 -6
- package/dist/solutions-components/p-3b426576.entry.js +0 -6
- package/dist/solutions-components/p-72b217f2.entry.js +0 -6
- package/dist/solutions-components/p-8b999a2b.entry.js +0 -6
- package/dist/solutions-components/p-973ff7b2.entry.js +0 -23
- package/dist/solutions-components/p-a001f9c9.entry.js +0 -6
- package/dist/solutions-components/p-c683b3fe.entry.js +0 -6
- package/dist/solutions-components/p-e9d049bd.entry.js +0 -6
@@ -23,6 +23,7 @@ import { getLocaleComponentStrings } from "../../utils/locale";
|
|
23
23
|
export class MapPicker {
|
24
24
|
constructor() {
|
25
25
|
this.mapInfos = [];
|
26
|
+
this.isMapLayout = undefined;
|
26
27
|
this._mapListExpanded = false;
|
27
28
|
this._translations = undefined;
|
28
29
|
this._webMapInfo = undefined;
|
@@ -79,6 +80,20 @@ export class MapPicker {
|
|
79
80
|
this._webMapSelected(mapInfos[0]);
|
80
81
|
}
|
81
82
|
}
|
83
|
+
/**
|
84
|
+
* Closes the list
|
85
|
+
*/
|
86
|
+
async close() {
|
87
|
+
if (this._mapListExpanded) {
|
88
|
+
this._mapListExpanded = false;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Expands the list
|
93
|
+
*/
|
94
|
+
async toggle(mapListExpanded) {
|
95
|
+
this._mapListExpanded = mapListExpanded;
|
96
|
+
}
|
82
97
|
//--------------------------------------------------------------------------
|
83
98
|
//
|
84
99
|
// Events (public)
|
@@ -105,7 +120,7 @@ export class MapPicker {
|
|
105
120
|
* Renders the component.
|
106
121
|
*/
|
107
122
|
render() {
|
108
|
-
return (h(Host, { key: '
|
123
|
+
return (h(Host, { key: 'd1d4af3cbc382bb6895b8dece215fbef114238bb' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
109
124
|
}
|
110
125
|
/**
|
111
126
|
* Called once after the component has loaded
|
@@ -142,7 +157,7 @@ export class MapPicker {
|
|
142
157
|
* @protected
|
143
158
|
*/
|
144
159
|
_getToolbar() {
|
145
|
-
return (h("div", { class: "display-flex" }, h("calcite-action-bar", { class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
|
160
|
+
return (h("div", { class: "display-flex border-right" }, h("calcite-action-bar", { class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: "header" }, this._getMapPicker())));
|
146
161
|
}
|
147
162
|
/**
|
148
163
|
* Get a pick list for all maps in mapInfos
|
@@ -154,7 +169,8 @@ export class MapPicker {
|
|
154
169
|
* @protected
|
155
170
|
*/
|
156
171
|
_getMapNameList(show) {
|
157
|
-
const
|
172
|
+
const width = this.isMapLayout ? "width-25" : "width-full";
|
173
|
+
const listClass = show ? `map-list border-bottom-1 ${width}` : "display-none";
|
158
174
|
return (h("div", { class: listClass }, h("calcite-list", { id: "mapList", ref: (el) => this._list = el, selectionAppearance: "border", selectionMode: "single" }, this.mapInfos.map(mapInfo => {
|
159
175
|
return (h("calcite-list-item", { label: mapInfo.name, onClick: () => this._webMapSelected(mapInfo), selected: mapInfo.id === this._loadedId, value: mapInfo.id }));
|
160
176
|
}))));
|
@@ -223,6 +239,23 @@ export class MapPicker {
|
|
223
239
|
"text": "IMapInfo[]: array of map infos (name and id)"
|
224
240
|
},
|
225
241
|
"defaultValue": "[]"
|
242
|
+
},
|
243
|
+
"isMapLayout": {
|
244
|
+
"type": "boolean",
|
245
|
+
"mutable": false,
|
246
|
+
"complexType": {
|
247
|
+
"original": "boolean",
|
248
|
+
"resolved": "boolean",
|
249
|
+
"references": {}
|
250
|
+
},
|
251
|
+
"required": false,
|
252
|
+
"optional": true,
|
253
|
+
"docs": {
|
254
|
+
"tags": [],
|
255
|
+
"text": "boolean: when true map list will shown in half width."
|
256
|
+
},
|
257
|
+
"attribute": "is-map-layout",
|
258
|
+
"reflect": false
|
226
259
|
}
|
227
260
|
};
|
228
261
|
}
|
@@ -279,6 +312,44 @@ export class MapPicker {
|
|
279
312
|
"text": "",
|
280
313
|
"tags": []
|
281
314
|
}
|
315
|
+
},
|
316
|
+
"close": {
|
317
|
+
"complexType": {
|
318
|
+
"signature": "() => Promise<void>",
|
319
|
+
"parameters": [],
|
320
|
+
"references": {
|
321
|
+
"Promise": {
|
322
|
+
"location": "global",
|
323
|
+
"id": "global::Promise"
|
324
|
+
}
|
325
|
+
},
|
326
|
+
"return": "Promise<void>"
|
327
|
+
},
|
328
|
+
"docs": {
|
329
|
+
"text": "Closes the list",
|
330
|
+
"tags": []
|
331
|
+
}
|
332
|
+
},
|
333
|
+
"toggle": {
|
334
|
+
"complexType": {
|
335
|
+
"signature": "(mapListExpanded: boolean) => Promise<void>",
|
336
|
+
"parameters": [{
|
337
|
+
"name": "mapListExpanded",
|
338
|
+
"type": "boolean",
|
339
|
+
"docs": ""
|
340
|
+
}],
|
341
|
+
"references": {
|
342
|
+
"Promise": {
|
343
|
+
"location": "global",
|
344
|
+
"id": "global::Promise"
|
345
|
+
}
|
346
|
+
},
|
347
|
+
"return": "Promise<void>"
|
348
|
+
},
|
349
|
+
"docs": {
|
350
|
+
"text": "Expands the list",
|
351
|
+
"tags": []
|
352
|
+
}
|
282
353
|
}
|
283
354
|
};
|
284
355
|
}
|
@@ -109,7 +109,7 @@ export class MapSearch {
|
|
109
109
|
* Renders the component.
|
110
110
|
*/
|
111
111
|
render() {
|
112
|
-
return (h(Host, { key: '
|
112
|
+
return (h(Host, { key: 'a94dc7a1257336e387d2c761d8584e7a75bbd316' }, h("div", { key: '0a54b1fce8750084563cbc823222a4679a8e7909', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
113
113
|
}
|
114
114
|
//--------------------------------------------------------------------------
|
115
115
|
//
|
@@ -296,7 +296,7 @@ export class MapSelectTools {
|
|
296
296
|
render() {
|
297
297
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
298
298
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
299
|
-
return (h(Host, { key: '
|
299
|
+
return (h(Host, { key: '5a04e72d23e06c463d7dc3b453ca91ce046359bd' }, this._getMapLayerPicker(), h("div", { key: 'e821ee7452a1a784b485b487cedeff6425e2b063', class: "border-bottom" }), h("div", { key: '53e9a7d16279c9287af730452492d56ace65cdaf', class: "padding-top-sides-1" }, h("div", { key: 'a56f9637ab82b938e8ee2668fceeec2631f270cf', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: 'c06517880c5e2fca23e45a7392a9d72c159a482c', class: mapToolsContainerClass }, h("map-draw-tools", { key: '54df55d7f39cf68e6bf07ca8ae1c3ac952f8c2ff', active: true, class: mapToolsClass, editGraphicsEnabled: !this._useLayerFeaturesEnabled, graphics: this._graphics, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: '1d6ec53f2a270407c62972fb6e5775940821ca18', class: "border-bottom" }), this._getNameInput()));
|
300
300
|
}
|
301
301
|
/**
|
302
302
|
* Renders the buffer tools component.
|
@@ -213,7 +213,7 @@ export class MapTools {
|
|
213
213
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
214
214
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
215
215
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
216
|
-
return (h(Host, { key: '
|
216
|
+
return (h(Host, { key: 'f994555df4df11a4eca6b950c482b393d2ad8e94' }, h("div", { key: 'fa0a53926f01beb8009284da27e82d00ab7ad632', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: '09384f900f228b3c452eb137510cc44f6a4615aa', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: 'ad7751eb21b9024f775c3539b24e462eb68d3c78', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: 'd0922fed8b30210fce0edc1f0a56895bf20f0022', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: 'd3d2aa061acd9837bd2cc7e1d558d89f3b40386d', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: '9a95c34971adcbc0edc749a8b4004ceef79a3f3b', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: '7261f9b585a9ff2d016eeaced8ee25065c6c1c0b', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
217
217
|
}
|
218
218
|
//--------------------------------------------------------------------------
|
219
219
|
//
|
@@ -70,7 +70,7 @@ export class PciCalculator {
|
|
70
70
|
render() {
|
71
71
|
const pciClass = !this.showAddDeduct ? "display-grid" : "display-none";
|
72
72
|
const deductClass = this.showAddDeduct ? "position-relative" : "display-none";
|
73
|
-
return (h(Host, { key: '
|
73
|
+
return (h(Host, { key: '9bc609be932ec1285dcdc2dc3b6336a36494c9f9' }, h("div", { key: '9b64b3fdc3bf3e0265eb544e540c8c32eed8ec9e', class: pciClass }, h("div", { key: 'de7e6a9b213cfb28fcea5c609e664635abf8b782', class: "label-display" }, h("calcite-label", { key: 'e9af278421644f6d23b8b07e3e116affaa576c07', class: "label-display" }, "Enter comma delimited deduct values", this._getDeductValuesInput())), h("div", { key: '0703cf731b5497a09cc6bb54c5e18a63ea2ba244' }, this._getCalculateButton())), h("div", { key: 'bd32e040f6d3789987c53a94484e7aeebc6b82b1', class: deductClass }, h("div", { key: '8f977910db0578ebfc8ea79a19b664e109aba266', class: "position-right" }, h("calcite-action", { key: 'a624606534ff220a97a05aa7cb4f22d4c8bb6ddc', appearance: 'transparent', class: "float-end", icon: "x", onClick: () => this._toggleShowAddDeduct(), scale: "s", text: '' })), h("deduct-calculator", { key: '0b327b89377b88ec2b11065c6f3ecb4b582ef7e4', class: "display-grid padding-top-1", onDeductValueComplete: (evt) => this._addDeductValue(evt) }))));
|
74
74
|
}
|
75
75
|
//--------------------------------------------------------------------------
|
76
76
|
//
|
@@ -106,7 +106,7 @@ export class PdfDownload {
|
|
106
106
|
* Renders the component.
|
107
107
|
*/
|
108
108
|
render() {
|
109
|
-
return (h(Host, { key: '
|
109
|
+
return (h(Host, { key: 'a33458caa21a1cbe1545b30eeba3d0d9ce868148' }, h("calcite-select", { key: '75623fdf7467da7e45d917a0149b48a9f5c24394', disabled: this.disabled, label: "", ref: (el) => { this._labelInfoElement = el; } })));
|
110
110
|
}
|
111
111
|
componentDidLoad() {
|
112
112
|
// Render the options outside of Stencil's rendering so that it doesn't mangle RTL text with embedded LTR
|
@@ -263,7 +263,7 @@ export class PublicNotification {
|
|
263
263
|
*/
|
264
264
|
render() {
|
265
265
|
const headerSlot = this._isMobile ? "footer" : "header";
|
266
|
-
return (h(Host, { key: '
|
266
|
+
return (h(Host, { key: 'de2d5102a42be0ef268b269402a027f9ea91d9b5' }, h("calcite-shell", { key: '9ce77bf23a9d6479e7e65742e7caac2b83033975' }, h("calcite-action-bar", { key: 'c82214eda0751577ca6c40474d418286f3954ce5', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
267
267
|
}
|
268
268
|
/**
|
269
269
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -62,7 +62,7 @@ export class RefineResultsFlowItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: '301d721cbe276288d621e0cd3a54ee5558dea76a' }, h("slot", { key: 'd8d933a33826d99e7455b6fb4d55e93320f09c96' })));
|
66
66
|
}
|
67
67
|
static get is() { return "refine-results-flow-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -119,7 +119,7 @@ export class RefineSelection {
|
|
119
119
|
*/
|
120
120
|
render() {
|
121
121
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
122
|
-
return (h(Host, { key: '
|
122
|
+
return (h(Host, { key: '48fd9fbbe8560ca4d165e5a3e9399ce5c3c7ba8e' }, h("div", { key: '4b314e3941366d8251238a13171d21ce28a7b87e', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'f7007f8333e1a8c160bcbd5659f6410776c54e2a', class: "display-flex" }, h("calcite-label", { key: 'c24380176e9c4791ef1fcda1a3f955265f51b0d7', class: "font-bold width-full label-margin-0" }, h("div", { key: '403542a6105b28368cd364070abfe6d8cf160d7e', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '745e828c6bbb8c7c89259142ca5301561d441128', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: '15aa897e1cc858b2bda6a9cefca1d87347592bb0', enabledLayerIds: this._enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: '334ab4b1918e6905b4ab90a683ffa5129e6b449f', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: '2770007f82ff6dc157e5ffae8c9f61c55cb47a48', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: 'f29a52a9ac924bf4cd81b5311df6a2a8ca28f0ae', class: "padding-1" }, h("div", { key: 'c0c5815ef8e74971e26517a12c95ca19b2294dc8', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: 'b6338cabb01ba8453df5e00a46ab51e4da924c3d', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: '61ecda9667fdf6e3acc7931531ee9a49fdd40295', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: '3b48631b4b75716680f15ac0e4790043926bf857', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: '1e26bced9c292ffdca78a589f3b78961cb5fceb6', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: 'b7abd723a8f440d03d35256812229bf2e84e87c6', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '368a335da540fb7c747d6f2abffc3e7f98545833' }, h("map-draw-tools", { key: 'a3cc7f67104512ab108157bd3f7ebd57b1a5f202', active: true, drawMode: EDrawMode.REFINE, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: '038fb2b359eb59730de50778d809841ef33471d9' }), (h("calcite-list", { key: '02fdc3e4096a8f88e727118f9ae27a9b823edb3a', class: "list-border" }, this._getRefineSelectionSetList())))));
|
123
123
|
}
|
124
124
|
//--------------------------------------------------------------------------
|
125
125
|
//
|
@@ -62,7 +62,7 @@ export class ShareItem {
|
|
62
62
|
//
|
63
63
|
//--------------------------------------------------------------------------
|
64
64
|
render() {
|
65
|
-
return (h(Host, { key: '
|
65
|
+
return (h(Host, { key: 'fb0d98cfbbb4becfc168d715f6198a3923f58e03' }, h("slot", { key: '7d8d7644cd59654a081c22b696790aaf8c493ade' })));
|
66
66
|
}
|
67
67
|
static get is() { return "share-item"; }
|
68
68
|
static get encapsulation() { return "shadow"; }
|
@@ -86,11 +86,11 @@ export class SolutionConfiguration {
|
|
86
86
|
const solutionData = state.getStoreInfo("solutionData");
|
87
87
|
this._solutionVariables = JSON.stringify(utils.getSolutionVariables(solutionData.templates, this._translations));
|
88
88
|
this._organizationVariables = JSON.stringify(utils.getOrganizationVariables(this._translations));
|
89
|
-
return (h(Host, { key: '
|
89
|
+
return (h(Host, { key: '5109582ea7788928ced7d43f3fac23e501dfdec5' }, !this._solutionIsLoaded
|
90
90
|
? h("calcite-loader", { label: '' })
|
91
|
-
: null, h("div", { key: '
|
91
|
+
: null, h("div", { key: '610c2047b1e04b19e48caf0e503273d6fb19a2ee', class: "configuration-container" }, h("div", { key: '1be0cf6c381f2eea9e9a633527ab01d39b9b76fd', class: "configuration" }, h("calcite-tabs", { key: '8e87e8b72ccabe61b48f43035ef054fc88f73cee', class: "config-tabs" }, h("calcite-tab-nav", { key: '6b28f9b08a6d217390e2bb71bd77589a7ddae1a4', slot: "tab-nav" }, h("calcite-tab-title", { key: '00ee03b7d9f462866b27be154e84541eb95e9cbd' }, this._translations.definitionTab), hasServices ?
|
92
92
|
h("calcite-tab-title", null, this._translations.spatialReferenceTab) :
|
93
|
-
null), h("calcite-tab", { key: '
|
93
|
+
null), h("calcite-tab", { key: '8f7fe3085cbb8eb6ca604cce44570aa0409f286c', class: "config-tab", selected: true }, h("div", { key: 'abe77878ca8872fde8d96f9ff328015851b02707', class: "config-solution" }, h("div", { key: '6949db8cfdb0aa9b97d1f2583eee69fef3d5aa60', class: this._treeOpen ? "config-inventory" : "config-inventory-hide" }, h("solution-contents", { id: "configInventory", key: `${this.solutionItemId}-contents`, ref: (el) => (this._solutionContentsComponent = el) })), h("calcite-button", { key: '09221fe20f65ee00f80e4a7d9aaa30a84fdec536', appearance: "transparent", class: "collapse-btn", "icon-start": this._treeOpen ? "chevrons-left" : "chevrons-right", id: "collapse-vars", onClick: () => this._toggleTree(), scale: "s", title: this._treeOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: '968177e9232d890d70050a7cd275c40bc73cce30', class: "config-item" }, h("solution-item", { authentication: this.authentication, "item-id": this._currentEditItemId, key: `${this.solutionItemId}-item`, "organization-variables": this._organizationVariables, "solution-item-id": this.solutionItemId, "solution-variables": this._solutionVariables })))), hasServices
|
94
94
|
? h("calcite-tab", { class: "config-tab" }, h("div", { class: "config-solution" }, h("solution-spatial-ref", { enableDefault: !!spatialReferenceInfo.default, enabled: spatialReferenceInfo?.enabled, featureServices: state.getStoreInfo("featureServices").map(fs => fs.name), id: "configure-solution-spatial-ref", key: `${this.solutionItemId}-spatial-ref` })))
|
95
95
|
: null)))));
|
96
96
|
}
|
@@ -48,7 +48,7 @@ export class SolutionContents {
|
|
48
48
|
* Renders the component.
|
49
49
|
*/
|
50
50
|
render() {
|
51
|
-
return (h(Host, { key: '
|
51
|
+
return (h(Host, { key: 'd91cfec3e955e635a3196043c935733a7f4c726d' }, h("calcite-tree", { key: '6fcf281c5f61578b8d343893367ab1bd97315387' }, this.renderHierarchy(this.templateHierarchy))));
|
52
52
|
}
|
53
53
|
renderHierarchy(objs) {
|
54
54
|
return objs.map((obj) => {
|
@@ -56,7 +56,7 @@ export class SolutionItem {
|
|
56
56
|
* Renders the component.
|
57
57
|
*/
|
58
58
|
render() {
|
59
|
-
return (h(Host, { key: '
|
59
|
+
return (h(Host, { key: 'a26e9c7bc3973e47fb139f1fe83bd4541d4dcd90' }, h("div", { key: '80a990272623f4fccd7558306ffd78896a9ae546', class: "configuration-container" }, h("div", { key: 'cd6ef183c9d9acac8c23c7f3ffb616eb03852384', class: "configuration" }, this._showGroupTabs(this.itemType === "Group"), this._showItemTabs(this.itemType !== "Group")))));
|
60
60
|
}
|
61
61
|
//--------------------------------------------------------------------------
|
62
62
|
//
|
@@ -67,7 +67,7 @@ export class SolutionItemDetails {
|
|
67
67
|
* Renders the component.
|
68
68
|
*/
|
69
69
|
render() {
|
70
|
-
return (h(Host, { key: '
|
70
|
+
return (h(Host, { key: 'f93ee5d1152024c4c9d4b7376d8e19e5a0ebaccd' }, h("div", { key: 'd03106d1566be78c478a8ca798cea04161e835a2', class: "parent-container" }, h("div", { key: '78f52543e511e7deecffdc998808fce766863ef3', class: "inputBottomSeparation" }, h("calcite-input", { key: '70783f0059d5e526f56a4ff2cff18e20348c4c16', id: "item-title", value: this.itemDetails.title })), h("div", { key: 'b2cfc981837ee9fd8549dc62057bc98429f3f50a', class: "inputBottomSeparation" }, h("input", { key: '47bdb6fe76a080c297c01ee8624088a501f31f17', accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), h("button", { key: '7c2b6882f87d63f97c609c071b60b62474931c93', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, h("svg", { key: 'b530933142b3aa03de26baa33e4be11ea9f4c806', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, h("path", { key: '57388aa06be3e6c3bed24673ab63386cc433f6c0', d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), h("div", { key: '3906eeaa6bd72d0c53a0e472c3606f0ab879a3d3', class: "flex" }, h("div", { key: 'fa88b2ea055748202ed7c34ce7df2cfc9a1592a0', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, h("img", { key: '2b5e960405c8f41a66bdf93f47e669d5eae646ad', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), h("div", { key: '7762aca4498ef2ca8d70beb59cfc5906229c3e5d', class: "snippet-count-container" }, h("calcite-input", { key: '1a6e9e299e551f2c7a3f99395a789fd4e1bf1e88', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), h("label", { key: 'a66a1569c45189e013d230f7d2c11fd315ffaa29', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), h("calcite-label", { key: '1befca128558c7b638d86521f162bcbf44e889a1' }, this._translations.description, h("label", { key: '496939ec6171b926b8f7d6610fa153a0ee63243c', id: "item-description-label" }, h("calcite-input", { key: 'a97b85340d620f4fa909b4b697e058e5398df145', id: "item-description", type: "textarea", value: this.itemDetails.description }))), h("calcite-label", { key: 'eecadd422f35b01124dbf9ac8ce030c561f8b76d' }, this._translations.tags, h("label", { key: 'be9ba3c1c3e4d3bff74bcaf586cef39a8a5c76f2', id: "item-tags-label" }, h("calcite-input", { key: '9772f1e364dcb9810ea81bbf2871ee3c81bb0f92', id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? h("calcite-label", null, this._translations.credits, h("label", { id: "item-credits-label" }, h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? h("calcite-label", null, h("label", { id: "item-terms-label" }, this._translations.termsOfUse, h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
71
71
|
}
|
72
72
|
componentDidRender() {
|
73
73
|
this._loadThumb();
|
@@ -40,7 +40,7 @@ export class SolutionItemIcon {
|
|
40
40
|
* Renders the component.
|
41
41
|
*/
|
42
42
|
render() {
|
43
|
-
return h("div", { key: '
|
43
|
+
return h("div", { key: '3a30434531363d13bcc0207dbc90f1ee32454113', title: this.type }, h("img", { key: '8ae2eaaeaa00bb86aed97665036fdb1edd14b6be', class: "item-type-icon item-type-icon-margin", height: "16", src: this._getIconUrl(this.type, this.typeKeywords), width: "16" }));
|
44
44
|
}
|
45
45
|
//--------------------------------------------------------------------------
|
46
46
|
//
|
@@ -52,7 +52,7 @@ export class SolutionItemSharing {
|
|
52
52
|
* Renders the component.
|
53
53
|
*/
|
54
54
|
render() {
|
55
|
-
return (h(Host, { key: '
|
55
|
+
return (h(Host, { key: 'b2086d83295956bff47fd5951056000043a4db72' }, h("div", { key: '1344ce75b7ae023544d0c177d883ba1c6eaed05b', class: "container-border" }, h("calcite-label", { key: 'abbd7a7f1e9dbf94d54ef61a2182b2659d60026e' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
56
56
|
}
|
57
57
|
//--------------------------------------------------------------------------
|
58
58
|
//
|
@@ -50,7 +50,7 @@ export class SolutionOrganizationVariables {
|
|
50
50
|
* Renders the component.
|
51
51
|
*/
|
52
52
|
render() {
|
53
|
-
return (h(Host, { key: '
|
53
|
+
return (h(Host, { key: '387c9a17b83de9f4aa2dc60666e4c45268b7d656' }, h("div", { key: '5181a83dbd700220b8ec55828a37d35fd1406ed1' }, h("h4", { key: '88eea182594f50b86ba873289d84ea0e1b7cc3eb', class: "org-var-header" }, this._translations.orgVariables)), h("div", { key: 'dcbaf3f135d1a6d660e4f17bce722feb6d2fed3e', class: "container-border" }, h("calcite-tree", { key: '4b85c9bd443deb82e570e58ae59c546d8ea9d36d', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
54
54
|
}
|
55
55
|
//--------------------------------------------------------------------------
|
56
56
|
//
|
@@ -61,7 +61,7 @@ export class SolutionResourceItem {
|
|
61
61
|
*/
|
62
62
|
render() {
|
63
63
|
const hasValidResources = this._hasValidResources();
|
64
|
-
return (h(Host, { key: '
|
64
|
+
return (h(Host, { key: '3209042541d0df8440c8ae7b1564ddad9adb4466' }, h("div", { key: '11d0ad8b5ad181a4db7836e9f3f05fa3e79b924b', class: "resource-item" }, h("div", { key: '1b768c980d3679dd8ce0557cd24c18ab397cac16', class: "margin-bottom-1" }, h("calcite-button", { key: '33a827d3df40e68d985a0f6f8c9fdfb89b78ef25', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), h("calcite-button", { key: '22adce285d7eb9c5fb5a189b0bee43cd25eb89a3', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), h("div", { key: '20b41623ed7ab10202a5ea929b9ddd63b62d0c0e', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
65
65
|
}
|
66
66
|
_removedResources = {};
|
67
67
|
//--------------------------------------------------------------------------
|
@@ -61,7 +61,7 @@ export class SolutionSpatialRef {
|
|
61
61
|
}
|
62
62
|
render() {
|
63
63
|
this._updateUIFromStore();
|
64
|
-
return (h(Host, { key: '
|
64
|
+
return (h(Host, { key: 'd0ad66cff340a144e93356015f56b68d208a770a' }, h("label", { key: 'ab1e206b4ca0d4a9c8cd0e6ee3c5e145165966f6', class: "switch-label" }, h("calcite-switch", { key: 'ea8bc162371773ef36b709cd2662738dcf60a9dc', checked: this.enabled, class: "spatial-ref-switch", onCalciteSwitchChange: (event) => this.enabled = event.target.checked, scale: "m" }), this._translations.enableSpatialReference), h("br", { key: 'a085245ff9605523f532fb8483682fa54300d6c2' }), h("div", { key: '52a86a14efb23a1d56a092494760ab1c82bdf93c', class: "spatial-ref-component", id: "spatialRefDefn" }, this._renderFeatureServicesList(this.featureServices)), h("label", { key: '6b08cf7be83e71b7715cc1e7e7f4ca7193abc3ee', class: "switch-label spatial-ref-component" }, h("calcite-switch", { key: 'dd82b90b032c953f7ce18492d038a4090d3ef4b2', checked: this.enableDefault, class: "spatial-ref-switch", disabled: !this.enabled, onCalciteSwitchChange: (event) => this.enableDefault = event.target.checked, scale: "m" }), this._translations.enableDefaultSpatialReference)));
|
65
65
|
}
|
66
66
|
//--------------------------------------------------------------------------
|
67
67
|
//
|
@@ -77,7 +77,7 @@ export class SolutionTemplateData {
|
|
77
77
|
* Renders the component.
|
78
78
|
*/
|
79
79
|
render() {
|
80
|
-
return (h(Host, { key: '
|
80
|
+
return (h(Host, { key: '2ac01aadffbe8719d947d3258721a24e79c5827a' }, h("div", { key: '8576d2c273b557393ae9c959817c3a1803000ca6', class: "solution-data-container" }, h("calcite-shell", { key: '7962b2da3ebce8428119e95dee13a79fb06a71ca', class: "light var-container", dir: "ltr" }, h("calcite-panel", { key: '49c9e36a219e8f09431f88b7e698bd53bc538e43', class: "json-editor" }, h("div", { key: 'ef96fb9a8d9bced4a36dca4786b7c77f06bd3dc7', class: "solution-data-child-container calcite-match-height" }, h("json-editor", { key: 'f8e1662a22f6b36e0be929aec00c539508527a81', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, value: this.value }))), h("calcite-shell-panel", { key: '853f9c2df14fe53cc305b290cd1e5b9a8f694b4d', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, h("div", { key: '0bc3d510ba7dc9d4ca1339bf6d5fa1a52c249723', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, h("calcite-button", { key: '2c316175ebe7bdbd4911abbdd58c2bcac8c6e39c', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: 'e436c6dba30492a9eda496c4da41a7632cc03232', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, h("solution-organization-variables", { key: '4956e3bf41676ccf3dd0168f6f4f573f14927110', value: this.organizationVariables })), h("div", { key: '3376d0034d66f01cd78d01adf5653aeeca63b47f', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, h("solution-variables", { key: 'bb3978deedbe0a439d85d1bb7a8d26380e226dd7', value: this.solutionVariables }))))))));
|
81
81
|
}
|
82
82
|
_initializing = false;
|
83
83
|
//--------------------------------------------------------------------------
|
@@ -50,7 +50,7 @@ export class SolutionVariables {
|
|
50
50
|
* Renders the component.
|
51
51
|
*/
|
52
52
|
render() {
|
53
|
-
return (h(Host, { key: '
|
53
|
+
return (h(Host, { key: '207eba2b3a7c2ae6958bc253c50a30ba05e4ad53' }, h("div", { key: '258351a67b1ffac4ce9290bdbc7a15fe045e1cf8' }, h("h4", { key: 'e8b6c6ff6b78d2ee885f352069426a79e12a4376', class: "org-var-header" }, this._translations.solVariables)), h("div", { key: 'e68c85b552c5313300250d4e7a29aee50e3d070d', class: "container-border" }, h("calcite-tree", { key: '011383a8abb007bd6d7a59f6a7681f24fc32d3b0', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
54
54
|
}
|
55
55
|
//--------------------------------------------------------------------------
|
56
56
|
//
|
@@ -70,7 +70,7 @@ export class SpatialRef {
|
|
70
70
|
* Renders the component.
|
71
71
|
*/
|
72
72
|
render() {
|
73
|
-
return (h(Host, { key: '
|
73
|
+
return (h(Host, { key: '1f9d7ad0fe2043b7e950a59e6b10e1380c218a11' }, h("div", { key: 'f9e14494a1d2783c2d80bbe94d355e397674951b' }, h("calcite-input", { key: '3c2565f0c1f0bf8d7a4051969ca3bcb68a9107ce', disabled: this.disabled, id: "calcite-sr-search", onKeyUp: (evt) => this._searchInputKeyDown(evt), placeholder: this._translations.spatialReferencePlaceholder }), h("calcite-tree", { key: '7657240c433836340bc0767bb7e9206b75d0691d', id: "calcite-sr-tree", slot: "children" }, this._getTreeContent()))));
|
74
74
|
}
|
75
75
|
_lastHighlightedSref;
|
76
76
|
//--------------------------------------------------------------------------
|
@@ -37,6 +37,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
37
37
|
this.layer = undefined;
|
38
38
|
this.mapView = undefined;
|
39
39
|
this.zoomAndScrollToSelected = undefined;
|
40
|
+
this.selectedFeaturesIds = undefined;
|
40
41
|
this._cardLoading = false;
|
41
42
|
this._graphics = undefined;
|
42
43
|
this._translations = undefined;
|
@@ -62,12 +63,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
62
63
|
*/
|
63
64
|
async featureSelectionChange(evt) {
|
64
65
|
const ids = evt.detail;
|
65
|
-
this.
|
66
|
-
// only query if we have some ids...query with no ids will result in all features being returned
|
67
|
-
const featureSet = ids.length > 0 ? await queryFeaturesByID(ids, this.layer, [], false, this.mapView.spatialReference) : [];
|
68
|
-
// https://github.com/Esri/solutions-components/issues/365
|
69
|
-
this._graphics = featureSet.sort((a, b) => ids.indexOf(a.getObjectId()) - ids.indexOf(b.getObjectId()));
|
70
|
-
this._cardLoading = false;
|
66
|
+
this._graphics = await this._getFeaturesByIds(ids);
|
71
67
|
}
|
72
68
|
/**
|
73
69
|
* Get the layer view for the provided layer id
|
@@ -88,6 +84,9 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
88
84
|
*/
|
89
85
|
async componentWillLoad() {
|
90
86
|
await this._getTranslations();
|
87
|
+
if (this.selectedFeaturesIds?.length > 0) {
|
88
|
+
this._graphics = await this._getFeaturesByIds(this.selectedFeaturesIds);
|
89
|
+
}
|
91
90
|
}
|
92
91
|
/**
|
93
92
|
* Renders the component.
|
@@ -95,13 +94,25 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
95
94
|
render() {
|
96
95
|
const featuresClass = this._graphics?.length > 0 ? "" : "display-none";
|
97
96
|
const messageClass = this._graphics?.length > 0 ? "display-none" : "";
|
98
|
-
return (h(Host, { key: '
|
97
|
+
return (h(Host, { key: '0309205d485d9c7a5c558b3619a6c5ac03fcb528' }, h("div", { key: 'a5d291f6073b0e0a918573549c6eb29fe1d892dd', class: "overflow-auto height-full" }, h("calcite-shell", { key: '572b9cdf002e0c8c46e6c4bc5e2f1f8494228e93', class: "position-relative " + featuresClass }, h("div", { key: 'f8ba07deb9786d64f3d25011ff66ead43d809bf1' }, h("info-card", { key: '6eda3ab2cfa2e5fb948f5a7ddaeb6b9022aa5543', enableEditGeometry: this.enableEditGeometry, graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: 'f32d9cfe3a41bbd7d58cdc732c8abe99b232beb7', class: "position-relative " + messageClass }, h("div", { key: 'b97eb023c5d57a4a8dda09467d8599166da40f3c', class: "padding-1" }, h("calcite-notice", { key: '23a204782bd254909e3ab803a944d10004e4954a', icon: "table", open: true }, h("div", { key: 'ea25078647612b8fa40e26b4474a91c853dae126', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
99
98
|
}
|
100
99
|
//--------------------------------------------------------------------------
|
101
100
|
//
|
102
101
|
// Functions (protected)
|
103
102
|
//
|
104
103
|
//--------------------------------------------------------------------------
|
104
|
+
/**
|
105
|
+
* Gets the Feature using its ids
|
106
|
+
*
|
107
|
+
* @returns Promise when complete
|
108
|
+
* @protected
|
109
|
+
*/
|
110
|
+
async _getFeaturesByIds(ids) {
|
111
|
+
// only query if we have some ids...query with no ids will result in all features being returned
|
112
|
+
const featureSet = ids.length > 0 ? await queryFeaturesByID(ids, this.layer, [], false, this.mapView.spatialReference) : [];
|
113
|
+
// https://github.com/Esri/solutions-components/issues/365
|
114
|
+
return featureSet.sort((a, b) => ids.indexOf(a.getObjectId()) - ids.indexOf(b.getObjectId()));
|
115
|
+
}
|
105
116
|
/**
|
106
117
|
* Fetches the component's translations
|
107
118
|
*
|
@@ -116,9 +127,10 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
116
127
|
}, [0, "card-manager", {
|
117
128
|
"enableEditGeometry": [4, "enable-edit-geometry"],
|
118
129
|
"isMobile": [4, "is-mobile"],
|
119
|
-
"layer": [
|
130
|
+
"layer": [1040],
|
120
131
|
"mapView": [16],
|
121
132
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
133
|
+
"selectedFeaturesIds": [16],
|
122
134
|
"_cardLoading": [32],
|
123
135
|
"_graphics": [32],
|
124
136
|
"_translations": [32]
|