@esri/solutions-components 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/public-notification/resources.json +1 -0
- package/dist/assets/t9n/public-notification/resources_en.json +1 -0
- package/dist/cjs/add-record-modal.cjs.entry.js +1 -1
- package/dist/cjs/buffer-tools_6.cjs.entry.js +5 -2
- package/dist/cjs/calcite-dropdown-group_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +9 -7
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -1
- package/dist/cjs/card-manager.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-99981c6b.js → downloadUtils-ae182e3a.js} +2 -2
- package/dist/cjs/{index.es-53f3bc97.js → index.es-b71e9071.js} +3 -3
- package/dist/cjs/info-card_2.cjs.entry.js +1 -1
- package/dist/cjs/layer-table.cjs.entry.js +3 -3
- package/dist/cjs/{loadModules-918ff3e7.js → loadModules-0806a34f.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-db1db902.js → locale-04da9a8c.js} +1 -0
- package/dist/cjs/map-card.cjs.entry.js +2 -2
- package/dist/cjs/map-search.cjs.entry.js +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +18 -6
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +20 -4
- package/dist/collection/components/public-notification/public-notification.js +24 -5
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +17 -0
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/locale.ts +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/map-select-tools2.js +6 -4
- package/dist/components/public-notification.js +19 -6
- package/dist/components/refine-selection-tools2.js +3 -0
- package/dist/esm/add-record-modal.entry.js +1 -1
- package/dist/esm/buffer-tools_6.entry.js +5 -2
- package/dist/esm/calcite-dropdown-group_4.entry.js +1 -1
- package/dist/esm/calcite-input-message_5.entry.js +9 -7
- package/dist/esm/calcite-shell-panel_14.entry.js +1 -1
- package/dist/esm/card-manager.entry.js +1 -1
- package/dist/esm/{downloadUtils-4bb47330.js → downloadUtils-8d64719e.js} +2 -2
- package/dist/esm/{index.es-4424d2f7.js → index.es-1d777745.js} +3 -3
- package/dist/esm/info-card_2.entry.js +1 -1
- package/dist/esm/layer-table.entry.js +3 -3
- package/dist/esm/{loadModules-649aedac.js → loadModules-b299cd43.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-4a87aff1.js → locale-7bf10e0a.js} +1 -1
- package/dist/esm/map-card.entry.js +2 -2
- package/dist/esm/map-search.entry.js +2 -2
- package/dist/esm/public-notification.entry.js +18 -6
- package/dist/esm/solution-configuration.entry.js +1 -1
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-0aed9b0d.js → p-01215468.js} +2 -2
- package/dist/solutions-components/{p-ec7f7804.entry.js → p-048a4c91.entry.js} +1 -1
- package/dist/solutions-components/{p-8eeb8faa.entry.js → p-0e459cc7.entry.js} +1 -1
- package/dist/solutions-components/{p-4ef269be.entry.js → p-43d4ceda.entry.js} +1 -1
- package/dist/solutions-components/{p-eea93a37.js → p-4aa3ba60.js} +1 -1
- package/dist/solutions-components/p-4bfcd9ea.entry.js +17 -0
- package/dist/solutions-components/{p-13b4fb80.entry.js → p-4cbaf0f1.entry.js} +1 -1
- package/dist/solutions-components/{p-ebd3f353.entry.js → p-6f012424.entry.js} +1 -1
- package/dist/solutions-components/{p-50117f71.js → p-702e1915.js} +1 -1
- package/dist/solutions-components/{p-0a4c2213.entry.js → p-74cfd344.entry.js} +1 -1
- package/dist/solutions-components/{p-a3b60bc9.entry.js → p-773918c0.entry.js} +2 -2
- package/dist/solutions-components/{p-9260d75a.js → p-829e6d4f.js} +2 -2
- package/dist/solutions-components/{p-7a411772.entry.js → p-9e8a371f.entry.js} +1 -1
- package/dist/solutions-components/p-a99ca396.entry.js +6 -0
- package/dist/solutions-components/{p-b342e3ff.entry.js → p-af9c7482.entry.js} +1 -1
- package/dist/solutions-components/{p-05e26a56.entry.js → p-d5a76fb0.entry.js} +1 -1
- package/dist/solutions-components/{p-bf45dbae.entry.js → p-dd0241fb.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/locale.ts +1 -1
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +4 -0
- package/dist/types/components/public-notification/public-notification.d.ts +12 -0
- package/dist/types/components/refine-selection-tools/refine-selection-tools.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/utils/locale.d.ts +1 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-0d3b0fa0.entry.js +0 -17
- package/dist/solutions-components/p-5e4dfbe4.entry.js +0 -6
- package/dist/types/components/json-editor/assets/monaco-editor/monaco.d.ts +0 -8262
@@ -36,6 +36,7 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
36
36
|
constructor() {
|
37
37
|
super();
|
38
38
|
this.__registerHost();
|
39
|
+
this.selectionLoadingChange = createEvent(this, "selectionLoadingChange", 7);
|
39
40
|
this.selectionSetChange = createEvent(this, "selectionSetChange", 7);
|
40
41
|
this.sketchTypeChange = createEvent(this, "sketchTypeChange", 7);
|
41
42
|
this.workflowTypeChange = createEvent(this, "workflowTypeChange", 7);
|
@@ -311,16 +312,15 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
311
312
|
void this._clearResults(false);
|
312
313
|
});
|
313
314
|
this._searchWidget.on("select-result", (searchResults) => {
|
314
|
-
var _a, _b;
|
315
|
+
var _a, _b, _c;
|
315
316
|
void this._clearResults(false);
|
316
317
|
if (searchResults.result) {
|
317
318
|
this._searchResult = searchResults.result;
|
318
|
-
const useOIDs = ((_a = searchResults.source) === null || _a === void 0 ? void 0 : _a.layer.id) === this.selectLayerView.layer.id;
|
319
|
+
const useOIDs = ((_b = (_a = searchResults.source) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.id) && searchResults.source.layer.id === this.selectLayerView.layer.id;
|
319
320
|
const oids = useOIDs ? [searchResults.result.feature.getObjectId()] : undefined;
|
320
|
-
this._updateSelection(EWorkflowType.SEARCH, [searchResults.result.feature], (
|
321
|
+
this._updateSelection(EWorkflowType.SEARCH, [searchResults.result.feature], (_c = searchResults === null || searchResults === void 0 ? void 0 : searchResults.result) === null || _c === void 0 ? void 0 : _c.name, useOIDs, oids);
|
321
322
|
}
|
322
323
|
});
|
323
|
-
console.log("END search widget init");
|
324
324
|
}
|
325
325
|
}
|
326
326
|
/**
|
@@ -440,7 +440,9 @@ const MapSelectTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
440
440
|
* @returns Promise when the selection is complete and the graphics have been highlighted
|
441
441
|
*/
|
442
442
|
async _selectFeatures(geometries) {
|
443
|
+
this.selectionLoadingChange.emit(true);
|
443
444
|
this._selectedIds = await queryObjectIds(geometries, this.selectLayerView.layer);
|
445
|
+
this.selectionLoadingChange.emit(false);
|
444
446
|
// Add geometries used for selecting features as graphics
|
445
447
|
this._drawTools.graphics = this.geometries.map(geom => {
|
446
448
|
var _a, _b, _c;
|
@@ -9,7 +9,7 @@ import { l as loadModules } from './loadModules.js';
|
|
9
9
|
import { a as getMapLayerView, g as goToSelection, h as highlightFeatures, d as defineCustomElement$6 } from './map-layer-picker2.js';
|
10
10
|
import { g as getSelectionSetQuery } from './queryUtils.js';
|
11
11
|
import { s as state } from './publicNotificationStore.js';
|
12
|
-
import { g as getLocaleComponentStrings } from './locale.js';
|
12
|
+
import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale.js';
|
13
13
|
import { g as getTotal, a as getSelectionIds, d as defineCustomElement$3 } from './refine-selection2.js';
|
14
14
|
import { d as defineCustomElement$C } from './buffer-tools2.js';
|
15
15
|
import { d as defineCustomElement$B } from './action.js';
|
@@ -74,6 +74,7 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
74
74
|
this._numSelected = 0;
|
75
75
|
this._pageType = EPageType.LIST;
|
76
76
|
this._saveEnabled = false;
|
77
|
+
this._selectionLoading = false;
|
77
78
|
this._selectionSets = [];
|
78
79
|
this._sketchType = ESketchType.INTERACTIVE;
|
79
80
|
this._selectionWorkflowType = EWorkflowType.SEARCH;
|
@@ -109,8 +110,8 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
109
110
|
console.log(oldValue);
|
110
111
|
if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {
|
111
112
|
console.log("Emit event from parent");
|
112
|
-
this.
|
113
|
-
this.searchConfigurationChange.emit(this.
|
113
|
+
this._searchConfiguration = Object.assign({}, newValue);
|
114
|
+
this.searchConfigurationChange.emit(this._searchConfiguration);
|
114
115
|
}
|
115
116
|
}
|
116
117
|
/**
|
@@ -145,6 +146,12 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
145
146
|
this._updateLabel(event, "distance");
|
146
147
|
this._distance = event.detail.newValue;
|
147
148
|
}
|
149
|
+
/**
|
150
|
+
* Handle changes when selection is loading
|
151
|
+
*/
|
152
|
+
selectionLoadingChange(event) {
|
153
|
+
this._selectionLoading = event.detail;
|
154
|
+
}
|
148
155
|
/**
|
149
156
|
* Handle changes to the selection sets
|
150
157
|
*/
|
@@ -352,8 +359,13 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
352
359
|
const noticeText = this._selectionWorkflowType === EWorkflowType.SELECT ? selectTip :
|
353
360
|
this._selectionWorkflowType === EWorkflowType.SKETCH ? sketchTip : searchTip;
|
354
361
|
const nameLabelClass = this.customLabelEnabled ? "" : "display-none";
|
355
|
-
|
356
|
-
|
362
|
+
// TODO find out if ... is appropriate for other languages
|
363
|
+
const locale = getComponentClosestLanguage(this.el);
|
364
|
+
const selectionLoading = locale && locale === "en" ?
|
365
|
+
`${this._translations.selectionLoading}...` : this._translations.selectionLoading;
|
366
|
+
return (h("calcite-panel", null, this._getLabel(this._translations.stepTwoFull.replace("{{layer}}", (_a = this.addresseeLayer) === null || _a === void 0 ? void 0 : _a.layer.title)), this._getNotice(noticeText), h("div", { class: "padding-top-sides-1" }, h("map-select-tools", { bufferColor: this.bufferColor, bufferOutlineColor: this.bufferOutlineColor, class: "font-bold", defaultBufferDistance: this.defaultBufferDistance, defaultBufferUnit: this.defaultBufferUnit, enabledLayerIds: this.selectionLayerIds, isUpdate: !!this._activeSelection, mapView: this.mapView, onSelectionSetChange: (evt) => this._updateForSelection(evt), onWorkflowTypeChange: (evt) => this._updateForWorkflowType(evt), ref: (el) => { this._selectTools = el; }, searchConfiguration: this._searchConfiguration, selectLayerView: this.addresseeLayer, selectionSet: this._activeSelection, showBufferTools: this.showSearchSettings })), h("div", { class: "padding-sides-1 padding-bottom-1", style: { "align-items": "end", "display": "flex" } }, this._selectionLoading ? (h("div", null, h("calcite-loader", { active: true, class: "info-blue", inline: true, label: selectionLoading, scale: "m", type: "indeterminate" }))) : (h("calcite-icon", { class: "info-blue padding-end-1-2", icon: "feature-layer", scale: "s" })), h("calcite-input-message", { active: true, class: "info-blue", scale: "m" }, this._selectionLoading ? selectionLoading :
|
367
|
+
this.noResultText && this._numSelected === 0 ? this.noResultText :
|
368
|
+
this._translations.selectedAddresses.replace("{{n}}", this._numSelected.toString()).replace("{{layer}}", ((_b = this.addresseeLayer) === null || _b === void 0 ? void 0 : _b.layer.title) || ""))), h("div", { class: "padding-sides-1 " + nameLabelClass }, h("calcite-label", { class: "font-bold" }, "List name", h("calcite-input", { onInput: () => {
|
357
369
|
this.labelChange.emit(this._labelName.value);
|
358
370
|
}, placeholder: "Insert label here...", ref: (el) => { this._labelName = el; }, value: this._customLabel || "" }))), this._getPageNavButtons(this._translations.done, this._numSelected === 0, () => { void this._saveSelection(); }, this._translations.cancel, false, () => { void this._home(); })));
|
359
371
|
}
|
@@ -772,12 +784,13 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
772
784
|
"_numSelected": [32],
|
773
785
|
"_pageType": [32],
|
774
786
|
"_saveEnabled": [32],
|
787
|
+
"_selectionLoading": [32],
|
775
788
|
"_selectionSets": [32],
|
776
789
|
"_sketchType": [32],
|
777
790
|
"_selectionWorkflowType": [32],
|
778
791
|
"_showLayerSelectionChangeModal": [32],
|
779
792
|
"_translations": [32]
|
780
|
-
}, [[8, "distanceChanged", "distanceChanged"], [8, "selectionSetsChanged", "selectionSetsChanged"], [8, "sketchTypeChange", "sketchTypeChange"], [8, "unitChanged", "unitChanged"]]]);
|
793
|
+
}, [[8, "distanceChanged", "distanceChanged"], [8, "selectionLoadingChange", "selectionLoadingChange"], [8, "selectionSetsChanged", "selectionSetsChanged"], [8, "sketchTypeChange", "sketchTypeChange"], [8, "unitChanged", "unitChanged"]]]);
|
781
794
|
function defineCustomElement$1() {
|
782
795
|
if (typeof customElements === "undefined") {
|
783
796
|
return;
|
@@ -26,6 +26,7 @@ const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
26
26
|
super();
|
27
27
|
this.__registerHost();
|
28
28
|
this.__attachShadow();
|
29
|
+
this.selectionLoadingChange = createEvent(this, "selectionLoadingChange", 7);
|
29
30
|
this.refineSelectionGraphicsChange = createEvent(this, "refineSelectionGraphicsChange", 7);
|
30
31
|
this.refineSelectionIdsChange = createEvent(this, "refineSelectionIdsChange", 7);
|
31
32
|
/**
|
@@ -301,11 +302,13 @@ const RefineSelectionTools = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
301
302
|
* @protected
|
302
303
|
*/
|
303
304
|
async _selectFeatures(geom) {
|
305
|
+
this.selectionLoadingChange.emit(true);
|
304
306
|
const queryFeaturePromises = this.layerViews.map(layerView => {
|
305
307
|
this._featuresCollection[layerView.layer.id] = [];
|
306
308
|
return queryFeaturesByGeometry(0, layerView.layer, geom, this._featuresCollection);
|
307
309
|
});
|
308
310
|
return Promise.all(queryFeaturePromises).then(async (response) => {
|
311
|
+
this.selectionLoadingChange.emit(false);
|
309
312
|
let graphics = [];
|
310
313
|
response.forEach(r => {
|
311
314
|
Object.keys(r).forEach(k => {
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
8
8
|
import './_commonjsHelpers-d5f9d613.js';
|
9
9
|
|
10
10
|
const addRecordModalCss = ":host{display:block;--calcite-label-margin-bottom:0px}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:bold}.font-500{font-weight:500}.display-none{display:none}";
|
@@ -4,8 +4,8 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
|
-
import { l as loadModules } from './loadModules-
|
8
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { l as loadModules } from './loadModules-b299cd43.js';
|
8
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
9
9
|
import { b as getElementDir, g as getElementProp, t as toAriaBoolean, i as isPrimaryPointerButton, h as intersects } from './dom-3bdc69ee.js';
|
10
10
|
import { c as connectLabel, d as disconnectLabel } from './label-aa562647.js';
|
11
11
|
import { a as afterConnectDefaultValueSet, c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-62bc7b1f.js';
|
@@ -1526,6 +1526,7 @@ const refineSelectionToolsCss = ":host{display:block}.div-visible{display:inheri
|
|
1526
1526
|
const RefineSelectionTools = class {
|
1527
1527
|
constructor(hostRef) {
|
1528
1528
|
registerInstance(this, hostRef);
|
1529
|
+
this.selectionLoadingChange = createEvent(this, "selectionLoadingChange", 7);
|
1529
1530
|
this.refineSelectionGraphicsChange = createEvent(this, "refineSelectionGraphicsChange", 7);
|
1530
1531
|
this.refineSelectionIdsChange = createEvent(this, "refineSelectionIdsChange", 7);
|
1531
1532
|
/**
|
@@ -1801,11 +1802,13 @@ const RefineSelectionTools = class {
|
|
1801
1802
|
* @protected
|
1802
1803
|
*/
|
1803
1804
|
async _selectFeatures(geom) {
|
1805
|
+
this.selectionLoadingChange.emit(true);
|
1804
1806
|
const queryFeaturePromises = this.layerViews.map(layerView => {
|
1805
1807
|
this._featuresCollection[layerView.layer.id] = [];
|
1806
1808
|
return queryFeaturesByGeometry(0, layerView.layer, geom, this._featuresCollection);
|
1807
1809
|
});
|
1808
1810
|
return Promise.all(queryFeaturePromises).then(async (response) => {
|
1811
|
+
this.selectionLoadingChange.emit(false);
|
1809
1812
|
let graphics = [];
|
1810
1813
|
response.forEach(r => {
|
1811
1814
|
Object.keys(r).forEach(k => {
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
7
|
import { g as getElementProp, t as toAriaBoolean } from './dom-3bdc69ee.js';
|
8
8
|
import { u as updateHostInteraction } from './interactive-822ffed6.js';
|
9
|
-
import { g as getLocaleComponentStrings } from './locale-
|
9
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
10
10
|
import './resources-436ae282.js';
|
11
11
|
import './guid-15fce7c0.js';
|
12
12
|
import './_commonjsHelpers-d5f9d613.js';
|
@@ -7,12 +7,12 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent
|
|
7
7
|
import { s as setRequestedIcon, g as getElementProp, a as getSlotted } from './dom-3bdc69ee.js';
|
8
8
|
import { S as StatusIcons } from './interfaces-4ae145eb.js';
|
9
9
|
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-d09506c4.js';
|
10
|
-
import { l as loadModules } from './loadModules-
|
10
|
+
import { l as loadModules } from './loadModules-b299cd43.js';
|
11
11
|
import { g as goToSelection, h as highlightFeatures, d as queryObjectIds, e as getQueryGeoms } from './mapViewUtils-02696ab6.js';
|
12
12
|
import { E as EWorkflowType, f as ESelectionMode, g as ERefineMode, c as ESketchType } from './interfaces-d0d83efa.js';
|
13
13
|
import { s as state } from './publicNotificationStore-b9daaee4.js';
|
14
|
-
import { g as getLocaleComponentStrings } from './locale-
|
15
|
-
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-
|
14
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
15
|
+
import { d as downloadCSV, a as downloadPDF } from './downloadUtils-8d64719e.js';
|
16
16
|
import { a as getSelectionIds, g as getTotal } from './publicNotificationUtils-5cb5a607.js';
|
17
17
|
import './resources-436ae282.js';
|
18
18
|
import './guid-15fce7c0.js';
|
@@ -237,6 +237,7 @@ const mapSelectToolsCss = ":host{display:block}.div-visible{display:inherit}.div
|
|
237
237
|
const MapSelectTools = class {
|
238
238
|
constructor(hostRef) {
|
239
239
|
registerInstance(this, hostRef);
|
240
|
+
this.selectionLoadingChange = createEvent(this, "selectionLoadingChange", 7);
|
240
241
|
this.selectionSetChange = createEvent(this, "selectionSetChange", 7);
|
241
242
|
this.sketchTypeChange = createEvent(this, "sketchTypeChange", 7);
|
242
243
|
this.workflowTypeChange = createEvent(this, "workflowTypeChange", 7);
|
@@ -512,16 +513,15 @@ const MapSelectTools = class {
|
|
512
513
|
void this._clearResults(false);
|
513
514
|
});
|
514
515
|
this._searchWidget.on("select-result", (searchResults) => {
|
515
|
-
var _a, _b;
|
516
|
+
var _a, _b, _c;
|
516
517
|
void this._clearResults(false);
|
517
518
|
if (searchResults.result) {
|
518
519
|
this._searchResult = searchResults.result;
|
519
|
-
const useOIDs = ((_a = searchResults.source) === null || _a === void 0 ? void 0 : _a.layer.id) === this.selectLayerView.layer.id;
|
520
|
+
const useOIDs = ((_b = (_a = searchResults.source) === null || _a === void 0 ? void 0 : _a.layer) === null || _b === void 0 ? void 0 : _b.id) && searchResults.source.layer.id === this.selectLayerView.layer.id;
|
520
521
|
const oids = useOIDs ? [searchResults.result.feature.getObjectId()] : undefined;
|
521
|
-
this._updateSelection(EWorkflowType.SEARCH, [searchResults.result.feature], (
|
522
|
+
this._updateSelection(EWorkflowType.SEARCH, [searchResults.result.feature], (_c = searchResults === null || searchResults === void 0 ? void 0 : searchResults.result) === null || _c === void 0 ? void 0 : _c.name, useOIDs, oids);
|
522
523
|
}
|
523
524
|
});
|
524
|
-
console.log("END search widget init");
|
525
525
|
}
|
526
526
|
}
|
527
527
|
/**
|
@@ -641,7 +641,9 @@ const MapSelectTools = class {
|
|
641
641
|
* @returns Promise when the selection is complete and the graphics have been highlighted
|
642
642
|
*/
|
643
643
|
async _selectFeatures(geometries) {
|
644
|
+
this.selectionLoadingChange.emit(true);
|
644
645
|
this._selectedIds = await queryObjectIds(geometries, this.selectLayerView.layer);
|
646
|
+
this.selectionLoadingChange.emit(false);
|
645
647
|
// Add geometries used for selecting features as graphics
|
646
648
|
this._drawTools.graphics = this.geometries.map(geom => {
|
647
649
|
var _a, _b, _c;
|
@@ -14,7 +14,7 @@ import { S as Sortable } from './sortable.esm-3b2eaa5c.js';
|
|
14
14
|
import { o as getItemIndex, m as mutationObserverCallback, d as deselectRemovedItems, a as deselectSiblingItems, s as selectSiblings, h as handleFilter, g as getItemData, k as keyDownHandler, p as moveItemIndex, i as initialize, b as initializeObserver, c as cleanUpObserver, j as calciteListFocusOutHandler, r as removeItem, e as calciteListItemChangeHandler, f as calciteInternalListItemValueChangeHandler, l as setUpItems, n as setFocus, L as List } from './shared-list-render-13a77297.js';
|
15
15
|
import { I as ICON_TYPES$1 } from './resources-2235e4ff.js';
|
16
16
|
import { C as CSS$2, S as SLOTS$3 } from './resources-e3a5cf27.js';
|
17
|
-
import { g as getLocaleComponentStrings } from './locale-
|
17
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
18
18
|
import { s as state, E as EFileType } from './solution-store-477288ac.js';
|
19
19
|
import { e as EUpdateType } from './interfaces-d0d83efa.js';
|
20
20
|
import './resources-436ae282.js';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
8
8
|
import './_commonjsHelpers-d5f9d613.js';
|
9
9
|
|
10
10
|
const cardManagerCss = ":host{display:block}.display-inline-table{display:inline-table}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.w-1-2{width:50%}.padding-bottom-1{padding-bottom:1rem}";
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
|
7
7
|
import { a as getAssetPath } from './index-c246d90e.js';
|
8
|
-
import { l as loadModules } from './loadModules-
|
8
|
+
import { l as loadModules } from './loadModules-b299cd43.js';
|
9
9
|
import { b as queryFeaturesByID } from './mapViewUtils-02696ab6.js';
|
10
10
|
|
11
11
|
/** @license
|
@@ -1080,7 +1080,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1080
1080
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1081
1081
|
* ====================================================================
|
1082
1082
|
*/
|
1083
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-
|
1083
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-1d777745.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
1084
1084
|
/** ====================================================================
|
1085
1085
|
* @license
|
1086
1086
|
* jsPDF XMP metadata plugin
|
@@ -4,10 +4,10 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { a as commonjsGlobal, c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
|
7
|
-
import { _ as _typeof_1 } from './downloadUtils-
|
7
|
+
import { _ as _typeof_1 } from './downloadUtils-8d64719e.js';
|
8
8
|
import './index-c246d90e.js';
|
9
|
-
import './loadModules-
|
10
|
-
import './locale-
|
9
|
+
import './loadModules-b299cd43.js';
|
10
|
+
import './locale-7bf10e0a.js';
|
11
11
|
import './mapViewUtils-02696ab6.js';
|
12
12
|
import './interfaces-d0d83efa.js';
|
13
13
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
8
8
|
import './_commonjsHelpers-d5f9d613.js';
|
9
9
|
|
10
10
|
const infoCardCss = ":host{display:block;--calcite-label-margin-bottom:0}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px}tr:nth-child(odd){background:var(--calcite-ui-foreground-2)}.bottom-border{padding-bottom:0.5rem;border-bottom:1px solid var(--calcite-ui-border-1)}.padding-top-1-2{padding-top:0.5rem}.font-color-3{color:var(--calcite-ui-text-3)}";
|
@@ -4,12 +4,12 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-c246d90e.js';
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-7bf10e0a.js';
|
8
8
|
import { g as goToSelection, a as getMapLayerView, q as queryAllFeatures } from './mapViewUtils-02696ab6.js';
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
9
|
+
import { d as downloadCSV } from './downloadUtils-8d64719e.js';
|
10
10
|
import './_commonjsHelpers-d5f9d613.js';
|
11
11
|
import './interfaces-d0d83efa.js';
|
12
|
-
import './loadModules-
|
12
|
+
import './loadModules-b299cd43.js';
|
13
13
|
|
14
14
|
const layerTableCss = ":host{display:block}.table{display:table;width:100%}.header{display:table-header-group;background-color:#757575;font-weight:500;font-size:var(--calcite-font-size-0);color:var(--calcite-ui-text-inverse);position:sticky;top:0;z-index:1}.table-header-cell{display:table-cell;text-align:justify;border-right:1px solid var(--calcite-ui-border-2);padding:0.5rem}.table-body{display:table-row-group}.row{display:table-row}.table-cell{display:table-cell;padding:0.5rem}.display-table-header{display:table-header-group}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.justify-center{justify-content:center}.table-container{width:100%}.overflow-auto{overflow:auto}.data-container{overflow:auto;height:calc(100% - 35px)}.row:nth-child(odd){background:var(--calcite-ui-foreground-3)}.padding-3-4{padding:0.75rem}.field-width{white-space:nowrap;min-width:300px;max-width:300px;overflow:hidden}";
|
15
15
|
|