@esri/solutions-components 0.8.23 → 0.8.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
- package/dist/cjs/buffer-tools_3.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-avatar.cjs.entry.js → calcite-avatar_2.cjs.entry.js} +62 -0
- package/dist/cjs/calcite-block_5.cjs.entry.js +12 -3
- package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +419 -0
- package/dist/cjs/{calcite-dropdown_4.cjs.entry.js → calcite-dropdown_2.cjs.entry.js} +12 -435
- package/dist/cjs/calcite-flow_6.cjs.entry.js +44 -34
- package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +58 -38
- package/dist/cjs/feature-list.cjs.entry.js +5 -4
- package/dist/cjs/{helpers-9347ad83.js → helpers-618a3f7d.js} +2 -1
- package/dist/cjs/instant-apps-create.cjs.entry.js +266 -0
- package/dist/cjs/instant-apps-export.cjs.entry.js +31 -16
- package/dist/cjs/instant-apps-header.cjs.entry.js +3 -2
- package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +11 -4
- package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +2 -2
- package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-landing-page.cjs.entry.js +45 -9
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-sign-in.cjs.entry.js +168 -0
- package/dist/cjs/{languageSwitcher-395021d6.js → languageSwitcher-b9a1485c.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/resources-fa37e40f.js +26 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/arcgis-login/arcgis-login.js +1 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +1 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +9 -2
- package/dist/collection/components/create-related-feature/create-related-feature.js +9 -2
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +58 -47
- package/dist/collection/components/feature-details/feature-details.css +4 -4
- package/dist/collection/components/feature-details/feature-details.js +62 -18
- package/dist/collection/components/feature-list/feature-list.css +2 -0
- package/dist/collection/components/feature-list/feature-list.js +22 -3
- package/dist/collection/components/layer-list/layer-list.js +6 -13
- package/dist/collection/components/public-notification/public-notification.js +3 -3
- package/dist/collection/demos/crowdsource-reporter.html +22 -15
- package/dist/collection/utils/interfaces.ts +1 -0
- package/dist/components/arcgis-login.js +1 -1
- package/dist/components/basemap-gallery2.js +1 -1
- package/dist/components/buffer-tools2.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -99
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/create-feature2.js +9 -2
- package/dist/components/create-related-feature2.js +9 -2
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +59 -39
- package/dist/components/feature-details2.js +22 -17
- package/dist/components/feature-list2.js +6 -4
- package/dist/components/helpers.js +3 -2
- package/dist/components/instant-apps-ckeditor-wrapper2.js +1 -1
- package/dist/components/instant-apps-create.js +317 -0
- package/dist/components/instant-apps-export.js +32 -16
- package/dist/components/instant-apps-filter-list2.js +6 -1
- package/dist/components/instant-apps-header2.js +3 -2
- package/dist/components/instant-apps-interactive-legend-classic2.js +12 -5
- package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +2 -2
- package/dist/components/instant-apps-landing-page.js +91 -16
- package/dist/components/instant-apps-language-translator2.js +3 -1
- package/dist/components/instant-apps-sign-in.js +11 -0
- package/dist/components/instant-apps-sign-in2.js +243 -0
- package/dist/components/instant-apps-social-share2.js +8 -2
- package/dist/components/layer-list2.js +6 -13
- package/dist/{esm/calcite-navigation-user.entry.js → components/navigation-user.js} +46 -9
- package/dist/components/public-notification.js +3 -3
- package/dist/esm/arcgis-login.entry.js +1 -1
- package/dist/esm/basemap-gallery_7.entry.js +1 -1
- package/dist/esm/buffer-tools_3.entry.js +1 -1
- package/dist/esm/{calcite-avatar.entry.js → calcite-avatar_2.entry.js} +64 -3
- package/dist/esm/calcite-block_5.entry.js +12 -3
- package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
- package/dist/esm/calcite-color-picker.entry.js +1 -1
- package/dist/esm/calcite-dropdown-group_2.entry.js +414 -0
- package/dist/esm/{calcite-dropdown_4.entry.js → calcite-dropdown_2.entry.js} +2 -423
- package/dist/esm/calcite-flow_6.entry.js +44 -34
- package/dist/esm/card-manager_3.entry.js +1 -1
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +58 -38
- package/dist/esm/feature-list.entry.js +5 -4
- package/dist/esm/{helpers-a5a81b9d.js → helpers-61b05164.js} +3 -2
- package/dist/esm/instant-apps-create.entry.js +262 -0
- package/dist/esm/instant-apps-export.entry.js +31 -16
- package/dist/esm/instant-apps-header.entry.js +3 -2
- package/dist/esm/instant-apps-interactive-legend-classic.entry.js +11 -4
- package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +1 -1
- package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +2 -2
- package/dist/esm/instant-apps-interactive-legend.entry.js +1 -1
- package/dist/esm/instant-apps-landing-page.entry.js +46 -10
- package/dist/esm/instant-apps-language-switcher.entry.js +1 -1
- package/dist/esm/instant-apps-language-translator.entry.js +1 -1
- package/dist/esm/instant-apps-sign-in.entry.js +164 -0
- package/dist/esm/{languageSwitcher-a4a615e4.js → languageSwitcher-d60f03b2.js} +3 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/resources-16800cce.js +24 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/{utils-6419e941.js → utils-251cb6de.js} +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-create/instant-apps-create.css +150 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +16 -9
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +19 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +98 -0
- package/dist/solutions-components/demos/crowdsource-reporter.html +22 -15
- package/dist/solutions-components/{p-88495699.entry.js → p-16730f05.entry.js} +1 -1
- package/dist/solutions-components/p-1ae3b886.entry.js +17 -0
- package/dist/solutions-components/{p-63460d51.entry.js → p-1ff9eb95.entry.js} +1 -1
- package/dist/solutions-components/{p-8f6e0ae5.entry.js → p-26eb1225.entry.js} +1 -1
- package/dist/solutions-components/{p-3a2e0188.entry.js → p-2c044250.entry.js} +2 -2
- package/dist/solutions-components/p-314dc933.entry.js +6 -0
- package/dist/solutions-components/p-50741707.entry.js +6 -0
- package/dist/solutions-components/p-5b817c98.entry.js +6 -0
- package/dist/solutions-components/p-614ebce7.js +6 -0
- package/dist/solutions-components/p-686fa7ce.entry.js +6 -0
- package/dist/solutions-components/{p-df73649e.entry.js → p-77cd573b.entry.js} +1 -1
- package/dist/solutions-components/{p-c95dcdf7.entry.js → p-7883b885.entry.js} +3 -3
- package/dist/solutions-components/p-79e2e203.entry.js +6 -0
- package/dist/solutions-components/{p-968a6fd8.entry.js → p-7b17e929.entry.js} +1 -1
- package/dist/solutions-components/p-80b3eb6b.entry.js +6 -0
- package/dist/solutions-components/p-84913712.js +6 -0
- package/dist/solutions-components/p-8c500fd7.entry.js +6 -0
- package/dist/solutions-components/{p-fe9d6d06.js → p-9f56c02c.js} +1 -1
- package/dist/solutions-components/{p-667c022f.entry.js → p-af4be4ce.entry.js} +1 -1
- package/dist/solutions-components/p-bb2e669d.entry.js +6 -0
- package/dist/solutions-components/p-c2ec0dcc.entry.js +17 -0
- package/dist/solutions-components/p-c41997d5.js +11 -0
- package/dist/solutions-components/p-c512fcfb.entry.js +6 -0
- package/dist/solutions-components/{p-21d6360a.entry.js → p-c7f0e7a8.entry.js} +1 -1
- package/dist/solutions-components/{p-9c7d4343.entry.js → p-cd91c3e7.entry.js} +1 -1
- package/dist/solutions-components/p-ceba37d3.entry.js +11 -0
- package/dist/solutions-components/{p-09b769b7.entry.js → p-d8a15e32.entry.js} +1 -1
- package/dist/solutions-components/p-d8da6406.entry.js +6 -0
- package/dist/solutions-components/p-da6b3c8a.entry.js +6 -0
- package/dist/solutions-components/{p-60f1055e.entry.js → p-e2400b0d.entry.js} +1 -1
- package/dist/solutions-components/p-f35cc7ae.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +1 -0
- package/dist/types/components/create-feature/create-feature.d.ts +4 -0
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +4 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +18 -7
- package/dist/types/components/feature-details/feature-details.d.ts +17 -1
- package/dist/types/components/feature-list/feature-list.d.ts +4 -0
- package/dist/types/components/layer-list/layer-list.d.ts +1 -1
- package/dist/types/components.d.ts +25 -2
- package/dist/types/preact.d.ts +7 -2
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/calcite-navigation-user.cjs.entry.js +0 -73
- package/dist/solutions-components/p-08a1e120.js +0 -6
- package/dist/solutions-components/p-3283660c.entry.js +0 -6
- package/dist/solutions-components/p-33647277.entry.js +0 -6
- package/dist/solutions-components/p-3af0764f.entry.js +0 -6
- package/dist/solutions-components/p-41d288c0.entry.js +0 -6
- package/dist/solutions-components/p-599dcc29.js +0 -6
- package/dist/solutions-components/p-64b4b579.entry.js +0 -11
- package/dist/solutions-components/p-64da5bb8.entry.js +0 -17
- package/dist/solutions-components/p-ab96dd27.entry.js +0 -6
- package/dist/solutions-components/p-bb0c7be3.entry.js +0 -17
- package/dist/solutions-components/p-bb8e3add.entry.js +0 -11
- package/dist/solutions-components/p-c36bb8ca.entry.js +0 -6
- package/dist/solutions-components/p-cbe166fc.entry.js +0 -6
- package/dist/solutions-components/p-eab95aa4.entry.js +0 -6
- package/dist/solutions-components/p-f6a1673c.entry.js +0 -6
@@ -30,6 +30,7 @@ export class FeatureDetails {
|
|
30
30
|
this.mapView = undefined;
|
31
31
|
this.graphics = undefined;
|
32
32
|
this.reportingOptions = undefined;
|
33
|
+
this.layerItemsHash = undefined;
|
33
34
|
this._likeFieldAvailable = false;
|
34
35
|
this._likeCount = 0;
|
35
36
|
this._disLikeCount = 0;
|
@@ -38,6 +39,7 @@ export class FeatureDetails {
|
|
38
39
|
this._isLikeBtnClicked = false;
|
39
40
|
this._isDislikeBtnClicked = false;
|
40
41
|
this._relatedFeaturesOIDs = undefined;
|
42
|
+
this._updating = false;
|
41
43
|
}
|
42
44
|
//--------------------------------------------------------------------------
|
43
45
|
//
|
@@ -109,12 +111,12 @@ export class FeatureDetails {
|
|
109
111
|
var _a, _b, _c, _d, _e;
|
110
112
|
//When related features found show comments list of only those features else comments list will be empty
|
111
113
|
const commentsListWhereClause = ((_a = this._relatedFeaturesOIDs) === null || _a === void 0 ? void 0 : _a.length) > 0 ? `objectId in(${this._relatedFeaturesOIDs})` : '1=0';
|
112
|
-
return (h("calcite-panel", { key: '
|
113
|
-
h("div", { key: '
|
114
|
-
h("div", { key: '
|
115
|
-
h("calcite-button", { key: '
|
116
|
-
h("calcite-button", { key: '
|
117
|
-
h("feature-list", { key: '
|
114
|
+
return (h("calcite-panel", { key: '8d7069fec0df2a6217c175df6171376b4412c548', "full-height": true }, h("info-card", { key: '3713b783371bcb36a9b844196033326941d833f5', allowEditing: false, graphics: this.graphics, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: (e) => { this.featureSelectionChange.emit(e.detail); }, paginationEnabled: false, position: "relative", ref: el => this._infoCard = el }), (this._likeFieldAvailable || this._dislikeFieldAvailable || this._commentsAvailable) &&
|
115
|
+
h("div", { key: '8c84e82708fab0d6091050672b26e6fa2de59345', class: "buttons-container" }, this._commentsAvailable &&
|
116
|
+
h("div", { key: '22edb3f17ef6a2bdef67e5e94492966986d452b7', class: "comment-btn" }, h("span", { key: '03b7eb0aff4358aac3020b3d6d52a2d47b308a41' }, this._relatedFeaturesOIDs.length), h("calcite-icon", { key: '5225e156b45a15db0055a28ed21bc3511dedc706', icon: "speech-bubble", scale: 's' })), this._likeFieldAvailable &&
|
117
|
+
h("calcite-button", { key: '1a291524d46c6f826813c87f781e7d6bcf5bc097', appearance: "transparent", iconEnd: "thumbs-up", kind: this._isLikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onLikeButtonClick.bind(this), scale: 'm' }, (_c = (_b = this._likeCount) !== null && _b !== void 0 ? _b : this._selectedGraphic.attributes[this._likeField]) !== null && _c !== void 0 ? _c : 0), this._dislikeFieldAvailable &&
|
118
|
+
h("calcite-button", { key: 'da6bee2189565c1eb70564b340e742494bac35c9', appearance: "transparent", iconEnd: "thumbs-down", kind: this._isDislikeBtnClicked ? "brand" : "neutral", loading: this._updating, onClick: this.onDislikeButtonClick.bind(this), scale: 'm' }, (_e = (_d = this._disLikeCount) !== null && _d !== void 0 ? _d : this._selectedGraphic.attributes[this._dislikeField]) !== null && _e !== void 0 ? _e : 0)), this.relatedTableId && this._commentsAvailable &&
|
119
|
+
h("feature-list", { key: 'fd6faa9f3404a2dfadb102ca7c578ffb47207729', class: "height-full", mapView: this.mapView, onFeatureSelect: (e) => { this.commentSelect.emit(e.detail); }, pageSize: 5, ref: el => this._commentsList = el, selectedLayerId: this.relatedTableId, showErrorWhenNoFeatures: false, showInitialLoading: false, textSize: "small", whereClause: commentsListWhereClause })));
|
118
120
|
}
|
119
121
|
/**
|
120
122
|
* Load esri javascript api modules
|
@@ -151,7 +153,8 @@ export class FeatureDetails {
|
|
151
153
|
async processComments() {
|
152
154
|
var _a;
|
153
155
|
const selectedLayer = this._selectedGraphic.layer;
|
154
|
-
const commentsConfigured = this.reportingOptions[selectedLayer.id]
|
156
|
+
const commentsConfigured = this.reportingOptions && this.reportingOptions[selectedLayer.id] &&
|
157
|
+
this.reportingOptions[selectedLayer.id].comment && ((_a = selectedLayer.relationships) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
155
158
|
if (commentsConfigured) {
|
156
159
|
//Get comments table id from map
|
157
160
|
const relatedTableIdFromRelnship = selectedLayer.relationships[0].relatedTableId;
|
@@ -216,7 +219,7 @@ export class FeatureDetails {
|
|
216
219
|
}
|
217
220
|
//Check if selected layer have the configured like and dislike field and it is of integer types
|
218
221
|
selectedLayer.fields.forEach((eachField) => {
|
219
|
-
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
222
|
+
if (this._validFieldTypes.indexOf(eachField.type) > -1 && this.layerItemsHash[selectedLayer.id].supportsUpdate) {
|
220
223
|
if (eachField.name === likeField && this.reportingOptions[selectedLayer.id].like) {
|
221
224
|
likeFieldAvailable = true;
|
222
225
|
}
|
@@ -251,12 +254,12 @@ export class FeatureDetails {
|
|
251
254
|
//Check if selected layer have the configured like and dislike fields
|
252
255
|
//also, get the current value for like and dislike field from the attributes
|
253
256
|
selectedLayer.fields.forEach((eachField) => {
|
254
|
-
if (this._validFieldTypes.indexOf(eachField.type) > -1) {
|
255
|
-
if (eachField.name === this._likeField && this.reportingOptions[
|
257
|
+
if (this._validFieldTypes.indexOf(eachField.type) > -1 && this.layerItemsHash[selectedLayer.id].supportsUpdate) {
|
258
|
+
if (eachField.name === this._likeField && this.reportingOptions[selectedLayer.id].like) {
|
256
259
|
this._likeFieldAvailable = true;
|
257
260
|
this._likeCount = this._selectedGraphic.attributes[eachField.name];
|
258
261
|
}
|
259
|
-
else if (eachField.name === this._dislikeField && this.reportingOptions[
|
262
|
+
else if (eachField.name === this._dislikeField && this.reportingOptions[selectedLayer.id].dislike) {
|
260
263
|
this._dislikeFieldAvailable = true;
|
261
264
|
this._disLikeCount = this._selectedGraphic.attributes[eachField.name];
|
262
265
|
}
|
@@ -270,7 +273,6 @@ export class FeatureDetails {
|
|
270
273
|
* @protected
|
271
274
|
*/
|
272
275
|
onLikeButtonClick() {
|
273
|
-
this.loadingStatus.emit(true);
|
274
276
|
if (this._isDislikeBtnClicked && this.reportingOptions[this._selectedGraphic.layer.id].dislike) {
|
275
277
|
this.onDislikeButtonClick();
|
276
278
|
}
|
@@ -288,7 +290,6 @@ export class FeatureDetails {
|
|
288
290
|
* @protected
|
289
291
|
*/
|
290
292
|
onDislikeButtonClick() {
|
291
|
-
this.loadingStatus.emit(true);
|
292
293
|
if (this._isLikeBtnClicked && this.reportingOptions[this._selectedGraphic.layer.id].like) {
|
293
294
|
this.onLikeButtonClick();
|
294
295
|
}
|
@@ -310,6 +311,7 @@ export class FeatureDetails {
|
|
310
311
|
async updateFeaturesLikeDislikeField(fieldName, buttonClicked) {
|
311
312
|
const attributesToUpdate = {};
|
312
313
|
const selectedLayer = this._selectedGraphic.layer;
|
314
|
+
this._updating = true;
|
313
315
|
//Increment the value if button is clicked or else decrement it
|
314
316
|
const selectFeatureAttr = this._selectedGraphic;
|
315
317
|
if (buttonClicked) {
|
@@ -333,9 +335,9 @@ export class FeatureDetails {
|
|
333
335
|
}
|
334
336
|
//store the like dislike value for the current selected graphic in local storage
|
335
337
|
this.setInLocalStorage();
|
336
|
-
this.
|
338
|
+
this._updating = false;
|
337
339
|
}, (err) => {
|
338
|
-
this.
|
340
|
+
this._updating = false;
|
339
341
|
console.log(err);
|
340
342
|
});
|
341
343
|
}
|
@@ -455,6 +457,27 @@ export class FeatureDetails {
|
|
455
457
|
"tags": [],
|
456
458
|
"text": "IReportingOptions: Key options for reporting"
|
457
459
|
}
|
460
|
+
},
|
461
|
+
"layerItemsHash": {
|
462
|
+
"type": "unknown",
|
463
|
+
"mutable": false,
|
464
|
+
"complexType": {
|
465
|
+
"original": "ILayerItemsHash",
|
466
|
+
"resolved": "ILayerItemsHash",
|
467
|
+
"references": {
|
468
|
+
"ILayerItemsHash": {
|
469
|
+
"location": "import",
|
470
|
+
"path": "../layer-list/layer-list",
|
471
|
+
"id": "src/components/layer-list/layer-list.tsx::ILayerItemsHash"
|
472
|
+
}
|
473
|
+
}
|
474
|
+
},
|
475
|
+
"required": false,
|
476
|
+
"optional": false,
|
477
|
+
"docs": {
|
478
|
+
"tags": [],
|
479
|
+
"text": "ILayerItemsHash: LayerDetailsHash for each layer in the map"
|
480
|
+
}
|
458
481
|
}
|
459
482
|
};
|
460
483
|
}
|
@@ -467,7 +490,8 @@ export class FeatureDetails {
|
|
467
490
|
"_commentsAvailable": {},
|
468
491
|
"_isLikeBtnClicked": {},
|
469
492
|
"_isDislikeBtnClicked": {},
|
470
|
-
"_relatedFeaturesOIDs": {}
|
493
|
+
"_relatedFeaturesOIDs": {},
|
494
|
+
"_updating": {}
|
471
495
|
};
|
472
496
|
}
|
473
497
|
static get events() {
|
@@ -487,8 +511,8 @@ export class FeatureDetails {
|
|
487
511
|
"references": {}
|
488
512
|
}
|
489
513
|
}, {
|
490
|
-
"method": "
|
491
|
-
"name": "
|
514
|
+
"method": "commentSelect",
|
515
|
+
"name": "commentSelect",
|
492
516
|
"bubbles": true,
|
493
517
|
"cancelable": true,
|
494
518
|
"composed": true,
|
@@ -506,6 +530,26 @@ export class FeatureDetails {
|
|
506
530
|
}
|
507
531
|
}
|
508
532
|
}
|
533
|
+
}, {
|
534
|
+
"method": "featureSelectionChange",
|
535
|
+
"name": "featureSelectionChange",
|
536
|
+
"bubbles": true,
|
537
|
+
"cancelable": true,
|
538
|
+
"composed": true,
|
539
|
+
"docs": {
|
540
|
+
"tags": [],
|
541
|
+
"text": "Emitted on demand when the selected index changes"
|
542
|
+
},
|
543
|
+
"complexType": {
|
544
|
+
"original": "{ selectedFeature: __esri.Graphic[], selectedFeatureIndex: number }",
|
545
|
+
"resolved": "{ selectedFeature: Graphic[]; selectedFeatureIndex: number; }",
|
546
|
+
"references": {
|
547
|
+
"___esri": {
|
548
|
+
"location": "global",
|
549
|
+
"id": "global::___esri"
|
550
|
+
}
|
551
|
+
}
|
552
|
+
}
|
509
553
|
}];
|
510
554
|
}
|
511
555
|
static get methods() {
|
@@ -35,6 +35,7 @@ export class FeatureList {
|
|
35
35
|
this.whereClause = undefined;
|
36
36
|
this.textSize = "large";
|
37
37
|
this.showInitialLoading = true;
|
38
|
+
this.showErrorWhenNoFeatures = true;
|
38
39
|
this._featureItems = [];
|
39
40
|
this._featuresCount = 0;
|
40
41
|
this._isLoading = false;
|
@@ -102,9 +103,9 @@ export class FeatureList {
|
|
102
103
|
* Renders the component.
|
103
104
|
*/
|
104
105
|
render() {
|
105
|
-
return (h("calcite-panel", { key: '
|
106
|
-
h("calcite-notice", { key: '
|
107
|
-
h("div", { key: '
|
106
|
+
return (h("calcite-panel", { key: '6184d07592669fd8884996475b7eeb26e0604790', "full-height": true, "full-width": true }, this._isLoading && h("calcite-loader", { key: '282127215213a28b9cfdf484aaf5730145b6bb55', label: "", scale: "m" }), this.showErrorWhenNoFeatures && this._featureItems.length === 0 && !this._isLoading &&
|
107
|
+
h("calcite-notice", { key: '25fcfeb1d19a089b092050515c3d69401bc17dc8', class: "error-msg", icon: "feature-details", kind: "info", open: true }, h("div", { key: '2ac81a338df9d0e0f43c659a24be0c9b7b95d027', slot: "message" }, this.noFeaturesFoundMsg ? this.noFeaturesFoundMsg : this._translations.featureErrorMsg)), h("calcite-list", { key: '70453e8ded4f859076a5f00d8f04152cd78278d8', "selection-appearance": "border", "selection-mode": "none" }, !this._isLoading && this._featureItems.length > 0 && this._featureItems), this._featuresCount > this.pageSize &&
|
108
|
+
h("div", { key: 'db1003ace54cd599acefad04e94fe54248327126', class: "width-full", slot: "footer" }, h("calcite-pagination", { key: '67764a051381b0e7ef26dbd16dc9226d7e152c20', class: "pagination", "full-width": true, onCalcitePaginationChange: this.pageChanged.bind(this), "page-size": this.pageSize, ref: el => this._pagination = el, "start-item": "1", "total-items": this._featuresCount }))));
|
108
109
|
}
|
109
110
|
//--------------------------------------------------------------------------
|
110
111
|
//
|
@@ -485,6 +486,24 @@ export class FeatureList {
|
|
485
486
|
"attribute": "show-initial-loading",
|
486
487
|
"reflect": false,
|
487
488
|
"defaultValue": "true"
|
489
|
+
},
|
490
|
+
"showErrorWhenNoFeatures": {
|
491
|
+
"type": "boolean",
|
492
|
+
"mutable": false,
|
493
|
+
"complexType": {
|
494
|
+
"original": "boolean",
|
495
|
+
"resolved": "boolean",
|
496
|
+
"references": {}
|
497
|
+
},
|
498
|
+
"required": false,
|
499
|
+
"optional": true,
|
500
|
+
"docs": {
|
501
|
+
"tags": [],
|
502
|
+
"text": "boolean: If true will show error msg when features are not present"
|
503
|
+
},
|
504
|
+
"attribute": "show-error-when-no-features",
|
505
|
+
"reflect": false,
|
506
|
+
"defaultValue": "true"
|
488
507
|
}
|
489
508
|
};
|
490
509
|
}
|
@@ -74,9 +74,9 @@ export class LayerList {
|
|
74
74
|
* Renders the component.
|
75
75
|
*/
|
76
76
|
render() {
|
77
|
-
return (h(Fragment, { key: '
|
78
|
-
h("calcite-notice", { key: '
|
79
|
-
h("calcite-list", { key: '
|
77
|
+
return (h(Fragment, { key: '9366302a704c1dbdd7a65aef5c43d0ad84a44b23' }, this._isLoading && h("calcite-loader", { key: '69974a23fd42bc37ef13816efbe6d06e28cb2749', label: "", scale: "m" }), !this._isLoading && this.mapView && this._noLayersToDisplay &&
|
78
|
+
h("calcite-notice", { key: 'a93abb55b4db09727b3634cb1935e482c377d662', class: "error-msg", icon: "layers-reference", kind: "danger", open: true }, h("div", { key: 'b9046685353b8894e6c6094cff47fab7a8e07ffa', slot: "title" }, this._translations.error), h("div", { key: '90a052e1d80779a09a32fdd35563a1ce21d582e0', slot: "message" }, this._translations.noLayerToDisplayErrorMsg)), !this._isLoading && this.mapView &&
|
79
|
+
h("calcite-list", { key: '709c1b8edd5710a2476ecef638199c2f929b4165', "selection-appearance": "border", "selection-mode": "none" }, this.renderLayerList())));
|
80
80
|
}
|
81
81
|
//--------------------------------------------------------------------------
|
82
82
|
//
|
@@ -104,10 +104,7 @@ export class LayerList {
|
|
104
104
|
const allMapLayers = await getAllLayers(this.mapView);
|
105
105
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
106
106
|
allMapLayers.forEach(async (eachLayer) => {
|
107
|
-
|
108
|
-
//TODO: checking editable condition could be configurable
|
109
|
-
if ((eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.type) === "feature" && (eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.editingEnabled) && ((_b = (_a = eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.capabilities) === null || _a === void 0 ? void 0 : _a.operations) === null || _b === void 0 ? void 0 : _b.supportsAdd)) {
|
110
|
-
this._layerItemsHash[eachLayer.id].supportsAdd = true;
|
107
|
+
if ((eachLayer === null || eachLayer === void 0 ? void 0 : eachLayer.type) === "feature") {
|
111
108
|
if (this.showFeatureCount) {
|
112
109
|
const q = eachLayer.createQuery();
|
113
110
|
const result = eachLayer.queryFeatureCount(q);
|
@@ -140,7 +137,7 @@ export class LayerList {
|
|
140
137
|
this.layersListLoaded.emit(this._mapLayerIds);
|
141
138
|
}
|
142
139
|
/**
|
143
|
-
* Returns the ids of
|
140
|
+
* Returns the ids of configured layers that needs to be shown in the list
|
144
141
|
* @param hash each layer item details
|
145
142
|
* @returns array of layer ids
|
146
143
|
*/
|
@@ -148,11 +145,7 @@ export class LayerList {
|
|
148
145
|
var _a;
|
149
146
|
const configuredLayers = ((_a = this.layers) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.layers : [];
|
150
147
|
return Object.keys(hash).reduce((prev, cur) => {
|
151
|
-
|
152
|
-
if ((configuredLayers === null || configuredLayers === void 0 ? void 0 : configuredLayers.length) > 0) {
|
153
|
-
showLayer = configuredLayers.indexOf(cur) > -1;
|
154
|
-
}
|
155
|
-
if (showLayer) {
|
148
|
+
if (configuredLayers.indexOf(cur) > -1) {
|
156
149
|
prev.push(cur);
|
157
150
|
}
|
158
151
|
return prev;
|
@@ -529,7 +529,7 @@ export class PublicNotification {
|
|
529
529
|
_getExportPage() {
|
530
530
|
const hasSelections = this._hasSelections(this.showRefineSelection);
|
531
531
|
const displayDuplicatesClass = this._numDuplicates > 0 ? "display-block" : "display-none";
|
532
|
-
return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
532
|
+
return (h("calcite-panel", null, h("div", null, this._getLabel(this._translations.export, false), hasSelections ? (h("div", null, this._getNotice(this._translations.exportTip, "padding-sides-1"), this._getLabel(this._translations.exportListsLabel), this._getExportSelectionLists(), h("div", { class: "padding-sides-1 " + displayDuplicatesClass }, h("div", { class: "display-flex" }, h("calcite-label", { layout: "inline" }, h("calcite-checkbox", { ref: (el) => { this._removeDuplicates = el; } }), h("div", { class: "display-flex" }, this._translations.removeDuplicate, h("div", { class: "info-message padding-start-1-2" }, h("calcite-input-message", { class: "info-blue margin-top-0", scale: "m" }, ` ${this._translations.numDuplicates.replace("{{n}}", this._numDuplicates.toString())}`)))), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: true, icon: "question", id: "remove-duplicates-icon", scale: "s" })), h("calcite-popover", { closable: true, label: "", referenceElement: "remove-duplicates-icon" }, h("span", { class: "tooltip-message" }, this._translations.duplicatesTip))), h("div", { class: "border-bottom" }), h("div", { class: "padding-top-sides-1" }, h("calcite-segmented-control", { class: "w-100", onCalciteSegmentedControlChange: (evt) => this._exportTypeChange(evt), width: "full" }, h("calcite-segmented-control-item", { checked: this._exportType === EExportType.PDF, class: "w-50 end-border", value: EExportType.PDF }, h("span", { class: "font-weight-500" }, this._translations.pdf)), h("calcite-segmented-control-item", { checked: this._exportType === EExportType.CSV, class: "w-50", value: EExportType.CSV }, h("span", { class: "font-weight-500" }, this._translations.csv)))), h("div", { class: "padding-bottom-1" }, this._getExportOptions()), h("div", { class: "padding-1 display-flex" }, h("calcite-button", { disabled: (!this._downloadActive || this._fetchingData) || (!this._addMap && !this._addResults), loading: this._fetchingData, onClick: () => void this._export(), width: "full" }, h("span", { class: "font-weight-500" }, this._translations.export))))) : (this._getNotice(this._translations.downloadNoLists, "padding-sides-1 padding-bottom-1")))));
|
533
533
|
}
|
534
534
|
/**
|
535
535
|
* Store the user selected export type CSV || PDF
|
@@ -550,7 +550,7 @@ export class PublicNotification {
|
|
550
550
|
const graphicsOptionsClass = this._addMap ? "display-flex" : "display-none";
|
551
551
|
const title = this._titleValue ? this._titleValue : this.defaultExportTitle ? this.defaultExportTitle : "";
|
552
552
|
const formatOptionsClass = this._addResults ? "" : "display-none";
|
553
|
-
return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", icon: "question", id: "list-graphics-icon", scale: "s" }), h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
|
553
|
+
return (h("div", { class: displayClass }, this._getLabel(this._translations.pdfOptions, true), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addResults, onCalciteCheckboxChange: () => this._addResults = !this._addResults }), this._translations.addResults)), h("div", { class: `padding-top-sides-1 ${formatOptionsClass}` }, h("calcite-label", { class: "label-margin-0" }, this._translations.selectPDFLabelOption)), h("div", { class: `padding-sides-1 ${formatOptionsClass}` }, h("pdf-download", { defaultNumLabelsPerPage: parseInt(this.defaultNumLabelsPerPage.toString(), 10), disabled: !this._downloadActive, ref: (el) => { this._downloadTools = el; } })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addTitle, onCalciteCheckboxChange: () => this._addTitle = !this._addTitle }), this._translations.title)), h("div", { class: titleOptionsClass }, this._getLabel(this._translations.title, true, ""), h("calcite-input-text", { class: "padding-sides-1", onCalciteInputTextInput: () => this._changeTitle(), placeholder: this._translations.titlePlaceholder, ref: (el) => { this._titleElement = el; }, value: title })), h("div", { class: "padding-top-sides-1" }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._addMap, onCalciteCheckboxChange: () => this._handleAddMapChange() }), this._translations.includeMap)), h("div", { class: `padding-top-sides-1 ${graphicsOptionsClass}` }, h("calcite-label", { class: "label-margin-0", layout: "inline" }, h("calcite-checkbox", { checked: this._exportGraphics, onCalciteCheckboxChange: () => this._handleExportGraphicsChange() }), this._translations.listGraphics), h("calcite-icon", { class: "padding-start-1-2 icon", flipRtl: true, icon: "question", id: "list-graphics-icon", scale: "s" }), h("calcite-popover", { closable: true, label: "", referenceElement: "list-graphics-icon" }, h("span", { class: "tooltip-message" }, this._translations.listGraphicsTip)))));
|
554
554
|
}
|
555
555
|
/**
|
556
556
|
* Toggle the _addMap state variable and update the graphics on the map
|
@@ -846,7 +846,7 @@ export class PublicNotification {
|
|
846
846
|
* @protected
|
847
847
|
*/
|
848
848
|
_getAction(enabled, icon, text, onClick, indicator = false, slot = "") {
|
849
|
-
return (h("calcite-action", { disabled: !enabled, icon: icon, indicator: indicator, onClick: onClick, slot: slot, text: text }));
|
849
|
+
return (h("calcite-action", { disabled: !enabled, icon: icon, iconFlipRtl: true, indicator: indicator, onClick: onClick, slot: slot, text: text }));
|
850
850
|
}
|
851
851
|
/**
|
852
852
|
* Store the number of selected features and if it's more than one enable save
|
@@ -140,10 +140,10 @@
|
|
140
140
|
//id: "c720e337ff814fe4a83bc244c46f8e43" //15 Layers
|
141
141
|
//id: "f5186c798b9e40dab1078658ddbc28cf" // 30K features
|
142
142
|
//id: "dda88d905a6748a5ab46bea5be795f33" // screening layers
|
143
|
-
id: "b5bdcb1e5d684dd3b21a2d44b8e4f928" //Popup content + like dislike
|
143
|
+
//id: "b5bdcb1e5d684dd3b21a2d44b8e4f928" //Popup content + like dislike
|
144
144
|
//id: "d399ec39959a4aac8617ae4f05dd6785" //Arcade
|
145
145
|
//id: "024e8a5e73a34c5aade9632d651c5750" //Attachments
|
146
|
-
|
146
|
+
id: "ae6d5d1936e84ce7adde44c7a7908846" //like dislike
|
147
147
|
// id: "ce3dec81bf714d3bb71da9691ab686d1" //Filter
|
148
148
|
}
|
149
149
|
const webMap = new WebMap({
|
@@ -219,7 +219,8 @@
|
|
219
219
|
like: false,
|
220
220
|
likeField: "Like_field",
|
221
221
|
dislike: false,
|
222
|
-
dislikeField: "Dislike_field"
|
222
|
+
dislikeField: "Dislike_field",
|
223
|
+
visible: false
|
223
224
|
},
|
224
225
|
"18cdb191817-layer-5": {
|
225
226
|
reporting: true,
|
@@ -227,7 +228,8 @@
|
|
227
228
|
like: true,
|
228
229
|
likeField: "Like_field",
|
229
230
|
dislike: true,
|
230
|
-
dislikeField: "Dislike_field"
|
231
|
+
dislikeField: "Dislike_field",
|
232
|
+
visible: false
|
231
233
|
},
|
232
234
|
"18f056682a4-layer-12":{
|
233
235
|
reporting: true,
|
@@ -235,41 +237,46 @@
|
|
235
237
|
like: true,
|
236
238
|
likeField: "shrt",
|
237
239
|
dislike: false,
|
238
|
-
dislikeField: "dislike_field"
|
240
|
+
dislikeField: "dislike_field",
|
241
|
+
visible: true
|
239
242
|
},
|
240
|
-
"
|
243
|
+
"18f2a1562a5-layer-3": {
|
241
244
|
reporting: true,
|
242
245
|
comment: true,
|
243
246
|
like: true,
|
244
247
|
likeField: "like_field",
|
245
248
|
dislike: true,
|
246
|
-
dislikeField: "dislike_field"
|
249
|
+
dislikeField: "dislike_field",
|
250
|
+
visible: true
|
247
251
|
},
|
248
|
-
"
|
252
|
+
"18f2a1562a7-layer-4": {
|
249
253
|
reporting: true,
|
250
254
|
comment: true,
|
251
255
|
like: true,
|
252
256
|
likeField: "like_field",
|
253
257
|
dislike: true,
|
254
|
-
dislikeField: "dislike_field"
|
258
|
+
dislikeField: "dislike_field",
|
259
|
+
visible: true
|
255
260
|
},
|
256
|
-
"18f2a1562a7-layer-
|
257
|
-
reporting:
|
261
|
+
"18f2a1562a7-layer-5": {
|
262
|
+
reporting: false,
|
258
263
|
comment: true,
|
259
264
|
like: true,
|
260
265
|
likeField: "like_field",
|
261
266
|
dislike: true,
|
262
|
-
dislikeField: "dislike_field"
|
267
|
+
dislikeField: "dislike_field",
|
268
|
+
visible: true
|
263
269
|
},
|
264
|
-
"
|
270
|
+
"18f2a1562a8-layer-6": {
|
265
271
|
reporting: true,
|
266
272
|
comment: true,
|
267
273
|
like: true,
|
268
274
|
likeField: "like_field",
|
269
275
|
dislike: true,
|
270
|
-
dislikeField: "dislike_field"
|
276
|
+
dislikeField: "dislike_field",
|
277
|
+
visible: true
|
271
278
|
},
|
272
|
-
"18f2a1562a8-layer-
|
279
|
+
"18f2a1562a8-layer-7": {
|
273
280
|
reporting: true,
|
274
281
|
comment: true,
|
275
282
|
like: true,
|
@@ -50,7 +50,7 @@ const ArcgisLogin$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisLogin extends
|
|
50
50
|
//
|
51
51
|
//--------------------------------------------------------------------------
|
52
52
|
render() {
|
53
|
-
return (h(Host, { key: '
|
53
|
+
return (h(Host, { key: 'b71ecf635ef91c3604665890c3eec5c5bc51651c' }, h("slot", { key: '77c4af2284404bc351b1eb93a81b2151f8e8cce1' })));
|
54
54
|
}
|
55
55
|
get el() { return this; }
|
56
56
|
static get style() { return ArcgisLoginStyle0; }
|
@@ -53,7 +53,7 @@ const BasemapGallery = /*@__PURE__*/ proxyCustomElement(class BasemapGallery ext
|
|
53
53
|
* StencilJS: Renders the component.
|
54
54
|
*/
|
55
55
|
render() {
|
56
|
-
return (h(Host, { key: '
|
56
|
+
return (h(Host, { key: '7fe5ef48d77de087f17498e2e1f3370a069e8629' }, h("div", { key: 'aca555c687352046a138343cab6f656234069644', ref: (el) => { this._basemapElement = el; } })));
|
57
57
|
}
|
58
58
|
/**
|
59
59
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -86,7 +86,7 @@ const BufferTools = /*@__PURE__*/ proxyCustomElement(class BufferTools extends H
|
|
86
86
|
* Renders the component.
|
87
87
|
*/
|
88
88
|
render() {
|
89
|
-
return (h(Host, { key: '
|
89
|
+
return (h(Host, { key: '63b775eca8dd10785df7b58be3a79eaa6cf4c049' }, this.appearance === "text" ? this._getTextBoxDisplay() : this._getSliderDisplay()));
|
90
90
|
}
|
91
91
|
//--------------------------------------------------------------------------
|
92
92
|
//
|
@@ -3,105 +3,7 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import {
|
7
|
-
import { c as componentFocusable, s as setUpLoadableComponent, a as setComponentLoaded } from './loadable.js';
|
8
|
-
import { d as defineCustomElement$3 } from './avatar.js';
|
9
|
-
import { d as defineCustomElement$2 } from './icon.js';
|
10
|
-
|
11
|
-
/*!
|
12
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
13
|
-
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
14
|
-
* v2.8.2
|
15
|
-
*/
|
16
|
-
const CSS = {
|
17
|
-
textContainer: "text-container",
|
18
|
-
fullName: "full-name",
|
19
|
-
username: "username",
|
20
|
-
button: "button",
|
21
|
-
};
|
22
|
-
|
23
|
-
const navigationUserCss = ":host{display:inline-flex;outline:2px solid transparent;outline-offset:2px}:host .button{background-color:transparent;border:none;margin:0px;display:flex;cursor:pointer;align-items:center;justify-content:center;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-0);line-height:1.25rem;outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-block-end:2px solid transparent}:host(:hover) .button,:host(:focus) .button{background-color:var(--calcite-color-foreground-2)}:host(:focus) .button{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host(:active) .button{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([active]) .button{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1);--calcite-ui-icon-color:var(--calcite-color-brand)}.text-container{margin-block-start:0.125rem;display:flex;flex-direction:column;padding-inline:1rem;text-align:start}calcite-avatar{padding-inline:1rem}calcite-avatar~.text-container{padding-inline-start:0px}.full-name{margin-inline-start:0px;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.username{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host([hidden]){display:none}[hidden]{display:none}";
|
24
|
-
const CalciteNavigationUserStyle0 = navigationUserCss;
|
25
|
-
|
26
|
-
const CalciteNavigationUser$1 = /*@__PURE__*/ proxyCustomElement(class CalciteNavigationUser extends HTMLElement {
|
27
|
-
constructor() {
|
28
|
-
super();
|
29
|
-
this.__registerHost();
|
30
|
-
this.__attachShadow();
|
31
|
-
this.active = undefined;
|
32
|
-
this.fullName = undefined;
|
33
|
-
this.label = undefined;
|
34
|
-
this.textDisabled = false;
|
35
|
-
this.thumbnail = undefined;
|
36
|
-
this.userId = undefined;
|
37
|
-
this.username = undefined;
|
38
|
-
}
|
39
|
-
//--------------------------------------------------------------------------
|
40
|
-
//
|
41
|
-
// Public Methods
|
42
|
-
//
|
43
|
-
//--------------------------------------------------------------------------
|
44
|
-
/** Sets focus on the component. */
|
45
|
-
async setFocus() {
|
46
|
-
await componentFocusable(this);
|
47
|
-
this.el.focus();
|
48
|
-
}
|
49
|
-
//--------------------------------------------------------------------------
|
50
|
-
//
|
51
|
-
// Lifecycle
|
52
|
-
//
|
53
|
-
//--------------------------------------------------------------------------
|
54
|
-
componentWillLoad() {
|
55
|
-
setUpLoadableComponent(this);
|
56
|
-
}
|
57
|
-
componentDidLoad() {
|
58
|
-
setComponentLoaded(this);
|
59
|
-
}
|
60
|
-
// --------------------------------------------------------------------------
|
61
|
-
//
|
62
|
-
// Render Methods
|
63
|
-
//
|
64
|
-
// --------------------------------------------------------------------------
|
65
|
-
render() {
|
66
|
-
return (h(Host, { key: '869bc0b518ff407bf3f110ebda48571f456229a8' }, h("button", { key: '0cb5497ebcbf9fad2bfb6ffdd3bfad151594460d', "aria-label": this.label, class: CSS.button }, h("calcite-avatar", { key: '6de54637d077afa83f7520636037b6da33b24334', "full-name": this.fullName, label: this.label, thumbnail: this.thumbnail, "user-id": this.userId, username: this.username }), (this.fullName || this.username) && !this.textDisabled && (h("div", { key: '0d0be3d6ba276d6c3e24a67b7085dd75e56b3e5b', class: CSS.textContainer }, this.fullName && (h("span", { class: CSS.fullName, key: CSS.fullName }, this.fullName)), this.username && (h("span", { class: CSS.username, key: CSS.username }, this.username)))))));
|
67
|
-
}
|
68
|
-
static get delegatesFocus() { return true; }
|
69
|
-
get el() { return this; }
|
70
|
-
static get style() { return CalciteNavigationUserStyle0; }
|
71
|
-
}, [17, "calcite-navigation-user", {
|
72
|
-
"active": [516],
|
73
|
-
"fullName": [1, "full-name"],
|
74
|
-
"label": [1],
|
75
|
-
"textDisabled": [516, "text-disabled"],
|
76
|
-
"thumbnail": [1],
|
77
|
-
"userId": [1, "user-id"],
|
78
|
-
"username": [1],
|
79
|
-
"setFocus": [64]
|
80
|
-
}]);
|
81
|
-
function defineCustomElement$1() {
|
82
|
-
if (typeof customElements === "undefined") {
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
const components = ["calcite-navigation-user", "calcite-avatar", "calcite-icon"];
|
86
|
-
components.forEach(tagName => { switch (tagName) {
|
87
|
-
case "calcite-navigation-user":
|
88
|
-
if (!customElements.get(tagName)) {
|
89
|
-
customElements.define(tagName, CalciteNavigationUser$1);
|
90
|
-
}
|
91
|
-
break;
|
92
|
-
case "calcite-avatar":
|
93
|
-
if (!customElements.get(tagName)) {
|
94
|
-
defineCustomElement$3();
|
95
|
-
}
|
96
|
-
break;
|
97
|
-
case "calcite-icon":
|
98
|
-
if (!customElements.get(tagName)) {
|
99
|
-
defineCustomElement$2();
|
100
|
-
}
|
101
|
-
break;
|
102
|
-
} });
|
103
|
-
}
|
104
|
-
defineCustomElement$1();
|
6
|
+
import { C as CalciteNavigationUser$1, d as defineCustomElement$1 } from './navigation-user.js';
|
105
7
|
|
106
8
|
const CalciteNavigationUser = CalciteNavigationUser$1;
|
107
9
|
const defineCustomElement = defineCustomElement$1;
|
@@ -94,7 +94,7 @@ const CardManager = /*@__PURE__*/ proxyCustomElement(class CardManager extends H
|
|
94
94
|
var _a, _b;
|
95
95
|
const featuresClass = ((_a = this._graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 ? "" : "display-none";
|
96
96
|
const messageClass = ((_b = this._graphics) === null || _b === void 0 ? void 0 : _b.length) > 0 ? "display-none" : "";
|
97
|
-
return (h(Host, { key: '
|
97
|
+
return (h(Host, { key: '343554e5408de156f1973f6d1e3daa8f1ba90675' }, h("div", { key: '1852562a795002314236052351cab7c29d36854e', class: "overflow-auto height-full" }, h("calcite-shell", { key: '684f013e4397bc50743526357384f782a88a5cd3', class: "position-relative " + featuresClass }, h("div", { key: 'db6d9f4be5448b5596b22f2a4f49c6baefa88466' }, h("info-card", { key: 'be5cec81cae7ca00a5b57c8d9590541f78b67fbd', graphics: this._graphics, isLoading: this._cardLoading, isMobile: this.isMobile, mapView: this.mapView }))), h("calcite-shell", { key: 'df34e0ae6978298130970c60d21203f52fa32e4b', class: "position-relative " + messageClass }, h("div", { key: '9525a95dd21745e211ebf888da44eca6a6c17721', class: "padding-1" }, h("calcite-notice", { key: 'ade0e0a2f09bbe7b7bda6fdb2ce65ba81121e633', icon: "table", open: true }, h("div", { key: 'd6fce2d657e23738720e004177c510c3273017f4', slot: "message" }, this._translations.selectFeaturesToStart)))))));
|
98
98
|
}
|
99
99
|
//--------------------------------------------------------------------------
|
100
100
|
//
|