@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
@@ -21,7 +21,7 @@ require('./restHelpersGet-e4639890.js');
|
|
21
21
|
require('./update-243ea407.js');
|
22
22
|
require('./interfaces-09c4c40e.js');
|
23
23
|
|
24
|
-
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-
|
24
|
+
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)}";
|
25
25
|
const FeatureListStyle0 = featureListCss;
|
26
26
|
|
27
27
|
const FeatureList = class {
|
@@ -99,6 +99,10 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
253
276
|
this._popupUtils = new popupUtils.PopupUtils();
|
254
277
|
if (this.mapView && this.selectedLayerId) {
|
255
278
|
this._selectedLayer = await mapViewUtils.getLayerOrTable(this.mapView, this.selectedLayerId);
|
279
|
+
this._getFullTextSearchInfo();
|
256
280
|
}
|
257
281
|
}
|
258
282
|
/**
|
@@ -265,9 +289,11 @@ const FeatureList = class {
|
|
265
289
|
* Renders the component.
|
266
290
|
*/
|
267
291
|
render() {
|
268
|
-
|
269
|
-
|
270
|
-
index.h("
|
292
|
+
const showSearch = this._canShowFullTextSearch();
|
293
|
+
return (index.h("calcite-panel", { key: '56599be334eec65be00681d415db28917133b0c1', "full-height": true, "full-width": true }, showSearch &&
|
294
|
+
index.h("calcite-input", { key: '6de9873f6b7ab961dffe1334d2fc20b4322d8ea8', class: "search", clearable: true, icon: "search", onCalciteInputChange: this._searchTextChanged.bind(this), placeholder: this._searchPlaceHolder, title: '', type: "search" }), this._isLoading && index.h("calcite-loader", { key: '4189b0d6c2a85116d529f5b7844c1f2d41657350', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
295
|
+
index.h("calcite-notice", { key: '7f2e8276ad5345e21667b2dedc7e23f5c34672f5', class: "error-msg", icon: "feature-details", kind: "info", open: true }, index.h("div", { key: '63d44ac906c8d5584aac2cfbeec4cf0962d61abe', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), index.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
|
+
index.h("div", { key: '288364bc505fe6bce8b1260dce5173163a795330', class: "width-full", slot: "footer" }, index.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 @@ const FeatureList = class {
|
|
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 @@ const FeatureList = class {
|
|
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 (index.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
|
index.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
|
-
index.h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), index.h("div", { class:
|
639
|
+
index.h("div", { class: 'feature-symbol', ref: (el) => el && el.replaceChildren(featureSymbol), slot: "content-start" }), index.h("div", { class: `popup-title ${popupTitleClass}`, slot: "content-start", style: { maxWidth: this.textSize === 'large' ? 'none' : `${width}px` } }, popupTitle), this._likeFieldAvailable &&
|
506
640
|
index.h("div", { class: "like-container", id: oId.concat("like"), slot: "content-end" }, index.h("span", null, this._abbreviatedLikeCount), index.h("calcite-icon", { icon: "thumbs-up", scale: 's' }), index.h("calcite-tooltip", { overlayPositioning: "fixed", placement: "top", "reference-element": oId.concat("like") }, formattedLikeCount)), index.h("calcite-icon", { flipRtl: true, icon: "chevron-right", scale: "s", slot: "content-end" })));
|
507
641
|
}
|
508
642
|
/**
|
@@ -135,7 +135,7 @@ const JsonEditor = class {
|
|
135
135
|
* Renders the component.
|
136
136
|
*/
|
137
137
|
render() {
|
138
|
-
return (index.h(index.Host, { key: '
|
138
|
+
return (index.h(index.Host, { key: 'e9c806dbfc886daac9be93350e461246339787dd' }, index.h("div", { key: '5f31103bc0392042581d1421530f2ddcdebcc507', id: `${this.instanceid}-editor-container`, class: "editor-container padding-right" }, index.h("div", { key: '560c74b9864cd94f4e689bf65cb8e1fac42b94af', class: "editor-controls" }, index.h("div", { key: '73ca9ac97f3d40fb408e98477641a9d94e1cd32e', class: "editor-buttons" }, index.h("calcite-icon", { key: '2d83934e4493595f66e047c608a87e316279ec1b', id: `${this.instanceid}-errorFlag`, icon: "exclamation-mark-triangle", title: this._translations.errorFlag, scale: "s", class: "edit-error-flag" }), index.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" }, index.h("calcite-icon", { key: 'd802118d2ac7b8cbf2750f3af11252fd52173dd0', icon: "undo", scale: "s" })), index.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" }, index.h("calcite-icon", { key: 'bb5bfd3a99902b03c4ffb704b8fdc963c006e664', icon: "redo", scale: "s" })), index.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" }, index.h("calcite-icon", { key: 'f902baf72fee24ef3b56da2c4d9337db96ab63b1', icon: "compare", scale: "s" })), index.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" }, index.h("calcite-icon", { key: '01c24bdbf30cd22a06064bf26a47b38516508879', icon: "search", scale: "s" })), index.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" }, index.h("calcite-icon", { key: 'a373dc694d97992dfbd60f49f38536ba34684381', icon: "reset", scale: "s" })))), index.h("div", { key: '6cdebae478b9d1b61e317155000bf62ad4c5b8a3', class: "edit-parent" }, index.h("div", { key: 'e3914618f86335e9538969b5cb7f7797212985c2', id: `${this.instanceid}-container`, class: "json-edit-container" }), index.h("div", { key: '4a17fd062060ddf2e5dca5c2fb6c9883ed9aadd4', id: `${this.instanceid}-diff-container`, class: "json-edit-container display-none" })))));
|
139
139
|
}
|
140
140
|
//--------------------------------------------------------------------------
|
141
141
|
//
|
@@ -512,7 +512,7 @@ const SolutionItemDetails = class {
|
|
512
512
|
* Renders the component.
|
513
513
|
*/
|
514
514
|
render() {
|
515
|
-
return (index.h(index.Host, { key: '
|
515
|
+
return (index.h(index.Host, { key: '8ad2bab229a9ee6cd80efde17d269a484288f5ae' }, index.h("div", { key: 'a066afedf3e5ea056579e07cac6c38496fe00d79', class: "parent-container" }, index.h("div", { key: 'fe7d207e2d28f0e70507ef048d993bc3ddc62297', class: "inputBottomSeparation" }, index.h("calcite-input", { key: 'f0714ef845c9b4aa791e3fc6f5ac28fe6572127d', id: "item-title", value: this.itemDetails.title })), index.h("div", { key: '40b6f0d4d34ff62134f25fdd42887f395407aa45', class: "inputBottomSeparation" }, index.h("input", { key: '216060434e37ff499a47b4cc24d7682ac6e55ba7', accept: ".jpg,.gif,.png,image/jpg,image/gif,image/png", class: "display-none", onChange: (event) => (this._updateThumbnail(event)), ref: (el) => (this.browseForThumbnail = el), type: "file" }), index.h("button", { key: 'a6b71fac06b9231a91b32a0416cb3a723b6ac6dd', class: "font-size--3 btn-link inline-block trailer-quarter", onClick: () => this._getThumbnail() }, index.h("svg", { key: '395adfcd43d737fe049f765b3700d7358c06e8a0', class: "icon-inline icon-inline--on-left", height: "16", viewBox: "0 0 16 16", width: "16" }, index.h("path", { key: '5e541a3fcb79fe3a306b720a08e745f0dd69d557', d: "M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z" })), this._translations.editThumbnail), index.h("div", { key: 'e6dc45b53a0deac24d29a7be29569c55857a7801', class: "flex" }, index.h("div", { key: '8c81b6db29e4b03a5188e729eb8e27b8dcf22e5f', class: "img-container", ref: (el) => (this.thumbnailContainer = el) }, index.h("img", { key: 'cfbfad50a4eb55166cb49be45a20f680b7d482d3', class: "scale-down", height: "133", id: "item-thumbnail", ref: (el) => (this.thumbnail = el), width: "200" })), index.h("div", { key: '0cf010a87106c0434ff7d54f7889bc2eb08fd733', class: "snippet-count-container" }, index.h("calcite-input", { key: '85eedc1b801db3afdc2dfb606aa93de489bac491', id: "item-snippet", maxLength: 250, type: "textarea", value: this.itemDetails.snippet }), index.h("label", { key: '783be9f5082085add36a16f1a8bc55ecc11dc7e8', class: "font-size--3", id: "item-snippet-count", ref: (el) => (this.itemSnippetCount = el) })))), index.h("calcite-label", { key: '63bdfb42b95d1e8086e792efd757919676230354' }, this._translations.description, index.h("label", { key: 'aa9056a2807d9fd14c7dcd81775d902a30a2df63', id: "item-description-label" }, index.h("calcite-input", { key: '61d584f29afd305913039e0cf4d6be7d54f1aa2f', id: "item-description", type: "textarea", value: this.itemDetails.description }))), index.h("calcite-label", { key: '4daf0f44b2b14274fe8992bad5607c8ba82d6fa4' }, this._translations.tags, index.h("label", { key: '142f41ae1667c916e2ef32e7b7eb9aacad80e17d', id: "item-tags-label" }, index.h("calcite-input", { key: '2f576b51a68370ce1112b999c35eef0714595e9f', id: "item-tags", value: (this.itemDetails.tags && Array.isArray(this.itemDetails.tags) ? this.itemDetails.tags : [this.itemDetails.tags]).join(",") }))), this.itemType !== "Group" ? index.h("calcite-label", null, this._translations.credits, index.h("label", { id: "item-credits-label" }, index.h("calcite-input", { id: "item-credits", value: this.itemDetails.accessInformation }))) : null, this.itemType !== "Group" ? index.h("calcite-label", null, index.h("label", { id: "item-terms-label" }, this._translations.termsOfUse, index.h("calcite-input", { id: "item-terms", type: "textarea", value: this.itemDetails.licenseInfo }))) : null)));
|
516
516
|
}
|
517
517
|
componentDidRender() {
|
518
518
|
this._loadThumb();
|
@@ -738,7 +738,7 @@ const SolutionItemSharing = class {
|
|
738
738
|
* Renders the component.
|
739
739
|
*/
|
740
740
|
render() {
|
741
|
-
return (index.h(index.Host, { key: '
|
741
|
+
return (index.h(index.Host, { key: '1c7dbee68fbf0eabf736fb783f173ade2f408122' }, index.h("div", { key: '3c3d88ab122d4a8bc69363224a2754c4a4b092ba', class: "container-border" }, index.h("calcite-label", { key: '137bb704b258a3cd1e5e5b7a18c53aca331d7f91' }, this._translations.groupInfo), this._renderItems(this.sharing))));
|
742
742
|
}
|
743
743
|
//--------------------------------------------------------------------------
|
744
744
|
//
|
@@ -895,7 +895,7 @@ const SolutionOrganizationVariables = class {
|
|
895
895
|
* Renders the component.
|
896
896
|
*/
|
897
897
|
render() {
|
898
|
-
return (index.h(index.Host, { key: '
|
898
|
+
return (index.h(index.Host, { key: '3f72a5c1b8fb6bcdab858ee061eadb38cb9965d9' }, index.h("div", { key: '118c7cafc8330c44e72a59a76fd81ca0f39696e1' }, index.h("h4", { key: '86934bdf3cbf162a732a53579e324c5fff8beead', class: "org-var-header" }, this._translations.orgVariables)), index.h("div", { key: 'ed5c1df397286a7d1c8e61b5ce04623fa13d74cc', class: "container-border" }, index.h("calcite-tree", { key: '47f4f9bf5a81ded9a37a33a94fac6a230263e917', id: "variable-label" }, this._renderHierarchy(this._organizationVariables)))));
|
899
899
|
}
|
900
900
|
//--------------------------------------------------------------------------
|
901
901
|
//
|
@@ -1031,7 +1031,7 @@ const SolutionResourceItem = class {
|
|
1031
1031
|
*/
|
1032
1032
|
render() {
|
1033
1033
|
const hasValidResources = this._hasValidResources();
|
1034
|
-
return (index.h(index.Host, { key: '
|
1034
|
+
return (index.h(index.Host, { key: '13f2759a882d2eca48bf9dda58e74caade76142b' }, index.h("div", { key: '498ced2e29b8af9138a8aa9d77ec78e07e3c64de', class: "resource-item" }, index.h("div", { key: 'd76a967373a990906a67d88ea6466030c41401ff', class: "margin-bottom-1" }, index.h("calcite-button", { key: '96cd2ee08adadef9e1b29db12c38d4748b0689c0', appearance: "solid", class: "resource-button", color: "blue", onClick: () => this._addNewResource() }, this._translations.addResource), index.h("calcite-button", { key: '49326139cad065995512d3e3568c7d8e7f5cef4f', appearance: "solid", color: "blue", disabled: !hasValidResources, onClick: () => this._downloadAll() }, this._translations.downloadAll)), index.h("div", { key: '9c056d9ab7242ea10cbcf57eaabce4bd9777541e', class: "resources-container", style: { display: hasValidResources ? "inherit" : "none" } }, this._renderResourceList()))));
|
1035
1035
|
}
|
1036
1036
|
//--------------------------------------------------------------------------
|
1037
1037
|
//
|
@@ -1376,7 +1376,7 @@ const SolutionTemplateData = class {
|
|
1376
1376
|
* Renders the component.
|
1377
1377
|
*/
|
1378
1378
|
render() {
|
1379
|
-
return (index.h(index.Host, { key: '
|
1379
|
+
return (index.h(index.Host, { key: '3f853006c19509c8cf484d4420b3f687aaad5161' }, index.h("div", { key: 'f524e1ee3c8dc972779be0909372c11c26092dd0', class: "solution-data-container" }, index.h("calcite-shell", { key: '56797702bc53b08051360975dc529c884eb7d294', class: "light var-container", dir: "ltr" }, index.h("calcite-panel", { key: '6208ac7b63ab8b69bc29ad88abdb9bcdeaaa707a', class: "json-editor" }, index.h("div", { key: '66e99550359b5665b4dd04f794d8108e4ee34284', class: "solution-data-child-container calcite-match-height" }, index.h("json-editor", { key: '7a7f5afa5d424fb6099b7167f274ce211e791a56', class: "solution-data-editor-container", instanceid: this.itemId + "|" + this.instanceid, locale: this.locale, value: this.value }))), index.h("calcite-shell-panel", { key: '7cc8bac91bfc5be96018d005cc87be457278ed6d', "height-scale": "l", position: "end", slot: "contextual-panel", "width-scale": "xs" }, index.h("div", { key: '4ce0c251d30d5735781394f5c213523867205886', class: this.varsOpen ? "solution-data-child-container" : "solution-data-child-container-collapsed" }, index.h("calcite-button", { key: '814c8996b854102b022f7ac482498dd6aac36ec8', appearance: "transparent", class: "collapse-btn", "icon-start": this.varsOpen ? "chevrons-right" : "chevrons-left", id: "collapse-vars", onClick: () => this._toggleVars(), scale: "s", title: this.varsOpen ? this._translations.collapse : this._translations.expand }), index.h("div", { key: '6b872cfc1c60870fb6262808f5d9f61cc35f0f44', class: this.varsOpen ? "org-vars" : "org-vars display-none", id: "orgVars" }, index.h("solution-organization-variables", { key: 'e8e9ee594b6dcb5ddaabd05c322fb33d568ac7b5', locale: this.locale, value: this.organizationVariables })), index.h("div", { key: '109d17a77a54a13818af6aa2a9beb92526100ea7', class: this.varsOpen ? "sol-vars" : "sol-vars display-none", id: "solVars" }, index.h("solution-variables", { key: '46902ed69897ed01334def99817fedafbda2e8d5', locale: this.locale, value: this.solutionVariables }))))))));
|
1380
1380
|
}
|
1381
1381
|
//--------------------------------------------------------------------------
|
1382
1382
|
//
|
@@ -1485,7 +1485,7 @@ const SolutionVariables = class {
|
|
1485
1485
|
* Renders the component.
|
1486
1486
|
*/
|
1487
1487
|
render() {
|
1488
|
-
return (index.h(index.Host, { key: '
|
1488
|
+
return (index.h(index.Host, { key: 'a90cdfc9a32279cb07938fc57f9dd7e38d822f6d' }, index.h("div", { key: '6826e3dd84034368f419ff759962a721a275dc9c' }, index.h("h4", { key: '5ebdf456e8c4dc006b036dc182fa75218aac0e01', class: "org-var-header" }, this._translations.solVariables)), index.h("div", { key: '06fc04c1e61dc1897989e3cc11df7b173f1fdb2a', class: "container-border" }, index.h("calcite-tree", { key: '15500194129af7440ec05dc495b060fc18f22324', id: "variable-label" }, this._renderHierarchy(this._solutionVariables)))));
|
1489
1489
|
}
|
1490
1490
|
//--------------------------------------------------------------------------
|
1491
1491
|
//
|