@esri/solutions-components 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -3
- package/dist/cjs/{downloadUtils-34a515ad.js → downloadUtils-121fd7ff.js} +2 -2
- package/dist/cjs/edit-card_2.cjs.entry.js +1 -1
- package/dist/cjs/{index.es-0ba11065.js → index.es-5c0c137a.js} +2 -2
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-a2884698.js → mapViewUtils-786a219b.js} +32 -19
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +2 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -2
- package/dist/collection/components/edit-card/edit-card.css +4 -0
- package/dist/collection/utils/mapViewUtils.js +32 -19
- package/dist/collection/utils/mapViewUtils.ts +43 -20
- package/dist/components/crowdsource-manager.js +3 -3
- package/dist/components/edit-card2.js +1 -1
- package/dist/components/mapViewUtils.js +32 -19
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +3 -3
- package/dist/esm/{downloadUtils-ac67a786.js → downloadUtils-287994b1.js} +2 -2
- package/dist/esm/edit-card_2.entry.js +1 -1
- package/dist/esm/{index.es-f553598f.js → index.es-a3f8409f.js} +2 -2
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-8141d8c1.js → mapViewUtils-8bfabd80.js} +32 -19
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/solutions-components/{p-9f11a403.entry.js → p-3c5c1487.entry.js} +1 -1
- package/dist/solutions-components/p-41bbccbc.entry.js +6 -0
- package/dist/solutions-components/{p-a26711e8.js → p-469c8f8a.js} +1 -1
- package/dist/solutions-components/p-4f2fce86.entry.js +6 -0
- package/dist/solutions-components/p-53bc5fc1.js +36 -0
- package/dist/solutions-components/{p-c8d0ce92.js → p-698c6a56.js} +2 -2
- package/dist/solutions-components/{p-b9d29f30.entry.js → p-734cb206.entry.js} +1 -1
- package/dist/solutions-components/{p-57cf6784.entry.js → p-d22be647.entry.js} +1 -1
- package/dist/solutions-components/{p-99f1a767.entry.js → p-dda517b9.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +43 -20
- package/package.json +1 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/solutions-components/p-07d7e11f.entry.js +0 -6
- package/dist/solutions-components/p-16362eb4.js +0 -36
- package/dist/solutions-components/p-4dbe8337.entry.js +0 -6
@@ -25,7 +25,7 @@ const debounce = require('./debounce-30afab47.js');
|
|
25
25
|
const conditionalSlot = require('./conditionalSlot-c989690a.js');
|
26
26
|
const key = require('./key-07312a4b.js');
|
27
27
|
const locale$1 = require('./locale-67f5f6b6.js');
|
28
|
-
const mapViewUtils = require('./mapViewUtils-
|
28
|
+
const mapViewUtils = require('./mapViewUtils-786a219b.js');
|
29
29
|
const publicNotificationStore = require('./publicNotificationStore-610bd880.js');
|
30
30
|
require('./resources-2278b321.js');
|
31
31
|
require('./browser-596d8e1e.js');
|
@@ -9,9 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-ee37804b.js');
|
11
11
|
const locale = require('./locale-67f5f6b6.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-786a219b.js');
|
13
13
|
const loadModules = require('./loadModules-f6df8d6a.js');
|
14
|
-
const downloadUtils = require('./downloadUtils-
|
14
|
+
const downloadUtils = require('./downloadUtils-121fd7ff.js');
|
15
15
|
require('./_commonjsHelpers-384729db.js');
|
16
16
|
require('./interfaces-000be6de.js');
|
17
17
|
require('./clean-url-d5326abb.js');
|
@@ -12,7 +12,7 @@ const locale = require('./locale-67f5f6b6.js');
|
|
12
12
|
const interfaces = require('./interfaces-000be6de.js');
|
13
13
|
require('./_commonjsHelpers-384729db.js');
|
14
14
|
|
15
|
-
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-
|
15
|
+
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}";
|
16
16
|
|
17
17
|
const CrowdsourceManager = class {
|
18
18
|
constructor(hostRef) {
|
@@ -240,7 +240,7 @@ const CrowdsourceManager = class {
|
|
240
240
|
const mapDisplayClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "display-flex height-full width-1-2" :
|
241
241
|
layoutMode === interfaces.ELayoutMode.GRID && !hideMap ? "" : "display-none";
|
242
242
|
const mapContainerClass = this.classicGrid && layoutMode === interfaces.ELayoutMode.GRID ? "width-full" : this._expandPopup ? "height-50-px" : "adjusted-height-50";
|
243
|
-
return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos })));
|
243
|
+
return (index.h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, index.h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos.filter(mapInfo => mapInfo.visible !== false) })));
|
244
244
|
}
|
245
245
|
/**
|
246
246
|
* Get the expand node for the popup information
|
@@ -252,7 +252,7 @@ const CrowdsourceManager = class {
|
|
252
252
|
const icon = this._expandPopup ? "chevrons-down" : "chevrons-up";
|
253
253
|
const id = "expand-popup";
|
254
254
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
255
|
-
return (index.h("div", { class: "height-49-px calcite-mode-dark" }, index.h("calcite-panel", null, index.h("div", { class: "display-flex align-items-center", slot: "header-content" }, index.h("calcite-icon", {
|
255
|
+
return (index.h("div", { class: "height-49-px calcite-mode-dark" }, index.h("calcite-panel", null, index.h("div", { class: "display-flex align-items-center", slot: "header-content" }, index.h("calcite-icon", { icon: "information", scale: "s" }), index.h("div", { class: "padding-inline-start-75" }, this._translations.information)), index.h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), index.h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, index.h("span", null, tooltip)))));
|
256
256
|
}
|
257
257
|
/**
|
258
258
|
* Toggle the popup information
|
@@ -8,7 +8,7 @@
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
9
|
const index = require('./index-ee37804b.js');
|
10
10
|
const loadModules = require('./loadModules-f6df8d6a.js');
|
11
|
-
const mapViewUtils = require('./mapViewUtils-
|
11
|
+
const mapViewUtils = require('./mapViewUtils-786a219b.js');
|
12
12
|
const cleanUrl = require('./clean-url-d5326abb.js');
|
13
13
|
|
14
14
|
/** @license
|
@@ -1508,7 +1508,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1508
1508
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1509
1509
|
* ====================================================================
|
1510
1510
|
*/
|
1511
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1511
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-5c0c137a.js'); })).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
1512
1512
|
/** ====================================================================
|
1513
1513
|
* @license
|
1514
1514
|
* jsPDF XMP metadata plugin
|
@@ -12,7 +12,7 @@ const loadModules = require('./loadModules-f6df8d6a.js');
|
|
12
12
|
const locale = require('./locale-67f5f6b6.js');
|
13
13
|
require('./_commonjsHelpers-384729db.js');
|
14
14
|
|
15
|
-
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-ui-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.esri-feature-relationship__list{border-top:1px solid var(--calcite-ui-border-3)}.esri-feature-form__related-records_list{border-top:1px solid var(--calcite-ui-border-3)}";
|
15
|
+
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-ui-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.esri-feature-relationship__list{border-top:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);margin-top:12px}.esri-feature-form__related-records_list{border-top:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);margin-top:12px}";
|
16
16
|
|
17
17
|
const EditCard = class {
|
18
18
|
constructor(hostRef) {
|
@@ -6,11 +6,11 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-121fd7ff.js');
|
10
10
|
require('./index-ee37804b.js');
|
11
11
|
require('./loadModules-f6df8d6a.js');
|
12
12
|
require('./locale-67f5f6b6.js');
|
13
|
-
require('./mapViewUtils-
|
13
|
+
require('./mapViewUtils-786a219b.js');
|
14
14
|
require('./interfaces-000be6de.js');
|
15
15
|
require('./clean-url-d5326abb.js');
|
16
16
|
|
@@ -9,11 +9,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-ee37804b.js');
|
11
11
|
const loadModules = require('./loadModules-f6df8d6a.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-786a219b.js');
|
13
13
|
const interfaces = require('./interfaces-000be6de.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-610bd880.js');
|
15
15
|
const locale = require('./locale-67f5f6b6.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-121fd7ff.js');
|
17
17
|
require('./index-feeb7b6a.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./clean-url-d5326abb.js');
|
@@ -197,16 +197,7 @@ async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
|
|
197
197
|
return prev;
|
198
198
|
}, {});
|
199
199
|
});
|
200
|
-
return onlyShowUpdatableLayers
|
201
|
-
const layer = await getLayerOrTable(mapView, cur);
|
202
|
-
await layer.when(() => {
|
203
|
-
prev[cur] = {
|
204
|
-
name: layerHash[cur].name,
|
205
|
-
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
206
|
-
};
|
207
|
-
});
|
208
|
-
return prev;
|
209
|
-
}, {}) : layerHash;
|
200
|
+
return _getFinalHash(onlyShowUpdatableLayers, layerHash, mapView);
|
210
201
|
}
|
211
202
|
/**
|
212
203
|
* Gets the table names from the current map
|
@@ -228,15 +219,37 @@ async function getMapTableHash(mapView, onlyShowUpdatableTables) {
|
|
228
219
|
return prev;
|
229
220
|
}, {});
|
230
221
|
});
|
231
|
-
return onlyShowUpdatableTables
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
222
|
+
return _getFinalHash(onlyShowUpdatableTables, tableHash, mapView);
|
223
|
+
}
|
224
|
+
/**
|
225
|
+
* Get the final hash
|
226
|
+
*
|
227
|
+
* @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
|
228
|
+
* @param hash IMapItemHash key: layer id, values: name, supportsUpdate
|
229
|
+
* @param mapView the map view to fetch the layer from
|
230
|
+
*
|
231
|
+
* @returns Promise resolving with IMapItemHash
|
232
|
+
*
|
233
|
+
*/
|
234
|
+
async function _getFinalHash(onlyShowUpdatable, hash, mapView) {
|
235
|
+
if (onlyShowUpdatable) {
|
236
|
+
const editableHash = {};
|
237
|
+
const keys = Object.keys(hash);
|
238
|
+
for (let i = 0; i < keys.length; i++) {
|
239
|
+
const id = keys[i];
|
240
|
+
const layer = await getLayerOrTable(mapView, id);
|
241
|
+
await layer.load();
|
242
|
+
await layer.when();
|
243
|
+
editableHash[id] = {
|
244
|
+
name: hash[id].name,
|
245
|
+
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
246
|
+
};
|
247
|
+
}
|
248
|
+
return editableHash;
|
249
|
+
}
|
250
|
+
else {
|
251
|
+
return hash;
|
252
|
+
}
|
240
253
|
}
|
241
254
|
/**
|
242
255
|
* Get a layer view by id
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-ee37804b.js');
|
11
11
|
const interfaces = require('./interfaces-000be6de.js');
|
12
12
|
const loadModules = require('./loadModules-f6df8d6a.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-786a219b.js');
|
14
14
|
const publicNotificationStore = require('./publicNotificationStore-610bd880.js');
|
15
15
|
const locale = require('./locale-67f5f6b6.js');
|
16
|
-
const downloadUtils = require('./downloadUtils-
|
16
|
+
const downloadUtils = require('./downloadUtils-121fd7ff.js');
|
17
17
|
require('./index-feeb7b6a.js');
|
18
18
|
require('./_commonjsHelpers-384729db.js');
|
19
19
|
require('./clean-url-d5326abb.js');
|
@@ -246,7 +246,7 @@ export class CrowdsourceManager {
|
|
246
246
|
const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
|
247
247
|
layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
|
248
248
|
const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : this._expandPopup ? "height-50-px" : "adjusted-height-50";
|
249
|
-
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos })));
|
249
|
+
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos.filter(mapInfo => mapInfo.visible !== false) })));
|
250
250
|
}
|
251
251
|
/**
|
252
252
|
* Get the expand node for the popup information
|
@@ -258,7 +258,7 @@ export class CrowdsourceManager {
|
|
258
258
|
const icon = this._expandPopup ? "chevrons-down" : "chevrons-up";
|
259
259
|
const id = "expand-popup";
|
260
260
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
261
|
-
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", {
|
261
|
+
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information)), h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)))));
|
262
262
|
}
|
263
263
|
/**
|
264
264
|
* Toggle the popup information
|
@@ -63,8 +63,12 @@
|
|
63
63
|
|
64
64
|
.esri-feature-relationship__list {
|
65
65
|
border-top: 1px solid var(--calcite-ui-border-3);
|
66
|
+
border-bottom: 1px solid var(--calcite-ui-border-3);
|
67
|
+
margin-top: 12px;
|
66
68
|
}
|
67
69
|
|
68
70
|
.esri-feature-form__related-records_list {
|
69
71
|
border-top: 1px solid var(--calcite-ui-border-3);
|
72
|
+
border-bottom: 1px solid var(--calcite-ui-border-3);
|
73
|
+
margin-top: 12px;
|
70
74
|
}
|
@@ -42,16 +42,7 @@ export async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
|
|
42
42
|
return prev;
|
43
43
|
}, {});
|
44
44
|
});
|
45
|
-
return onlyShowUpdatableLayers
|
46
|
-
const layer = await getLayerOrTable(mapView, cur);
|
47
|
-
await layer.when(() => {
|
48
|
-
prev[cur] = {
|
49
|
-
name: layerHash[cur].name,
|
50
|
-
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
51
|
-
};
|
52
|
-
});
|
53
|
-
return prev;
|
54
|
-
}, {}) : layerHash;
|
45
|
+
return _getFinalHash(onlyShowUpdatableLayers, layerHash, mapView);
|
55
46
|
}
|
56
47
|
/**
|
57
48
|
* Gets the table names from the current map
|
@@ -73,15 +64,37 @@ export async function getMapTableHash(mapView, onlyShowUpdatableTables) {
|
|
73
64
|
return prev;
|
74
65
|
}, {});
|
75
66
|
});
|
76
|
-
return onlyShowUpdatableTables
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
67
|
+
return _getFinalHash(onlyShowUpdatableTables, tableHash, mapView);
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* Get the final hash
|
71
|
+
*
|
72
|
+
* @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
|
73
|
+
* @param hash IMapItemHash key: layer id, values: name, supportsUpdate
|
74
|
+
* @param mapView the map view to fetch the layer from
|
75
|
+
*
|
76
|
+
* @returns Promise resolving with IMapItemHash
|
77
|
+
*
|
78
|
+
*/
|
79
|
+
async function _getFinalHash(onlyShowUpdatable, hash, mapView) {
|
80
|
+
if (onlyShowUpdatable) {
|
81
|
+
const editableHash = {};
|
82
|
+
const keys = Object.keys(hash);
|
83
|
+
for (let i = 0; i < keys.length; i++) {
|
84
|
+
const id = keys[i];
|
85
|
+
const layer = await getLayerOrTable(mapView, id);
|
86
|
+
await layer.load();
|
87
|
+
await layer.when();
|
88
|
+
editableHash[id] = {
|
89
|
+
name: hash[id].name,
|
90
|
+
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
91
|
+
};
|
92
|
+
}
|
93
|
+
return editableHash;
|
94
|
+
}
|
95
|
+
else {
|
96
|
+
return hash;
|
97
|
+
}
|
85
98
|
}
|
86
99
|
/**
|
87
100
|
* Get a layer view by id
|
@@ -42,17 +42,11 @@ export async function getMapLayerHash(
|
|
42
42
|
return prev;
|
43
43
|
}, {});
|
44
44
|
});
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
name: layerHash[cur].name,
|
51
|
-
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
52
|
-
};
|
53
|
-
});
|
54
|
-
return prev;
|
55
|
-
}, {}) : layerHash;
|
45
|
+
return _getFinalHash(
|
46
|
+
onlyShowUpdatableLayers,
|
47
|
+
layerHash,
|
48
|
+
mapView
|
49
|
+
);
|
56
50
|
}
|
57
51
|
|
58
52
|
/**
|
@@ -78,16 +72,45 @@ export async function getMapTableHash(
|
|
78
72
|
return prev;
|
79
73
|
}, {});
|
80
74
|
});
|
75
|
+
return _getFinalHash(
|
76
|
+
onlyShowUpdatableTables,
|
77
|
+
tableHash,
|
78
|
+
mapView
|
79
|
+
);
|
80
|
+
}
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
82
|
+
/**
|
83
|
+
* Get the final hash
|
84
|
+
*
|
85
|
+
* @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
|
86
|
+
* @param hash IMapItemHash key: layer id, values: name, supportsUpdate
|
87
|
+
* @param mapView the map view to fetch the layer from
|
88
|
+
*
|
89
|
+
* @returns Promise resolving with IMapItemHash
|
90
|
+
*
|
91
|
+
*/
|
92
|
+
async function _getFinalHash(
|
93
|
+
onlyShowUpdatable: boolean,
|
94
|
+
hash: IMapItemHash,
|
95
|
+
mapView: __esri.MapView
|
96
|
+
): Promise<IMapItemHash> {
|
97
|
+
if (onlyShowUpdatable) {
|
98
|
+
const editableHash = {};
|
99
|
+
const keys = Object.keys(hash);
|
100
|
+
for (let i = 0; i < keys.length; i++) {
|
101
|
+
const id = keys[i];
|
102
|
+
const layer = await getLayerOrTable(mapView, id);
|
103
|
+
await layer.load();
|
104
|
+
await layer.when();
|
105
|
+
editableHash[id] = {
|
106
|
+
name: hash[id].name,
|
107
|
+
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
108
|
+
};
|
109
|
+
}
|
110
|
+
return editableHash;
|
111
|
+
} else {
|
112
|
+
return hash;
|
113
|
+
}
|
91
114
|
}
|
92
115
|
|
93
116
|
/**
|
@@ -49,7 +49,7 @@ import { d as defineCustomElement$4 } from './map-picker2.js';
|
|
49
49
|
import { d as defineCustomElement$3 } from './map-search2.js';
|
50
50
|
import { d as defineCustomElement$2 } from './map-tools2.js';
|
51
51
|
|
52
|
-
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-
|
52
|
+
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}";
|
53
53
|
|
54
54
|
const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceManager extends HTMLElement {
|
55
55
|
constructor() {
|
@@ -278,7 +278,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
278
278
|
const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
|
279
279
|
layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
|
280
280
|
const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : this._expandPopup ? "height-50-px" : "adjusted-height-50";
|
281
|
-
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos })));
|
281
|
+
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos.filter(mapInfo => mapInfo.visible !== false) })));
|
282
282
|
}
|
283
283
|
/**
|
284
284
|
* Get the expand node for the popup information
|
@@ -290,7 +290,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
290
290
|
const icon = this._expandPopup ? "chevrons-down" : "chevrons-up";
|
291
291
|
const id = "expand-popup";
|
292
292
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
293
|
-
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", {
|
293
|
+
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information)), h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)))));
|
294
294
|
}
|
295
295
|
/**
|
296
296
|
* Toggle the popup information
|
@@ -9,7 +9,7 @@ import { g as getLocaleComponentStrings } from './locale.js';
|
|
9
9
|
import { d as defineCustomElement$2 } from './icon.js';
|
10
10
|
import { d as defineCustomElement$1 } from './notice.js';
|
11
11
|
|
12
|
-
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-ui-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.esri-feature-relationship__list{border-top:1px solid var(--calcite-ui-border-3)}.esri-feature-form__related-records_list{border-top:1px solid var(--calcite-ui-border-3)}";
|
12
|
+
const editCardCss = ":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{--calcite-ui-background:none;padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-ui-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-ui-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.esri-feature-relationship__list{border-top:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);margin-top:12px}.esri-feature-form__related-records_list{border-top:1px solid var(--calcite-ui-border-3);border-bottom:1px solid var(--calcite-ui-border-3);margin-top:12px}";
|
13
13
|
|
14
14
|
const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLElement {
|
15
15
|
constructor() {
|
@@ -43,16 +43,7 @@ async function getMapLayerHash(mapView, onlyShowUpdatableLayers) {
|
|
43
43
|
return prev;
|
44
44
|
}, {});
|
45
45
|
});
|
46
|
-
return onlyShowUpdatableLayers
|
47
|
-
const layer = await getLayerOrTable(mapView, cur);
|
48
|
-
await layer.when(() => {
|
49
|
-
prev[cur] = {
|
50
|
-
name: layerHash[cur].name,
|
51
|
-
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
52
|
-
};
|
53
|
-
});
|
54
|
-
return prev;
|
55
|
-
}, {}) : layerHash;
|
46
|
+
return _getFinalHash(onlyShowUpdatableLayers, layerHash, mapView);
|
56
47
|
}
|
57
48
|
/**
|
58
49
|
* Gets the table names from the current map
|
@@ -74,15 +65,37 @@ async function getMapTableHash(mapView, onlyShowUpdatableTables) {
|
|
74
65
|
return prev;
|
75
66
|
}, {});
|
76
67
|
});
|
77
|
-
return onlyShowUpdatableTables
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
68
|
+
return _getFinalHash(onlyShowUpdatableTables, tableHash, mapView);
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Get the final hash
|
72
|
+
*
|
73
|
+
* @param onlyShowUpdatable boolean when true only layers that support editing and the update capability will be returned
|
74
|
+
* @param hash IMapItemHash key: layer id, values: name, supportsUpdate
|
75
|
+
* @param mapView the map view to fetch the layer from
|
76
|
+
*
|
77
|
+
* @returns Promise resolving with IMapItemHash
|
78
|
+
*
|
79
|
+
*/
|
80
|
+
async function _getFinalHash(onlyShowUpdatable, hash, mapView) {
|
81
|
+
if (onlyShowUpdatable) {
|
82
|
+
const editableHash = {};
|
83
|
+
const keys = Object.keys(hash);
|
84
|
+
for (let i = 0; i < keys.length; i++) {
|
85
|
+
const id = keys[i];
|
86
|
+
const layer = await getLayerOrTable(mapView, id);
|
87
|
+
await layer.load();
|
88
|
+
await layer.when();
|
89
|
+
editableHash[id] = {
|
90
|
+
name: hash[id].name,
|
91
|
+
supportsUpdate: layer.editingEnabled && layer.capabilities.operations.supportsUpdate
|
92
|
+
};
|
93
|
+
}
|
94
|
+
return editableHash;
|
95
|
+
}
|
96
|
+
else {
|
97
|
+
return hash;
|
98
|
+
}
|
86
99
|
}
|
87
100
|
/**
|
88
101
|
* Get a layer view by id
|
@@ -21,7 +21,7 @@ import { d as debounce } from './debounce-229b1a22.js';
|
|
21
21
|
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-1fee63c6.js';
|
22
22
|
import { i as isActivationKey } from './key-554ad3f4.js';
|
23
23
|
import { g as getLocaleComponentStrings } from './locale-9624832c.js';
|
24
|
-
import { k as getMapLayerHash, l as getMapTableHash } from './mapViewUtils-
|
24
|
+
import { k as getMapLayerHash, l as getMapTableHash } from './mapViewUtils-8bfabd80.js';
|
25
25
|
import { s as state } from './publicNotificationStore-dcf39a55.js';
|
26
26
|
import './resources-4d5cdf35.js';
|
27
27
|
import './browser-2ab8d297.js';
|
@@ -5,9 +5,9 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-c7de2486.js';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale-9624832c.js';
|
8
|
-
import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds } from './mapViewUtils-
|
8
|
+
import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds } from './mapViewUtils-8bfabd80.js';
|
9
9
|
import { l as loadModules } from './loadModules-2880c7e3.js';
|
10
|
-
import { d as downloadCSV } from './downloadUtils-
|
10
|
+
import { d as downloadCSV } from './downloadUtils-287994b1.js';
|
11
11
|
import './_commonjsHelpers-d5f9d613.js';
|
12
12
|
import './interfaces-7470d906.js';
|
13
13
|
import './clean-url-bce022e6.js';
|
@@ -8,7 +8,7 @@ import { g as getLocaleComponentStrings } from './locale-9624832c.js';
|
|
8
8
|
import { E as ELayoutMode } from './interfaces-7470d906.js';
|
9
9
|
import './_commonjsHelpers-d5f9d613.js';
|
10
10
|
|
11
|
-
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-
|
11
|
+
const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-ui-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-49-px{height:49px}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}";
|
12
12
|
|
13
13
|
const CrowdsourceManager = class {
|
14
14
|
constructor(hostRef) {
|
@@ -236,7 +236,7 @@ const CrowdsourceManager = class {
|
|
236
236
|
const mapDisplayClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "display-flex height-full width-1-2" :
|
237
237
|
layoutMode === ELayoutMode.GRID && !hideMap ? "" : "display-none";
|
238
238
|
const mapContainerClass = this.classicGrid && layoutMode === ELayoutMode.GRID ? "width-full" : this._expandPopup ? "height-50-px" : "adjusted-height-50";
|
239
|
-
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos })));
|
239
|
+
return (h("div", { class: `${mapContainerClass} overflow-hidden ${mapDisplayClass}` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", enableBasemap: this.enableBasemap, enableFullscreen: this.enableFullscreen, enableLegend: this.enableLegend, enableSearch: this.enableSearch, mapInfos: this.mapInfos.filter(mapInfo => mapInfo.visible !== false) })));
|
240
240
|
}
|
241
241
|
/**
|
242
242
|
* Get the expand node for the popup information
|
@@ -248,7 +248,7 @@ const CrowdsourceManager = class {
|
|
248
248
|
const icon = this._expandPopup ? "chevrons-down" : "chevrons-up";
|
249
249
|
const id = "expand-popup";
|
250
250
|
const tooltip = this._expandPopup ? this._translations.collapsePopup : this._translations.expandPopup;
|
251
|
-
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", {
|
251
|
+
return (h("div", { class: "height-49-px calcite-mode-dark" }, h("calcite-panel", null, h("div", { class: "display-flex align-items-center", slot: "header-content" }, h("calcite-icon", { icon: "information", scale: "s" }), h("div", { class: "padding-inline-start-75" }, this._translations.information)), h("calcite-action", { class: "height-49-px", icon: icon, id: id, onClick: () => this._togglePopup(), slot: "header-actions-end" }), h("calcite-tooltip", { label: "", placement: "bottom", "reference-element": id }, h("span", null, tooltip)))));
|
252
252
|
}
|
253
253
|
/**
|
254
254
|
* Toggle the popup information
|