@esri/solutions-components 0.8.30 → 0.8.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-alert_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_6.cjs.entry.js +58 -34
- package/dist/cjs/card-manager_3.cjs.entry.js +17 -4
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +2 -2
- package/dist/cjs/feature-list.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popupUtils-e3fa775b.js → popupUtils-9ca69f8c.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/create-feature/create-feature.js +13 -8
- package/dist/collection/components/create-related-feature/create-related-feature.css +4 -0
- package/dist/collection/components/create-related-feature/create-related-feature.js +52 -26
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +1 -1
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +4 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +36 -4
- package/dist/collection/demos/crowdsource-manager.html +1 -1
- package/dist/collection/utils/popupUtils.js +1 -1
- package/dist/collection/utils/popupUtils.ts +1 -1
- package/dist/components/create-feature2.js +13 -8
- package/dist/components/create-related-feature2.js +57 -30
- package/dist/components/crowdsource-manager.js +1 -1
- package/dist/components/crowdsource-reporter.js +2 -2
- package/dist/components/layer-table2.js +19 -4
- package/dist/components/popupUtils.js +1 -1
- package/dist/esm/calcite-alert_4.entry.js +1 -1
- package/dist/esm/calcite-flow_6.entry.js +58 -34
- package/dist/esm/card-manager_3.entry.js +17 -4
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +2 -2
- package/dist/esm/feature-list.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popupUtils-17193415.js → popupUtils-8efd3cde.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +1 -1
- package/dist/solutions-components/{p-61bf98bc.entry.js → p-1b096a8b.entry.js} +1 -1
- package/dist/solutions-components/p-2455bcb0.js +21 -0
- package/dist/solutions-components/{p-bb90a138.entry.js → p-3365a6de.entry.js} +2 -2
- package/dist/solutions-components/p-4ae34862.entry.js +17 -0
- package/dist/solutions-components/p-5862de8d.entry.js +6 -0
- package/dist/solutions-components/{p-16fb8296.entry.js → p-628874a6.entry.js} +1 -1
- package/dist/solutions-components/{p-2f7bfd8d.entry.js → p-90c3bc54.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/popupUtils.ts +1 -1
- package/dist/types/components/create-feature/create-feature.d.ts +1 -1
- package/dist/types/components/create-related-feature/create-related-feature.d.ts +19 -1
- package/dist/types/components/layer-table/layer-table.d.ts +8 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-1bdf0ba0.entry.js +0 -6
- package/dist/solutions-components/p-2e23ac2c.js +0 -21
- package/dist/solutions-components/p-c21a6940.entry.js +0 -17
@@ -3,10 +3,11 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import { proxyCustomElement, HTMLElement, createEvent, h
|
6
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
7
7
|
import { l as loadModules } from './loadModules.js';
|
8
|
+
import { d as defineCustomElement$1 } from './loader.js';
|
8
9
|
|
9
|
-
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}";
|
10
|
+
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}";
|
10
11
|
const CreateRelatedFeatureStyle0 = createRelatedFeatureCss;
|
11
12
|
|
12
13
|
const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelatedFeature extends HTMLElement {
|
@@ -24,6 +25,7 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
24
25
|
this.table = undefined;
|
25
26
|
this.selectedFeature = undefined;
|
26
27
|
this.customizeSubmit = false;
|
28
|
+
this._editorLoading = false;
|
27
29
|
}
|
28
30
|
//--------------------------------------------------------------------------
|
29
31
|
//
|
@@ -38,6 +40,18 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
38
40
|
await this.init();
|
39
41
|
});
|
40
42
|
}
|
43
|
+
/**
|
44
|
+
* When _editorLoading is true the container node will be hidden while starting the create workflow
|
45
|
+
*/
|
46
|
+
async _editorLoadingWatchHandler(v) {
|
47
|
+
var _a, _b;
|
48
|
+
if (v) {
|
49
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
50
|
+
await this.startCreate();
|
51
|
+
(_b = this._container) === null || _b === void 0 ? void 0 : _b.classList.remove("display-none");
|
52
|
+
this._editorLoading = false;
|
53
|
+
}
|
54
|
+
}
|
41
55
|
//--------------------------------------------------------------------------
|
42
56
|
//
|
43
57
|
// Methods (public)
|
@@ -94,7 +108,8 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
94
108
|
this.reactiveUtils = reactiveUtils;
|
95
109
|
}
|
96
110
|
render() {
|
97
|
-
|
111
|
+
const loaderClass = this._editorLoading ? "" : "display-none";
|
112
|
+
return (h("calcite-loader", { key: 'a8fd1e83a4a9614779be19a11e6028b3a402cbd2', class: loaderClass, label: "", scale: "s" }));
|
98
113
|
}
|
99
114
|
/**
|
100
115
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -107,29 +122,24 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
107
122
|
* @protected
|
108
123
|
*/
|
109
124
|
async createEditorWidget() {
|
125
|
+
var _a;
|
110
126
|
if (this._editor) {
|
111
127
|
this._editor.destroy();
|
112
128
|
}
|
113
|
-
|
129
|
+
this._container = document.createElement("div");
|
130
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
114
131
|
this._editor = new this.Editor({
|
115
132
|
view: this.mapView,
|
116
133
|
visibleElements: {
|
117
134
|
snappingControls: false
|
118
135
|
},
|
119
|
-
container
|
120
|
-
});
|
121
|
-
this.el.appendChild(container);
|
122
|
-
//Add handle to watch featureFormViewModel ready state and hide the editor elements
|
123
|
-
const hideElementHandle = this.reactiveUtils.watch(() => { var _a; return (_a = this._editor.viewModel.featureFormViewModel) === null || _a === void 0 ? void 0 : _a.state; }, (state) => {
|
124
|
-
if (state === 'ready') {
|
125
|
-
this.hideEditorsElements();
|
126
|
-
}
|
136
|
+
container: this._container
|
127
137
|
});
|
128
|
-
this.
|
138
|
+
this.el.appendChild(this._container);
|
129
139
|
//Add handle to watch featureTemplatesViewModel ready state and then start the creation
|
130
140
|
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
131
141
|
if (state === 'ready') {
|
132
|
-
|
142
|
+
this._editorLoading = true;
|
133
143
|
}
|
134
144
|
});
|
135
145
|
this._editor.viewModel.addHandles(handle);
|
@@ -170,6 +180,8 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
170
180
|
template,
|
171
181
|
};
|
172
182
|
await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(creationInfo);
|
183
|
+
//hides the header and footer elements in editor widget
|
184
|
+
await this.hideEditorsElements();
|
173
185
|
// Emit an event to show submit cancel buttons
|
174
186
|
this.isActionPending.emit(false);
|
175
187
|
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
@@ -178,22 +190,21 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
178
190
|
* Hides the elements of editor widget
|
179
191
|
* @protected
|
180
192
|
*/
|
181
|
-
hideEditorsElements() {
|
193
|
+
async hideEditorsElements() {
|
194
|
+
var _a, _b;
|
182
195
|
if (!this.customizeSubmit) {
|
183
196
|
return;
|
184
197
|
}
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
});
|
196
|
-
}, 700);
|
198
|
+
await this.timeout(700);
|
199
|
+
//hides the header and footer on the featureForm
|
200
|
+
(_b = (_a = this.el.querySelector('.esri-editor')) === null || _a === void 0 ? void 0 : _a.querySelectorAll('calcite-flow-item')) === null || _b === void 0 ? void 0 : _b.forEach((flowItem) => {
|
201
|
+
var _a, _b, _c, _d, _e;
|
202
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
203
|
+
//hide the header
|
204
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
205
|
+
//hide the footer
|
206
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
207
|
+
});
|
197
208
|
}
|
198
209
|
/**
|
199
210
|
* Makes attributes for related feature
|
@@ -249,9 +260,18 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
249
260
|
this.success.emit();
|
250
261
|
}
|
251
262
|
}
|
263
|
+
/**
|
264
|
+
* call setTimeout in Promise wrapper
|
265
|
+
* @param delay The time, in milliseconds that the timer should wait before the promise is resolved
|
266
|
+
* @protected
|
267
|
+
*/
|
268
|
+
timeout(delay) {
|
269
|
+
return new Promise(resolve => setTimeout(resolve, delay));
|
270
|
+
}
|
252
271
|
get el() { return this; }
|
253
272
|
static get watchers() { return {
|
254
|
-
"mapView": ["mapViewWatchHandler"]
|
273
|
+
"mapView": ["mapViewWatchHandler"],
|
274
|
+
"_editorLoading": ["_editorLoadingWatchHandler"]
|
255
275
|
}; }
|
256
276
|
static get style() { return CreateRelatedFeatureStyle0; }
|
257
277
|
}, [0, "create-related-feature", {
|
@@ -259,22 +279,29 @@ const CreateRelatedFeature = /*@__PURE__*/ proxyCustomElement(class CreateRelate
|
|
259
279
|
"table": [16],
|
260
280
|
"selectedFeature": [16],
|
261
281
|
"customizeSubmit": [4, "customize-submit"],
|
282
|
+
"_editorLoading": [32],
|
262
283
|
"close": [64],
|
263
284
|
"submit": [64]
|
264
285
|
}, undefined, {
|
265
|
-
"mapView": ["mapViewWatchHandler"]
|
286
|
+
"mapView": ["mapViewWatchHandler"],
|
287
|
+
"_editorLoading": ["_editorLoadingWatchHandler"]
|
266
288
|
}]);
|
267
289
|
function defineCustomElement() {
|
268
290
|
if (typeof customElements === "undefined") {
|
269
291
|
return;
|
270
292
|
}
|
271
|
-
const components = ["create-related-feature"];
|
293
|
+
const components = ["create-related-feature", "calcite-loader"];
|
272
294
|
components.forEach(tagName => { switch (tagName) {
|
273
295
|
case "create-related-feature":
|
274
296
|
if (!customElements.get(tagName)) {
|
275
297
|
customElements.define(tagName, CreateRelatedFeature);
|
276
298
|
}
|
277
299
|
break;
|
300
|
+
case "calcite-loader":
|
301
|
+
if (!customElements.get(tagName)) {
|
302
|
+
defineCustomElement$1();
|
303
|
+
}
|
304
|
+
break;
|
278
305
|
} });
|
279
306
|
}
|
280
307
|
defineCustomElement();
|
@@ -481,7 +481,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
481
481
|
((_a = this.defaultGlobalId) === null || _a === void 0 ? void 0 : _a.indexOf(",")) > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
|
482
482
|
const defaultOid = !this.defaultOid ? undefined :
|
483
483
|
((_b = this.defaultOid) === null || _b === void 0 ? void 0 : _b.indexOf(",")) > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
|
484
|
-
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
|
484
|
+
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapHidden: this._expandPopup, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
|
485
485
|
}
|
486
486
|
/**
|
487
487
|
* Update the component layout when its size changes
|
@@ -55,7 +55,7 @@ import { d as defineCustomElement$4 } from './instant-apps-filter-list2.js';
|
|
55
55
|
import { d as defineCustomElement$3 } from './instant-apps-social-share2.js';
|
56
56
|
import { d as defineCustomElement$2 } from './layer-list2.js';
|
57
57
|
|
58
|
-
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}";
|
58
|
+
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";
|
59
59
|
const CrowdsourceReporterStyle0 = crowdsourceReporterCss;
|
60
60
|
|
61
61
|
const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceReporter extends HTMLElement {
|
@@ -618,7 +618,7 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
618
618
|
getFeatureDetailsFlowItem() {
|
619
619
|
var _a;
|
620
620
|
const showCommentBtn = ((_a = this._getLayersConfig(this._selectedLayerId)) === null || _a === void 0 ? void 0 : _a.comment) && this._selectedLayer.relationships.length > 0;
|
621
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, removePopoverOffset: true, scale: "
|
621
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, loading: this._showLoadingIndicator, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, class: "share-node", embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, removePopoverOffset: true, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), this._selectedFeature.length > 1 && this.getFeaturesPagination(), h("calcite-panel", null, h("feature-details", { class: 'full-height', graphics: this._selectedFeature, layerItemsHash: this._layerItemsHash, mapView: this.mapView, onCommentSelect: this.onCommentSelectFromList.bind(this), onFeatureSelectionChange: this.selectionChanged.bind(this), onLoadingStatus: (evt) => void this.updatingFeatureDetails(evt.detail), ref: el => this._featureDetails = el, reportingOptions: this.reportingOptions }), showCommentBtn &&
|
622
622
|
h("calcite-button", { appearance: "solid", onClick: () => this._flowItems = [...this._flowItems, "add-comment"], slot: "footer", width: "full" }, this._translations.comment))));
|
623
623
|
}
|
624
624
|
/**
|
@@ -103,6 +103,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
103
103
|
this.enableInlineEdit = undefined;
|
104
104
|
this.enableShare = undefined;
|
105
105
|
this.isMobile = undefined;
|
106
|
+
this.mapHidden = undefined;
|
106
107
|
this.mapInfo = undefined;
|
107
108
|
this.mapView = undefined;
|
108
109
|
this.onlyShowUpdatableLayers = undefined;
|
@@ -186,6 +187,15 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
186
187
|
}
|
187
188
|
});
|
188
189
|
}
|
190
|
+
/**
|
191
|
+
* Reset the toolInfos when mapHidden prop changes so we can show/hide any map dependant tool(s)
|
192
|
+
*/
|
193
|
+
mapHiddenWatchHandler() {
|
194
|
+
var _a;
|
195
|
+
if (((_a = this._toolInfos) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
196
|
+
this._initToolInfos();
|
197
|
+
}
|
198
|
+
}
|
189
199
|
/**
|
190
200
|
* When isMobile is false we need to init the tool infos for the dynamic toolbar
|
191
201
|
*/
|
@@ -349,7 +359,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
349
359
|
const selected = this.selectedIds.length.toString();
|
350
360
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
351
361
|
this._validateActiveActions();
|
352
|
-
return (h(Host, { key: '
|
362
|
+
return (h(Host, { key: '9692c6f764d078c22e1d6271deb3844ef65b1fca' }, h("calcite-shell", { key: 'a37b9fcfdd8450fea4a994738bf833c331bb168a' }, this._getTableControlRow("header"), h("div", { key: 'e0e82e0bb5441286d5cd3bdda3c55d77515fbcb0', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '4890c168eba3db34a291121f633c0d69ab8a1517', class: "height-full width-full" }, h("calcite-loader", { key: '19f85ec47a03731fe4c9ebb13d91cad66a8637fa', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '53d1c8bce2e2d464a141fabfcf13ee41aaf02168', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
353
363
|
.replace("{{total}}", total)
|
354
364
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
355
365
|
}
|
@@ -512,7 +522,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
512
522
|
const featuresEmpty = this._featuresEmpty();
|
513
523
|
const hasFilterExpressions = this._hasFilterExpressions();
|
514
524
|
if (this._translations) {
|
515
|
-
this._toolInfos = [
|
525
|
+
this._toolInfos = [
|
526
|
+
!this.mapHidden ? {
|
516
527
|
active: false,
|
517
528
|
icon: "zoom-to-object",
|
518
529
|
indicator: false,
|
@@ -520,7 +531,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
520
531
|
func: () => this._zoom(),
|
521
532
|
disabled: !featuresSelected,
|
522
533
|
isOverflow: false
|
523
|
-
},
|
534
|
+
} : undefined,
|
524
535
|
hasFilterExpressions ? {
|
525
536
|
active: false,
|
526
537
|
icon: "filter",
|
@@ -598,7 +609,8 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
598
609
|
disabled: false,
|
599
610
|
isOverflow: false,
|
600
611
|
isSublist: true
|
601
|
-
}
|
612
|
+
}
|
613
|
+
];
|
602
614
|
this._defaultVisibleToolSizeInfos = undefined;
|
603
615
|
}
|
604
616
|
}
|
@@ -1539,6 +1551,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1539
1551
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
1540
1552
|
"enableShare": ["enableShareWatchHandler"],
|
1541
1553
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
1554
|
+
"mapHidden": ["mapHiddenWatchHandler"],
|
1542
1555
|
"isMobile": ["isMobileWatchHandler"],
|
1543
1556
|
"mapInfo": ["mapInfoWatchHandler"],
|
1544
1557
|
"mapView": ["mapViewWatchHandler"],
|
@@ -1556,6 +1569,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1556
1569
|
"enableInlineEdit": [4, "enable-inline-edit"],
|
1557
1570
|
"enableShare": [4, "enable-share"],
|
1558
1571
|
"isMobile": [4, "is-mobile"],
|
1572
|
+
"mapHidden": [4, "map-hidden"],
|
1559
1573
|
"mapInfo": [16],
|
1560
1574
|
"mapView": [16],
|
1561
1575
|
"onlyShowUpdatableLayers": [4, "only-show-updatable-layers"],
|
@@ -1584,6 +1598,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1584
1598
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
1585
1599
|
"enableShare": ["enableShareWatchHandler"],
|
1586
1600
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
1601
|
+
"mapHidden": ["mapHiddenWatchHandler"],
|
1587
1602
|
"isMobile": ["isMobileWatchHandler"],
|
1588
1603
|
"mapInfo": ["mapInfoWatchHandler"],
|
1589
1604
|
"mapView": ["mapViewWatchHandler"],
|
@@ -69,7 +69,7 @@ class PopupUtils {
|
|
69
69
|
const fieldInfo = layer.popupTemplate.fieldInfos.find((fInfo) => fInfo.fieldName.toLowerCase() === field.name.toLowerCase());
|
70
70
|
//format the attribute value
|
71
71
|
const formattedAttributeValue = _prepareAttributeValue(attributeValue, field.type, field.domain, fieldInfo === null || fieldInfo === void 0 ? void 0 : fieldInfo.format, this.intl);
|
72
|
-
attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue;
|
72
|
+
attributes[`{${field.name.toUpperCase()}}`] = formattedAttributeValue !== null && formattedAttributeValue !== void 0 ? formattedAttributeValue : attributeValue;
|
73
73
|
});
|
74
74
|
}
|
75
75
|
return popupTitle === null || popupTitle === void 0 ? void 0 : popupTitle.replace(/{.*?}/g, (placeholder) => {
|
@@ -13,7 +13,7 @@ import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as
|
|
13
13
|
import { K as KindIcons } from './resources-ae36eaff.js';
|
14
14
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-a490c4f6.js';
|
15
15
|
import { a as getAllLayers } from './mapViewUtils-b8deb4ae.js';
|
16
|
-
import { P as PopupUtils } from './popupUtils-
|
16
|
+
import { P as PopupUtils } from './popupUtils-8efd3cde.js';
|
17
17
|
import './guid-f05d01d5.js';
|
18
18
|
import './resources-1febf4c6.js';
|
19
19
|
import './key-092b6260.js';
|
@@ -356,7 +356,7 @@ const CreateFeature = class {
|
|
356
356
|
this.customizeSubmit = false;
|
357
357
|
this.searchConfiguration = undefined;
|
358
358
|
this._editorLoading = false;
|
359
|
-
this.
|
359
|
+
this._showSearchWidget = undefined;
|
360
360
|
}
|
361
361
|
//--------------------------------------------------------------------------
|
362
362
|
//
|
@@ -429,10 +429,10 @@ const CreateFeature = class {
|
|
429
429
|
* Renders the component.
|
430
430
|
*/
|
431
431
|
render() {
|
432
|
-
const showSearchWidget = this.
|
432
|
+
const showSearchWidget = this._showSearchWidget ? '' : 'display-none';
|
433
433
|
const loaderClass = this._editorLoading ? "" : "display-none";
|
434
434
|
const featureFormClass = this._editorLoading ? "display-none" : "";
|
435
|
-
return (h(Fragment, { key: '
|
435
|
+
return (h(Fragment, { key: 'a4ccd565a52a4cde4e76439629425f19bd4c222e' }, h("calcite-loader", { key: '30e8a3753985a734dd7cba461f26691b51f49ab9', class: loaderClass, label: "", scale: "s" }), h("div", { key: '0845f1fa85a21b578fd18200b43d4a77c34e6808', class: featureFormClass, id: "feature-form" }), h("div", { key: 'af74b6337f5a0dcfdbd552145c88eae5282a3307', class: `search-widget ${showSearchWidget} ${featureFormClass}`, id: "search-widget-ref" })));
|
436
436
|
}
|
437
437
|
//--------------------------------------------------------------------------
|
438
438
|
//
|
@@ -522,7 +522,7 @@ const CreateFeature = class {
|
|
522
522
|
const formHandle = this.reactiveUtils.watch(() => this._editor.viewModel.state, (state) => {
|
523
523
|
if (state === 'creating-features') {
|
524
524
|
this._editorLoading = true;
|
525
|
-
this.
|
525
|
+
this._showSearchWidget = true;
|
526
526
|
}
|
527
527
|
});
|
528
528
|
this._editor.viewModel.addHandles(formHandle);
|
@@ -546,11 +546,12 @@ const CreateFeature = class {
|
|
546
546
|
//on sketch complete emit the event
|
547
547
|
this._editor.viewModel.sketchViewModel.on("create", (evt) => {
|
548
548
|
if (evt.state === "complete") {
|
549
|
-
this.
|
549
|
+
this._showSearchWidget = false;
|
550
550
|
this.progressStatus.emit(1);
|
551
551
|
this.drawComplete.emit();
|
552
552
|
}
|
553
553
|
});
|
554
|
+
//hides the header and footer elements in editor widget
|
554
555
|
this.hideEditorsElements().then(() => {
|
555
556
|
resolve({});
|
556
557
|
}, e => reject(e));
|
@@ -561,8 +562,12 @@ const CreateFeature = class {
|
|
561
562
|
if (items.length === 1) {
|
562
563
|
this._editor.viewModel.featureTemplatesViewModel.select(items[0]);
|
563
564
|
}
|
564
|
-
|
565
|
-
|
565
|
+
const resolvePromise = items.length > 1;
|
566
|
+
this.hideEditorsElements().then(() => {
|
567
|
+
if (resolvePromise) {
|
568
|
+
resolve({});
|
569
|
+
}
|
570
|
+
}, e => resolvePromise && reject(e));
|
566
571
|
}
|
567
572
|
});
|
568
573
|
}
|
@@ -724,7 +729,7 @@ const CreateFeature = class {
|
|
724
729
|
};
|
725
730
|
CreateFeature.style = CreateFeatureStyle0;
|
726
731
|
|
727
|
-
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}";
|
732
|
+
const createRelatedFeatureCss = ":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}";
|
728
733
|
const CreateRelatedFeatureStyle0 = createRelatedFeatureCss;
|
729
734
|
|
730
735
|
const CreateRelatedFeature = class {
|
@@ -741,6 +746,7 @@ const CreateRelatedFeature = class {
|
|
741
746
|
this.table = undefined;
|
742
747
|
this.selectedFeature = undefined;
|
743
748
|
this.customizeSubmit = false;
|
749
|
+
this._editorLoading = false;
|
744
750
|
}
|
745
751
|
//--------------------------------------------------------------------------
|
746
752
|
//
|
@@ -755,6 +761,18 @@ const CreateRelatedFeature = class {
|
|
755
761
|
await this.init();
|
756
762
|
});
|
757
763
|
}
|
764
|
+
/**
|
765
|
+
* When _editorLoading is true the container node will be hidden while starting the create workflow
|
766
|
+
*/
|
767
|
+
async _editorLoadingWatchHandler(v) {
|
768
|
+
var _a, _b;
|
769
|
+
if (v) {
|
770
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
771
|
+
await this.startCreate();
|
772
|
+
(_b = this._container) === null || _b === void 0 ? void 0 : _b.classList.remove("display-none");
|
773
|
+
this._editorLoading = false;
|
774
|
+
}
|
775
|
+
}
|
758
776
|
//--------------------------------------------------------------------------
|
759
777
|
//
|
760
778
|
// Methods (public)
|
@@ -811,7 +829,8 @@ const CreateRelatedFeature = class {
|
|
811
829
|
this.reactiveUtils = reactiveUtils;
|
812
830
|
}
|
813
831
|
render() {
|
814
|
-
|
832
|
+
const loaderClass = this._editorLoading ? "" : "display-none";
|
833
|
+
return (h("calcite-loader", { key: 'a8fd1e83a4a9614779be19a11e6028b3a402cbd2', class: loaderClass, label: "", scale: "s" }));
|
815
834
|
}
|
816
835
|
/**
|
817
836
|
* StencilJS: Called once just after the component is fully loaded and the first render() occurs.
|
@@ -824,29 +843,24 @@ const CreateRelatedFeature = class {
|
|
824
843
|
* @protected
|
825
844
|
*/
|
826
845
|
async createEditorWidget() {
|
846
|
+
var _a;
|
827
847
|
if (this._editor) {
|
828
848
|
this._editor.destroy();
|
829
849
|
}
|
830
|
-
|
850
|
+
this._container = document.createElement("div");
|
851
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add("display-none");
|
831
852
|
this._editor = new this.Editor({
|
832
853
|
view: this.mapView,
|
833
854
|
visibleElements: {
|
834
855
|
snappingControls: false
|
835
856
|
},
|
836
|
-
container
|
837
|
-
});
|
838
|
-
this.el.appendChild(container);
|
839
|
-
//Add handle to watch featureFormViewModel ready state and hide the editor elements
|
840
|
-
const hideElementHandle = this.reactiveUtils.watch(() => { var _a; return (_a = this._editor.viewModel.featureFormViewModel) === null || _a === void 0 ? void 0 : _a.state; }, (state) => {
|
841
|
-
if (state === 'ready') {
|
842
|
-
this.hideEditorsElements();
|
843
|
-
}
|
857
|
+
container: this._container
|
844
858
|
});
|
845
|
-
this.
|
859
|
+
this.el.appendChild(this._container);
|
846
860
|
//Add handle to watch featureTemplatesViewModel ready state and then start the creation
|
847
861
|
const handle = this.reactiveUtils.watch(() => this._editor.viewModel.featureTemplatesViewModel.state, (state) => {
|
848
862
|
if (state === 'ready') {
|
849
|
-
|
863
|
+
this._editorLoading = true;
|
850
864
|
}
|
851
865
|
});
|
852
866
|
this._editor.viewModel.addHandles(handle);
|
@@ -887,6 +901,8 @@ const CreateRelatedFeature = class {
|
|
887
901
|
template,
|
888
902
|
};
|
889
903
|
await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(creationInfo);
|
904
|
+
//hides the header and footer elements in editor widget
|
905
|
+
await this.hideEditorsElements();
|
890
906
|
// Emit an event to show submit cancel buttons
|
891
907
|
this.isActionPending.emit(false);
|
892
908
|
this._editor.viewModel.featureFormViewModel.on('submit', this.submitted.bind(this));
|
@@ -895,22 +911,21 @@ const CreateRelatedFeature = class {
|
|
895
911
|
* Hides the elements of editor widget
|
896
912
|
* @protected
|
897
913
|
*/
|
898
|
-
hideEditorsElements() {
|
914
|
+
async hideEditorsElements() {
|
915
|
+
var _a, _b;
|
899
916
|
if (!this.customizeSubmit) {
|
900
917
|
return;
|
901
918
|
}
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
});
|
913
|
-
}, 700);
|
919
|
+
await this.timeout(700);
|
920
|
+
//hides the header and footer on the featureForm
|
921
|
+
(_b = (_a = this.el.querySelector('.esri-editor')) === null || _a === void 0 ? void 0 : _a.querySelectorAll('calcite-flow-item')) === null || _b === void 0 ? void 0 : _b.forEach((flowItem) => {
|
922
|
+
var _a, _b, _c, _d, _e;
|
923
|
+
const article = (_c = (_b = (_a = flowItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('calcite-panel')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('article');
|
924
|
+
//hide the header
|
925
|
+
(_d = article === null || article === void 0 ? void 0 : article.querySelector('header')) === null || _d === void 0 ? void 0 : _d.setAttribute('style', 'display: none');
|
926
|
+
//hide the footer
|
927
|
+
(_e = article === null || article === void 0 ? void 0 : article.querySelector('footer')) === null || _e === void 0 ? void 0 : _e.setAttribute('style', 'display: none');
|
928
|
+
});
|
914
929
|
}
|
915
930
|
/**
|
916
931
|
* Makes attributes for related feature
|
@@ -966,9 +981,18 @@ const CreateRelatedFeature = class {
|
|
966
981
|
this.success.emit();
|
967
982
|
}
|
968
983
|
}
|
984
|
+
/**
|
985
|
+
* call setTimeout in Promise wrapper
|
986
|
+
* @param delay The time, in milliseconds that the timer should wait before the promise is resolved
|
987
|
+
* @protected
|
988
|
+
*/
|
989
|
+
timeout(delay) {
|
990
|
+
return new Promise(resolve => setTimeout(resolve, delay));
|
991
|
+
}
|
969
992
|
get el() { return getElement(this); }
|
970
993
|
static get watchers() { return {
|
971
|
-
"mapView": ["mapViewWatchHandler"]
|
994
|
+
"mapView": ["mapViewWatchHandler"],
|
995
|
+
"_editorLoading": ["_editorLoadingWatchHandler"]
|
972
996
|
}; }
|
973
997
|
};
|
974
998
|
CreateRelatedFeature.style = CreateRelatedFeatureStyle0;
|
@@ -155,6 +155,7 @@ const LayerTable = class {
|
|
155
155
|
this.enableInlineEdit = undefined;
|
156
156
|
this.enableShare = undefined;
|
157
157
|
this.isMobile = undefined;
|
158
|
+
this.mapHidden = undefined;
|
158
159
|
this.mapInfo = undefined;
|
159
160
|
this.mapView = undefined;
|
160
161
|
this.onlyShowUpdatableLayers = undefined;
|
@@ -238,6 +239,15 @@ const LayerTable = class {
|
|
238
239
|
}
|
239
240
|
});
|
240
241
|
}
|
242
|
+
/**
|
243
|
+
* Reset the toolInfos when mapHidden prop changes so we can show/hide any map dependant tool(s)
|
244
|
+
*/
|
245
|
+
mapHiddenWatchHandler() {
|
246
|
+
var _a;
|
247
|
+
if (((_a = this._toolInfos) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
248
|
+
this._initToolInfos();
|
249
|
+
}
|
250
|
+
}
|
241
251
|
/**
|
242
252
|
* When isMobile is false we need to init the tool infos for the dynamic toolbar
|
243
253
|
*/
|
@@ -401,7 +411,7 @@ const LayerTable = class {
|
|
401
411
|
const selected = this.selectedIds.length.toString();
|
402
412
|
const tableHeightClass = this.isMobile ? "height-full" : "height-full-adjusted";
|
403
413
|
this._validateActiveActions();
|
404
|
-
return (h(Host, { key: '
|
414
|
+
return (h(Host, { key: '9692c6f764d078c22e1d6271deb3844ef65b1fca' }, h("calcite-shell", { key: 'a37b9fcfdd8450fea4a994738bf833c331bb168a' }, this._getTableControlRow("header"), h("div", { key: 'e0e82e0bb5441286d5cd3bdda3c55d77515fbcb0', class: `width-full ${tableHeightClass}` }, h("calcite-panel", { key: '4890c168eba3db34a291121f633c0d69ab8a1517', class: "height-full width-full" }, h("calcite-loader", { key: '19f85ec47a03731fe4c9ebb13d91cad66a8637fa', class: loadingClass, label: this._translations.fetchingData, scale: "l" }), h("div", { key: '53d1c8bce2e2d464a141fabfcf13ee41aaf02168', class: tableNodeClass, ref: this.onTableNodeCreate })), !this.isMobile ? (h("div", { class: "bottom-left text-color height-19" }, this._translations.recordsSelected
|
405
415
|
.replace("{{total}}", total)
|
406
416
|
.replace("{{selected}}", selected))) : undefined)), this._filterModal()));
|
407
417
|
}
|
@@ -564,7 +574,8 @@ const LayerTable = class {
|
|
564
574
|
const featuresEmpty = this._featuresEmpty();
|
565
575
|
const hasFilterExpressions = this._hasFilterExpressions();
|
566
576
|
if (this._translations) {
|
567
|
-
this._toolInfos = [
|
577
|
+
this._toolInfos = [
|
578
|
+
!this.mapHidden ? {
|
568
579
|
active: false,
|
569
580
|
icon: "zoom-to-object",
|
570
581
|
indicator: false,
|
@@ -572,7 +583,7 @@ const LayerTable = class {
|
|
572
583
|
func: () => this._zoom(),
|
573
584
|
disabled: !featuresSelected,
|
574
585
|
isOverflow: false
|
575
|
-
},
|
586
|
+
} : undefined,
|
576
587
|
hasFilterExpressions ? {
|
577
588
|
active: false,
|
578
589
|
icon: "filter",
|
@@ -650,7 +661,8 @@ const LayerTable = class {
|
|
650
661
|
disabled: false,
|
651
662
|
isOverflow: false,
|
652
663
|
isSublist: true
|
653
|
-
}
|
664
|
+
}
|
665
|
+
];
|
654
666
|
this._defaultVisibleToolSizeInfos = undefined;
|
655
667
|
}
|
656
668
|
}
|
@@ -1591,6 +1603,7 @@ const LayerTable = class {
|
|
1591
1603
|
"enableInlineEdit": ["enableInlineEditWatchHandler"],
|
1592
1604
|
"enableShare": ["enableShareWatchHandler"],
|
1593
1605
|
"_controlsThatFit": ["_controlsThatFitWatchHandler"],
|
1606
|
+
"mapHidden": ["mapHiddenWatchHandler"],
|
1594
1607
|
"isMobile": ["isMobileWatchHandler"],
|
1595
1608
|
"mapInfo": ["mapInfoWatchHandler"],
|
1596
1609
|
"mapView": ["mapViewWatchHandler"],
|
@@ -424,7 +424,7 @@ const CrowdsourceManager = class {
|
|
424
424
|
((_a = this.defaultGlobalId) === null || _a === void 0 ? void 0 : _a.indexOf(",")) > -1 ? this.defaultGlobalId.split(",") : [this.defaultGlobalId];
|
425
425
|
const defaultOid = !this.defaultOid ? undefined :
|
426
426
|
((_b = this.defaultOid) === null || _b === void 0 ? void 0 : _b.indexOf(",")) > -1 ? this.defaultOid.split(",").map(o => parseInt(o, 10)) : [parseInt(this.defaultOid, 10)];
|
427
|
-
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
|
427
|
+
return (h("calcite-shell", { class: `${tableSizeClass} ${tableClass} border-bottom` }, !this._isMobile ? (h("calcite-action-bar", { class: "border-sides", expandDisabled: true, layout: toggleLayout, slot: toggleSlot }, h("calcite-action", { class: "toggle-node", icon: icon, id: id, onClick: () => this._toggleLayout(), text: "" }), h("calcite-tooltip", { label: tooltip, placement: "bottom", "reference-element": id }, h("span", null, tooltip)))) : undefined, h("div", { class: `width-full height-full position-relative` }, h("layer-table", { defaultGlobalId: hasMapAndLayer ? globalId : undefined, defaultLayerId: hasMapAndLayer ? this.defaultLayer : "", defaultOid: hasMapAndLayer && !globalId ? defaultOid : undefined, enableAutoRefresh: this.enableAutoRefresh, enableCSV: this.enableCSV, enableColumnReorder: this.enableColumnReorder, enableInlineEdit: this.enableInlineEdit, enableShare: this.enableShare, isMobile: this._isMobile, mapHidden: this._expandPopup, mapInfo: this._mapInfo, mapView: this === null || this === void 0 ? void 0 : this._mapView, onlyShowUpdatableLayers: this.onlyShowUpdatableLayers, ref: (el) => this._layerTable = el, shareIncludeEmbed: this.shareIncludeEmbed, shareIncludeSocial: this.shareIncludeSocial, showNewestFirst: this.showNewestFirst, zoomAndScrollToSelected: this.zoomAndScrollToSelected, zoomToScale: this.zoomToScale }))));
|
428
428
|
}
|
429
429
|
/**
|
430
430
|
* Update the component layout when its size changes
|