@esri/solutions-components 0.11.15 → 0.11.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +6 -6
- package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
- package/dist/cjs/create-feature_4.cjs.entry.js +7 -8
- package/dist/cjs/create-related-feature_3.cjs.entry.js +12 -8
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +20 -16
- package/dist/cjs/feature-list.cjs.entry.js +141 -7
- package/dist/cjs/json-editor_7.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +1 -1
- package/dist/cjs/solution-configuration.cjs.entry.js +3 -3
- package/dist/cjs/solution-contents_3.cjs.entry.js +3 -3
- package/dist/cjs/solution-item-accordion.cjs.entry.js +33 -2
- package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/assets/t9n/feature-list/resources.json +3 -1
- package/dist/collection/assets/t9n/feature-list/resources_en.json +3 -1
- package/dist/collection/components/create-feature/create-feature.js +5 -6
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +40 -16
- package/dist/collection/components/feature-details/feature-details.js +30 -6
- package/dist/collection/components/feature-list/feature-list.css +16 -6
- package/dist/collection/components/feature-list/feature-list.js +162 -6
- package/dist/collection/components/floor-filter/floor-filter.js +1 -1
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/components/json-editor/json-editor.js +1 -1
- package/dist/collection/components/layer-list/layer-list.css +2 -2
- package/dist/collection/components/layer-list/layer-list.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +2 -2
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
- package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
- package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
- package/dist/collection/components/map-legend/map-legend.js +1 -1
- package/dist/collection/components/map-picker/map-picker.js +1 -1
- package/dist/collection/components/map-search/map-search.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
- package/dist/collection/components/map-tools/map-tools.js +1 -1
- package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
- package/dist/collection/components/pdf-download/pdf-download.js +1 -1
- package/dist/collection/components/public-notification/public-notification.js +1 -1
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
- package/dist/collection/components/solution-contents/solution-contents.js +1 -1
- package/dist/collection/components/solution-item/solution-item.js +1 -1
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +78 -2
- package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
- package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
- package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
- package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
- package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
- package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
- package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
- package/dist/collection/components/solution-variables/solution-variables.js +1 -1
- package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
- package/dist/collection/demos/crowdsource-reporter.html +1 -0
- package/dist/collection/demos/solution-item-accordion.html +12 -1
- package/dist/components/create-feature2.js +5 -6
- package/dist/components/crowdsource-reporter.js +21 -16
- package/dist/components/feature-details2.js +11 -6
- package/dist/components/feature-list2.js +144 -7
- package/dist/components/floor-filter2.js +1 -1
- package/dist/components/info-card2.js +2 -2
- package/dist/components/json-editor2.js +1 -1
- package/dist/components/layer-list2.js +2 -2
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/components/map-fullscreen2.js +1 -1
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/components/map-legend2.js +1 -1
- package/dist/components/map-picker2.js +1 -1
- package/dist/components/map-search2.js +1 -1
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/map-tools2.js +1 -1
- package/dist/components/pci-calculator.js +1 -1
- package/dist/components/pdf-download2.js +1 -1
- package/dist/components/public-notification.js +1 -1
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/solution-configuration.js +3 -3
- package/dist/components/solution-contents2.js +1 -1
- package/dist/components/solution-item-accordion.js +36 -3
- package/dist/components/solution-item-details2.js +1 -1
- package/dist/components/solution-item-icon2.js +1 -1
- package/dist/components/solution-item-sharing2.js +1 -1
- package/dist/components/solution-item2.js +1 -1
- package/dist/components/solution-organization-variables2.js +1 -1
- package/dist/components/solution-resource-item2.js +1 -1
- package/dist/components/solution-spatial-ref2.js +1 -1
- package/dist/components/solution-template-data2.js +1 -1
- package/dist/components/solution-variables2.js +1 -1
- package/dist/components/spatial-ref.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +6 -6
- package/dist/esm/buffer-tools_2.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +3 -3
- package/dist/esm/create-feature_4.entry.js +7 -8
- package/dist/esm/create-related-feature_3.entry.js +12 -8
- package/dist/esm/crowdsource-reporter.entry.js +20 -16
- package/dist/esm/feature-list.entry.js +141 -7
- package/dist/esm/json-editor_7.entry.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-layer-picker.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/public-notification.entry.js +1 -1
- package/dist/esm/solution-configuration.entry.js +3 -3
- package/dist/esm/solution-contents_3.entry.js +3 -3
- package/dist/esm/solution-item-accordion.entry.js +33 -2
- package/dist/esm/solution-item-icon.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources.json +3 -1
- package/dist/solutions-components/assets/t9n/feature-list/resources_en.json +3 -1
- package/dist/solutions-components/demos/crowdsource-reporter.html +1 -0
- package/dist/solutions-components/demos/solution-item-accordion.html +12 -1
- package/dist/solutions-components/{p-c1a752b9.entry.js → p-182a4844.entry.js} +1 -1
- package/dist/solutions-components/{p-8ab5efc1.entry.js → p-1fb25c0c.entry.js} +1 -1
- package/dist/solutions-components/p-20bd829d.entry.js +6 -0
- package/dist/solutions-components/{p-f9b7f97e.entry.js → p-282a3090.entry.js} +1 -1
- package/dist/solutions-components/p-3ab93412.entry.js +6 -0
- package/dist/solutions-components/p-433b34a3.entry.js +6 -0
- package/dist/solutions-components/{p-7e1c353c.entry.js → p-442b2dfb.entry.js} +1 -1
- package/dist/solutions-components/p-5b3ee71d.entry.js +6 -0
- package/dist/solutions-components/{p-0d110867.entry.js → p-65df6acd.entry.js} +1 -1
- package/dist/solutions-components/{p-f64eeaad.entry.js → p-75fabd1c.entry.js} +1 -1
- package/dist/solutions-components/{p-88de10d1.entry.js → p-a5618671.entry.js} +1 -1
- package/dist/solutions-components/p-b66a3619.entry.js +6 -0
- package/dist/solutions-components/{p-340c71f3.entry.js → p-b8dde3e5.entry.js} +1 -1
- package/dist/solutions-components/{p-256ce5cc.entry.js → p-ec7c3f5c.entry.js} +1 -1
- package/dist/solutions-components/{p-a5c51211.entry.js → p-f3ee7398.entry.js} +1 -1
- package/dist/solutions-components/{p-da1ac695.entry.js → p-fe9c9f03.entry.js} +1 -1
- package/dist/solutions-components/{p-2b9d58dc.entry.js → p-ff0b00d7.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +6 -8
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -4
- package/dist/types/components/feature-details/feature-details.d.ts +4 -0
- package/dist/types/components/feature-list/feature-list.d.ts +52 -0
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +12 -0
- package/dist/types/components.d.ts +33 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-0e3b3aa8.entry.js +0 -6
- package/dist/solutions-components/p-47abefd3.entry.js +0 -6
- package/dist/solutions-components/p-8169d4af.entry.js +0 -6
- package/dist/solutions-components/p-b0551d23.entry.js +0 -6
- package/dist/solutions-components/p-d32b5127.entry.js +0 -6
@@ -57,6 +57,10 @@ export class FeatureDetails {
|
|
57
57
|
* boolean: When true the profile image of the comment creator will be shown in the comments list
|
58
58
|
*/
|
59
59
|
showUserImageInCommentsList = false;
|
60
|
+
/**
|
61
|
+
* boolean: When false comment will shown in single line in the comments list
|
62
|
+
*/
|
63
|
+
showFullCommentTitle = true;
|
60
64
|
//--------------------------------------------------------------------------
|
61
65
|
//
|
62
66
|
// State (internal)
|
@@ -234,12 +238,12 @@ export class FeatureDetails {
|
|
234
238
|
render() {
|
235
239
|
//When related features found show comments list of only those features else comments list will be empty
|
236
240
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
237
|
-
return (h("calcite-panel", { key: '
|
238
|
-
h("div", { key: '
|
239
|
-
h("calcite-button", { key: '
|
240
|
-
h("calcite-button", { key: '
|
241
|
-
h("calcite-button", { key: '
|
242
|
-
h("feature-list", { key: '
|
241
|
+
return (h("calcite-panel", { key: '577f06f7bc41875b38e07a44f3c734ccc839e596', "full-height": true }, h("info-card", { key: 'e815f75d02bcdfe9cc11796c913be2a6c2bfecd2', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, locale: this.locale, 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) &&
|
242
|
+
h("div", { key: '16d0af6b0e75b595573bd0816744f03d9d6dec37', class: "buttons-container" }, this._commentsAvailable &&
|
243
|
+
h("calcite-button", { key: '550b3af830911a1437fa3e967492666ec8c5a2e4', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
244
|
+
h("calcite-button", { key: '741848445c2083f4c0a3d9464cd810deee4a1218', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, this._likeCount ?? this._selectedGraphic.attributes[this._likeField] ?? 0), this._dislikeFieldAvailable &&
|
245
|
+
h("calcite-button", { key: '4d5e8ae279559dbf981b1b91238706adbd6ebeef', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, this._disLikeCount ?? this._selectedGraphic.attributes[this._dislikeField] ?? 0)), this.relatedTableId && this._commentsAvailable &&
|
246
|
+
h("feature-list", { key: '0daad9b37b13a05afc4b8a3a6eca70a7356afd8f', class: "height-full", locale: this.locale, mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showFullTitle: this.showFullCommentTitle, showInitialLoading: false, showUserImageInList: this.showUserImageInCommentsList, textSize: "small", whereClause: commentsListWhereClause })));
|
243
247
|
}
|
244
248
|
/**
|
245
249
|
* Load esri javascript api modules
|
@@ -649,6 +653,26 @@ export class FeatureDetails {
|
|
649
653
|
"attribute": "show-user-image-in-comments-list",
|
650
654
|
"reflect": false,
|
651
655
|
"defaultValue": "false"
|
656
|
+
},
|
657
|
+
"showFullCommentTitle": {
|
658
|
+
"type": "boolean",
|
659
|
+
"mutable": false,
|
660
|
+
"complexType": {
|
661
|
+
"original": "boolean",
|
662
|
+
"resolved": "boolean",
|
663
|
+
"references": {}
|
664
|
+
},
|
665
|
+
"required": false,
|
666
|
+
"optional": false,
|
667
|
+
"docs": {
|
668
|
+
"tags": [],
|
669
|
+
"text": "boolean: When false comment will shown in single line in the comments list"
|
670
|
+
},
|
671
|
+
"getter": false,
|
672
|
+
"setter": false,
|
673
|
+
"attribute": "show-full-comment-title",
|
674
|
+
"reflect": false,
|
675
|
+
"defaultValue": "true"
|
652
676
|
}
|
653
677
|
};
|
654
678
|
}
|
@@ -42,16 +42,20 @@
|
|
42
42
|
white-space: pre-line;
|
43
43
|
}
|
44
44
|
|
45
|
-
.feature-list-popup-title-
|
46
|
-
|
45
|
+
.feature-list-popup-title-small-ellipsis {
|
46
|
+
font-size: small;
|
47
|
+
white-space: nowrap !important;
|
48
|
+
text-overflow: ellipsis;
|
49
|
+
overflow: hidden;
|
47
50
|
}
|
48
51
|
|
49
|
-
.
|
50
|
-
padding:
|
52
|
+
.popup-title {
|
53
|
+
padding: 0 5px;
|
54
|
+
word-break: break-word;
|
51
55
|
}
|
52
56
|
|
53
57
|
.profile-img {
|
54
|
-
|
58
|
+
padding: 0 5px;
|
55
59
|
min-width: 32px;
|
56
60
|
}
|
57
61
|
|
@@ -64,8 +68,14 @@
|
|
64
68
|
}
|
65
69
|
|
66
70
|
.feature-symbol {
|
67
|
-
padding: 3px
|
71
|
+
padding: 0 3px;
|
68
72
|
min-width: 30px;
|
69
73
|
display: flex;
|
70
74
|
justify-content: center;
|
75
|
+
}
|
76
|
+
|
77
|
+
.search {
|
78
|
+
padding: 10px;
|
79
|
+
background-color: var(--calcite-color-foreground-1) !important;
|
80
|
+
border-block-end: 1px solid var(--calcite-color-border-3);
|
71
81
|
}
|
@@ -99,6 +99,10 @@ export class FeatureList {
|
|
99
99
|
* IReportingOptions: Key options for reporting
|
100
100
|
*/
|
101
101
|
reportingOptions;
|
102
|
+
/**
|
103
|
+
* boolean: When false popup title will shown in single line
|
104
|
+
*/
|
105
|
+
showFullTitle = true;
|
102
106
|
//--------------------------------------------------------------------------
|
103
107
|
//
|
104
108
|
// State (internal)
|
@@ -116,6 +120,14 @@ export class FeatureList {
|
|
116
120
|
* boolean: Check if selected layer's features fetching process is completed
|
117
121
|
*/
|
118
122
|
_isLoading = false;
|
123
|
+
/**
|
124
|
+
* string: Placeholder string to show fields included in full text search
|
125
|
+
*/
|
126
|
+
_searchPlaceHolder = '';
|
127
|
+
/**
|
128
|
+
* any[]: Contains full text search info object
|
129
|
+
*/
|
130
|
+
_fullTextSearchInfo;
|
119
131
|
/**
|
120
132
|
* Contains the translations for this component.
|
121
133
|
* All UI strings should be defined here.
|
@@ -161,6 +173,10 @@ export class FeatureList {
|
|
161
173
|
* HTMLCalcitePaginationElement: Calcite pagination element instance
|
162
174
|
*/
|
163
175
|
_pagination;
|
176
|
+
/**
|
177
|
+
* HTMLCalciteListElement: Calcite List element instance
|
178
|
+
*/
|
179
|
+
_calciteList;
|
164
180
|
/**
|
165
181
|
* string[]: Valid field types for like
|
166
182
|
*/
|
@@ -173,6 +189,10 @@ export class FeatureList {
|
|
173
189
|
* boolean: When true configured like field is available in selected layer
|
174
190
|
*/
|
175
191
|
_likeFieldAvailable = false;
|
192
|
+
/**
|
193
|
+
* string: The current search expression
|
194
|
+
*/
|
195
|
+
_searchExpression;
|
176
196
|
//--------------------------------------------------------------------------
|
177
197
|
//
|
178
198
|
// Watch handlers
|
@@ -222,6 +242,9 @@ export class FeatureList {
|
|
222
242
|
};
|
223
243
|
await this.pageChanged(event);
|
224
244
|
}
|
245
|
+
else if (this._searchExpression) {
|
246
|
+
await this._searchFullText();
|
247
|
+
}
|
225
248
|
else {
|
226
249
|
await this.initializeFeatureItems();
|
227
250
|
}
|
@@ -253,6 +276,7 @@ export class FeatureList {
|
|
253
276
|
this._popupUtils = new PopupUtils();
|
254
277
|
if (this.mapView && this.selectedLayerId) {
|
255
278
|
this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
|
279
|
+
this._getFullTextSearchInfo();
|
256
280
|
}
|
257
281
|
}
|
258
282
|
/**
|
@@ -265,9 +289,11 @@ export class FeatureList {
|
|
265
289
|
* Renders the component.
|
266
290
|
*/
|
267
291
|
render() {
|
268
|
-
|
269
|
-
|
270
|
-
h("
|
292
|
+
const showSearch = this._canShowFullTextSearch();
|
293
|
+
return (h("calcite-panel", { key: '56599be334eec65be00681d415db28917133b0c1', "full-height": true, "full-width": true }, showSearch &&
|
294
|
+
h("calcite-input", { key: '6de9873f6b7ab961dffe1334d2fc20b4322d8ea8', class: "search", clearable: true, icon: "search", onCalciteInputChange: this._searchTextChanged.bind(this), placeholder: this._searchPlaceHolder, title: '', type: "search" }), this._isLoading && h("calcite-loader", { key: '4189b0d6c2a85116d529f5b7844c1f2d41657350', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
295
|
+
h("calcite-notice", { key: '7f2e8276ad5345e21667b2dedc7e23f5c34672f5', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '63d44ac906c8d5584aac2cfbeec4cf0962d61abe', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '5843f8d7ca994cb799a9be0ab2f43a8f1e407e9a', class: this.textSize === 'small' && !this.showFullTitle ? 'overflow-hidden' : '', label: "", ref: el => this._calciteList = el, "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
296
|
+
h("div", { key: '288364bc505fe6bce8b1260dce5173163a795330', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: 'e30e2d46a0005dd3e0d289deb4721b9155d4df29', 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 }))));
|
271
297
|
}
|
272
298
|
//--------------------------------------------------------------------------
|
273
299
|
//
|
@@ -345,6 +371,112 @@ export class FeatureList {
|
|
345
371
|
this._featureItems = await this.queryPage(page);
|
346
372
|
this._isLoading = false;
|
347
373
|
}
|
374
|
+
/**
|
375
|
+
* Validates if full text search is enabled and and indexes for fullTextSearch is set as display field on layer
|
376
|
+
* @protected
|
377
|
+
*/
|
378
|
+
_canShowFullTextSearch() {
|
379
|
+
return ((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch &&
|
380
|
+
this._selectedLayer.indexes.items.filter(i => i.indexType == 'FullText').length > 0;
|
381
|
+
}
|
382
|
+
/**
|
383
|
+
* Create list of full text search info
|
384
|
+
*/
|
385
|
+
_getFullTextSearchInfo() {
|
386
|
+
this._fullTextSearchInfo = [];
|
387
|
+
//combine all the fullText index
|
388
|
+
if (((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch) {
|
389
|
+
const fullTextIndexes = this._selectedLayer.indexes?.filter(i => i.indexType == 'FullText');
|
390
|
+
if (fullTextIndexes?.length) {
|
391
|
+
//create the search placeholder text
|
392
|
+
const onFields = [];
|
393
|
+
fullTextIndexes.forEach((index) => {
|
394
|
+
onFields.push(...index.fields.split(','));
|
395
|
+
});
|
396
|
+
//get field alias for fields
|
397
|
+
const fieldAlias = [];
|
398
|
+
onFields.forEach(fieldName => {
|
399
|
+
//We splitting the fields array so we get leading/trailing spaces, hence trim the fieldName
|
400
|
+
const fieldInfo = this._selectedLayer.getField(fieldName.trim());
|
401
|
+
fieldAlias.push(fieldInfo.alias);
|
402
|
+
});
|
403
|
+
this._searchPlaceHolder = this._translations.searchPlaceholder.replace("{{fields}}", fieldAlias.join(', '));
|
404
|
+
this._fullTextSearchInfo.push({
|
405
|
+
'onFields': ['*'],
|
406
|
+
'searchTerm': '',
|
407
|
+
'searchType': 'prefix'
|
408
|
+
});
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* Search using the fullTextSearch on layer and filter the list
|
414
|
+
* @param event The input change event
|
415
|
+
* @protected
|
416
|
+
*/
|
417
|
+
async _searchTextChanged(event) {
|
418
|
+
this._fullTextSearchInfo.forEach(searchInfo => {
|
419
|
+
searchInfo.searchTerm = event.target.value;
|
420
|
+
});
|
421
|
+
await this._searchFullText();
|
422
|
+
}
|
423
|
+
/**
|
424
|
+
* Search using the fullTextSearch on layer
|
425
|
+
* @param event The input change event
|
426
|
+
* @protected
|
427
|
+
*/
|
428
|
+
async _searchFullText() {
|
429
|
+
//always clear previous search definition
|
430
|
+
if (this._searchExpression) {
|
431
|
+
this._clearSearchDefinitionExpression();
|
432
|
+
}
|
433
|
+
let searchedIds = [];
|
434
|
+
if (this._fullTextSearchInfo) {
|
435
|
+
if (this._fullTextSearchInfo[0].searchTerm) {
|
436
|
+
const searchQueryParams = this._selectedLayer.createQuery();
|
437
|
+
searchQueryParams.fullText = this._fullTextSearchInfo;
|
438
|
+
searchedIds = await this._selectedLayer.queryObjectIds(searchQueryParams);
|
439
|
+
await this._updateSearchDefinitionExpression(searchedIds?.length ? searchedIds : [-1]);
|
440
|
+
}
|
441
|
+
}
|
442
|
+
await this.initializeFeatureItems();
|
443
|
+
}
|
444
|
+
/**
|
445
|
+
* Update the search expression in layer
|
446
|
+
* @param searchedIds Array of objectIds satisfying the full search text
|
447
|
+
* @protected
|
448
|
+
*/
|
449
|
+
async _updateSearchDefinitionExpression(searchedIds) {
|
450
|
+
const defExp = this._selectedLayer.definitionExpression;
|
451
|
+
if (searchedIds?.length) {
|
452
|
+
const searchExp = `objectId in(${searchedIds})`;
|
453
|
+
this._selectedLayer.definitionExpression = defExp?.indexOf(this._searchExpression) > -1 ?
|
454
|
+
defExp.replace(this._searchExpression, searchExp) :
|
455
|
+
defExp ? `${defExp} AND (${searchExp})` : searchExp;
|
456
|
+
this._searchExpression = searchExp;
|
457
|
+
}
|
458
|
+
else {
|
459
|
+
this._clearSearchDefinitionExpression();
|
460
|
+
}
|
461
|
+
}
|
462
|
+
/**
|
463
|
+
* Clears the applied search expression on the layer
|
464
|
+
*@protected
|
465
|
+
*/
|
466
|
+
_clearSearchDefinitionExpression() {
|
467
|
+
const defExp = this._selectedLayer.definitionExpression;
|
468
|
+
//remove previous search expression first
|
469
|
+
if (this._searchExpression && defExp?.indexOf(this._searchExpression) > -1) {
|
470
|
+
// eslint-disable-next-line unicorn/prefer-ternary
|
471
|
+
if (defExp?.indexOf(' AND (' + this._searchExpression) > -1) {
|
472
|
+
this._selectedLayer.definitionExpression = defExp.replace(` AND (${this._searchExpression})`, '');
|
473
|
+
}
|
474
|
+
else {
|
475
|
+
this._selectedLayer.definitionExpression = defExp.replace(this._searchExpression, '');
|
476
|
+
}
|
477
|
+
}
|
478
|
+
this._searchExpression = undefined;
|
479
|
+
}
|
348
480
|
/**
|
349
481
|
* On feature click in feature list highlight the feature on the map
|
350
482
|
* @param event feature clicked event
|
@@ -498,11 +630,13 @@ export class FeatureList {
|
|
498
630
|
popupTitle = popupTitle ?? oId;
|
499
631
|
// get the formatted like count
|
500
632
|
const formattedLikeCount = Number(selectedFeature.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString();
|
501
|
-
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
502
|
-
|
633
|
+
const popupTitleClass = (this.textSize === 'small' && !this.showFullTitle) ? 'feature-list-popup-title-small-ellipsis' : this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
634
|
+
// Set the width of the popuptitle class depending on calcite list width to avoid icon's overflow
|
635
|
+
const deductedWidth = this.showUserImageInList ? 115 : 65;
|
636
|
+
const width = this._calciteList.offsetWidth - deductedWidth;
|
503
637
|
return (h("calcite-list-item", { onCalciteListItemSelect: (e) => { void this.featureClicked(e, selectedFeature); }, onMouseLeave: () => { void this.clearHighlights(); }, onMouseOver: () => { void this.onFeatureHover(selectedFeature); }, value: oId }, this.showUserImageInList &&
|
504
638
|
h("calcite-avatar", { class: 'profile-img', "full-name": userInfo?.fullName, scale: "m", slot: "content-start", thumbnail: userInfo?.userProfileUrl, userId: userInfo?.id, username: userInfo?.fullName ? userInfo.username : undefined }), this.showFeatureSymbol &&
|
505
|
-
h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), h("div", { class:
|
639
|
+
h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), h("div", { class: `popup-title ${popupTitleClass}`, slot: "content-start", style: { maxWidth: this.textSize === 'large' ? 'none' : `${width}px` } }, popupTitle), this._likeFieldAvailable &&
|
506
640
|
h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, h("span", null, this._abbreviatedLikeCount), h("calcite-icon", { icon: "thumbs-up", scale: 's' }), h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
507
641
|
}
|
508
642
|
/**
|
@@ -910,6 +1044,26 @@ export class FeatureList {
|
|
910
1044
|
},
|
911
1045
|
"getter": false,
|
912
1046
|
"setter": false
|
1047
|
+
},
|
1048
|
+
"showFullTitle": {
|
1049
|
+
"type": "boolean",
|
1050
|
+
"mutable": false,
|
1051
|
+
"complexType": {
|
1052
|
+
"original": "boolean",
|
1053
|
+
"resolved": "boolean",
|
1054
|
+
"references": {}
|
1055
|
+
},
|
1056
|
+
"required": false,
|
1057
|
+
"optional": false,
|
1058
|
+
"docs": {
|
1059
|
+
"tags": [],
|
1060
|
+
"text": "boolean: When false popup title will shown in single line"
|
1061
|
+
},
|
1062
|
+
"getter": false,
|
1063
|
+
"setter": false,
|
1064
|
+
"attribute": "show-full-title",
|
1065
|
+
"reflect": false,
|
1066
|
+
"defaultValue": "true"
|
913
1067
|
}
|
914
1068
|
};
|
915
1069
|
}
|
@@ -918,6 +1072,8 @@ export class FeatureList {
|
|
918
1072
|
"_featureItems": {},
|
919
1073
|
"_featuresCount": {},
|
920
1074
|
"_isLoading": {},
|
1075
|
+
"_searchPlaceHolder": {},
|
1076
|
+
"_fullTextSearchInfo": {},
|
921
1077
|
"_translations": {}
|
922
1078
|
};
|
923
1079
|
}
|
@@ -141,7 +141,7 @@ export class FloorFilter {
|
|
141
141
|
* Renders the component.
|
142
142
|
*/
|
143
143
|
render() {
|
144
|
-
return (h(Host, { key: '
|
144
|
+
return (h(Host, { key: 'b2ba7504abbc8621f2ad4f561920f2125181350d' }, h("div", { key: '1df2a06b4b99ba0ece38ca3d91b622ce9b692c4a', ref: (el) => { this._floorFilterElement = el; } })));
|
145
145
|
}
|
146
146
|
/**
|
147
147
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -305,8 +305,8 @@ export class InfoCard {
|
|
305
305
|
const id = this._features?.selectedFeature?.getObjectId();
|
306
306
|
const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
|
307
307
|
const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
|
308
|
-
return (h(Host, { key: '
|
309
|
-
h("div", { key: '
|
308
|
+
return (h(Host, { key: '66070d48134f89d9cf132572fe1adf790b6d3ec6' }, h("calcite-shell", { key: 'b77248dce176df940d8b0c347154b73738a5576d', style: { position: this.position } }, this._getHeader(), h("calcite-loader", { key: 'c1638ca8320a0ae12a9ccd1fd8841efde4236ba5', class: loadingClass, label: this._translations.fetchingData }), h("div", { key: 'cf5ee3be5c0ea3be36205dcf7c0747461802a5f1', class: "esri-widget feature-node " + featureNodeClass, id: this._featuresNodeId }), h("div", { key: '6fbfa6947fa0fdb1b14a03217da60f07ecff2e1b', class: `${editButtonClass} width-100`, slot: "footer" }, this.allowEditing &&
|
309
|
+
h("div", { key: 'fdcb078c3b3f183b06dc3a48d27fee46e3a4fffa', class: "display-flex top-border padding-1-2" }, h("calcite-button", { key: '7193bec80a40f353d24e5d327d99d94a2c5ff356', 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, locale: this.locale, onEditsComplete: () => this._closePopup() })) : undefined, h("calcite-tooltip", { key: '228a9691edd916a5d644cb19db24898cdf7cab3b', placement: "bottom", "reference-element": "solutions-edit" }, h("span", { key: '5c696df370bcf230d3fc06523ec3cb9d96f2fe2b' }, this._translations.edit)), this.isMobile && deleteEnabled ? (h("calcite-tooltip", { placement: "bottom", "reference-element": "solutions-delete" }, h("span", null, this._translations.delete))) : undefined), this.paginationEnabled && !nextBackDisabled && h("div", { key: 'e1b829a888913af6a9d777a2df0d65571ac3bec1', class: `display-flex padding-1-2 button-container top-border ${nextBackClass}` }, h("div", { key: '8746737a103266efe64a8f80c2359f9e170586d5' }, h("calcite-button", { key: 'ac6fc23dc2831608cc9c86fe384c0a927cd7d7ac', appearance: 'transparent', disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-left", id: "solutions-back", onClick: () => this._back(), width: "full" }), h("calcite-tooltip", { key: 'd4a1e2753c35e97064ca66d5c30deccd532fb158', placement: "top", "reference-element": "solutions-back" }, h("span", { key: 'caae32b5e32a0d89265293beccef157d227a7600' }, this._translations.back))), h("calcite-action", { key: 'a87f344a06896ad86886815254979793b057e4cd', class: 'pagination-action', iconFlipRtl: true, onClick: () => this._toggleListView(), scale: "s", text: "", textEnabled: true }, h("span", { key: '6e6f84ebedb2540edb485fa0789fe8ea67e7188f', class: "pagination-count" }, this._count)), h("div", { key: '6acf22348a508c921865bb4c7e531f9a826a8eed' }, h("calcite-button", { key: 'f1d763e1747cff7e0b6bec08ec4fade3d1582379', appearance: "transparent", disabled: nextBackDisabled, iconFlipRtl: "both", iconStart: "chevron-right", id: "solutions-next", onClick: () => this._next(), width: "full" }), h("calcite-tooltip", { key: 'def93e3d1f19b4e6eb3e54c5fbd918fed118cc0c', placement: "top", "reference-element": "solutions-next" }, h("span", { key: 'cb9b90a5b3129861b7f58fd0271c6120893dfd53' }, this._translations.next))))), h("edit-card", { key: '524819a6dc64775b88b22aaf24445fd5ebdeae24', class: editClass, enableEditGeometry: this.enableEditGeometry, graphicIndex: this._features?.selectedFeatureIndex, graphics: this.graphics, locale: this.locale, mapView: this.mapView, open: this._editRecordOpen }), h("calcite-alert", { key: '394c3b416a5dc94381c8b93afd3308121fbebd81', icon: "layer-broken", kind: "warning", label: "", onCalciteAlertClose: () => this._alertClosed(), open: this._alertOpen, placement: "top" }, h("div", { key: 'f4868bf3b710d91ed7e3f1e34b846bd408febac0', slot: "title" }, this._translations.editDisabled), h("div", { key: '457b7d0c76bfac52340bec73f5d1d2abbd10f25a', slot: "message" }, this._translations.enableEditing)))));
|
310
310
|
}
|
311
311
|
//--------------------------------------------------------------------------
|
312
312
|
//
|
@@ -170,7 +170,7 @@ export class JsonEditor {
|
|
170
170
|
* Renders the component.
|
171
171
|
*/
|
172
172
|
render() {
|
173
|
-
return (h(Host, { key: '
|
173
|
+
return (h(Host, { key: 'e9c806dbfc886daac9be93350e461246339787dd' }, h("div", { key: '5f31103bc0392042581d1421530f2ddcdebcc507', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, h("div", { key: '560c74b9864cd94f4e689bf65cb8e1fac42b94af', class: "editor-controls" }, h("div", { key: '73ca9ac97f3d40fb408e98477641a9d94e1cd32e', class: "editor-buttons" }, h("calcite-icon", { key: '2d83934e4493595f66e047c608a87e316279ec1b', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), h("calcite-button", { key: 'fe95dd90ec0db23c6d6d6766d6d405c32468cec1', id: `${this.instanceid}-undo`, color: "blue", appearance: "solid", title: this._translations.undo, onClick: () => this._undo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'd802118d2ac7b8cbf2750f3af11252fd52173dd0', icon: "undo", scale: "s" })), h("calcite-button", { key: '9e9af33be6b712ff83ec70e024776c2429086761', id: `${this.instanceid}-redo`, color: "blue", appearance: "solid", title: this._translations.redo, onClick: () => this._redo(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'bb5bfd3a99902b03c4ffb704b8fdc963c006e664', icon: "redo", scale: "s" })), h("calcite-button", { key: 'a88fcffeb9c82394470717ebc6659b42ad9a1c20', id: `${this.instanceid}-diff`, color: "blue", appearance: "solid", title: this._translations.diff, onClick: () => this._toggleEditor(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'f902baf72fee24ef3b56da2c4d9337db96ab63b1', icon: "compare", scale: "s" })), h("calcite-button", { key: '841abd705338fb1e43c892c4858bff00591958c3', id: `${this.instanceid}-search`, appearance: "outline", color: "blue", title: this._translations.search, onClick: () => this._search(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: '01c24bdbf30cd22a06064bf26a47b38516508879', icon: "search", scale: "s" })), h("calcite-button", { key: '2d6b9dc60e26e347272c76ff9f8ada529975265b', id: `${this.instanceid}-reset`, color: "blue", appearance: "solid", disabled: true, title: this._translations.cancelEdits, onClick: () => this._reset(), scale: "s", class: "edit-button" }, h("calcite-icon", { key: 'a373dc694d97992dfbd60f49f38536ba34684381', icon: "reset", scale: "s" })))), h("div", { key: '6cdebae478b9d1b61e317155000bf62ad4c5b8a3', class: "edit-parent" }, h("div", { key: 'e3914618f86335e9538969b5cb7f7797212985c2', id: `${this.instanceid}-container`, class: "json-edit-container" }), h("div", { key: '4a17fd062060ddf2e5dca5c2fb6c9883ed9aadd4', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
174
174
|
}
|
175
175
|
//--------------------------------------------------------------------------
|
176
176
|
//
|
@@ -259,7 +259,7 @@ export class LayerList {
|
|
259
259
|
getLayerListItem(layerId) {
|
260
260
|
const layerName = this._layerItemsHash[layerId].name;
|
261
261
|
const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
|
262
|
-
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:
|
262
|
+
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: "feature-count", slot: "content-end" }, "(" + featureCount + ")"), this.showNextIcon && h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
263
263
|
}
|
264
264
|
/**On click of layer list item emit the event along with the selected layerId and layerName
|
265
265
|
* @param layerId Layer id
|
@@ -734,8 +734,8 @@ export class LayerTable {
|
|
734
734
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
735
735
|
const showSearch = this._canShowFullTextSearch();
|
736
736
|
this._validateActiveActions();
|
737
|
-
return (h(Host, { key: '
|
738
|
-
h("div", { key: '
|
737
|
+
return (h(Host, { key: '68d6d57fbc9122b15340e0be3426ad00d398c7b2' }, h("div", { key: 'c4839ef8df0c5d3937b68c444264ce3bbb5c808d' }, h("calcite-scrim", { key: 'd4fa1a66ddcc5d0e83ee4ee43b2a3230e7f0298f', class: scrimClass, loading: this._queryingData }), h("calcite-shell", { key: '2ae1aee8a242902f3fbc9a1a19b62a8b721e5de7' }, this._getTableControlRow("header"), h("div", { key: '73d424f4bb07f56245c2c0858544d6cb7d9fcc74', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: 'a2404478e2daf5ebac1ff3ac10378a98c868bcb2', class: "height-full width-full" }, showSearch &&
|
738
|
+
h("div", { key: 'e18c71ccab7853438c51fe7168b7a98087d215e2', class: "search-container" }, h("calcite-input", { key: '39ecb52bacd4560a94310a56faf084941aa44a2a', class: "search", clearable: true, icon: "search", onCalciteInputChange: (evt) => void this._searchTextChanged(evt), placeholder: this._searchPlaceHolder, title: this._searchPlaceHolder, type: "search" })), h("calcite-loader", { key: 'ce2aeb5e108b1d76da8694a071dcd46098e6bb28', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '78e596cb45427bb9d21a11368361f67e1ed306a5', class: tableNodeClass, ref: this.onTableNodeCreate }))), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
739
739
|
.replace("{{total}}", total)
|
740
740
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal())));
|
741
741
|
}
|
@@ -483,7 +483,7 @@ export class MapCard {
|
|
483
483
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
484
484
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
485
485
|
this._validateActiveActions();
|
486
|
-
return (h(Host, { key: '
|
486
|
+
return (h(Host, { key: 'a47f4ac21db985fb91ff3f5378594f60405f312c' }, h("div", { key: 'fdf76fd829a8e88725b43f8174a0d95fbf7a3dd1', class: `${mapContainerClass} width-full`, ref: (el) => this._toolbar = el }, this._getActionBar(), !this.isMobile && this.isMapLayout && this._getDropdown("more-table-options"), this.enableShare && !this.isMobile && this.isMapLayout ? this._getShare("share") : undefined), h("calcite-progress", { key: 'b5b672726b4a4c812c386faad2077135a1e1231c', class: progressClass, value: 0 }), h("div", { key: 'f815ef4dba45b53c0ec4a49fe12e741b3331ce51', class: `${mapHeightClass} ${mapClass}`, ref: (el) => (this._mapDiv = el) }), h("map-tools", { key: '8e2ed31f49d349786caa4827a473a8e70e6ae611', basemapConfig: this.basemapConfig, class: `box-shadow ${themeClass}`, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: this.enableSingleExpand, homeZoomToolsSize: this.homeZoomToolsSize, locale: this.locale, mapView: this.mapView, mapWidgetsSize: this.mapWidgetsSize, position: this.mapWidgetsPosition, ref: (el) => this._mapTools = el, searchConfiguration: this._searchConfiguration, stackTools: this.stackTools, toolOrder: this.toolOrder })));
|
487
487
|
}
|
488
488
|
/**
|
489
489
|
* Called each time after the component is loaded
|
@@ -243,7 +243,7 @@ export class MapDrawTools {
|
|
243
243
|
"border" : "border esri-widget esri-sketch__panel";
|
244
244
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
245
245
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
246
|
-
return (h(Host, { key: '
|
246
|
+
return (h(Host, { key: 'da7ef0973544c8b88ced49ef8c5a89b5d5cf48ea' }, h("div", { key: '6cf3a4276a2a319c6f1a74d2824b0bb3003c9f9b', class: containerClass }, h("div", { key: 'dade38f4d01fa7c28915a4fce879f9383d5892b9', ref: (el) => { this._sketchElement = el; } }), h("div", { key: '6e2fbb2dcfb2e4e51f35aa615c0003a65fa3bd66', class: undoRedoClass }, h("calcite-action", { key: '8156802d2740aaa483e4f312cadadc5744f13486', disabled: !this.undoEnabled, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), h("calcite-action", { key: 'cd05845f66e187a317215e18d6a18696328960bf', disabled: !this.redoEnabled, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo })))));
|
247
247
|
}
|
248
248
|
//--------------------------------------------------------------------------
|
249
249
|
//
|
@@ -109,7 +109,7 @@ export class MapFullscreen {
|
|
109
109
|
* Renders the component.
|
110
110
|
*/
|
111
111
|
render() {
|
112
|
-
return (h(Host, { key: '
|
112
|
+
return (h(Host, { key: '50488298d31b85071bb8ec898781b8af52a800ae' }, h("div", { key: '24b4c28cd69ce487c851412a839f6762ceaf02b1', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
113
113
|
}
|
114
114
|
/**
|
115
115
|
* StencilJS: Called just after the component updates.
|
@@ -276,7 +276,7 @@ export class MapLayerPicker {
|
|
276
276
|
const id = "map-layer-picker";
|
277
277
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
278
278
|
style = { ...style, "display": this.display };
|
279
|
-
return (h(Host, { key: '
|
279
|
+
return (h(Host, { key: 'a4d7a923fcf0b6ec488fafa3af8b3c3a9599d61a' }, h("div", { key: '54d5cde231707391537fbd649647a5b9e86a1ab3', class: "map-layer-picker-container", style: style }, h("div", { key: '1d1329f393778e561bfed22a1c1542cd75d4b55b', class: "map-layer-picker", style: style }, !this._hasValidLayers ? this._getInvalidPlaceholder() :
|
280
280
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
281
281
|
this.type === "combobox" ? this._getCombobox(id) :
|
282
282
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -97,7 +97,7 @@ export class MapLegend {
|
|
97
97
|
* StencilJS: Renders the component.
|
98
98
|
*/
|
99
99
|
render() {
|
100
|
-
return (h(Host, { key: '
|
100
|
+
return (h(Host, { key: '60b355f71d25b3c683f6218941e342899006d839' }, h("div", { key: '7686d302e16fd42cd26777d14c682dc0e951c058', ref: (el) => { this._legendElement = el; } })));
|
101
101
|
}
|
102
102
|
/**
|
103
103
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -166,7 +166,7 @@ export class MapPicker {
|
|
166
166
|
* Renders the component.
|
167
167
|
*/
|
168
168
|
render() {
|
169
|
-
return (h(Host, { key: '
|
169
|
+
return (h(Host, { key: 'a16cef5d3d16de605f51ce77450365e8c7f5ba08' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
170
170
|
}
|
171
171
|
/**
|
172
172
|
* Called once after the component has loaded
|
@@ -136,7 +136,7 @@ export class MapSearch {
|
|
136
136
|
* Renders the component.
|
137
137
|
*/
|
138
138
|
render() {
|
139
|
-
return (h(Host, { key: '
|
139
|
+
return (h(Host, { key: 'fec180c41817a6388f5fdb3f14b72355cbbb1467' }, h("div", { key: '72b3931995d7157572d54069e73fb6bd95eb6f44', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
140
140
|
}
|
141
141
|
//--------------------------------------------------------------------------
|
142
142
|
//
|
@@ -416,7 +416,7 @@ export class MapSelectTools {
|
|
416
416
|
render() {
|
417
417
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
418
418
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
419
|
-
return (h(Host, { key: '
|
419
|
+
return (h(Host, { key: 'a5001c196db1464bffa746310638b2853ff5fdf9' }, this._getMapLayerPicker(), h("div", { key: '3e023a81f76bdd371c84d9ecb42e97a9160c6f89', class: "border-bottom" }), h("div", { key: 'c6be571bee2d2c1fe82407aee9a1cf9f1f27280d', class: "padding-top-sides-1" }, h("div", { key: 'aaf5992f616728f6be5be034700ac09b9b5b733f', class: "search-widget", ref: (el) => { this._searchElement = el; } }), h("div", { key: 'a86b4e147b7baf4b93272bed7f189a47faf65ab8', class: mapToolsContainerClass }, h("map-draw-tools", { key: '9b3c2faaa8f612d055189206e2baeb868d55dceb', active: true, class: mapToolsClass, editGraphicsEnabled: !this.useLayerFeaturesEnabled, graphics: this._graphics, locale: this.locale, mapView: this.mapView, onSketchGraphicsChange: (evt) => void this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, ref: (el) => { this._drawTools = el; } })), this.enableSearchDistance ? this._getBufferOptions() : undefined, this.enableLayerFeatures ? this._getUseLayerFeaturesOptions() : undefined, this._getNumSelected()), h("div", { key: '73b3039f0861046a3f955872180b64c15bd5c5d9', class: "border-bottom" }), this._getNameInput()));
|
420
420
|
}
|
421
421
|
/**
|
422
422
|
* Renders the buffer tools component.
|
@@ -310,7 +310,7 @@ export class MapTools {
|
|
310
310
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
311
311
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
312
312
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
313
|
-
return (h(Host, { key: '
|
313
|
+
return (h(Host, { key: '4630a876708781097e02cf1aa94a3f77e30c0fee' }, h("div", { key: '28be602bad246ef82214f3724aaf5f8480473456', class: containerClass }, this.enableSingleExpand ? (h("div", { class: "box-shadow" }, this._getActionGroup(toggleIcon, false, expandTip, () => this._toggleTools()))) : undefined, h("div", { key: '25694e233efe5b917f0a4b25cc4c707c0584cae4', class: `${toolMarginClass} ${shadowClass} ${toolsClass}` }, this._getMapWidgets(toolOrder))), h("basemap-gallery", { key: 'db1c9cd3e1851957f9be86d43dc94355f6894a26', basemapConfig: this.basemapConfig, class: basemapClass, mapView: this.mapView, ref: (el) => { this._basemapElement = el; } }), h("map-search", { key: '558c28360b5e295a886becff4a07c5ec3d22c570', class: searchClass, mapView: this.mapView, ref: (el) => { this._searchElement = el; }, resultGraphicEnabled: true, searchConfiguration: this.searchConfiguration }), h("map-legend", { key: '8e9a8c3e0619773b10ed51543717c2c63d7caa7a', class: legendClass, mapView: this.mapView, ref: (el) => { this._legendElement = el; } }), h("map-fullscreen", { key: '0fba4904ba25f4122e57dc77f3bc64f2bd59d7c1', class: fullscreenClass, mapView: this.mapView, onFullscreenStateChange: (evt) => this._fullscreenStateChange(evt.detail), ref: (el) => { this._fullscreenElement = el; } }), h("floor-filter", { key: '696d3bc16a3464770e96a45af8224537550c90a2', class: floorFilterClass, enabled: this.enableFloorFilter, mapView: this.mapView, ref: (el) => { this._floorFilterElement = el; } })));
|
314
314
|
}
|
315
315
|
//--------------------------------------------------------------------------
|
316
316
|
//
|
@@ -81,7 +81,7 @@ export class PciCalculator {
|
|
81
81
|
render() {
|
82
82
|
const pciClass = !this.showAddDeduct ? "display-grid" : "display-none";
|
83
83
|
const deductClass = this.showAddDeduct ? "position-relative" : "display-none";
|
84
|
-
return (h(Host, { key: '
|
84
|
+
return (h(Host, { key: '6ee5741fe10030324155d5f05a9e4a0eeb337028' }, h("div", { key: '14e0c3495ad57d8d1ec4da9b6c5df80323ef1735', class: pciClass }, h("div", { key: 'ef2e48f06b194ee7806e2f6b5c60d77e17ac1e5f', class: "label-display" }, h("calcite-label", { key: '60695651cdad1e30570f76f3621740fb8c0b62e9', class: "label-display" }, "Enter comma delimited deduct values", this._getDeductValuesInput())), h("div", { key: '19e2db05e7b45fb012892ffa539cb2037da9f449' }, this._getCalculateButton())), h("div", { key: '4a2cd1a80a86d2ba7e4b24935dbebbaecd316cd0', class: deductClass }, h("div", { key: 'f288ef667dd2532c8f409ef12a033d6b4f13ad7e', class: "position-right" }, h("calcite-action", { key: '0d62669dd9660098f6ac4eb10334c5a9ea3897aa', appearance: 'transparent', class: "float-end", icon: "x", onClick: () => this._toggleShowAddDeduct(), scale: "s", text: '' })), h("deduct-calculator", { key: 'dd0a3cb656e7e2c707b1956e40e8a597d8972cfa', class: "display-grid padding-top-1", onDeductValueComplete: (evt) => this._addDeductValue(evt) }))));
|
85
85
|
}
|
86
86
|
//--------------------------------------------------------------------------
|
87
87
|
//
|
@@ -135,7 +135,7 @@ export class PdfDownload {
|
|
135
135
|
* Renders the component.
|
136
136
|
*/
|
137
137
|
render() {
|
138
|
-
return (h(Host, { key: '
|
138
|
+
return (h(Host, { key: '2fd2ec44e8962468e3698b81e98746ddf6b7a3ca' }, h("calcite-select", { key: 'd24fca5c39aa358116ee8557249f7a4b09727b3f', disabled: this.disabled, label: "", ref: (el) => { this._labelInfoElement = el; } })));
|
139
139
|
}
|
140
140
|
componentDidLoad() {
|
141
141
|
// Render the options outside of Stencil's rendering so that it doesn't mangle RTL text with embedded LTR
|
@@ -422,7 +422,7 @@ export class PublicNotification {
|
|
422
422
|
*/
|
423
423
|
render() {
|
424
424
|
const headerSlot = this._isMobile ? "footer" : "header";
|
425
|
-
return (h(Host, { key: '
|
425
|
+
return (h(Host, { key: '61ed8da1de1c6780188fb7bd4f69c82036ddf705' }, h("calcite-shell", { key: '9eb929b7d27d103a207be34681623ca2e0097ef1' }, h("calcite-action-bar", { key: '3c7ad5516fdca78819ebdbdc7c41642c816239ec', class: "border-bottom-1 action-bar-size", "expand-disabled": true, layout: "horizontal", slot: headerSlot }, this._getActionGroup("list-check", EPageType.LIST, this._translations.myLists), this.showRefineSelection ? this._getActionGroup("test-data", EPageType.REFINE, this._translations.refineSelection) : null, this._getActionGroup("export", EPageType.EXPORT, this._translations.export)), this._getPage(this._pageType))));
|
426
426
|
}
|
427
427
|
/**
|
428
428
|
* StencilJS: Called once just after the component is first loaded.
|