@esri/solutions-components 0.8.22 → 0.8.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-alert_4.cjs.entry.js +12 -11
- package/dist/cjs/calcite-flow_6.cjs.entry.js +8 -8
- 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 +1 -1
- package/dist/cjs/{downloadUtils-2e36a300.js → downloadUtils-5349717a.js} +2 -1
- package/dist/cjs/feature-list.cjs.entry.js +7 -3
- package/dist/cjs/{index.es-56415e48.js → index.es-aa69b58b.js} +1 -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 +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +30 -8
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/feature-details/feature-details.css +2 -2
- package/dist/collection/components/feature-details/feature-details.js +6 -6
- package/dist/collection/components/feature-list/feature-list.css +1 -1
- package/dist/collection/components/feature-list/feature-list.js +1 -1
- package/dist/collection/components/info-card/info-card.js +7 -27
- package/dist/collection/components/layer-list/layer-list.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +7 -1
- package/dist/collection/demos/crowdsource-manager.html +10 -2
- package/dist/collection/utils/popupUtils.js +17 -2
- package/dist/collection/utils/popupUtils.ts +23 -3
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/consent-manager.js +1 -1
- package/dist/components/crowdsource-manager.js +13 -5
- package/dist/components/crowdsource-reporter.js +1 -1
- package/dist/components/downloadUtils.js +1 -1
- package/dist/components/esri-loader.js +1 -1
- package/dist/components/feature-details2.js +7 -7
- package/dist/components/feature-list2.js +2 -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-interactive-legend-classic2.js +1 -1
- package/dist/components/layer-list2.js +1 -1
- package/dist/components/layer-table2.js +7 -1
- package/dist/components/popupUtils.js +17 -2
- package/dist/components/purify.js +1 -1
- package/dist/components/solution-resource.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +12 -11
- package/dist/esm/calcite-flow_6.entry.js +8 -8
- 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 +1 -1
- package/dist/esm/{downloadUtils-aab31bfe.js → downloadUtils-5fa0d437.js} +2 -2
- package/dist/esm/feature-list.entry.js +7 -3
- package/dist/esm/{index.es-43ba3006.js → index.es-57c15c9b.js} +1 -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 +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +10 -2
- package/dist/solutions-components/{p-667caa6b.js → p-24bf45b7.js} +1 -1
- package/dist/solutions-components/{p-88f73319.entry.js → p-41d288c0.entry.js} +1 -1
- package/dist/solutions-components/p-63460d51.entry.js +6 -0
- package/dist/solutions-components/{p-f6668347.entry.js → p-64da5bb8.entry.js} +3 -3
- 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-88495699.entry.js +6 -0
- package/dist/solutions-components/{p-54324eaa.entry.js → p-97e343df.entry.js} +1 -1
- package/dist/solutions-components/p-a1037b19.js +21 -0
- package/dist/solutions-components/{p-48c99a48.entry.js → p-c36bb8ca.entry.js} +1 -1
- package/dist/solutions-components/p-f6a1673c.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- 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/info-card/info-card.d.ts +0 -4
- package/dist/types/components.d.ts +11 -14
- package/dist/types/preact.d.ts +3 -2
- package/dist/types/utils/popupUtils.d.ts +4 -0
- package/package.json +1 -1
- 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-ebf82ce0.js +0 -21
- package/dist/solutions-components/p-f43d6a86.entry.js +0 -6
@@ -86,7 +86,7 @@ export class CardManager {
|
|
86
86
|
var _a, _b;
|
87
87
|
const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
|
88
88
|
const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
|
89
|
-
return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '
|
89
|
+
return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '55561c22c8685c3ba3daa25c51053fa47d553ba9', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '8f9156bf9c08920e7731f50daeecb031e9135281', class: "position-relative " + messageClass }, h("div", { key: '0529f9a60349337716ba53f10551b08a34c48209', class: "padding-1" }, h("calcite-notice", { key: '812047f7628598fa6b20e3df00355efee584bb71', icon: "table", open: true }, h("div", { key: 'd7c1b7ab03de1fb30e8e84a6d331d43e69a9946e', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
90
90
|
}
|
91
91
|
//--------------------------------------------------------------------------
|
92
92
|
//
|
@@ -53,7 +53,7 @@ export class CrowdsourceManager {
|
|
53
53
|
this.defaultLevel = "";
|
54
54
|
this.defaultOid = "";
|
55
55
|
this.defaultWebmap = "";
|
56
|
-
this.
|
56
|
+
this.introductionWindowEnabled = false;
|
57
57
|
this.enableAutoRefresh = false;
|
58
58
|
this.enableBasemap = true;
|
59
59
|
this.enableColumnReorder = true;
|
@@ -202,7 +202,7 @@ export class CrowdsourceManager {
|
|
202
202
|
render() {
|
203
203
|
// only avoid border when we have a header color that is not white
|
204
204
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
205
|
-
return (h(Host, { key: '
|
205
|
+
return (h(Host, { key: 'adf6957871aa364f3c0d65f949eb94587f065780' }, h("calcite-shell", { key: 'cbe60dd48a1ffb16ca5bf4d7bf7ee96272fed7a5', class: "position-relative" }, h("calcite-panel", { key: '19e98d7bd25c939f3d8860d68c61a5168730eb00', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
206
206
|
}
|
207
207
|
/**
|
208
208
|
* Called after each render
|
@@ -323,13 +323,20 @@ export class CrowdsourceManager {
|
|
323
323
|
const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
|
324
324
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
325
325
|
return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), this.coverPageEnabled &&
|
326
|
+
h("div", { class: "floating-container", onClick: this.coverPageButtonClick.bind(this) }, 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 &&
|
326
327
|
h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, 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" }))));
|
327
328
|
}
|
328
329
|
/**
|
329
330
|
* Emit the event when info button clicked
|
330
331
|
*/
|
331
332
|
infoButtonClick() {
|
332
|
-
this.
|
333
|
+
this.showIntroductionWindow.emit();
|
334
|
+
}
|
335
|
+
/**
|
336
|
+
* Emit the event when cover page button clicked
|
337
|
+
*/
|
338
|
+
coverPageButtonClick() {
|
339
|
+
this.showCoverPage.emit();
|
333
340
|
}
|
334
341
|
/**
|
335
342
|
* Get the map and card nodes based for the current layout options
|
@@ -698,7 +705,7 @@ export class CrowdsourceManager {
|
|
698
705
|
"reflect": false,
|
699
706
|
"defaultValue": "\"\""
|
700
707
|
},
|
701
|
-
"
|
708
|
+
"introductionWindowEnabled": {
|
702
709
|
"type": "boolean",
|
703
710
|
"mutable": false,
|
704
711
|
"complexType": {
|
@@ -710,9 +717,9 @@ export class CrowdsourceManager {
|
|
710
717
|
"optional": false,
|
711
718
|
"docs": {
|
712
719
|
"tags": [],
|
713
|
-
"text": "boolean: When true a introduction
|
720
|
+
"text": "boolean: When true a introduction window has been enabled in the consuming application.\r\nAlso when true a floating button will be shown in the lower right of the window that\r\nwill emit an event when clicked that the consuming application can respond to that will open the introduction window."
|
714
721
|
},
|
715
|
-
"attribute": "introduction-
|
722
|
+
"attribute": "introduction-window-enabled",
|
716
723
|
"reflect": false,
|
717
724
|
"defaultValue": "false"
|
718
725
|
},
|
@@ -1210,8 +1217,8 @@ export class CrowdsourceManager {
|
|
1210
1217
|
}
|
1211
1218
|
static get events() {
|
1212
1219
|
return [{
|
1213
|
-
"method": "
|
1214
|
-
"name": "
|
1220
|
+
"method": "showIntroductionWindow",
|
1221
|
+
"name": "showIntroductionWindow",
|
1215
1222
|
"bubbles": true,
|
1216
1223
|
"cancelable": true,
|
1217
1224
|
"composed": true,
|
@@ -1224,6 +1231,21 @@ export class CrowdsourceManager {
|
|
1224
1231
|
"resolved": "void",
|
1225
1232
|
"references": {}
|
1226
1233
|
}
|
1234
|
+
}, {
|
1235
|
+
"method": "showCoverPage",
|
1236
|
+
"name": "showCoverPage",
|
1237
|
+
"bubbles": true,
|
1238
|
+
"cancelable": true,
|
1239
|
+
"composed": true,
|
1240
|
+
"docs": {
|
1241
|
+
"tags": [],
|
1242
|
+
"text": "Emitted on demand when a cover page button is clicked"
|
1243
|
+
},
|
1244
|
+
"complexType": {
|
1245
|
+
"original": "void",
|
1246
|
+
"resolved": "void",
|
1247
|
+
"references": {}
|
1248
|
+
}
|
1227
1249
|
}];
|
1228
1250
|
}
|
1229
1251
|
static get elementRef() { return "el"; }
|
@@ -575,7 +575,7 @@ export class CrowdsourceReporter {
|
|
575
575
|
* @returns Node
|
576
576
|
*/
|
577
577
|
getCommentDetailsFlowItem() {
|
578
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false
|
578
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false }))));
|
579
579
|
}
|
580
580
|
/**
|
581
581
|
* Returns the calcite-flow item for add comment
|
@@ -5,7 +5,7 @@
|
|
5
5
|
.buttons-container{
|
6
6
|
align-items: center;
|
7
7
|
display: flex;
|
8
|
-
padding: 10px
|
8
|
+
padding: 10px;
|
9
9
|
color: var(--calcite-color-text-1) !important;
|
10
10
|
background-color: var(--calcite-color-foreground-1) !important;
|
11
11
|
border-block-start: 1px solid var(--calcite-color-border-3);
|
@@ -15,7 +15,7 @@
|
|
15
15
|
.comment-btn{
|
16
16
|
display: flex;
|
17
17
|
gap: 5px;
|
18
|
-
width: 37px;
|
19
18
|
font-size: var(--calcite-font-size--2);
|
20
19
|
align-items: center;
|
20
|
+
padding: 0 0.5rem;
|
21
21
|
}
|
@@ -109,12 +109,12 @@ export class FeatureDetails {
|
|
109
109
|
var _a, _b, _c, _d, _e;
|
110
110
|
//When related features found show comments list of only those features else comments list will be empty
|
111
111
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
112
|
-
return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: '
|
113
|
-
h("div", { key: '
|
114
|
-
h("div", { key: '
|
115
|
-
h("calcite-button", { key: '
|
116
|
-
h("calcite-button", { key: '
|
117
|
-
h("feature-list", { key: '
|
112
|
+
return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: 'a4c7771bdf84f85b88bd6bf2544e2a1a985fdbbe', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
113
|
+
h("div", { key: '2d405f3f722eb4fe0de4212ec4ff3e4b8588db40', class: "buttons-container" }, this._commentsAvailable &&
|
114
|
+
h("div", { key: '9454b0cb93e665de20fafb4ca75e1a6d3198a03a', class: "comment-btn" }, h("span", { key: '8c682aa73f9c28b9db5266cfb5ad970f15535241' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'd920e63f8d1d447afa732bd336f6a09e18ccbd2a', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
115
|
+
h("calcite-button", { key: '6b68adcc0b24b1e8d71148182339fa1b6d7922a1', 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 &&
|
116
|
+
h("calcite-button", { key: '7c365fdaf5a3de12745e4a7b7a79dc8ec5e37cc0', 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 &&
|
117
|
+
h("feature-list", { key: '7b2b92b001dcdeb51d7ae1c1b39dc263f5ed1934', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
118
118
|
}
|
119
119
|
/**
|
120
120
|
* Load esri javascript api modules
|
@@ -280,7 +280,7 @@ export class FeatureList {
|
|
280
280
|
//use object id if popupTitle is null or undefined
|
281
281
|
popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
|
282
282
|
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
283
|
-
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
283
|
+
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
284
284
|
}
|
285
285
|
/**
|
286
286
|
* Fetches the component's translations
|
@@ -32,7 +32,6 @@ export class InfoCard {
|
|
32
32
|
this.isLoading = false;
|
33
33
|
this.isMobile = undefined;
|
34
34
|
this.mapView = undefined;
|
35
|
-
this.zoomAndScrollToSelected = undefined;
|
36
35
|
this.allowEditing = true;
|
37
36
|
this.highlightEnabled = true;
|
38
37
|
this.paginationEnabled = true;
|
@@ -185,8 +184,8 @@ export class InfoCard {
|
|
185
184
|
const id = (_d = (_c = this._features) === null || _c === void 0 ? void 0 : _c.selectedFeature) === null || _d === void 0 ? void 0 : _d.getObjectId();
|
186
185
|
const ids = parseInt(id === null || id === void 0 ? void 0 : id.toString(), 10) > -1 ? [id] : [];
|
187
186
|
const deleteEnabled = ((_e = this._layer) === null || _e === void 0 ? void 0 : _e.editingEnabled) && ((_h = (_g = (_f = this._layer) === null || _f === void 0 ? void 0 : _f.capabilities) === null || _g === void 0 ? void 0 : _g.operations) === null || _h === void 0 ? void 0 : _h.supportsDelete);
|
188
|
-
return (h(Host, { key: '
|
189
|
-
h("div", { key: '
|
187
|
+
return (h(Host, { key: 'ab22ed392db6e8bad11758f39d6bd1738c10a229' }, h("calcite-shell", { key: 'f97bdc21cb5e667b1973353a45297f9536252fcd', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: '82b78360be903de1be044406735db84122399f49', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: '168d0310daf7eca08c4891283b8a9865eda102bc', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '258b913cfdc4f1269dcc250a473643878d97f8bd', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
188
|
+
h("div", { key: 'c6fd569640410dd3a106f27f49eb6553c9ea0167', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '3dbe007feb1104d53c47298ae1308c776e3ec5cf', appearance: "solid", id: "solutions-edit", onClick: () => this._openEditRecord(), width: "full" }, this._translations.edit), this.isMobile && deleteEnabled ? (h("delete-button", { class: "padding-inline-start-1 width-100", id: "solutions-delete", ids: ids, layer: this._layer, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '094e52e8d2945125096856a8c5249babdbbd1eec', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: 'da9edbf6bdb39ce1a287894287d69f2767bb18de' }, this._translations.edit)), this.isMobile ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: '5badbe8009a3a64e3b471ce4e63f4a7d2ae68acc', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '17b287e0f0405ead48a9460423e5371e102de38a' }, h("calcite-button", { key: '4277d8e56528475c5cea369811c9c3c8a0cdd5c7', appearance: 'transparent', disabled: nextBackDisabled, iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'c8ee8c81d9de098290f35075b0c6ac3ee2f46afc', placement: "top", "reference-element": "solutions-back" }, h("span", { key: '3321af9ca1a78efe28249872be05433d9d79f51b' }, this._translations.back))), h("calcite-action", { key: '5ce96bff1e1e1bd77f364d8ceb297e0db7453a29', class: 'pagination-action', onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: 'd558026468f5aeb0797efcfa1843f515fed2b451', class: "pagination-count" }, this._count)), h("div", { key: '52fd57812fda98ad244a1f60aa4ec2f31efce78d' }, h("calcite-button", { key: '3582c2ea725fe9eb36f1846fbb06acaedcb3ebe1', appearance: "transparent", disabled: nextBackDisabled, iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: '1212e990b6ae4e7979f2a1571b461cf063e55b9d', placement: "top", "reference-element": "solutions-next" }, h("span", { key: '2284b042fdfeebc86441119c404c5905fb84f367' }, this._translations.next))))), h("edit-card", { key: 'ae9f73223bdffa5c3ec85e3ebdf4b314cd91d1c7', class: editClass, graphicIndex: (_j = this._features) === null || _j === void 0 ? void 0 : _j.selectedFeatureIndex, graphics: this.graphics, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '1927a41a8c9fbb6373490d554cf8128a93fe8e71', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: '33ba87f5b72019c2795fe12485aa51429115b74d', slot: "title" }, this._translations.editDisabled), h("div", { key: 'd45970a653b416bbdd5e5b97040b23e54eaf98a5', slot: "message" }, this._translations.enableEditing)))));
|
190
189
|
}
|
191
190
|
//--------------------------------------------------------------------------
|
192
191
|
//
|
@@ -259,13 +258,11 @@ export class InfoCard {
|
|
259
258
|
this._showListView = isOpen;
|
260
259
|
}
|
261
260
|
});
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
});
|
268
|
-
}
|
261
|
+
this.reactiveUtils.watch(() => this._features.selectedFeatureIndex, (i) => {
|
262
|
+
if (i > -1) {
|
263
|
+
this.selectionChanged.emit({ selectedFeature: [this._features.selectedFeature], selectedFeatureIndex: this._features.selectedFeatureIndex });
|
264
|
+
}
|
265
|
+
});
|
269
266
|
}
|
270
267
|
else {
|
271
268
|
this._features.view = this.mapView;
|
@@ -445,23 +442,6 @@ export class InfoCard {
|
|
445
442
|
"text": "esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html"
|
446
443
|
}
|
447
444
|
},
|
448
|
-
"zoomAndScrollToSelected": {
|
449
|
-
"type": "boolean",
|
450
|
-
"mutable": false,
|
451
|
-
"complexType": {
|
452
|
-
"original": "boolean",
|
453
|
-
"resolved": "boolean",
|
454
|
-
"references": {}
|
455
|
-
},
|
456
|
-
"required": false,
|
457
|
-
"optional": false,
|
458
|
-
"docs": {
|
459
|
-
"tags": [],
|
460
|
-
"text": "boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table"
|
461
|
-
},
|
462
|
-
"attribute": "zoom-and-scroll-to-selected",
|
463
|
-
"reflect": false
|
464
|
-
},
|
465
445
|
"allowEditing": {
|
466
446
|
"type": "boolean",
|
467
447
|
"mutable": false,
|
@@ -180,7 +180,7 @@ export class LayerList {
|
|
180
180
|
getLayerListItem(layerId) {
|
181
181
|
const layerName = this._layerItemsHash[layerId].name;
|
182
182
|
const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
|
183
|
-
return (h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
183
|
+
return (h("calcite-list-item", { onCalciteListItemSelect: () => { this.onLayerItemSelected(layerId); } }, h("div", { class: "layer-name", slot: "content-start" }, layerName), this.showFeatureCount && featureCount !== undefined && featureCount !== "" && h("div", { class: !this.showNextIcon ? "feature-count" : "", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
184
184
|
}
|
185
185
|
/**On click of layer list item emit the event along with the selected layerId and layerName
|
186
186
|
* @param layerId Layer id
|
@@ -224,6 +224,12 @@ export class LayerTable {
|
|
224
224
|
async selectionChanged(evt) {
|
225
225
|
const g = evt.detail.selectedFeature[0];
|
226
226
|
const oid = g.getObjectId();
|
227
|
+
//Highlight the current selected feature in the table using rowHighlightIds
|
228
|
+
const table = this._table;
|
229
|
+
if (table.rowHighlightIds.length) {
|
230
|
+
table.rowHighlightIds.removeAll();
|
231
|
+
}
|
232
|
+
table.rowHighlightIds.add(oid);
|
227
233
|
if (this.zoomAndScrollToSelected) {
|
228
234
|
const i = this._table.viewModel.getObjectIdIndex(oid);
|
229
235
|
this._table.scrollToIndex(i);
|
@@ -308,7 +314,7 @@ export class LayerTable {
|
|
308
314
|
const selected = this.selectedIds.length.toString();
|
309
315
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
310
316
|
this._validateActiveActions();
|
311
|
-
return (h(Host, { key: '
|
317
|
+
return (h(Host, { key: '92b88fc87d2c0a0eaaef9587d2324a63665b1cc2' }, h("calcite-shell", { key: 'fcc7190ee18fe6f20ab08a5331a8bcd2c9c83c74' }, this._getTableControlRow("header"), h("div", { key: 'be1a282eb23580b8f713f27fe198bab1c18ba689', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'd5ef6c04334f48c26f01b61f587370c0ee58682f', class: "height-full width-full" }, h("calcite-loader", { key: 'b31c1977446ed6ca47e96a7a47673e03f938265e', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '07ce4a7741dc0197816f04e57c5d32cbc5666f0e', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
312
318
|
.replace("{{total}}", total)
|
313
319
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
314
320
|
}
|
@@ -45,11 +45,17 @@
|
|
45
45
|
// });
|
46
46
|
|
47
47
|
function infoIconButtonClick(evt) {
|
48
|
-
|
48
|
+
console.log('Introduction window button clicked')
|
49
|
+
}
|
50
|
+
|
51
|
+
function coverPageIconButtonClick() {
|
52
|
+
console.log('cover page button clicked')
|
53
|
+
}
|
49
54
|
|
50
55
|
function addValues() {
|
51
56
|
const demo = document.getElementById("demo");
|
52
|
-
demo.addEventListener('
|
57
|
+
demo.addEventListener('showIntroductionWindow', infoIconButtonClick);
|
58
|
+
demo.addEventListener('showCoverPage', coverPageIconButtonClick);
|
53
59
|
let headerSet = false;
|
54
60
|
let custom = [];
|
55
61
|
var vars = window.location.search.substring(1).split('&');
|
@@ -204,6 +210,8 @@
|
|
204
210
|
}]
|
205
211
|
];
|
206
212
|
demo.hideMapOnLoad = false;
|
213
|
+
//demo.coverPageEnabled = true;
|
214
|
+
demo.introductionWindowEnabled = true;
|
207
215
|
}
|
208
216
|
</script>
|
209
217
|
</head>
|
@@ -18,6 +18,7 @@
|
|
18
18
|
* See the License for the specific language governing permissions and
|
19
19
|
* limitations under the License.
|
20
20
|
*/
|
21
|
+
import { _prepareAttributeValue } from "./downloadUtils";
|
21
22
|
import { loadModules } from "./loadModules";
|
22
23
|
export class PopupUtils {
|
23
24
|
/**
|
@@ -39,6 +40,7 @@ export class PopupUtils {
|
|
39
40
|
}
|
40
41
|
const layer = graphic.layer;
|
41
42
|
const popupTitle = this._removeTags((_a = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _a === void 0 ? void 0 : _a.title);
|
43
|
+
//resolve arcade expression from the popup title
|
42
44
|
if (popupTitle.includes("{expression/expr") && ((_b = layer === null || layer === void 0 ? void 0 : layer.popupTemplate) === null || _b === void 0 ? void 0 : _b.expressionInfos) != null) {
|
43
45
|
for (let i = 0; i < ((_c = layer.popupTemplate) === null || _c === void 0 ? void 0 : _c.expressionInfos.length); i++) {
|
44
46
|
const info = layer.popupTemplate.expressionInfos[i];
|
@@ -58,6 +60,17 @@ export class PopupUtils {
|
|
58
60
|
}
|
59
61
|
}
|
60
62
|
}
|
63
|
+
//Format field values
|
64
|
+
if (layer.popupTemplate.fieldInfos) {
|
65
|
+
layer.fields.forEach((field) => {
|
66
|
+
const attributeValue = graphic.attributes[field.name];
|
67
|
+
//get the field info from popupTemplate
|
68
|
+
const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
|
69
|
+
//format the attribute value
|
70
|
+
const formattedAttributeValue = _prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo === null || fieldInfo === void 0 ? void 0 : fieldInfo.format, this.intl);
|
71
|
+
attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
|
72
|
+
});
|
73
|
+
}
|
61
74
|
return popupTitle === null || popupTitle === void 0 ? void 0 : popupTitle.replace(/{.*?}/g, (placeholder) => {
|
62
75
|
return attributes[placeholder.toUpperCase()] != null ? attributes[placeholder.toUpperCase()] : "";
|
63
76
|
});
|
@@ -83,9 +96,11 @@ export class PopupUtils {
|
|
83
96
|
* @protected
|
84
97
|
*/
|
85
98
|
async _initModules() {
|
86
|
-
const [arcade] = await loadModules([
|
87
|
-
"esri/arcade"
|
99
|
+
const [arcade, intl] = await loadModules([
|
100
|
+
"esri/arcade",
|
101
|
+
"esri/intl"
|
88
102
|
]);
|
89
103
|
this.arcade = arcade;
|
104
|
+
this.intl = intl;
|
90
105
|
}
|
91
106
|
}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
+
import { _prepareAttributeValue } from "./downloadUtils";
|
17
18
|
import { loadModules } from "./loadModules";
|
18
19
|
|
19
20
|
export class PopupUtils {
|
@@ -23,6 +24,11 @@ export class PopupUtils {
|
|
23
24
|
*/
|
24
25
|
arcade: typeof import("esri/arcade");
|
25
26
|
|
27
|
+
/**
|
28
|
+
* esri/intl: https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html
|
29
|
+
*/
|
30
|
+
intl: typeof import("esri/intl");
|
31
|
+
|
26
32
|
/**
|
27
33
|
* Get the popup title that honors arcade expressions
|
28
34
|
* @param graphic selected graphic
|
@@ -47,6 +53,7 @@ export class PopupUtils {
|
|
47
53
|
}
|
48
54
|
const layer = graphic.layer as __esri.FeatureLayer;
|
49
55
|
const popupTitle = this._removeTags(layer?.popupTemplate?.title as string);
|
56
|
+
//resolve arcade expression from the popup title
|
50
57
|
if (popupTitle.includes("{expression/expr") && layer?.popupTemplate?.expressionInfos != null) {
|
51
58
|
for (let i = 0; i < layer.popupTemplate?.expressionInfos.length; i++) {
|
52
59
|
const info = layer.popupTemplate.expressionInfos[i];
|
@@ -65,7 +72,18 @@ export class PopupUtils {
|
|
65
72
|
}
|
66
73
|
}
|
67
74
|
}
|
68
|
-
|
75
|
+
//Format field values
|
76
|
+
if (layer.popupTemplate.fieldInfos) {
|
77
|
+
layer.fields.forEach((field) => {
|
78
|
+
const attributeValue = graphic.attributes[field.name];
|
79
|
+
//get the field info from popupTemplate
|
80
|
+
const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
|
81
|
+
//format the attribute value
|
82
|
+
const formattedAttributeValue = _prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo?.format, this.intl);
|
83
|
+
attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
|
84
|
+
})
|
85
|
+
}
|
86
|
+
|
69
87
|
return popupTitle?.replace(/{.*?}/g, (placeholder: string) => {
|
70
88
|
return attributes[placeholder.toUpperCase()] != null ? (attributes[placeholder.toUpperCase()] as string) : "";
|
71
89
|
});
|
@@ -93,10 +111,12 @@ export class PopupUtils {
|
|
93
111
|
* @protected
|
94
112
|
*/
|
95
113
|
protected async _initModules(): Promise<void> {
|
96
|
-
const [arcade] = await loadModules([
|
97
|
-
"esri/arcade"
|
114
|
+
const [arcade, intl] = await loadModules([
|
115
|
+
"esri/arcade",
|
116
|
+
"esri/intl"
|
98
117
|
]);
|
99
118
|
this.arcade = arcade;
|
119
|
+
this.intl = intl;
|
100
120
|
}
|
101
121
|
|
102
122
|
}
|
@@ -94,7 +94,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
94
94
|
var _a, _b;
|
95
95
|
const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
|
96
96
|
const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
|
97
|
-
return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '
|
97
|
+
return (h(Host, { key: 'c4b71cefeb5eec1e1312104c519dfb9ef1398d71' }, h("div", { key: '6c1539db40060f9295c8aa72af29eac5f9c67d8d', class: "overflow-auto height-full" }, h("calcite-shell", { key: '2a4f7b47e01e3f27528dbce5fe236187a0f57dab', class: "position-relative " + featuresClass }, h("div", { key: '4b226239c5b80210aa3d42d422bbc50a66bdcf59' }, h("info-card", { key: '55561c22c8685c3ba3daa25c51053fa47d553ba9', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: '8f9156bf9c08920e7731f50daeecb031e9135281', class: "position-relative " + messageClass }, h("div", { key: '0529f9a60349337716ba53f10551b08a34c48209', class: "padding-1" }, h("calcite-notice", { key: '812047f7628598fa6b20e3df00355efee584bb71', icon: "table", open: true }, h("div", { key: 'd7c1b7ab03de1fb30e8e84a6d331d43e69a9946e', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
98
98
|
}
|
99
99
|
//--------------------------------------------------------------------------
|
100
100
|
//
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale.js';
|
8
|
-
import {
|
8
|
+
import { a as commonjsRequire, c as commonjsGlobal } from './esri-loader.js';
|
9
9
|
import { d as defineCustomElement$a } from './action.js';
|
10
10
|
import { d as defineCustomElement$9 } from './action-menu.js';
|
11
11
|
import { d as defineCustomElement$8 } from './button.js';
|
@@ -72,7 +72,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
72
72
|
constructor() {
|
73
73
|
super();
|
74
74
|
this.__registerHost();
|
75
|
-
this.
|
75
|
+
this.showIntroductionWindow = createEvent(this, "showIntroductionWindow", 7);
|
76
|
+
this.showCoverPage = createEvent(this, "showCoverPage", 7);
|
76
77
|
//--------------------------------------------------------------------------
|
77
78
|
//
|
78
79
|
// Properties (protected)
|
@@ -102,7 +103,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
102
103
|
this.defaultLevel = "";
|
103
104
|
this.defaultOid = "";
|
104
105
|
this.defaultWebmap = "";
|
105
|
-
this.
|
106
|
+
this.introductionWindowEnabled = false;
|
106
107
|
this.enableAutoRefresh = false;
|
107
108
|
this.enableBasemap = true;
|
108
109
|
this.enableColumnReorder = true;
|
@@ -251,7 +252,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
251
252
|
render() {
|
252
253
|
// only avoid border when we have a header color that is not white
|
253
254
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
254
|
-
return (h(Host, { key: '
|
255
|
+
return (h(Host, { key: 'adf6957871aa364f3c0d65f949eb94587f065780' }, h("calcite-shell", { key: 'cbe60dd48a1ffb16ca5bf4d7bf7ee96272fed7a5', class: "position-relative" }, h("calcite-panel", { key: '19e98d7bd25c939f3d8860d68c61a5168730eb00', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
255
256
|
}
|
256
257
|
/**
|
257
258
|
* Called after each render
|
@@ -372,13 +373,20 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
372
373
|
const contentClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : "display-flex";
|
373
374
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
374
375
|
return (h("calcite-panel", { class: "width-full height-full" }, h("div", { class: `width-full height-full overflow-hidden ${contentClass}` }, this._getMapAndCard(layoutMode, panelOpen, hideTable), this._getTable(layoutMode, panelOpen, hideTable)), this.coverPageEnabled &&
|
376
|
+
h("div", { class: "floating-container", onClick: this.coverPageButtonClick.bind(this) }, 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 &&
|
375
377
|
h("div", { class: "floating-container", onClick: this.infoButtonClick.bind(this) }, 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" }))));
|
376
378
|
}
|
377
379
|
/**
|
378
380
|
* Emit the event when info button clicked
|
379
381
|
*/
|
380
382
|
infoButtonClick() {
|
381
|
-
this.
|
383
|
+
this.showIntroductionWindow.emit();
|
384
|
+
}
|
385
|
+
/**
|
386
|
+
* Emit the event when cover page button clicked
|
387
|
+
*/
|
388
|
+
coverPageButtonClick() {
|
389
|
+
this.showCoverPage.emit();
|
382
390
|
}
|
383
391
|
/**
|
384
392
|
* Get the map and card nodes based for the current layout options
|
@@ -588,7 +596,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
588
596
|
"defaultLevel": [1, "default-level"],
|
589
597
|
"defaultOid": [1, "default-oid"],
|
590
598
|
"defaultWebmap": [1, "default-webmap"],
|
591
|
-
"
|
599
|
+
"introductionWindowEnabled": [4, "introduction-window-enabled"],
|
592
600
|
"enableAutoRefresh": [4, "enable-auto-refresh"],
|
593
601
|
"enableBasemap": [4, "enable-basemap"],
|
594
602
|
"enableColumnReorder": [4, "enable-column-reorder"],
|
@@ -613,7 +613,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
613
613
|
* @returns Node
|
614
614
|
*/
|
615
615
|
getCommentDetailsFlowItem() {
|
616
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false
|
616
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._relatedTable.title, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedRelatedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false }))));
|
617
617
|
}
|
618
618
|
/**
|
619
619
|
* Returns the calcite-flow item for add comment
|
@@ -3155,4 +3155,4 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
|
|
3155
3155
|
}
|
3156
3156
|
//#endregion
|
3157
3157
|
|
3158
|
-
export {
|
3158
|
+
export { _prepareAttributeValue as _, downloadPDF as a, _typeof as b, consolidateLabels as c, downloadCSV as d, removeDuplicateLabels as r };
|
@@ -308,4 +308,4 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
308
308
|
|
309
309
|
}(esriLoader, esriLoader.exports));
|
310
310
|
|
311
|
-
export {
|
311
|
+
export { commonjsRequire as a, commonjsGlobal as c, esriLoader as e, getDefaultExportFromCjs as g };
|
@@ -33,7 +33,7 @@ import { d as defineCustomElement$3 } from './edit-card2.js';
|
|
33
33
|
import { d as defineCustomElement$2 } from './feature-list2.js';
|
34
34
|
import { d as defineCustomElement$1 } from './info-card2.js';
|
35
35
|
|
36
|
-
const featureDetailsCss = ":host{display:block}.buttons-container{align-items:center;display:flex;padding:10px
|
36
|
+
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}";
|
37
37
|
const FeatureDetailsStyle0 = featureDetailsCss;
|
38
38
|
|
39
39
|
const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails extends HTMLElement {
|
@@ -128,12 +128,12 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
128
128
|
var _a, _b, _c, _d, _e;
|
129
129
|
//When related features found show comments list of only those features else comments list will be empty
|
130
130
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
131
|
-
return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: '
|
132
|
-
h("div", { key: '
|
133
|
-
h("div", { key: '
|
134
|
-
h("calcite-button", { key: '
|
135
|
-
h("calcite-button", { key: '
|
136
|
-
h("feature-list", { key: '
|
131
|
+
return (h("calcite-panel", { key: 'b8d1cc9d4d9040665be3c892f5738a179ab64eaf', "full-height": true }, h("info-card", { key: 'a4c7771bdf84f85b88bd6bf2544e2a1a985fdbbe', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
132
|
+
h("div", { key: '2d405f3f722eb4fe0de4212ec4ff3e4b8588db40', class: "buttons-container" }, this._commentsAvailable &&
|
133
|
+
h("div", { key: '9454b0cb93e665de20fafb4ca75e1a6d3198a03a', class: "comment-btn" }, h("span", { key: '8c682aa73f9c28b9db5266cfb5ad970f15535241' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: 'd920e63f8d1d447afa732bd336f6a09e18ccbd2a', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
134
|
+
h("calcite-button", { key: '6b68adcc0b24b1e8d71148182339fa1b6d7922a1', 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 &&
|
135
|
+
h("calcite-button", { key: '7c365fdaf5a3de12745e4a7b7a79dc8ec5e37cc0', 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 &&
|
136
|
+
h("feature-list", { key: '7b2b92b001dcdeb51d7ae1c1b39dc263f5ed1934', class: "height-full", mapView: this.mapView, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
137
137
|
}
|
138
138
|
/**
|
139
139
|
* Load esri javascript api modules
|
@@ -25,7 +25,7 @@ import { d as defineCustomElement$3 } from './progress.js';
|
|
25
25
|
import { d as defineCustomElement$2 } from './scrim.js';
|
26
26
|
import { d as defineCustomElement$1 } from './stack.js';
|
27
27
|
|
28
|
-
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:
|
28
|
+
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}";
|
29
29
|
const FeatureListStyle0 = featureListCss;
|
30
30
|
|
31
31
|
const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends HTMLElement {
|
@@ -288,7 +288,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
288
288
|
//use object id if popupTitle is null or undefined
|
289
289
|
popupTitle = popupTitle !== null && popupTitle !== void 0 ? popupTitle : oId;
|
290
290
|
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
291
|
-
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { icon: "chevron-right", scale: "s", slot: "content-end" })));
|
291
|
+
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, h("div", { class: popupTitleClass, slot: "content-start" }, popupTitle), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
292
292
|
}
|
293
293
|
/**
|
294
294
|
* Fetches the component's translations
|