@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
@@ -55,6 +55,10 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
55
55
|
* boolean: When true the profile image of the comment creator will be shown in the comments list
|
56
56
|
*/
|
57
57
|
showUserImageInCommentsList = false;
|
58
|
+
/**
|
59
|
+
* boolean: When false comment will shown in single line in the comments list
|
60
|
+
*/
|
61
|
+
showFullCommentTitle = true;
|
58
62
|
//--------------------------------------------------------------------------
|
59
63
|
//
|
60
64
|
// State (internal)
|
@@ -232,12 +236,12 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
232
236
|
render() {
|
233
237
|
//When related features found show comments list of only those features else comments list will be empty
|
234
238
|
const commentsListWhereClause = this._relatedFeaturesOIDs?.length > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
235
|
-
return (h("calcite-panel", { key: '
|
236
|
-
h("div", { key: '
|
237
|
-
h("calcite-button", { key: '
|
238
|
-
h("calcite-button", { key: '
|
239
|
-
h("calcite-button", { key: '
|
240
|
-
h("feature-list", { key: '
|
239
|
+
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) &&
|
240
|
+
h("div", { key: '16d0af6b0e75b595573bd0816744f03d9d6dec37', class: "buttons-container" }, this._commentsAvailable &&
|
241
|
+
h("calcite-button", { key: '550b3af830911a1437fa3e967492666ec8c5a2e4', appearance: "transparent", iconEnd: "speech-bubble", kind: "neutral", onClick: () => { this.addComment.emit(); }, scale: 'm' }, this._relatedFeaturesOIDs.length), this._likeFieldAvailable &&
|
242
|
+
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 &&
|
243
|
+
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 &&
|
244
|
+
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 })));
|
241
245
|
}
|
242
246
|
/**
|
243
247
|
* Load esri javascript api modules
|
@@ -517,6 +521,7 @@ const FeatureDetails = /*@__PURE__*/ proxyCustomElement(class FeatureDetails ext
|
|
517
521
|
"layerItemsHash": [16],
|
518
522
|
"locale": [1],
|
519
523
|
"showUserImageInCommentsList": [4, "show-user-image-in-comments-list"],
|
524
|
+
"showFullCommentTitle": [4, "show-full-comment-title"],
|
520
525
|
"_likeFieldAvailable": [32],
|
521
526
|
"_likeCount": [32],
|
522
527
|
"_disLikeCount": [32],
|
@@ -9,7 +9,7 @@ import { P as PopupUtils } from './popupUtils.js';
|
|
9
9
|
import { g as getLayerOrTable, c as getFeatureLayerView, h as highlightFeatures } from './mapViewUtils.js';
|
10
10
|
import { g as getLocaleComponentStrings } from './locale.js';
|
11
11
|
|
12
|
-
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;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-
|
12
|
+
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;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap !important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{padding:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray !important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3)}";
|
13
13
|
const FeatureListStyle0 = featureListCss;
|
14
14
|
|
15
15
|
const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends HTMLElement {
|
@@ -88,6 +88,10 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
88
88
|
* IReportingOptions: Key options for reporting
|
89
89
|
*/
|
90
90
|
reportingOptions;
|
91
|
+
/**
|
92
|
+
* boolean: When false popup title will shown in single line
|
93
|
+
*/
|
94
|
+
showFullTitle = true;
|
91
95
|
//--------------------------------------------------------------------------
|
92
96
|
//
|
93
97
|
// State (internal)
|
@@ -105,6 +109,14 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
105
109
|
* boolean: Check if selected layer's features fetching process is completed
|
106
110
|
*/
|
107
111
|
_isLoading = false;
|
112
|
+
/**
|
113
|
+
* string: Placeholder string to show fields included in full text search
|
114
|
+
*/
|
115
|
+
_searchPlaceHolder = '';
|
116
|
+
/**
|
117
|
+
* any[]: Contains full text search info object
|
118
|
+
*/
|
119
|
+
_fullTextSearchInfo;
|
108
120
|
/**
|
109
121
|
* Contains the translations for this component.
|
110
122
|
* All UI strings should be defined here.
|
@@ -150,6 +162,10 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
150
162
|
* HTMLCalcitePaginationElement: Calcite pagination element instance
|
151
163
|
*/
|
152
164
|
_pagination;
|
165
|
+
/**
|
166
|
+
* HTMLCalciteListElement: Calcite List element instance
|
167
|
+
*/
|
168
|
+
_calciteList;
|
153
169
|
/**
|
154
170
|
* string[]: Valid field types for like
|
155
171
|
*/
|
@@ -162,6 +178,10 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
162
178
|
* boolean: When true configured like field is available in selected layer
|
163
179
|
*/
|
164
180
|
_likeFieldAvailable = false;
|
181
|
+
/**
|
182
|
+
* string: The current search expression
|
183
|
+
*/
|
184
|
+
_searchExpression;
|
165
185
|
//--------------------------------------------------------------------------
|
166
186
|
//
|
167
187
|
// Watch handlers
|
@@ -211,6 +231,9 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
211
231
|
};
|
212
232
|
await this.pageChanged(event);
|
213
233
|
}
|
234
|
+
else if (this._searchExpression) {
|
235
|
+
await this._searchFullText();
|
236
|
+
}
|
214
237
|
else {
|
215
238
|
await this.initializeFeatureItems();
|
216
239
|
}
|
@@ -242,6 +265,7 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
242
265
|
this._popupUtils = new PopupUtils();
|
243
266
|
if (this.mapView && this.selectedLayerId) {
|
244
267
|
this._selectedLayer = await getLayerOrTable(this.mapView, this.selectedLayerId);
|
268
|
+
this._getFullTextSearchInfo();
|
245
269
|
}
|
246
270
|
}
|
247
271
|
/**
|
@@ -254,9 +278,11 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
254
278
|
* Renders the component.
|
255
279
|
*/
|
256
280
|
render() {
|
257
|
-
|
258
|
-
|
259
|
-
h("
|
281
|
+
const showSearch = this._canShowFullTextSearch();
|
282
|
+
return (h("calcite-panel", { key: '56599be334eec65be00681d415db28917133b0c1', "full-height": true, "full-width": true }, showSearch &&
|
283
|
+
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 &&
|
284
|
+
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 &&
|
285
|
+
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 }))));
|
260
286
|
}
|
261
287
|
//--------------------------------------------------------------------------
|
262
288
|
//
|
@@ -334,6 +360,112 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
334
360
|
this._featureItems = await this.queryPage(page);
|
335
361
|
this._isLoading = false;
|
336
362
|
}
|
363
|
+
/**
|
364
|
+
* Validates if full text search is enabled and and indexes for fullTextSearch is set as display field on layer
|
365
|
+
* @protected
|
366
|
+
*/
|
367
|
+
_canShowFullTextSearch() {
|
368
|
+
return ((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch &&
|
369
|
+
this._selectedLayer.indexes.items.filter(i => i.indexType == 'FullText').length > 0;
|
370
|
+
}
|
371
|
+
/**
|
372
|
+
* Create list of full text search info
|
373
|
+
*/
|
374
|
+
_getFullTextSearchInfo() {
|
375
|
+
this._fullTextSearchInfo = [];
|
376
|
+
//combine all the fullText index
|
377
|
+
if (((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch) {
|
378
|
+
const fullTextIndexes = this._selectedLayer.indexes?.filter(i => i.indexType == 'FullText');
|
379
|
+
if (fullTextIndexes?.length) {
|
380
|
+
//create the search placeholder text
|
381
|
+
const onFields = [];
|
382
|
+
fullTextIndexes.forEach((index) => {
|
383
|
+
onFields.push(...index.fields.split(','));
|
384
|
+
});
|
385
|
+
//get field alias for fields
|
386
|
+
const fieldAlias = [];
|
387
|
+
onFields.forEach(fieldName => {
|
388
|
+
//We splitting the fields array so we get leading/trailing spaces, hence trim the fieldName
|
389
|
+
const fieldInfo = this._selectedLayer.getField(fieldName.trim());
|
390
|
+
fieldAlias.push(fieldInfo.alias);
|
391
|
+
});
|
392
|
+
this._searchPlaceHolder = this._translations.searchPlaceholder.replace("{{fields}}", fieldAlias.join(', '));
|
393
|
+
this._fullTextSearchInfo.push({
|
394
|
+
'onFields': ['*'],
|
395
|
+
'searchTerm': '',
|
396
|
+
'searchType': 'prefix'
|
397
|
+
});
|
398
|
+
}
|
399
|
+
}
|
400
|
+
}
|
401
|
+
/**
|
402
|
+
* Search using the fullTextSearch on layer and filter the list
|
403
|
+
* @param event The input change event
|
404
|
+
* @protected
|
405
|
+
*/
|
406
|
+
async _searchTextChanged(event) {
|
407
|
+
this._fullTextSearchInfo.forEach(searchInfo => {
|
408
|
+
searchInfo.searchTerm = event.target.value;
|
409
|
+
});
|
410
|
+
await this._searchFullText();
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* Search using the fullTextSearch on layer
|
414
|
+
* @param event The input change event
|
415
|
+
* @protected
|
416
|
+
*/
|
417
|
+
async _searchFullText() {
|
418
|
+
//always clear previous search definition
|
419
|
+
if (this._searchExpression) {
|
420
|
+
this._clearSearchDefinitionExpression();
|
421
|
+
}
|
422
|
+
let searchedIds = [];
|
423
|
+
if (this._fullTextSearchInfo) {
|
424
|
+
if (this._fullTextSearchInfo[0].searchTerm) {
|
425
|
+
const searchQueryParams = this._selectedLayer.createQuery();
|
426
|
+
searchQueryParams.fullText = this._fullTextSearchInfo;
|
427
|
+
searchedIds = await this._selectedLayer.queryObjectIds(searchQueryParams);
|
428
|
+
await this._updateSearchDefinitionExpression(searchedIds?.length ? searchedIds : [-1]);
|
429
|
+
}
|
430
|
+
}
|
431
|
+
await this.initializeFeatureItems();
|
432
|
+
}
|
433
|
+
/**
|
434
|
+
* Update the search expression in layer
|
435
|
+
* @param searchedIds Array of objectIds satisfying the full search text
|
436
|
+
* @protected
|
437
|
+
*/
|
438
|
+
async _updateSearchDefinitionExpression(searchedIds) {
|
439
|
+
const defExp = this._selectedLayer.definitionExpression;
|
440
|
+
if (searchedIds?.length) {
|
441
|
+
const searchExp = `objectId in(${searchedIds})`;
|
442
|
+
this._selectedLayer.definitionExpression = defExp?.indexOf(this._searchExpression) > -1 ?
|
443
|
+
defExp.replace(this._searchExpression, searchExp) :
|
444
|
+
defExp ? `${defExp} AND (${searchExp})` : searchExp;
|
445
|
+
this._searchExpression = searchExp;
|
446
|
+
}
|
447
|
+
else {
|
448
|
+
this._clearSearchDefinitionExpression();
|
449
|
+
}
|
450
|
+
}
|
451
|
+
/**
|
452
|
+
* Clears the applied search expression on the layer
|
453
|
+
*@protected
|
454
|
+
*/
|
455
|
+
_clearSearchDefinitionExpression() {
|
456
|
+
const defExp = this._selectedLayer.definitionExpression;
|
457
|
+
//remove previous search expression first
|
458
|
+
if (this._searchExpression && defExp?.indexOf(this._searchExpression) > -1) {
|
459
|
+
// eslint-disable-next-line unicorn/prefer-ternary
|
460
|
+
if (defExp?.indexOf(' AND (' + this._searchExpression) > -1) {
|
461
|
+
this._selectedLayer.definitionExpression = defExp.replace(` AND (${this._searchExpression})`, '');
|
462
|
+
}
|
463
|
+
else {
|
464
|
+
this._selectedLayer.definitionExpression = defExp.replace(this._searchExpression, '');
|
465
|
+
}
|
466
|
+
}
|
467
|
+
this._searchExpression = undefined;
|
468
|
+
}
|
337
469
|
/**
|
338
470
|
* On feature click in feature list highlight the feature on the map
|
339
471
|
* @param event feature clicked event
|
@@ -487,11 +619,13 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
487
619
|
popupTitle = popupTitle ?? oId;
|
488
620
|
// get the formatted like count
|
489
621
|
const formattedLikeCount = Number(selectedFeature.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString();
|
490
|
-
const popupTitleClass = this.textSize === 'small' ? 'feature-list-popup-title-small' : 'feature-list-popup-title';
|
491
|
-
|
622
|
+
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';
|
623
|
+
// Set the width of the popuptitle class depending on calcite list width to avoid icon's overflow
|
624
|
+
const deductedWidth = this.showUserImageInList ? 115 : 65;
|
625
|
+
const width = this._calciteList.offsetWidth - deductedWidth;
|
492
626
|
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 &&
|
493
627
|
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 &&
|
494
|
-
h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), h("div", { class:
|
628
|
+
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 &&
|
495
629
|
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" })));
|
496
630
|
}
|
497
631
|
/**
|
@@ -587,9 +721,12 @@ const FeatureList = /*@__PURE__*/ proxyCustomElement(class FeatureList extends H
|
|
587
721
|
"showFeatureSymbol": [4, "show-feature-symbol"],
|
588
722
|
"applyLayerViewFilter": [4, "apply-layer-view-filter"],
|
589
723
|
"reportingOptions": [16],
|
724
|
+
"showFullTitle": [4, "show-full-title"],
|
590
725
|
"_featureItems": [32],
|
591
726
|
"_featuresCount": [32],
|
592
727
|
"_isLoading": [32],
|
728
|
+
"_searchPlaceHolder": [32],
|
729
|
+
"_fullTextSearchInfo": [32],
|
593
730
|
"_translations": [32],
|
594
731
|
"refresh": [64]
|
595
732
|
}, undefined, {
|
@@ -133,7 +133,7 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
133
133
|
* Renders the component.
|
134
134
|
*/
|
135
135
|
render() {
|
136
|
-
return (h(Host, { key: '
|
136
|
+
return (h(Host, { key: 'b2ba7504abbc8621f2ad4f561920f2125181350d' }, h("div", { key: '1df2a06b4b99ba0ece38ca3d91b622ce9b692c4a', ref: (el) => { this._floorFilterElement = el; } })));
|
137
137
|
}
|
138
138
|
/**
|
139
139
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -298,8 +298,8 @@ const InfoCard = /*@__PURE__*/ proxyCustomElement(class InfoCard extends HTMLEle
|
|
298
298
|
const id = this._features?.selectedFeature?.getObjectId();
|
299
299
|
const ids = parseInt(id?.toString(), 10) > -1 ? [id] : [];
|
300
300
|
const deleteEnabled = this._layer?.editingEnabled && this._layer?.capabilities?.operations?.supportsDelete;
|
301
|
-
return (h(Host, { key: '
|
302
|
-
h("div", { key: '
|
301
|
+
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 &&
|
302
|
+
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)))));
|
303
303
|
}
|
304
304
|
//--------------------------------------------------------------------------
|
305
305
|
//
|
@@ -124,7 +124,7 @@ const JsonEditor = /*@__PURE__*/ proxyCustomElement(class JsonEditor extends HTM
|
|
124
124
|
* Renders the component.
|
125
125
|
*/
|
126
126
|
render() {
|
127
|
-
return (h(Host, { key: '
|
127
|
+
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" })))));
|
128
128
|
}
|
129
129
|
//--------------------------------------------------------------------------
|
130
130
|
//
|
@@ -7,7 +7,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@sten
|
|
7
7
|
import { d as getMapLayerHash, a as getAllLayers, c as getFeatureLayerView } from './mapViewUtils.js';
|
8
8
|
import { f as formatNumber, g as getLocaleComponentStrings } from './locale.js';
|
9
9
|
|
10
|
-
const layerListCss = ":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;
|
10
|
+
const layerListCss = ":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;word-break:break-word}.feature-count{padding:0 10px}";
|
11
11
|
const LayerListStyle0 = layerListCss;
|
12
12
|
|
13
13
|
const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLElement {
|
@@ -248,7 +248,7 @@ const LayerList = /*@__PURE__*/ proxyCustomElement(class LayerList extends HTMLE
|
|
248
248
|
getLayerListItem(layerId) {
|
249
249
|
const layerName = this._layerItemsHash[layerId].name;
|
250
250
|
const featureCount = this._layerItemsHash[layerId].formattedFeatureCount;
|
251
|
-
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:
|
251
|
+
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" })));
|
252
252
|
}
|
253
253
|
/**On click of layer list item emit the event along with the selected layerId and layerName
|
254
254
|
* @param layerId Layer id
|
@@ -727,8 +727,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
727
727
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
728
728
|
const showSearch = this._canShowFullTextSearch();
|
729
729
|
this._validateActiveActions();
|
730
|
-
return (h(Host, { key: '
|
731
|
-
h("div", { key: '
|
730
|
+
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 &&
|
731
|
+
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
|
732
732
|
.replace("{{total}}", total)
|
733
733
|
.replace("{{selected}}", selected))) : undefined), this.createFilterModal && this._filterModal())));
|
734
734
|
}
|
@@ -515,7 +515,7 @@ const MapCard = /*@__PURE__*/ proxyCustomElement(class MapCard extends HTMLEleme
|
|
515
515
|
const mapHeightClass = this.mapInfos?.length > 1 || this.isMapLayout ? "map-height" : "height-full";
|
516
516
|
const progressClass = this.isMapLayout ? "" : "display-none";
|
517
517
|
this._validateActiveActions();
|
518
|
-
return (h(Host, { key: '
|
518
|
+
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 })));
|
519
519
|
}
|
520
520
|
/**
|
521
521
|
* Called each time after the component is loaded
|
@@ -235,7 +235,7 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class MapDrawTools extends
|
|
235
235
|
"border" : "border esri-widget esri-sketch__panel";
|
236
236
|
const undoRedoClass = this.drawMode === EDrawMode.SKETCH ?
|
237
237
|
"display-none" : "esri-widget esri-sketch__panel border-left esri-sketch__section";
|
238
|
-
return (h(Host, { key: '
|
238
|
+
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 })))));
|
239
239
|
}
|
240
240
|
//--------------------------------------------------------------------------
|
241
241
|
//
|
@@ -104,7 +104,7 @@ const MapFullscreen = /*@__PURE__*/ proxyCustomElement(class MapFullscreen exten
|
|
104
104
|
* Renders the component.
|
105
105
|
*/
|
106
106
|
render() {
|
107
|
-
return (h(Host, { key: '
|
107
|
+
return (h(Host, { key: '50488298d31b85071bb8ec898781b8af52a800ae' }, h("div", { key: '24b4c28cd69ce487c851412a839f6762ceaf02b1', class: "fullscreen-widget", ref: (el) => { this._fullscreenElement = el; } })));
|
108
108
|
}
|
109
109
|
/**
|
110
110
|
* StencilJS: Called just after the component updates.
|
@@ -268,7 +268,7 @@ const MapLayerPicker = /*@__PURE__*/ proxyCustomElement(class MapLayerPicker ext
|
|
268
268
|
const id = "map-layer-picker";
|
269
269
|
let style = this.height > 0 ? { "height": `${this.height.toString()}px` } : {};
|
270
270
|
style = { ...style, "display": this.display };
|
271
|
-
return (h(Host, { key: '
|
271
|
+
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() :
|
272
272
|
!this._hasMultipleLayers && this.showSingleLayerAsLabel ? this._getSingleLayerPlaceholder() :
|
273
273
|
this.type === "combobox" ? this._getCombobox(id) :
|
274
274
|
this.type === "select" ? this._getSelect(id) : this._getDropdown(id)))));
|
@@ -86,7 +86,7 @@ const MapLegend = /*@__PURE__*/ proxyCustomElement(class MapLegend extends HTMLE
|
|
86
86
|
* StencilJS: Renders the component.
|
87
87
|
*/
|
88
88
|
render() {
|
89
|
-
return (h(Host, { key: '
|
89
|
+
return (h(Host, { key: '60b355f71d25b3c683f6218941e342899006d839' }, h("div", { key: '7686d302e16fd42cd26777d14c682dc0e951c058', ref: (el) => { this._legendElement = el; } })));
|
90
90
|
}
|
91
91
|
/**
|
92
92
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -157,7 +157,7 @@ const MapPicker = /*@__PURE__*/ proxyCustomElement(class MapPicker extends HTMLE
|
|
157
157
|
* Renders the component.
|
158
158
|
*/
|
159
159
|
render() {
|
160
|
-
return (h(Host, { key: '
|
160
|
+
return (h(Host, { key: 'a16cef5d3d16de605f51ce77450365e8c7f5ba08' }, this._getToolbar(), this._getMapNameList(this._mapListExpanded)));
|
161
161
|
}
|
162
162
|
/**
|
163
163
|
* Called once after the component has loaded
|
@@ -130,7 +130,7 @@ const MapSearch = /*@__PURE__*/ proxyCustomElement(class MapSearch extends HTMLE
|
|
130
130
|
* Renders the component.
|
131
131
|
*/
|
132
132
|
render() {
|
133
|
-
return (h(Host, { key: '
|
133
|
+
return (h(Host, { key: 'fec180c41817a6388f5fdb3f14b72355cbbb1467' }, h("div", { key: '72b3931995d7157572d54069e73fb6bd95eb6f44', class: "search-widget", ref: (el) => { this._searchElement = el; } })));
|
134
134
|
}
|
135
135
|
//--------------------------------------------------------------------------
|
136
136
|
//
|
@@ -408,7 +408,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class MapSelectTools ext
|
|
408
408
|
render() {
|
409
409
|
const mapToolsClass = this.enableSketchTools ? "" : "display-none";
|
410
410
|
const mapToolsContainerClass = this.enableSketchTools ? "padding-top-1" : "";
|
411
|
-
return (h(Host, { key: '
|
411
|
+
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()));
|
412
412
|
}
|
413
413
|
/**
|
414
414
|
* Renders the buffer tools component.
|
@@ -304,7 +304,7 @@ const MapTools = /*@__PURE__*/ proxyCustomElement(class MapTools extends HTMLEle
|
|
304
304
|
const toolMarginClass = this.enableSingleExpand ? "margin-top-1-2" : "";
|
305
305
|
const toolOrder = this.toolOrder ? this.toolOrder : ["legend", "search", "fullscreen", "floorfilter"];
|
306
306
|
const shadowClass = this.stackTools ? "box-shadow" : "";
|
307
|
-
return (h(Host, { key: '
|
307
|
+
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; } })));
|
308
308
|
}
|
309
309
|
//--------------------------------------------------------------------------
|
310
310
|
//
|
@@ -65,7 +65,7 @@ const PciCalculator$1 = /*@__PURE__*/ proxyCustomElement(class PciCalculator ext
|
|
65
65
|
render() {
|
66
66
|
const pciClass = !this.showAddDeduct ? "display-grid" : "display-none";
|
67
67
|
const deductClass = this.showAddDeduct ? "position-relative" : "display-none";
|
68
|
-
return (h(Host, { key: '
|
68
|
+
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) }))));
|
69
69
|
}
|
70
70
|
//--------------------------------------------------------------------------
|
71
71
|
//
|
@@ -320,7 +320,7 @@ const PdfDownload = /*@__PURE__*/ proxyCustomElement(class PdfDownload extends H
|
|
320
320
|
* Renders the component.
|
321
321
|
*/
|
322
322
|
render() {
|
323
|
-
return (h(Host, { key: '
|
323
|
+
return (h(Host, { key: '2fd2ec44e8962468e3698b81e98746ddf6b7a3ca' }, h("calcite-select", { key: 'd24fca5c39aa358116ee8557249f7a4b09727b3f', disabled: this.disabled, label: "", ref: (el) => { this._labelInfoElement = el; } })));
|
324
324
|
}
|
325
325
|
componentDidLoad() {
|
326
326
|
// Render the options outside of Stencil's rendering so that it doesn't mangle RTL text with embedded LTR
|
@@ -416,7 +416,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class PublicNotifi
|
|
416
416
|
*/
|
417
417
|
render() {
|
418
418
|
const headerSlot = this._isMobile ? "footer" : "header";
|
419
|
-
return (h(Host, { key: '
|
419
|
+
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))));
|
420
420
|
}
|
421
421
|
/**
|
422
422
|
* StencilJS: Called once just after the component is first loaded.
|
@@ -165,7 +165,7 @@ const RefineSelection = /*@__PURE__*/ proxyCustomElement(class RefineSelection e
|
|
165
165
|
*/
|
166
166
|
render() {
|
167
167
|
const layerPickerClass = this._enabledLayerIds.length > 1 ? "display-block" : "display-none";
|
168
|
-
return (h(Host, { key: '
|
168
|
+
return (h(Host, { key: '8220100e14abd8339947a74df2d8072d06fb2a25' }, h("div", { key: '1d7426778d638f347b563bfd29478fae7598e2dd', class: layerPickerClass + " padding-top-sides-1" }, h("div", { key: 'cfb649989c24c403bde7d358794933f8f7959bb8', class: "display-flex" }, h("calcite-label", { key: 'dce85bbfa526941a0fb46c1aeba57f4b028948ef', class: "font-bold width-full label-margin-0" }, h("div", { key: '86c19198643381fd99681c53bf0b2b5e66ecf7dc', class: "display-flex" }, this._translations.inputLayer, h("calcite-icon", { key: '392022947cd9f53b4b83895992c5b0b32e56fb06', class: "padding-start-1-2 icon", flipRtl: !(this.locale?.toLowerCase() === "he"), icon: "question", id: "refine-input-layer", scale: "s" })), h("map-layer-picker", { key: 'd0946a46e7a79fc613b9eb9aa3e6f896c12bef92', enabledLayerIds: this._enabledLayerIds, locale: this.locale, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, ref: (el) => { this._layerPicker = el; }, selectedIds: [this._refineLayer.layer.id], showTables: false })), h("calcite-popover", { key: '3b733fd5e7ceb011446112e65aa1ee1b0c5899c7', closable: true, label: "", referenceElement: "refine-input-layer" }, h("span", { key: '2076104710f4fbdd1de1f31b552b17749ebf9239', class: "tooltip-message" }, this._translations.inputLayerTip)))), h("div", { key: '040efdfd6a269244790101cc0712a1cb0bac40d8', class: "padding-1" }, h("div", { key: 'be963f2cb157fda55980166359e53139a5713405', class: "padding-bottom-1" }, h("calcite-segmented-control", { key: '459fa98e8852ea96afd0c9ab5864787f80ff6559', class: "w-100", width: "full" }, h("calcite-segmented-control-item", { key: '965fa774838ecd3292c19a430cdbdfc7b44c82b2', checked: this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.ADD), value: ESelectionMode.ADD }, h("span", { key: 'e0b6fddbded9c78fa98674709ff03f050fd47300', class: "font-weight-500" }, this._translations.add)), h("calcite-segmented-control-item", { key: '56e453183fc559ddbce5b041095fad5a8d6262ab', checked: !this._addEnabled, class: "w-50 word-wrap-anywhere", onClick: () => this._setSelectionMode(ESelectionMode.REMOVE), value: ESelectionMode.REMOVE }, h("span", { key: '13593da569557fa57822c98e12a5654cade219a1', class: "font-weight-500" }, this._translations.remove)))), h("div", { key: '029fec164d9475274294a1d740a434cab2535cdc' }, h("map-draw-tools", { key: 'a212c5d21b2b1cdf7ba284a95dacaf83cf0180c9', active: true, drawMode: EDrawMode.REFINE, locale: this.locale, mapView: this.mapView, onDrawRedo: () => this._redo(), onDrawUndo: () => this._undo(), onSketchGraphicsChange: (evt) => this._sketchGraphicsChanged(evt), pointSymbol: this.sketchPointSymbol, polygonSymbol: this.sketchPolygonSymbol, polylineSymbol: this.sketchLineSymbol, redoEnabled: this._refineSelectionSet?.redoStack.length > 0, ref: (el) => { this._drawTools = el; }, undoEnabled: this._refineSelectionSet?.undoStack.length > 0 })), h("br", { key: '352a0523461cfeeae3bae09ae1cc6f8fa759616b' }), (h("calcite-list", { key: '948c7f0aa24d827d29cbc1c2c702deb52134e771', class: "list-border", label: "" }, this._getRefineSelectionSetList())))));
|
169
169
|
}
|
170
170
|
//--------------------------------------------------------------------------
|
171
171
|
//
|
@@ -1190,11 +1190,11 @@ const SolutionConfiguration$1 = /*@__PURE__*/ proxyCustomElement(class SolutionC
|
|
1190
1190
|
const solutionData = state.getStoreInfo("solutionData");
|
1191
1191
|
this._solutionVariables = JSON.stringify(getSolutionVariables(solutionData.templates, this._translations));
|
1192
1192
|
this._organizationVariables = JSON.stringify(getOrganizationVariables(this._translations));
|
1193
|
-
return (h(Host, { key: '
|
1193
|
+
return (h(Host, { key: 'dd68b412fe4fbf053491eb1a7ec6a3c1703ceb17' }, !this._solutionIsLoaded
|
1194
1194
|
? h("calcite-loader", { label: '' })
|
1195
|
-
: null, h("div", { key: '
|
1195
|
+
: null, h("div", { key: 'b36eee569f4ca90453f0c3eca215576f8e98b95a', class: "configuration-container" }, h("div", { key: '653f75751fc960cce09cbb653504600dbe6f01c7', class: "configuration" }, h("calcite-tabs", { key: 'de3dd520000f03cada90e7bb7964583e62adf229', class: "config-tabs" }, h("calcite-tab-nav", { key: '846d714f94a2476314f7843682483e4cda407a7c', slot: "tab-nav" }, h("calcite-tab-title", { key: '7146aced1bd7dd4928e2bd6c49d52ef3003aabc1' }, this._translations.definitionTab), hasServices ?
|
1196
1196
|
h("calcite-tab-title", null, this._translations.spatialReferenceTab) :
|
1197
|
-
null), h("calcite-tab", { key: '
|
1197
|
+
null), h("calcite-tab", { key: '5b8672dd8089a21a49139c2bedc4a9ab91d2b2e2', class: "config-tab", selected: true }, h("div", { key: '1bf9bf03f6418212807afc5657e807faa45557d6', class: "config-solution" }, h("div", { key: '718a6a90a39844562d547e4e08abc4b133945a68', class: this._treeOpen ? "config-inventory" : "config-inventory-hide" }, h("solution-contents", { id: "configInventory", key: `${this.solutionItemId}-contents`, ref: (el) => (this._solutionContentsComponent = el) })), h("calcite-button", { key: '25039c4b3c3e97d587fd3d3aec4791f53875d9bf', appearance: "transparent", class: "collapse-btn", "icon-start": this._treeOpen ? "chevrons-left" : "chevrons-right", id: "collapse-vars", onClick: () => this._toggleTree(), scale: "s", title: this._treeOpen ? this._translations.collapse : this._translations.expand }), h("div", { key: '5970c8ed59c6cb9fa02c574c3c1a3949940dfec6', class: "config-item" }, h("solution-item", { authentication: this.authentication, "item-id": this._currentEditItemId, key: `${this.solutionItemId}-item`, locale: this.locale, "organization-variables": this._organizationVariables, "solution-item-id": this.solutionItemId, "solution-variables": this._solutionVariables })))), hasServices
|
1198
1198
|
? h("calcite-tab", { class: "config-tab" }, h("div", { class: "config-solution" }, h("solution-spatial-ref", { enableDefault: !!spatialReferenceInfo.default, enabled: spatialReferenceInfo?.enabled, featureServices: state.getStoreInfo("featureServices").map(fs => fs.name), id: "configure-solution-spatial-ref", key: `${this.solutionItemId}-spatial-ref`, locale: this.locale })))
|
1199
1199
|
: null)))));
|
1200
1200
|
}
|