@esri/solutions-components 0.8.22 → 0.8.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -11
- package/dist/cjs/{calcite-avatar.cjs.entry.js → calcite-avatar_2.cjs.entry.js} +62 -0
- package/dist/cjs/calcite-block_5.cjs.entry.js +12 -3
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +419 -0
- package/dist/cjs/{calcite-dropdown_4.cjs.entry.js → calcite-dropdown_2.cjs.entry.js} +12 -435
- package/dist/cjs/calcite-flow_6.cjs.entry.js +25 -29
- package/dist/cjs/card-manager_3.cjs.entry.js +9 -3
- package/dist/cjs/crowdsource-manager.cjs.entry.js +12 -4
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +57 -37
- package/dist/cjs/{downloadUtils-2e36a300.js → downloadUtils-5349717a.js} +2 -1
- package/dist/cjs/feature-list.cjs.entry.js +11 -6
- package/dist/cjs/{helpers-9347ad83.js → helpers-618a3f7d.js} +2 -1
- package/dist/cjs/{index.es-56415e48.js → index.es-aa69b58b.js} +1 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +266 -0
- package/dist/cjs/instant-apps-export.cjs.entry.js +31 -16
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +11 -4
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +45 -9
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +168 -0
- package/dist/cjs/{languageSwitcher-395021d6.js → languageSwitcher-b9a1485c.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{popupUtils-500c1544.js → popupUtils-3e65296c.js} +17 -2
- package/dist/cjs/public-notification.cjs.entry.js +4 -4
- package/dist/cjs/resources-fa37e40f.js +26 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/arcgis-login/arcgis-login.js +1 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +1 -1
- package/dist/collection/components/create-related-feature/create-related-feature.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +30 -8
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +57 -46
- package/dist/collection/components/feature-details/feature-details.css +2 -2
- package/dist/collection/components/feature-details/feature-details.js +56 -13
- package/dist/collection/components/feature-list/feature-list.css +1 -1
- package/dist/collection/components/feature-list/feature-list.js +23 -4
- package/dist/collection/components/info-card/info-card.js +7 -27
- package/dist/collection/components/layer-list/layer-list.js +7 -14
- package/dist/collection/components/layer-table/layer-table.js +7 -1
- package/dist/collection/components/public-notification/public-notification.js +3 -3
- package/dist/collection/demos/crowdsource-manager.html +10 -2
- package/dist/collection/demos/crowdsource-reporter.html +22 -15
- package/dist/collection/utils/interfaces.ts +1 -0
- package/dist/collection/utils/popupUtils.js +17 -2
- package/dist/collection/utils/popupUtils.ts +23 -3
- package/dist/components/arcgis-login.js +1 -1
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -99
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/consent-manager.js +1 -1
- package/dist/components/create-feature2.js +1 -1
- package/dist/components/create-related-feature2.js +1 -1
- package/dist/components/crowdsource-manager.js +13 -5
- package/dist/components/crowdsource-reporter.js +58 -38
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/esri-loader.js +1 -1
- package/dist/components/feature-details2.js +17 -13
- package/dist/components/feature-list2.js +7 -5
- package/dist/components/helpers.js +3 -2
- package/dist/components/html2canvas.js +1 -1
- package/dist/components/index.es.js +2 -2
- package/dist/components/info-card2.js +7 -11
- package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
- package/dist/components/instant-apps-create.js +317 -0
- package/dist/components/instant-apps-export.js +32 -16
- package/dist/components/instant-apps-filter-list2.js +6 -1
- package/dist/components/instant-apps-header2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-classic2.js +13 -6
- package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +2 -2
- package/dist/components/instant-apps-landing-page.js +91 -16
- package/dist/components/instant-apps-language-translator2.js +3 -1
- package/dist/components/instant-apps-sign-in.js +11 -0
- package/dist/components/instant-apps-sign-in2.js +243 -0
- package/dist/components/instant-apps-social-share2.js +8 -2
- package/dist/components/layer-list2.js +7 -14
- package/dist/components/layer-table2.js +7 -1
- package/dist/{esm/calcite-navigation-user.entry.js → components/navigation-user.js} +46 -9
- package/dist/components/popupUtils.js +17 -2
- package/dist/components/public-notification.js +3 -3
- package/dist/components/purify.js +1 -1
- package/dist/components/solution-resource.js +1 -1
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +1 -1
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +12 -11
- package/dist/esm/{calcite-avatar.entry.js → calcite-avatar_2.entry.js} +64 -3
- package/dist/esm/calcite-block_5.entry.js +12 -3
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +1 -1
- package/dist/esm/calcite-dropdown-group_2.entry.js +414 -0
- package/dist/esm/{calcite-dropdown_4.entry.js → calcite-dropdown_2.entry.js} +2 -423
- package/dist/esm/calcite-flow_6.entry.js +25 -29
- package/dist/esm/card-manager_3.entry.js +9 -3
- package/dist/esm/crowdsource-manager.entry.js +12 -4
- package/dist/esm/crowdsource-reporter.entry.js +57 -37
- package/dist/esm/{downloadUtils-aab31bfe.js → downloadUtils-5fa0d437.js} +2 -2
- package/dist/esm/feature-list.entry.js +11 -6
- package/dist/esm/{helpers-a5a81b9d.js → helpers-61b05164.js} +3 -2
- package/dist/esm/{index.es-43ba3006.js → index.es-57c15c9b.js} +1 -1
- package/dist/esm/instant-apps-create.entry.js +262 -0
- package/dist/esm/instant-apps-export.entry.js +31 -16
- package/dist/esm/instant-apps-header.entry.js +3 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +11 -4
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +46 -10
- package/dist/esm/instant-apps-language-switcher.entry.js +1 -1
- package/dist/esm/instant-apps-language-translator.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +164 -0
- package/dist/esm/{languageSwitcher-a4a615e4.js → languageSwitcher-d60f03b2.js} +3 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +1 -1
- package/dist/esm/{popupUtils-2cc3c366.js → popupUtils-650b6bba.js} +17 -2
- package/dist/esm/public-notification.entry.js +4 -4
- package/dist/esm/resources-16800cce.js +24 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{utils-6419e941.js → utils-251cb6de.js} +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +150 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +16 -9
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +19 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +98 -0
- package/dist/solutions-components/demos/crowdsource-manager.html +10 -2
- package/dist/solutions-components/demos/crowdsource-reporter.html +22 -15
- package/dist/solutions-components/p-1251dcc6.entry.js +6 -0
- package/dist/solutions-components/p-16730f05.entry.js +6 -0
- package/dist/solutions-components/p-1ae3b886.entry.js +17 -0
- package/dist/solutions-components/p-1ff9eb95.entry.js +6 -0
- package/dist/solutions-components/{p-667caa6b.js → p-24bf45b7.js} +1 -1
- package/dist/solutions-components/{p-8f6e0ae5.entry.js → p-26eb1225.entry.js} +1 -1
- package/dist/solutions-components/{p-3a2e0188.entry.js → p-2c044250.entry.js} +2 -2
- package/dist/solutions-components/p-314dc933.entry.js +6 -0
- package/dist/solutions-components/p-50741707.entry.js +6 -0
- package/dist/solutions-components/p-614ebce7.js +6 -0
- package/dist/solutions-components/{p-37fc92db.js → p-6f69de4d.js} +2 -2
- package/dist/solutions-components/{p-8cff32bd.entry.js → p-72317f8e.entry.js} +2 -2
- package/dist/solutions-components/{p-df73649e.entry.js → p-77cd573b.entry.js} +1 -1
- package/dist/solutions-components/{p-c95dcdf7.entry.js → p-7883b885.entry.js} +3 -3
- package/dist/solutions-components/p-79e2e203.entry.js +6 -0
- package/dist/solutions-components/{p-968a6fd8.entry.js → p-7b17e929.entry.js} +1 -1
- package/dist/solutions-components/p-80b3eb6b.entry.js +6 -0
- package/dist/solutions-components/p-84913712.js +6 -0
- package/dist/solutions-components/p-8c500fd7.entry.js +6 -0
- package/dist/solutions-components/{p-54324eaa.entry.js → p-97e343df.entry.js} +1 -1
- package/dist/solutions-components/{p-fe9d6d06.js → p-9f56c02c.js} +1 -1
- package/dist/solutions-components/p-a1037b19.js +21 -0
- package/dist/solutions-components/{p-667c022f.entry.js → p-af4be4ce.entry.js} +1 -1
- package/dist/solutions-components/p-bb2e669d.entry.js +6 -0
- package/dist/solutions-components/p-c41997d5.js +11 -0
- package/dist/solutions-components/p-c512fcfb.entry.js +6 -0
- package/dist/solutions-components/{p-21d6360a.entry.js → p-c7f0e7a8.entry.js} +1 -1
- package/dist/solutions-components/{p-f6668347.entry.js → p-cbf0dada.entry.js} +3 -3
- package/dist/solutions-components/{p-9c7d4343.entry.js → p-cd91c3e7.entry.js} +1 -1
- package/dist/solutions-components/p-ceba37d3.entry.js +11 -0
- package/dist/solutions-components/{p-09b769b7.entry.js → p-d8a15e32.entry.js} +1 -1
- package/dist/solutions-components/p-d8da6406.entry.js +6 -0
- package/dist/solutions-components/p-da6b3c8a.entry.js +6 -0
- package/dist/solutions-components/{p-60f1055e.entry.js → p-e2400b0d.entry.js} +1 -1
- package/dist/solutions-components/p-e78be59a.entry.js +6 -0
- package/dist/solutions-components/p-f35cc7ae.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +1 -0
- package/dist/solutions-components/utils/popupUtils.ts +23 -3
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +14 -6
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +18 -7
- package/dist/types/components/feature-details/feature-details.d.ts +13 -1
- package/dist/types/components/feature-list/feature-list.d.ts +4 -0
- package/dist/types/components/info-card/info-card.d.ts +0 -4
- package/dist/types/components/layer-list/layer-list.d.ts +1 -1
- package/dist/types/components.d.ts +36 -16
- package/dist/types/preact.d.ts +10 -4
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/dist/types/utils/popupUtils.d.ts +4 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -73
- package/dist/solutions-components/p-08a1e120.js +0 -6
- package/dist/solutions-components/p-3283660c.entry.js +0 -6
- package/dist/solutions-components/p-33647277.entry.js +0 -6
- package/dist/solutions-components/p-3af0764f.entry.js +0 -6
- package/dist/solutions-components/p-48c99a48.entry.js +0 -6
- package/dist/solutions-components/p-599dcc29.js +0 -6
- package/dist/solutions-components/p-5a740f6c.entry.js +0 -6
- package/dist/solutions-components/p-64779bb2.entry.js +0 -6
- package/dist/solutions-components/p-64b4b579.entry.js +0 -11
- package/dist/solutions-components/p-88f73319.entry.js +0 -6
- package/dist/solutions-components/p-ab96dd27.entry.js +0 -6
- package/dist/solutions-components/p-bb0c7be3.entry.js +0 -17
- package/dist/solutions-components/p-bb8e3add.entry.js +0 -11
- package/dist/solutions-components/p-cbe166fc.entry.js +0 -6
- package/dist/solutions-components/p-eab95aa4.entry.js +0 -6
- package/dist/solutions-components/p-ebf82ce0.js +0 -21
- package/dist/solutions-components/p-f43d6a86.entry.js +0 -6
@@ -416,7 +416,7 @@ const CreateFeature = class {
|
|
416
416
|
*/
|
417
417
|
render() {
|
418
418
|
const showSearchWidget = this.showSearchWidget ? '' : 'display-none';
|
419
|
-
return (index.h(index.Fragment, { key: '
|
419
|
+
return (index.h(index.Fragment, { key: 'e1427c13c0385279fcb0f122b50b891eac419ec4' }, index.h("div", { key: '039e8d8ff5792765c73cb23df37f37bacc0c9dda', id: "feature-form" }), index.h("div", { key: '94601056ec69000009f4b71b34a38cea28635d99', class: `search-widget ${showSearchWidget}`, id: "search-widget-ref" })));
|
420
420
|
}
|
421
421
|
//--------------------------------------------------------------------------
|
422
422
|
//
|
@@ -774,7 +774,7 @@ const CreateRelatedFeature = class {
|
|
774
774
|
this.reactiveUtils = reactiveUtils;
|
775
775
|
}
|
776
776
|
render() {
|
777
|
-
return (index.h(index.Host, { key: '
|
777
|
+
return (index.h(index.Host, { key: '579af77dcac88043b178e711e0b47d7982c1c87f' }));
|
778
778
|
}
|
779
779
|
/**
|
780
780
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -934,14 +934,15 @@ const CreateRelatedFeature = class {
|
|
934
934
|
};
|
935
935
|
CreateRelatedFeature.style = CreateRelatedFeatureStyle0;
|
936
936
|
|
937
|
-
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:10px
|
937
|
+
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:10px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}.comment-btn{display:flex;gap:5px;font-size:var(--calcite-font-size--2);align-items:center;padding:0 0.5rem}";
|
938
938
|
const FeatureDetailsStyle0 = featureDetailsCss;
|
939
939
|
|
940
940
|
const FeatureDetails = class {
|
941
941
|
constructor(hostRef) {
|
942
942
|
index.registerInstance(this, hostRef);
|
943
943
|
this.loadingStatus = index.createEvent(this, "loadingStatus", 7);
|
944
|
-
this.
|
944
|
+
this.commentSelect = index.createEvent(this, "commentSelect", 7);
|
945
|
+
this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
|
945
946
|
/**
|
946
947
|
* string[]: Valid field types for like and dislike
|
947
948
|
*/
|
@@ -949,6 +950,7 @@ const FeatureDetails = class {
|
|
949
950
|
this.mapView = undefined;
|
950
951
|
this.graphics = undefined;
|
951
952
|
this.reportingOptions = undefined;
|
953
|
+
this.layerItemsHash = undefined;
|
952
954
|
this._likeFieldAvailable = false;
|
953
955
|
this._likeCount = 0;
|
954
956
|
this._disLikeCount = 0;
|
@@ -1028,12 +1030,12 @@ const FeatureDetails = class {
|
|
1028
1030
|
var _a, _b, _c, _d, _e;
|
1029
1031
|
//When related features found show comments list of only those features else comments list will be empty
|
1030
1032
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
1031
|
-
return (index.h("calcite-panel", { key: '
|
1032
|
-
index.h("div", { key: '
|
1033
|
-
index.h("div", { key: '
|
1034
|
-
index.h("calcite-button", { key: '
|
1035
|
-
index.h("calcite-button", { key: '
|
1036
|
-
index.h("feature-list", { key: '
|
1033
|
+
return (index.h("calcite-panel", { key: 'f8d1d282a6ebdb4d5a64efd96d88329d375b7fe1', "full-height": true }, index.h("info-card", { key: '3cfca85af149ab445973510ff1a9f94e22c5c833', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
1034
|
+
index.h("div", { key: 'a3242d417cef788f0f677bf21c65fb9aaa44f8b2', class: "buttons-container" }, this._commentsAvailable &&
|
1035
|
+
index.h("div", { key: '9dcfccc0a48b719d14cb08737d654000a27e21cc', class: "comment-btn" }, index.h("span", { key: 'b68cafd0cebfa91c12f32f648ec2f71a51e3b9da' }, this._relatedFeaturesOIDs.length), index.h("calcite-icon", { key: 'f2b9c34ac64a5cb7692f80cd73658f077525eee4', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
1036
|
+
index.h("calcite-button", { key: '7a4ec79205b3eccceb7d43de2c227d8407c24a26', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", onClick: this.onLikeButtonClick.bind(this), scale: 's' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
1037
|
+
index.h("calcite-button", { key: '4634f8aeb114f97c9ceaae8eac5da86afa89f217', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", onClick: this.onDislikeButtonClick.bind(this), scale: 's' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
1038
|
+
index.h("feature-list", { key: '30559c6f28a741264972677cef1f182f1012f73f', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
1037
1039
|
}
|
1038
1040
|
/**
|
1039
1041
|
* Load esri javascript api modules
|
@@ -1070,7 +1072,8 @@ const FeatureDetails = class {
|
|
1070
1072
|
async processComments() {
|
1071
1073
|
var _a;
|
1072
1074
|
const selectedLayer = this._selectedGraphic.layer;
|
1073
|
-
const commentsConfigured = this.reportingOptions[selectedLayer.id]
|
1075
|
+
const commentsConfigured = this.reportingOptions && this.reportingOptions[selectedLayer.id] &&
|
1076
|
+
this.reportingOptions[selectedLayer.id].comment && ((_a = selectedLayer.relationships) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
1074
1077
|
if (commentsConfigured) {
|
1075
1078
|
//Get comments table id from map
|
1076
1079
|
const relatedTableIdFromRelnship = selectedLayer.relationships[0].relatedTableId;
|
@@ -1135,7 +1138,7 @@ const FeatureDetails = class {
|
|
1135
1138
|
}
|
1136
1139
|
//Check if selected layer have the configured like and dislike field and it is of integer types
|
1137
1140
|
selectedLayer.fields.forEach((eachField) => {
|
1138
|
-
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
1141
|
+
if (this._validFieldTypes.indexOf(eachField.type) > -1 && this.layerItemsHash[selectedLayer.id].supportsUpdate) {
|
1139
1142
|
if (eachField.name === likeField && this.reportingOptions[selectedLayer.id].like) {
|
1140
1143
|
likeFieldAvailable = true;
|
1141
1144
|
}
|
@@ -1170,12 +1173,12 @@ const FeatureDetails = class {
|
|
1170
1173
|
//Check if selected layer have the configured like and dislike fields
|
1171
1174
|
//also, get the current value for like and dislike field from the attributes
|
1172
1175
|
selectedLayer.fields.forEach((eachField) => {
|
1173
|
-
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
1174
|
-
if (eachField.name === this._likeField && this.reportingOptions[
|
1176
|
+
if (this._validFieldTypes.indexOf(eachField.type) > -1 && this.layerItemsHash[selectedLayer.id].supportsUpdate) {
|
1177
|
+
if (eachField.name === this._likeField && this.reportingOptions[selectedLayer.id].like) {
|
1175
1178
|
this._likeFieldAvailable = true;
|
1176
1179
|
this._likeCount = this._selectedGraphic.attributes[eachField.name];
|
1177
1180
|
}
|
1178
|
-
else if (eachField.name === this._dislikeField && this.reportingOptions[
|
1181
|
+
else if (eachField.name === this._dislikeField && this.reportingOptions[selectedLayer.id].dislike) {
|
1179
1182
|
this._dislikeFieldAvailable = true;
|
1180
1183
|
this._disLikeCount = this._selectedGraphic.attributes[eachField.name];
|
1181
1184
|
}
|
@@ -1366,9 +1369,9 @@ const LayerList = class {
|
|
1366
1369
|
* Renders the component.
|
1367
1370
|
*/
|
1368
1371
|
render() {
|
1369
|
-
return (index.h(index.Fragment, { key: '
|
1370
|
-
index.h("calcite-notice", { key: '
|
1371
|
-
index.h("calcite-list", { key: '
|
1372
|
+
return (index.h(index.Fragment, { key: '9366302a704c1dbdd7a65aef5c43d0ad84a44b23' }, this._isLoading && index.h("calcite-loader", { key: '69974a23fd42bc37ef13816efbe6d06e28cb2749', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
1373
|
+
index.h("calcite-notice", { key: 'a93abb55b4db09727b3634cb1935e482c377d662', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, index.h("div", { key: 'b9046685353b8894e6c6094cff47fab7a8e07ffa', slot: "title" }, this._translations.error), index.h("div", { key: '90a052e1d80779a09a32fdd35563a1ce21d582e0', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
|
1374
|
+
index.h("calcite-list", { key: '709c1b8edd5710a2476ecef638199c2f929b4165', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
1372
1375
|
}
|
1373
1376
|
//--------------------------------------------------------------------------
|
1374
1377
|
//
|
@@ -1396,10 +1399,7 @@ const LayerList = class {
|
|
1396
1399
|
const allMapLayers = await mapViewUtils.getAllLayers(this.mapView);
|
1397
1400
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
1398
1401
|
allMapLayers.forEach(async (eachLayer) => {
|
1399
|
-
|
1400
|
-
//TODO: checking editable condition could be configurable
|
1401
|
-
if ((eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.type) === "feature" && (eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.editingEnabled) && ((_b = (_a = eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.capabilities) === null || _a === void 0 ? void 0 : _a.operations) === null || _b === void 0 ? void 0 : _b.supportsAdd)) {
|
1402
|
-
this._layerItemsHash[eachLayer.id].supportsAdd = true;
|
1402
|
+
if ((eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.type) === "feature") {
|
1403
1403
|
if (this.showFeatureCount) {
|
1404
1404
|
const q = eachLayer.createQuery();
|
1405
1405
|
const result = eachLayer.queryFeatureCount(q);
|
@@ -1432,7 +1432,7 @@ const LayerList = class {
|
|
1432
1432
|
this.layersListLoaded.emit(this._mapLayerIds);
|
1433
1433
|
}
|
1434
1434
|
/**
|
1435
|
-
* Returns the ids of
|
1435
|
+
* Returns the ids of configured layers that needs to be shown in the list
|
1436
1436
|
* @param hash each layer item details
|
1437
1437
|
* @returns array of layer ids
|
1438
1438
|
*/
|
@@ -1440,11 +1440,7 @@ const LayerList = class {
|
|
1440
1440
|
var _a;
|
1441
1441
|
const configuredLayers = ((_a = this.layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.layers : [];
|
1442
1442
|
return Object.keys(hash).reduce((prev, cur) => {
|
1443
|
-
|
1444
|
-
if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
|
1445
|
-
showLayer = configuredLayers.indexOf(cur) > -1;
|
1446
|
-
}
|
1447
|
-
if (showLayer) {
|
1443
|
+
if (configuredLayers.indexOf(cur) > -1) {
|
1448
1444
|
prev.push(cur);
|
1449
1445
|
}
|
1450
1446
|
return prev;
|
@@ -1472,7 +1468,7 @@ const LayerList = class {
|
|
1472
1468
|
getLayerListItem(layerId) {
|
1473
1469
|
const layerName = this._layerItemsHash[layerId].name;
|
1474
1470
|
const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
|
1475
|
-
return (index.h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, index.h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && index.h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && index.h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
1471
|
+
return (index.h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, index.h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && index.h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && index.h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
1476
1472
|
}
|
1477
1473
|
/**On click of layer list item emit the event along with the selected layerId and layerName
|
1478
1474
|
* @param layerId Layer id
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-79b35510.js');
|
11
11
|
const locale = require('./locale-48d76c59.js');
|
12
12
|
const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
|
13
|
-
const downloadUtils = require('./downloadUtils-
|
13
|
+
const downloadUtils = require('./downloadUtils-5349717a.js');
|
14
14
|
require('./esri-loader-fce6a9cb.js');
|
15
15
|
require('./interfaces-7cd0a48a.js');
|
16
16
|
require('./solution-resource-a577e84f.js');
|
@@ -85,7 +85,7 @@ const CardManager = class {
|
|
85
85
|
var _a, _b;
|
86
86
|
const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
|
87
87
|
const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
|
88
|
-
return (index.h(index.Host, { key: '
|
88
|
+
return (index.h(index.Host, { key: '343554e5408de156f1973f6d1e3daa8f1ba90675' }, index.h("div", { key: '1852562a795002314236052351cab7c29d36854e', class: "overflow-auto height-full" }, index.h("calcite-shell", { key: '684f013e4397bc50743526357384f782a88a5cd3', class: "position-relative " + featuresClass }, index.h("div", { key: 'db6d9f4be5448b5596b22f2a4f49c6baefa88466' }, index.h("info-card", { key: 'be5cec81cae7ca00a5b57c8d9590541f78b67fbd', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), index.h("calcite-shell", { key: 'df34e0ae6978298130970c60d21203f52fa32e4b', class: "position-relative " + messageClass }, index.h("div", { key: '9525a95dd21745e211ebf888da44eca6a6c17721', class: "padding-1" }, index.h("calcite-notice", { key: 'ade0e0a2f09bbe7b7bda6fdb2ce65ba81121e633', icon: "table", open: true }, index.h("div", { key: 'd6fce2d657e23738720e004177c510c3273017f4', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
89
89
|
}
|
90
90
|
//--------------------------------------------------------------------------
|
91
91
|
//
|
@@ -310,6 +310,12 @@ const LayerTable = class {
|
|
310
310
|
async selectionChanged(evt) {
|
311
311
|
const g = evt.detail.selectedFeature[0];
|
312
312
|
const oid = g.getObjectId();
|
313
|
+
//Highlight the current selected feature in the table using rowHighlightIds
|
314
|
+
const table = this._table;
|
315
|
+
if (table.rowHighlightIds.length) {
|
316
|
+
table.rowHighlightIds.removeAll();
|
317
|
+
}
|
318
|
+
table.rowHighlightIds.add(oid);
|
313
319
|
if (this.zoomAndScrollToSelected) {
|
314
320
|
const i = this._table.viewModel.getObjectIdIndex(oid);
|
315
321
|
this._table.scrollToIndex(i);
|
@@ -394,7 +400,7 @@ const LayerTable = class {
|
|
394
400
|
const selected = this.selectedIds.length.toString();
|
395
401
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
396
402
|
this._validateActiveActions();
|
397
|
-
return (index.h(index.Host, { key: '
|
403
|
+
return (index.h(index.Host, { key: '92b88fc87d2c0a0eaaef9587d2324a63665b1cc2' }, index.h("calcite-shell", { key: 'fcc7190ee18fe6f20ab08a5331a8bcd2c9c83c74' }, this._getTableControlRow("header"), index.h("div", { key: 'be1a282eb23580b8f713f27fe198bab1c18ba689', class: `width-full ${tableHeightClass}` }, index.h("calcite-panel", { key: 'd5ef6c04334f48c26f01b61f587370c0ee58682f', class: "height-full width-full" }, index.h("calcite-loader", { key: 'b31c1977446ed6ca47e96a7a47673e03f938265e', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), index.h("div", { key: '07ce4a7741dc0197816f04e57c5d32cbc5666f0e', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (index.h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
398
404
|
.replace("{{total}}", total)
|
399
405
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
400
406
|
}
|
@@ -19,7 +19,8 @@ const CrowdsourceManagerStyle0 = crowdsourceManagerCss;
|
|
19
19
|
const CrowdsourceManager = class {
|
20
20
|
constructor(hostRef) {
|
21
21
|
index.registerInstance(this, hostRef);
|
22
|
-
this.
|
22
|
+
this.showIntroductionWindow = index.createEvent(this, "showIntroductionWindow", 7);
|
23
|
+
this.showCoverPage = index.createEvent(this, "showCoverPage", 7);
|
23
24
|
//--------------------------------------------------------------------------
|
24
25
|
//
|
25
26
|
// Properties (protected)
|
@@ -49,7 +50,7 @@ const CrowdsourceManager = class {
|
|
49
50
|
this.defaultLevel = "";
|
50
51
|
this.defaultOid = "";
|
51
52
|
this.defaultWebmap = "";
|
52
|
-
this.
|
53
|
+
this.introductionWindowEnabled = false;
|
53
54
|
this.enableAutoRefresh = false;
|
54
55
|
this.enableBasemap = true;
|
55
56
|
this.enableColumnReorder = true;
|
@@ -198,7 +199,7 @@ const CrowdsourceManager = class {
|
|
198
199
|
render() {
|
199
200
|
// only avoid border when we have a header color that is not white
|
200
201
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
201
|
-
return (index.h(index.Host, { key: '
|
202
|
+
return (index.h(index.Host, { key: '0f06df71cc424887b8dc4b4929670d94b6548085' }, index.h("calcite-shell", { key: 'c81a570fb771650de6193e45ffbebd03544eaf2e', class: "position-relative" }, index.h("calcite-panel", { key: '5e67c2bf9ed0df0080629989f93e89a145349abc', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
202
203
|
}
|
203
204
|
/**
|
204
205
|
* Called after each render
|
@@ -319,13 +320,20 @@ const CrowdsourceManager = class {
|
|
319
320
|
const contentClass = layoutMode === interfaces.ELayoutMode.HORIZONTAL ? "" : "display-flex";
|
320
321
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
321
322
|
return (index.h("calcite-panel", { class: "width-full height-full" }, index.h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), this.coverPageEnabled &&
|
323
|
+
index.h("div", { class: "floating-container", onClick: this.coverPageButtonClick.bind(this) }, index.h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "content-minimal", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" })), this.introductionWindowEnabled &&
|
322
324
|
index.h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, index.h("calcite-button", { appearance: "solid", class: `floating-button ${themeClass}`, "icon-start": "information-letter", kind: "neutral", label: "", round: true, scale: "l", "split-child": "primary", width: "auto" }))));
|
323
325
|
}
|
324
326
|
/**
|
325
327
|
* Emit the event when info button clicked
|
326
328
|
*/
|
327
329
|
infoButtonClick() {
|
328
|
-
this.
|
330
|
+
this.showIntroductionWindow.emit();
|
331
|
+
}
|
332
|
+
/**
|
333
|
+
* Emit the event when cover page button clicked
|
334
|
+
*/
|
335
|
+
coverPageButtonClick() {
|
336
|
+
this.showCoverPage.emit();
|
329
337
|
}
|
330
338
|
/**
|
331
339
|
* Get the map and card nodes based for the current layout options
|
@@ -85,18 +85,6 @@ const CrowdsourceReporter = class {
|
|
85
85
|
await this.setMapView();
|
86
86
|
});
|
87
87
|
}
|
88
|
-
/**
|
89
|
-
* On Feature details change update the Layer title and the current selected layer id
|
90
|
-
* @param evt Event hold the details of current feature graphic in the info-card
|
91
|
-
*/
|
92
|
-
async selectionChanged(evt) {
|
93
|
-
void this.updatingFeatureDetails(true);
|
94
|
-
await this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
95
|
-
void this.highlightOnMap(evt.detail.selectedFeature[0]);
|
96
|
-
this._selectedFeatureIndex = evt.detail.selectedFeatureIndex;
|
97
|
-
//update the feature details to reflect the like, dislike and comment values
|
98
|
-
await this._featureDetails.refresh(evt.detail.selectedFeature[0]);
|
99
|
-
}
|
100
88
|
//--------------------------------------------------------------------------
|
101
89
|
//
|
102
90
|
// Functions (lifecycle)
|
@@ -113,9 +101,9 @@ const CrowdsourceReporter = class {
|
|
113
101
|
await this._initModules();
|
114
102
|
await this._getTranslations();
|
115
103
|
await ((_a = this.mapView) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
116
|
-
//set configured
|
104
|
+
//set configured layers array which are enabled for data collection
|
117
105
|
this._layers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
|
118
|
-
return this.reportingOptions[layerId].
|
106
|
+
return this.reportingOptions[layerId].visible;
|
119
107
|
}) : [];
|
120
108
|
await this.setMapView();
|
121
109
|
}));
|
@@ -125,7 +113,7 @@ const CrowdsourceReporter = class {
|
|
125
113
|
*/
|
126
114
|
render() {
|
127
115
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
128
|
-
return (index.h(index.Host, { key: '
|
116
|
+
return (index.h(index.Host, { key: '25711a088216a3fcf2aa5d39b81ebd124f004306' }, this._reportSubmitted && index.h("calcite-alert", { key: 'b8cf62929599eb873a52c7e7a9b056e25fd86c2a', "auto-close": true, class: themeClass + " report-submitted-msg", icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._reportSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '6411e0e7b57fd58f8ba7987331271f0494ba113b', slot: "message" }, this.reportSubmittedMessage ? this.reportSubmittedMessage : this._translations.submitMsg)), this._featureCreationFailedErrorMsg && index.h("calcite-alert", { key: '67b28ad1e3493427227d2d59548a5eac80041dea', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._featureCreationFailedErrorMsg = ""; }, open: true, placement: "top" }, index.h("div", { key: '3ad206c32a217e6a9a5bb1e638ef3160fbff5db2', slot: "title" }, this._translations.error), index.h("div", { key: '7580dd6b3f81a9b0c4263fb9e71e2031e199b41d', slot: "message" }, this._featureCreationFailedErrorMsg)), this._commentSubmitted && index.h("calcite-alert", { key: '7be4c3b5d07e9f30551d19990462bb3d1152b2a3', "auto-close": true, class: 'report-submitted ' + themeClass, icon: "check-circle", kind: "success", label: "", onCalciteAlertClose: () => { this._commentSubmitted = false; }, open: true, placement: "top" }, index.h("div", { key: '41c01a889ed6732cf7dabf0945fbfb261a0f3a3b', slot: "message" }, this._translations.commentSubmittedMsg)), this._addingCommentFailed && index.h("calcite-alert", { key: '29bca2310f6877ec976fbe49ac39413593202a4d', "auto-close": true, class: themeClass, icon: "x-octagon", kind: "danger", label: "", onCalciteAlertClose: () => { this._addingCommentFailed = false; }, open: true, placement: "top" }, index.h("div", { key: '8a7860934cebec53462c46e0d979268c75fb9705', slot: "title" }, this._translations.error), index.h("div", { key: 'd675ee393e81f5104d87391075a9ae89b4077a45', slot: "message" }, this._translations.addingCommentFailedMsg)), index.h("div", { key: '1fce11b73759bc751de763e040d15d85a3fb347d' }, index.h("calcite-shell", { key: '71634d0d1b0fcbe92813ff9b514ec4e752bd3fd1', "content-behind": true }, this._getReporter())), this.filterModal()));
|
129
117
|
}
|
130
118
|
//--------------------------------------------------------------------------
|
131
119
|
//
|
@@ -160,6 +148,14 @@ const CrowdsourceReporter = class {
|
|
160
148
|
layer.set('visible', !layerId || (layer.id === layerId));
|
161
149
|
});
|
162
150
|
}
|
151
|
+
/**
|
152
|
+
* Returns the layers configuration
|
153
|
+
* @param layerId string layerId of the selected layer
|
154
|
+
* @returns Configuration for the layerId
|
155
|
+
*/
|
156
|
+
_getLayersConfig(layerId) {
|
157
|
+
return this.reportingOptions && this.reportingOptions[layerId] ? this.reportingOptions[layerId] : null;
|
158
|
+
}
|
163
159
|
/**
|
164
160
|
* Get the reporter app functionality
|
165
161
|
* @protected
|
@@ -283,7 +279,10 @@ const CrowdsourceReporter = class {
|
|
283
279
|
* @protected
|
284
280
|
*/
|
285
281
|
getChooseCategoryFlowItem() {
|
286
|
-
|
282
|
+
const onlyReportingLayers = this.reportingOptions ? Object.keys(this.reportingOptions).filter((layerId) => {
|
283
|
+
return this.reportingOptions[layerId].visible && this.reportingOptions[layerId].reporting && this._layerItemsHash[layerId] && this._layerItemsHash[layerId].supportsAdd;
|
284
|
+
}) : [];
|
285
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true, "full-width": true }, index.h("div", { class: "progress-bar" }, index.h("calcite-progress", { type: "determinate", value: this._updatedProgressBarStatus })), index.h("calcite-notice", { class: "notice-msg", icon: "lightbulb", kind: "success", open: true }, index.h("div", { slot: "message" }, this._translations.chooseCategoryMsg)), index.h("layer-list", { class: "height-full", layers: onlyReportingLayers, mapView: this.mapView, onLayerSelect: this.navigateToCreateFeature.bind(this), showFeatureCount: false, showNextIcon: false }))));
|
287
286
|
}
|
288
287
|
/**
|
289
288
|
* Get Feature create form of the selected feature layer
|
@@ -442,16 +441,22 @@ const CrowdsourceReporter = class {
|
|
442
441
|
const layersListed = evt.detail;
|
443
442
|
//consider only the layers listed in the layer-list component
|
444
443
|
const allMapLayers = await mapViewUtils.getAllLayers(this.mapView);
|
444
|
+
const reportingEnabledLayerIds = [];
|
445
445
|
this._validLayers = [];
|
446
446
|
allMapLayers.forEach((eachLayer) => {
|
447
|
+
var _a;
|
447
448
|
if (layersListed.includes(eachLayer.id)) {
|
448
449
|
this._validLayers.push(eachLayer);
|
450
|
+
//create list of reporting enabled layers
|
451
|
+
if (((_a = this._getLayersConfig(eachLayer.id)) === null || _a === void 0 ? void 0 : _a.reporting) && this._layerItemsHash[eachLayer.id] && this._layerItemsHash[eachLayer.id].supportsAdd) {
|
452
|
+
reportingEnabledLayerIds.push(eachLayer.id);
|
453
|
+
}
|
449
454
|
}
|
450
455
|
});
|
451
456
|
//handleMap click on layer list loaded
|
452
457
|
this.handleMapClick();
|
453
|
-
//
|
454
|
-
this._hasValidLayers =
|
458
|
+
//When we have any reporting layer then only show the create report button on layerList
|
459
|
+
this._hasValidLayers = reportingEnabledLayerIds.length > 0;
|
455
460
|
//navigate to the feature details if URL params found
|
456
461
|
if (!this._urlParamsLoaded) {
|
457
462
|
this._urlParamsLoaded = true;
|
@@ -479,8 +484,9 @@ const CrowdsourceReporter = class {
|
|
479
484
|
backFromSelectedPanel() {
|
480
485
|
this._updatedProgressBarStatus = 0.25;
|
481
486
|
const updatedFlowItems = [...this._flowItems];
|
482
|
-
// when
|
483
|
-
if (updatedFlowItems[updatedFlowItems.length - 1]
|
487
|
+
// when back from comment details or add comment page don't clear the highlighted feature of map
|
488
|
+
if (!(updatedFlowItems[updatedFlowItems.length - 1] === 'comment-details' ||
|
489
|
+
updatedFlowItems[updatedFlowItems.length - 1] === 'add-comment')) {
|
484
490
|
this.clearHighlights();
|
485
491
|
}
|
486
492
|
updatedFlowItems.pop();
|
@@ -525,6 +531,19 @@ const CrowdsourceReporter = class {
|
|
525
531
|
async updatingFeatureDetails(isLoading) {
|
526
532
|
this._showLoadingIndicator = isLoading;
|
527
533
|
}
|
534
|
+
/**
|
535
|
+
* On Feature details change update the Layer title and the current selected layer id
|
536
|
+
* @param evt Event hold the details of current feature graphic from the feature-details
|
537
|
+
* @protected
|
538
|
+
*/
|
539
|
+
async selectionChanged(evt) {
|
540
|
+
void this.updatingFeatureDetails(true);
|
541
|
+
await this.setCurrentFeature(evt.detail.selectedFeature[0]);
|
542
|
+
void this.highlightOnMap(evt.detail.selectedFeature[0]);
|
543
|
+
this._selectedFeatureIndex = evt.detail.selectedFeatureIndex;
|
544
|
+
//update the feature details to reflect the like, dislike and comment values
|
545
|
+
await this._featureDetails.refresh(evt.detail.selectedFeature[0]);
|
546
|
+
}
|
528
547
|
/**
|
529
548
|
* When comment is selected from list store that and show comment details
|
530
549
|
* @param evt Event which has details of selected feature
|
@@ -542,10 +561,11 @@ const CrowdsourceReporter = class {
|
|
542
561
|
* @protected
|
543
562
|
*/
|
544
563
|
getFeatureListFlowItem(layerId, layerName) {
|
545
|
-
var _a;
|
564
|
+
var _a, _b;
|
546
565
|
const layerExpressions = (_a = this.layerExpressions) === null || _a === void 0 ? void 0 : _a.filter((exp) => exp.id === this._selectedLayerId);
|
566
|
+
const canCreateReports = ((_b = this._getLayersConfig(this._selectedLayerId)) === null || _b === void 0 ? void 0 : _b.reporting) && this._layerItemsHash[this._selectedLayerId].supportsAdd;
|
547
567
|
const showFilterIcon = (layerExpressions === null || layerExpressions === void 0 ? void 0 : layerExpressions.length) > 0;
|
548
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), index.h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && index.h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot: "header-actions-end", text: this._translations.filter, title: this._translations.filter }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports &&
|
568
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this._toggleSort(), index.h("calcite-action", { icon: "sort-ascending-arrow", id: "sort-popover", slot: "header-actions-end", text: this._translations.sort, title: this._translations.sort }), showFilterIcon && index.h("calcite-action", { icon: "filter", indicator: this._filterActive, onClick: this._toggleFilter.bind(this), slot: "header-actions-end", text: this._translations.filter, title: this._translations.filter }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports && canCreateReports &&
|
549
569
|
index.h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText ? this.reportButtonText : this._translations.createReportButtonText), index.h("calcite-panel", { "full-height": true }, index.h("feature-list", { class: "height-full", highlightOnHover: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, ref: el => this._featureList = el, selectedLayerId: layerId, sortingInfo: this._updatedSorting }))));
|
550
570
|
}
|
551
571
|
/**
|
@@ -553,8 +573,9 @@ const CrowdsourceReporter = class {
|
|
553
573
|
* @returns Node
|
554
574
|
*/
|
555
575
|
getFeatureDetailsFlowItem() {
|
556
|
-
|
557
|
-
|
576
|
+
var _a;
|
577
|
+
const showCommentBtn = ((_a = this._getLayersConfig(this._selectedLayerId)) === null || _a === void 0 ? void 0 : _a.comment) && this._selectedLayer.relationships.length > 0;
|
578
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, removePopoverOffset: true, scale: "s", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), index.h("calcite-panel", null, index.h("feature-details", { class: 'full-height', graphics: this._selectedFeature, layerItemsHash: this._layerItemsHash, mapView: this.mapView, onCommentSelect: this.onCommentSelectFromList.bind(this), onFeatureSelectionChange: this.selectionChanged.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
|
558
579
|
index.h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
|
559
580
|
}
|
560
581
|
/**
|
@@ -570,7 +591,7 @@ const CrowdsourceReporter = class {
|
|
570
591
|
* @returns Node
|
571
592
|
*/
|
572
593
|
getCommentDetailsFlowItem() {
|
573
|
-
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true }, index.h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false
|
594
|
+
return (index.h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), index.h("calcite-panel", { "full-height": true }, index.h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false }))));
|
574
595
|
}
|
575
596
|
/**
|
576
597
|
* Returns the calcite-flow item for add comment
|
@@ -592,13 +613,14 @@ const CrowdsourceReporter = class {
|
|
592
613
|
* @param selectedFeature Graphic currently shown in feature details
|
593
614
|
*/
|
594
615
|
async setCurrentFeature(selectedFeature) {
|
616
|
+
var _a;
|
595
617
|
this._currentFeature = selectedFeature;
|
596
618
|
if (selectedFeature && selectedFeature.layer) {
|
597
619
|
const layer = selectedFeature.layer;
|
598
620
|
void this.setSelectedLayer(layer.id, layer.title);
|
599
621
|
this._currentFeatureId = selectedFeature.attributes[layer.objectIdField];
|
600
622
|
// check if comments are configured and relationship is present then only get the related table
|
601
|
-
const isCommentTablePresent = this.
|
623
|
+
const isCommentTablePresent = ((_a = this._getLayersConfig(layer.id)) === null || _a === void 0 ? void 0 : _a.comment) && layer.relationships.length > 0;
|
602
624
|
if (isCommentTablePresent) {
|
603
625
|
await this.getRelatedTable();
|
604
626
|
}
|
@@ -712,12 +734,12 @@ const CrowdsourceReporter = class {
|
|
712
734
|
await this.setSelectedFeatures(reportingLayerGraphics);
|
713
735
|
//if featureDetails not open then add it to the list else just reInit flowItems which will update details with newly selected features
|
714
736
|
// eslint-disable-next-line unicorn/prefer-ternary
|
715
|
-
if (this._flowItems.length && this._flowItems
|
716
|
-
this._flowItems = [...this._flowItems, "feature-details"];
|
737
|
+
if (this._flowItems.length && this._flowItems.includes("feature-details")) {
|
738
|
+
this._flowItems = [...this._flowItems.slice(0, this._flowItems.indexOf("feature-details") + 1)];
|
739
|
+
await this.highlightOnMap(clickedGraphics[0]);
|
717
740
|
}
|
718
741
|
else {
|
719
|
-
this._flowItems = [...this._flowItems];
|
720
|
-
void this.highlightOnMap(clickedGraphics[0]);
|
742
|
+
this._flowItems = [...this._flowItems, "feature-details"];
|
721
743
|
}
|
722
744
|
}
|
723
745
|
// if clicked graphic's layer is from non reporting layers then show popup on map
|
@@ -760,13 +782,10 @@ const CrowdsourceReporter = class {
|
|
760
782
|
* @returns array of editable layer ids
|
761
783
|
*/
|
762
784
|
reduceToConfiguredLayers(hash) {
|
763
|
-
var _a;
|
764
|
-
const configuredLayers = ((_a = this._layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this._layers : [];
|
765
785
|
return Object.keys(hash).reduce((prev, cur) => {
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
}
|
786
|
+
// check if reporting options exists consider the visible prop if else just check the supports Add
|
787
|
+
const showLayer = this.reportingOptions ? this._getLayersConfig(cur).visible
|
788
|
+
: hash[cur].supportsAdd;
|
770
789
|
if (showLayer) {
|
771
790
|
prev.push(cur);
|
772
791
|
}
|
@@ -787,18 +806,19 @@ const CrowdsourceReporter = class {
|
|
787
806
|
}
|
788
807
|
});
|
789
808
|
this._editableLayerIds = this.reduceToConfiguredLayers(layerItemsHash);
|
809
|
+
this._layerItemsHash = layerItemsHash;
|
790
810
|
}
|
791
811
|
/**
|
792
812
|
* renders feature list
|
793
813
|
* @protected
|
794
814
|
*/
|
795
815
|
async renderFeaturesList() {
|
816
|
+
this._flowItems = ['feature-list'];
|
796
817
|
const evt = {
|
797
818
|
detail: this._editableLayerIds
|
798
819
|
};
|
799
820
|
await this.layerListLoaded(evt);
|
800
821
|
void this.setSelectedLayer(this._validLayers[0].id, this._validLayers[0].title);
|
801
|
-
this._flowItems = ['feature-list'];
|
802
822
|
}
|
803
823
|
/**
|
804
824
|
* Updates the share url for current selected feature
|
@@ -1512,7 +1512,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1512
1512
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1513
1513
|
* ====================================================================
|
1514
1514
|
*/
|
1515
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1515
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-aa69b58b.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},
|
1516
1516
|
/** ====================================================================
|
1517
1517
|
* @license
|
1518
1518
|
* jsPDF XMP metadata plugin
|
@@ -3157,6 +3157,7 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
|
|
3157
3157
|
}
|
3158
3158
|
//#endregion
|
3159
3159
|
|
3160
|
+
exports._prepareAttributeValue = _prepareAttributeValue;
|
3160
3161
|
exports._typeof = _typeof;
|
3161
3162
|
exports.consolidateLabels = consolidateLabels;
|
3162
3163
|
exports.downloadCSV = downloadCSV;
|
@@ -9,12 +9,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-79b35510.js');
|
11
11
|
const locale = require('./locale-48d76c59.js');
|
12
|
-
const popupUtils = require('./popupUtils-
|
12
|
+
const popupUtils = require('./popupUtils-3e65296c.js');
|
13
13
|
const mapViewUtils = require('./mapViewUtils-6e46ba33.js');
|
14
14
|
require('./esri-loader-fce6a9cb.js');
|
15
|
+
require('./downloadUtils-5349717a.js');
|
16
|
+
require('./solution-resource-a577e84f.js');
|
17
|
+
require('./index-f64944ad.js');
|
18
|
+
require('./restHelpersGet-dbaa28df.js');
|
15
19
|
require('./interfaces-7cd0a48a.js');
|
16
20
|
|
17
|
-
const featureListCss = ":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;padding:10px 12px}.feature-list-popup-title-small{font-size:
|
21
|
+
const featureListCss = ":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;padding:10px 12px}.feature-list-popup-title-small{font-size:small;padding:10px 12px}";
|
18
22
|
const FeatureListStyle0 = featureListCss;
|
19
23
|
|
20
24
|
const FeatureList = class {
|
@@ -31,6 +35,7 @@ const FeatureList = class {
|
|
31
35
|
this.whereClause = undefined;
|
32
36
|
this.textSize = "large";
|
33
37
|
this.showInitialLoading = true;
|
38
|
+
this.showErrorWhenNoFeatures = true;
|
34
39
|
this._featureItems = [];
|
35
40
|
this._featuresCount = 0;
|
36
41
|
this._isLoading = false;
|
@@ -98,9 +103,9 @@ const FeatureList = class {
|
|
98
103
|
* Renders the component.
|
99
104
|
*/
|
100
105
|
render() {
|
101
|
-
return (index.h("calcite-panel", { key: '
|
102
|
-
index.h("calcite-notice", { key: '
|
103
|
-
index.h("div", { key: '
|
106
|
+
return (index.h("calcite-panel", { key: '6184d07592669fd8884996475b7eeb26e0604790', "full-height": true, "full-width": true }, this._isLoading && index.h("calcite-loader", { key: '282127215213a28b9cfdf484aaf5730145b6bb55', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
107
|
+
index.h("calcite-notice", { key: '25fcfeb1d19a089b092050515c3d69401bc17dc8', class: "error-msg", icon: "feature-details", kind: "info", open: true }, index.h("div", { key: '2ac81a338df9d0e0f43c659a24be0c9b7b95d027', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), index.h("calcite-list", { key: '70453e8ded4f859076a5f00d8f04152cd78278d8', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
108
|
+
index.h("div", { key: 'db1003ace54cd599acefad04e94fe54248327126', class: "width-full", slot: "footer" }, index.h("calcite-pagination", { key: '67764a051381b0e7ef26dbd16dc9226d7e152c20', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
104
109
|
}
|
105
110
|
//--------------------------------------------------------------------------
|
106
111
|
//
|
@@ -276,7 +281,7 @@ const FeatureList = class {
|
|
276
281
|
//use object id if popupTitle is null or undefined
|
277
282
|
popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
|
278
283
|
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
279
|
-
return (index.h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, index.h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), index.h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
284
|
+
return (index.h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, index.h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), index.h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
280
285
|
}
|
281
286
|
/**
|
282
287
|
* Fetches the component's translations
|