@esri/solutions-components 0.10.35 → 0.10.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -0
- package/dist/cjs/calcite-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/card-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/crowdsource-manager.cjs.entry.js +25 -29
- package/dist/cjs/{downloadUtils-20637f89.js → downloadUtils-76bc7e30.js} +6 -5
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/{index.es-a242cb45.js → index.es-8336efed.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{popupUtils-d477705b.js → popupUtils-bc762034.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +27 -29
- package/dist/collection/components/map-legend/map-legend.js +1 -0
- package/dist/collection/utils/downloadUtils.js +5 -3
- package/dist/collection/utils/downloadUtils.ts +6 -3
- package/dist/collection/utils/test/downloadUtils.spec.tsx +10 -12
- package/dist/components/crowdsource-manager.js +26 -29
- package/dist/components/downloadUtils.js +5 -4
- package/dist/components/map-legend2.js +1 -0
- package/dist/esm/basemap-gallery_7.entry.js +1 -0
- package/dist/esm/calcite-alert_5.entry.js +3 -3
- package/dist/esm/card-manager_3.entry.js +2 -2
- package/dist/esm/crowdsource-manager.entry.js +25 -29
- package/dist/esm/{downloadUtils-e266e98d.js → downloadUtils-bc7a4ba1.js} +6 -5
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/{index.es-c5f258e2.js → index.es-0d189a34.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{popupUtils-4570096e.js → popupUtils-03dc398a.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-cb3199f9.entry.js → p-04ab956c.entry.js} +1 -1
- package/dist/solutions-components/{p-a568af9f.js → p-6f606cdb.js} +1 -1
- package/dist/solutions-components/p-720de4db.entry.js +6 -0
- package/dist/solutions-components/p-97fe6ec5.entry.js +6 -0
- package/dist/solutions-components/{p-b4c49411.entry.js → p-9c4fef09.entry.js} +1 -1
- package/dist/solutions-components/{p-89046451.entry.js → p-aac0c89c.entry.js} +1 -1
- package/dist/solutions-components/p-cd482a33.js +21 -0
- package/dist/solutions-components/{p-b86b2664.entry.js → p-d2612c30.entry.js} +1 -1
- package/dist/solutions-components/{p-588adf13.entry.js → p-e345f9c4.entry.js} +1 -1
- package/dist/solutions-components/{p-46c8015c.js → p-ff9e28d1.js} +30 -30
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/downloadUtils.ts +6 -3
- package/dist/solutions-components/utils/test/downloadUtils.spec.tsx +10 -12
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -7
- package/package.json +2 -1
- package/dist/solutions-components/p-2360802a.js +0 -21
- package/dist/solutions-components/p-5eb9a413.entry.js +0 -6
- package/dist/solutions-components/p-ecf642c2.entry.js +0 -6
@@ -19,7 +19,7 @@ const interactive = require('./interactive-a128ac30.js');
|
|
19
19
|
const resources$1 = require('./resources-535f936c.js');
|
20
20
|
const locale$1 = require('./locale-339b55f0.js');
|
21
21
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
22
|
-
const popupUtils = require('./popupUtils-
|
22
|
+
const popupUtils = require('./popupUtils-bc762034.js');
|
23
23
|
require('./guid-e84a8375.js');
|
24
24
|
require('./resources-18f799c7.js');
|
25
25
|
require('./browser-333a21c5.js');
|
@@ -28,9 +28,9 @@ require('./observers-18d87cb5.js');
|
|
28
28
|
require('./esri-loader-08dc41bd.js');
|
29
29
|
require('./_commonjsHelpers-baf43783.js');
|
30
30
|
require('./interfaces-09c4c40e.js');
|
31
|
-
require('./downloadUtils-
|
32
|
-
require('./solution-resource-40e70253.js');
|
31
|
+
require('./downloadUtils-76bc7e30.js');
|
33
32
|
require('./index-f052f656.js');
|
33
|
+
require('./solution-resource-40e70253.js');
|
34
34
|
require('./restHelpersGet-5c2245a3.js');
|
35
35
|
|
36
36
|
/*!
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-4b68e4b4.js');
|
11
11
|
const locale = require('./locale-339b55f0.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
13
|
-
const downloadUtils = require('./downloadUtils-
|
13
|
+
const downloadUtils = require('./downloadUtils-76bc7e30.js');
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
16
|
require('./interfaces-09c4c40e.js');
|
17
|
-
require('./solution-resource-40e70253.js');
|
18
17
|
require('./index-f052f656.js');
|
18
|
+
require('./solution-resource-40e70253.js');
|
19
19
|
require('./restHelpersGet-5c2245a3.js');
|
20
20
|
|
21
21
|
const cardManagerCss = ":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";
|
@@ -135,6 +135,22 @@ const CrowdsourceManager = class {
|
|
135
135
|
// Watch handlers
|
136
136
|
//
|
137
137
|
//--------------------------------------------------------------------------
|
138
|
+
/**
|
139
|
+
* Adjust layout based on current appLayout value
|
140
|
+
*/
|
141
|
+
appLayoutWatchHandler(newAppLayout, oldAppLayout) {
|
142
|
+
if (newAppLayout !== oldAppLayout) {
|
143
|
+
this._setActiveLayout(newAppLayout);
|
144
|
+
// update the layer if table selected while switching to map view
|
145
|
+
if (this.appLayout === "mapView" && this._layer.isTable) {
|
146
|
+
void this._mapCard.updateLayer();
|
147
|
+
}
|
148
|
+
if (this._isMapViewOnLoad) {
|
149
|
+
void this._layerTable.refresh();
|
150
|
+
this._isMapViewOnLoad = false;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
138
154
|
/**
|
139
155
|
* When true the map zoom tools will be available
|
140
156
|
*/
|
@@ -203,7 +219,7 @@ const CrowdsourceManager = class {
|
|
203
219
|
layer && await layer.when(() => {
|
204
220
|
// on render if no layer is present and only one table is present in map and app is in map view layer then change it to split layout
|
205
221
|
if (this._layerIds.length === 0 && this.appLayout === 'mapView' && layer.isTable) {
|
206
|
-
this.
|
222
|
+
this.appLayout = "splitView";
|
207
223
|
}
|
208
224
|
this._layer = layer;
|
209
225
|
this._initLayerExpressions();
|
@@ -236,7 +252,7 @@ const CrowdsourceManager = class {
|
|
236
252
|
render() {
|
237
253
|
// only avoid border when we have a header color that is not white
|
238
254
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
239
|
-
return (index.h(index.Host, { key: '
|
255
|
+
return (index.h(index.Host, { key: 'ace73bfa1aa7d460f1cba60d13e94c4f47f77bd0' }, index.h("calcite-shell", { key: 'f14e70be762bf236be566111b45e40a42f0997f7', class: "position-relative" }, index.h("calcite-panel", { key: '0dde9426295a780b6a12cd98513f655914c0dab5', class: `width-full height-full ${borderClass}`, loading: this._isLoading }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter()), this._filterModal()));
|
240
256
|
}
|
241
257
|
/**
|
242
258
|
* Called after each render
|
@@ -469,10 +485,9 @@ const CrowdsourceManager = class {
|
|
469
485
|
const cardManagerHeight = isTableLayout && this.mapInfos?.length > 1 ? "adjusted-height-100-51" : isMapLayout || isTableLayout ? "height-full" : (this._numSelected > 0 && !this._isMobile) ? "height-50" : !this._showInformationHeader ? "adjusted-height-50_25" : !this._isPortraitMobile ? "height-50" : "height-full";
|
470
486
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
471
487
|
return (index.h("div", { class: `width-50 height-full ${themeClass}` }, index.h("card-manager", { class: `${cardManagerHeight} width-full`, customInfoText: this.customInfoText, enableCreateFeatures: this._enableCreateFeatures && !this._isMobile, enableEditGeometry: this?._mapInfo?.enableEditGeometry, isMobile: this._isPortraitMobile, layer: this._layer, mapView: this?._mapView, onBackFromCreateWorkFlow: () => {
|
472
|
-
this._changeLayout(this.appLayout);
|
473
488
|
this._showInformationHeader = true;
|
474
489
|
}, onCreateWorkFlowStarted: () => {
|
475
|
-
this.
|
490
|
+
this.appLayout = this._layer.isTable ? "tableView" : "mapView";
|
476
491
|
this._showInformationHeader = false;
|
477
492
|
}, onFeatureOrRecordSubmitted: () => void this._layerTable.refresh(), selectedFeaturesIds: this._layerTable?.selectedIds, selectingFeatureFromMap: this.appLayout === "mapView", zoomAndScrollToSelected: this.zoomAndScrollToSelected })));
|
478
493
|
}
|
@@ -510,7 +525,7 @@ const CrowdsourceManager = class {
|
|
510
525
|
const icon = this._getDividerIcon(layoutMode, panelOpen);
|
511
526
|
const tooltip = panelOpen ? this._translations.close : this._translations.open;
|
512
527
|
const id = "toggle-layout";
|
513
|
-
return (index.h(index.Fragment, null, index.h("calcite-action", { active: this.appLayout === 'splitView', class: "toggle-node", icon: "browser", id: "browser-action", onClick: () => { this.
|
528
|
+
return (index.h(index.Fragment, null, index.h("calcite-action", { active: this.appLayout === 'splitView', class: "toggle-node", icon: "browser", id: "browser-action", onClick: () => { this.appLayout = "splitView"; }, text: "" }), index.h("calcite-tooltip", { placement: "right", "reference-element": "browser-action" }, index.h("span", null, this._translations.splitView)), index.h("calcite-action", { active: this.appLayout === 'tableView', class: "toggle-node", icon: "dock-left", id: "dock-left-action", onClick: () => { this.appLayout = "tableView"; }, text: "" }), index.h("calcite-tooltip", { placement: "right", "reference-element": "dock-left-action" }, index.h("span", null, this._translations.tableView)), index.h("calcite-action", { active: this.appLayout === 'mapView', class: "toggle-node", disabled: this._layerIds?.length === 0, icon: "browser-map", id: "browser-map-action", onClick: () => { this.appLayout = "mapView"; }, text: "" }), index.h("calcite-tooltip", { placement: "right", "reference-element": "browser-map-action" }, index.h("span", null, this._translations.mapView)), index.h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), slot: "actions-end", text: "" }), index.h("calcite-tooltip", { placement: "bottom", "reference-element": id }, index.h("span", null, tooltip))));
|
514
529
|
}
|
515
530
|
/**
|
516
531
|
* Show filter component in modal
|
@@ -583,7 +598,7 @@ const CrowdsourceManager = class {
|
|
583
598
|
if (this._isMobile) {
|
584
599
|
this.showHideMapPopupAndTable(!this._isMobile);
|
585
600
|
this._isPortraitMobile = !!window.matchMedia("(orientation: portrait)").matches;
|
586
|
-
this.
|
601
|
+
this.appLayout = "splitView";
|
587
602
|
}
|
588
603
|
else {
|
589
604
|
this._isPortraitMobile = false;
|
@@ -599,34 +614,14 @@ const CrowdsourceManager = class {
|
|
599
614
|
_toggleLayout() {
|
600
615
|
this._panelOpen = !this._panelOpen;
|
601
616
|
}
|
602
|
-
/**
|
603
|
-
* Changes the layout mode
|
604
|
-
* @param appLayout selected active app layout
|
605
|
-
*
|
606
|
-
* @protected
|
607
|
-
*/
|
608
|
-
_changeLayout(appLayout) {
|
609
|
-
if (this.appLayout !== appLayout) {
|
610
|
-
this._setActiveLayout(appLayout);
|
611
|
-
this.appLayout = appLayout;
|
612
|
-
// update the layer if table selected while switching to map view
|
613
|
-
if (this.appLayout === "mapView" && this._layer.isTable) {
|
614
|
-
void this._mapCard.updateLayer();
|
615
|
-
}
|
616
|
-
if (this._isMapViewOnLoad) {
|
617
|
-
void this._layerTable.refresh();
|
618
|
-
this._isMapViewOnLoad = false;
|
619
|
-
}
|
620
|
-
}
|
621
|
-
}
|
622
617
|
/**
|
623
618
|
* shows the map in card view
|
624
619
|
*
|
625
620
|
* @protected
|
626
621
|
*/
|
627
622
|
_showMapInCardView() {
|
628
|
-
if (this.appLayout
|
629
|
-
const fullMapView = document.getElementById('full-map-view')
|
623
|
+
if (this.appLayout !== "mapView") {
|
624
|
+
const fullMapView = document.getElementById('full-map-view')?.childNodes[0];
|
630
625
|
const splitMapClass = document.getElementById('card-mapView');
|
631
626
|
if (fullMapView) {
|
632
627
|
splitMapClass.appendChild(fullMapView);
|
@@ -639,7 +634,7 @@ const CrowdsourceManager = class {
|
|
639
634
|
* @protected
|
640
635
|
*/
|
641
636
|
_showMapInFullView() {
|
642
|
-
const splitMap = document.getElementById('card-mapView')
|
637
|
+
const splitMap = document.getElementById('card-mapView')?.childNodes[0];
|
643
638
|
const fullMapViewClass = document.getElementById('full-map-view');
|
644
639
|
if (splitMap) {
|
645
640
|
fullMapViewClass.appendChild(splitMap);
|
@@ -724,6 +719,7 @@ const CrowdsourceManager = class {
|
|
724
719
|
this._translations = messages[0];
|
725
720
|
}
|
726
721
|
static get watchers() { return {
|
722
|
+
"appLayout": ["appLayoutWatchHandler"],
|
727
723
|
"enableZoom": ["enableZoomWatchHandler"],
|
728
724
|
"hideMapOnLoad": ["hideMapOnLoadWatchHandler"]
|
729
725
|
}; }
|
@@ -9,8 +9,8 @@ const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
|
|
9
9
|
const index = require('./index-4b68e4b4.js');
|
10
10
|
const locale = require('./locale-339b55f0.js');
|
11
11
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
12
|
+
const index$1 = require('./index-f052f656.js');
|
12
13
|
require('./solution-resource-40e70253.js');
|
13
|
-
require('./index-f052f656.js');
|
14
14
|
const restHelpersGet = require('./restHelpersGet-5c2245a3.js');
|
15
15
|
|
16
16
|
/** @license
|
@@ -1587,7 +1587,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1587
1587
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1588
1588
|
* ====================================================================
|
1589
1589
|
*/
|
1590
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1590
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-8336efed.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},
|
1591
1591
|
/** ====================================================================
|
1592
1592
|
* @license
|
1593
1593
|
* jsPDF XMP metadata plugin
|
@@ -2543,12 +2543,13 @@ function _cleanupLabel(labelText) {
|
|
2543
2543
|
labelText = labelText.replace(/<\/p>/gi, "");
|
2544
2544
|
// Replace \n with the line separator character
|
2545
2545
|
labelText = labelText.replace(/\n/gi, "|");
|
2546
|
-
// Remove
|
2546
|
+
// Remove tricky stuff
|
2547
|
+
const sanitizer = new index$1.Sanitizer();
|
2548
|
+
labelText = sanitizer.sanitize(labelText);
|
2549
|
+
// Remove remaining HTML tags, replace 0xA0 that popup uses for spaces, and replace
|
2547
2550
|
labelText = labelText
|
2548
2551
|
.replace(/<[\s.]*[^<>]*\/?>/gi, "")
|
2549
2552
|
.replace(/\xA0/gi, " ")
|
2550
|
-
.replace(/</gi, "<")
|
2551
|
-
.replace(/>/gi, ">")
|
2552
2553
|
.replace(/ /gi, " ");
|
2553
2554
|
// Trim each line
|
2554
2555
|
labelText = labelText.replace(/\s*\|\s*/g, "|");
|
@@ -9,13 +9,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-4b68e4b4.js');
|
11
11
|
const locale = require('./locale-339b55f0.js');
|
12
|
-
const popupUtils = require('./popupUtils-
|
12
|
+
const popupUtils = require('./popupUtils-bc762034.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-18c46b84.js');
|
14
14
|
require('./esri-loader-08dc41bd.js');
|
15
15
|
require('./_commonjsHelpers-baf43783.js');
|
16
|
-
require('./downloadUtils-
|
17
|
-
require('./solution-resource-40e70253.js');
|
16
|
+
require('./downloadUtils-76bc7e30.js');
|
18
17
|
require('./index-f052f656.js');
|
18
|
+
require('./solution-resource-40e70253.js');
|
19
19
|
require('./restHelpersGet-5c2245a3.js');
|
20
20
|
require('./interfaces-09c4c40e.js');
|
21
21
|
|
@@ -6,14 +6,14 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-baf43783.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-76bc7e30.js');
|
10
10
|
require('./index-4b68e4b4.js');
|
11
11
|
require('./locale-339b55f0.js');
|
12
12
|
require('./esri-loader-08dc41bd.js');
|
13
13
|
require('./mapViewUtils-18c46b84.js');
|
14
14
|
require('./interfaces-09c4c40e.js');
|
15
|
-
require('./solution-resource-40e70253.js');
|
16
15
|
require('./index-f052f656.js');
|
16
|
+
require('./solution-resource-40e70253.js');
|
17
17
|
require('./restHelpersGet-5c2245a3.js');
|
18
18
|
|
19
19
|
var check = function (it) {
|