@esri/solutions-components 0.8.34 → 0.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -17
- package/dist/cjs/crowdsource-manager.cjs.entry.js +15 -6
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +15 -6
- package/dist/collection/components/floor-filter/floor-filter.js +1 -17
- package/dist/components/crowdsource-manager.js +15 -6
- package/dist/components/floor-filter2.js +1 -17
- package/dist/esm/basemap-gallery_7.entry.js +1 -17
- package/dist/esm/crowdsource-manager.entry.js +15 -6
- package/dist/solutions-components/p-6e260ca3.entry.js +6 -0
- package/dist/solutions-components/p-c1222f6b.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-21cbb55d.entry.js +0 -6
- package/dist/solutions-components/p-c91b2153.entry.js +0 -6
|
@@ -140,17 +140,12 @@ const FloorFilter = class {
|
|
|
140
140
|
* Watch for changes to the mapView and re-init the floor filter
|
|
141
141
|
*/
|
|
142
142
|
async mapViewWatchHandler() {
|
|
143
|
-
console.log("mapViewWatchHandler");
|
|
144
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
145
143
|
await this._initFloorFilter(this.mapView);
|
|
146
144
|
}
|
|
147
145
|
/**
|
|
148
146
|
* Watch for changes to the enabled property and re-init or destroy the floor filter
|
|
149
147
|
*/
|
|
150
148
|
async enabledWatchHandler() {
|
|
151
|
-
console.log("enabledWatchHandler");
|
|
152
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
153
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
154
149
|
if (this.enabled) {
|
|
155
150
|
await this._initFloorFilter(this.mapView);
|
|
156
151
|
}
|
|
@@ -173,9 +168,7 @@ const FloorFilter = class {
|
|
|
173
168
|
* Renders the component.
|
|
174
169
|
*/
|
|
175
170
|
render() {
|
|
176
|
-
|
|
177
|
-
console.log(`this._floorFilterElement: ${this._floorFilterElement}`);
|
|
178
|
-
return (index.h(index.Host, { key: '01b71c71af2a183b85c8620c338512fd338f19ef' }, index.h("div", { key: '752d397c6e3b6a2257d0a8a05051ed821eca4b94', ref: (el) => { this._floorFilterElement = el; } })));
|
|
171
|
+
return (index.h(index.Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, index.h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
|
|
179
172
|
}
|
|
180
173
|
//--------------------------------------------------------------------------
|
|
181
174
|
//
|
|
@@ -203,7 +196,6 @@ const FloorFilter = class {
|
|
|
203
196
|
* @protected
|
|
204
197
|
*/
|
|
205
198
|
_destroyWidget() {
|
|
206
|
-
console.log("_destroyWidget");
|
|
207
199
|
if (this.floorFilterWidget) {
|
|
208
200
|
this.floorFilterWidget.destroy();
|
|
209
201
|
this.floorFilterWidget = undefined;
|
|
@@ -218,7 +210,6 @@ const FloorFilter = class {
|
|
|
218
210
|
* @protected
|
|
219
211
|
*/
|
|
220
212
|
_initContainer() {
|
|
221
|
-
console.log("_initContainer");
|
|
222
213
|
this._destroyWidget();
|
|
223
214
|
this._floorFilterElement = document.createElement("div");
|
|
224
215
|
}
|
|
@@ -226,16 +217,9 @@ const FloorFilter = class {
|
|
|
226
217
|
* Initialize the floor filter or reset the current view if it already exists
|
|
227
218
|
*/
|
|
228
219
|
async _initFloorFilter(view) {
|
|
229
|
-
console.log("_initFloorFilter");
|
|
230
220
|
const webMap = view === null || view === void 0 ? void 0 : view.map;
|
|
231
221
|
await webMap.when(() => {
|
|
232
222
|
var _a, _b, _c;
|
|
233
|
-
console.log("webMap.when");
|
|
234
|
-
console.log("_initFloorFilter");
|
|
235
|
-
console.log(`view: ${view}`);
|
|
236
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
237
|
-
console.log(`this.FloorFilter: ${this.FloorFilter}`);
|
|
238
|
-
console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
|
|
239
223
|
if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
|
|
240
224
|
this._initContainer();
|
|
241
225
|
this.floorFilterWidget = new this.FloorFilter({
|
|
@@ -36,6 +36,10 @@ const CrowdsourceManager = class {
|
|
|
36
36
|
* MapView.when is not fired when mapView is not currently visible
|
|
37
37
|
*/
|
|
38
38
|
this._defaultLevelHonored = false;
|
|
39
|
+
/**
|
|
40
|
+
* boolean: When true hideMapOnLoad was honored for the current map
|
|
41
|
+
*/
|
|
42
|
+
this._hideMapOnLoadHonored = false;
|
|
39
43
|
/**
|
|
40
44
|
* boolean: When true the map view will be set after render due to popup obstructing the view
|
|
41
45
|
* MapView.when is not fired when mapView is not currently visible
|
|
@@ -77,10 +81,10 @@ const CrowdsourceManager = class {
|
|
|
77
81
|
this.theme = "light";
|
|
78
82
|
this.zoomAndScrollToSelected = false;
|
|
79
83
|
this.zoomToScale = undefined;
|
|
80
|
-
this._expandPopup =
|
|
84
|
+
this._expandPopup = false;
|
|
81
85
|
this._hideFooter = false;
|
|
82
86
|
this._hideTable = false;
|
|
83
|
-
this._isMobile =
|
|
87
|
+
this._isMobile = false;
|
|
84
88
|
this._translations = undefined;
|
|
85
89
|
this._layer = undefined;
|
|
86
90
|
this._layoutMode = interfaces.ELayoutMode.GRID;
|
|
@@ -105,8 +109,8 @@ const CrowdsourceManager = class {
|
|
|
105
109
|
* When true the map will be hidden on load
|
|
106
110
|
*/
|
|
107
111
|
hideMapOnLoadWatchHandler() {
|
|
108
|
-
this.showHideMapPopupAndTable(this.hideMapOnLoad);
|
|
109
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
112
|
+
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
|
113
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
110
114
|
}
|
|
111
115
|
/**
|
|
112
116
|
* When true the map will be hidden on load
|
|
@@ -177,7 +181,8 @@ const CrowdsourceManager = class {
|
|
|
177
181
|
* Update the state expandPopup when mapInfoChange event occurs
|
|
178
182
|
*/
|
|
179
183
|
async mapInfoChange() {
|
|
180
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
184
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
185
|
+
this._hideMapOnLoadHonored = false;
|
|
181
186
|
}
|
|
182
187
|
//--------------------------------------------------------------------------
|
|
183
188
|
//
|
|
@@ -199,7 +204,7 @@ const CrowdsourceManager = class {
|
|
|
199
204
|
render() {
|
|
200
205
|
// only avoid border when we have a header color that is not white
|
|
201
206
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
202
|
-
return (index.h(index.Host, { key: '
|
|
207
|
+
return (index.h(index.Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, index.h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, index.h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
203
208
|
}
|
|
204
209
|
/**
|
|
205
210
|
* Called after each render
|
|
@@ -395,6 +400,7 @@ const CrowdsourceManager = class {
|
|
|
395
400
|
*/
|
|
396
401
|
_togglePopup() {
|
|
397
402
|
this._expandPopup = !this._expandPopup;
|
|
403
|
+
this._hideMapOnLoadHonored = true;
|
|
398
404
|
}
|
|
399
405
|
/**
|
|
400
406
|
* Get the card node
|
|
@@ -443,6 +449,9 @@ const CrowdsourceManager = class {
|
|
|
443
449
|
if (forceOpen) {
|
|
444
450
|
this._panelOpen = true;
|
|
445
451
|
}
|
|
452
|
+
if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
|
|
453
|
+
this.hideMapOnLoadWatchHandler();
|
|
454
|
+
}
|
|
446
455
|
}
|
|
447
456
|
/**
|
|
448
457
|
* Open/Close the appropriate panel.
|
|
@@ -39,6 +39,10 @@ export class CrowdsourceManager {
|
|
|
39
39
|
* MapView.when is not fired when mapView is not currently visible
|
|
40
40
|
*/
|
|
41
41
|
this._defaultLevelHonored = false;
|
|
42
|
+
/**
|
|
43
|
+
* boolean: When true hideMapOnLoad was honored for the current map
|
|
44
|
+
*/
|
|
45
|
+
this._hideMapOnLoadHonored = false;
|
|
42
46
|
/**
|
|
43
47
|
* boolean: When true the map view will be set after render due to popup obstructing the view
|
|
44
48
|
* MapView.when is not fired when mapView is not currently visible
|
|
@@ -80,10 +84,10 @@ export class CrowdsourceManager {
|
|
|
80
84
|
this.theme = "light";
|
|
81
85
|
this.zoomAndScrollToSelected = false;
|
|
82
86
|
this.zoomToScale = undefined;
|
|
83
|
-
this._expandPopup =
|
|
87
|
+
this._expandPopup = false;
|
|
84
88
|
this._hideFooter = false;
|
|
85
89
|
this._hideTable = false;
|
|
86
|
-
this._isMobile =
|
|
90
|
+
this._isMobile = false;
|
|
87
91
|
this._translations = undefined;
|
|
88
92
|
this._layer = undefined;
|
|
89
93
|
this._layoutMode = ELayoutMode.GRID;
|
|
@@ -108,8 +112,8 @@ export class CrowdsourceManager {
|
|
|
108
112
|
* When true the map will be hidden on load
|
|
109
113
|
*/
|
|
110
114
|
hideMapOnLoadWatchHandler() {
|
|
111
|
-
this.showHideMapPopupAndTable(this.hideMapOnLoad);
|
|
112
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
115
|
+
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
|
116
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
113
117
|
}
|
|
114
118
|
/**
|
|
115
119
|
* When true the map will be hidden on load
|
|
@@ -180,7 +184,8 @@ export class CrowdsourceManager {
|
|
|
180
184
|
* Update the state expandPopup when mapInfoChange event occurs
|
|
181
185
|
*/
|
|
182
186
|
async mapInfoChange() {
|
|
183
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
187
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
188
|
+
this._hideMapOnLoadHonored = false;
|
|
184
189
|
}
|
|
185
190
|
//--------------------------------------------------------------------------
|
|
186
191
|
//
|
|
@@ -202,7 +207,7 @@ export class CrowdsourceManager {
|
|
|
202
207
|
render() {
|
|
203
208
|
// only avoid border when we have a header color that is not white
|
|
204
209
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
205
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
206
211
|
}
|
|
207
212
|
/**
|
|
208
213
|
* Called after each render
|
|
@@ -398,6 +403,7 @@ export class CrowdsourceManager {
|
|
|
398
403
|
*/
|
|
399
404
|
_togglePopup() {
|
|
400
405
|
this._expandPopup = !this._expandPopup;
|
|
406
|
+
this._hideMapOnLoadHonored = true;
|
|
401
407
|
}
|
|
402
408
|
/**
|
|
403
409
|
* Get the card node
|
|
@@ -446,6 +452,9 @@ export class CrowdsourceManager {
|
|
|
446
452
|
if (forceOpen) {
|
|
447
453
|
this._panelOpen = true;
|
|
448
454
|
}
|
|
455
|
+
if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
|
|
456
|
+
this.hideMapOnLoadWatchHandler();
|
|
457
|
+
}
|
|
449
458
|
}
|
|
450
459
|
/**
|
|
451
460
|
* Open/Close the appropriate panel.
|
|
@@ -35,17 +35,12 @@ export class FloorFilter {
|
|
|
35
35
|
* Watch for changes to the mapView and re-init the floor filter
|
|
36
36
|
*/
|
|
37
37
|
async mapViewWatchHandler() {
|
|
38
|
-
console.log("mapViewWatchHandler");
|
|
39
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
40
38
|
await this._initFloorFilter(this.mapView);
|
|
41
39
|
}
|
|
42
40
|
/**
|
|
43
41
|
* Watch for changes to the enabled property and re-init or destroy the floor filter
|
|
44
42
|
*/
|
|
45
43
|
async enabledWatchHandler() {
|
|
46
|
-
console.log("enabledWatchHandler");
|
|
47
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
48
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
49
44
|
if (this.enabled) {
|
|
50
45
|
await this._initFloorFilter(this.mapView);
|
|
51
46
|
}
|
|
@@ -68,9 +63,7 @@ export class FloorFilter {
|
|
|
68
63
|
* Renders the component.
|
|
69
64
|
*/
|
|
70
65
|
render() {
|
|
71
|
-
|
|
72
|
-
console.log(`this._floorFilterElement: ${this._floorFilterElement}`);
|
|
73
|
-
return (h(Host, { key: '01b71c71af2a183b85c8620c338512fd338f19ef' }, h("div", { key: '752d397c6e3b6a2257d0a8a05051ed821eca4b94', ref: (el) => { this._floorFilterElement = el; } })));
|
|
66
|
+
return (h(Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
|
|
74
67
|
}
|
|
75
68
|
//--------------------------------------------------------------------------
|
|
76
69
|
//
|
|
@@ -98,7 +91,6 @@ export class FloorFilter {
|
|
|
98
91
|
* @protected
|
|
99
92
|
*/
|
|
100
93
|
_destroyWidget() {
|
|
101
|
-
console.log("_destroyWidget");
|
|
102
94
|
if (this.floorFilterWidget) {
|
|
103
95
|
this.floorFilterWidget.destroy();
|
|
104
96
|
this.floorFilterWidget = undefined;
|
|
@@ -113,7 +105,6 @@ export class FloorFilter {
|
|
|
113
105
|
* @protected
|
|
114
106
|
*/
|
|
115
107
|
_initContainer() {
|
|
116
|
-
console.log("_initContainer");
|
|
117
108
|
this._destroyWidget();
|
|
118
109
|
this._floorFilterElement = document.createElement("div");
|
|
119
110
|
}
|
|
@@ -121,16 +112,9 @@ export class FloorFilter {
|
|
|
121
112
|
* Initialize the floor filter or reset the current view if it already exists
|
|
122
113
|
*/
|
|
123
114
|
async _initFloorFilter(view) {
|
|
124
|
-
console.log("_initFloorFilter");
|
|
125
115
|
const webMap = view === null || view === void 0 ? void 0 : view.map;
|
|
126
116
|
await webMap.when(() => {
|
|
127
117
|
var _a, _b, _c;
|
|
128
|
-
console.log("webMap.when");
|
|
129
|
-
console.log("_initFloorFilter");
|
|
130
|
-
console.log(`view: ${view}`);
|
|
131
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
132
|
-
console.log(`this.FloorFilter: ${this.FloorFilter}`);
|
|
133
|
-
console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
|
|
134
118
|
if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
|
|
135
119
|
this._initContainer();
|
|
136
120
|
this.floorFilterWidget = new this.FloorFilter({
|
|
@@ -89,6 +89,10 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
89
89
|
* MapView.when is not fired when mapView is not currently visible
|
|
90
90
|
*/
|
|
91
91
|
this._defaultLevelHonored = false;
|
|
92
|
+
/**
|
|
93
|
+
* boolean: When true hideMapOnLoad was honored for the current map
|
|
94
|
+
*/
|
|
95
|
+
this._hideMapOnLoadHonored = false;
|
|
92
96
|
/**
|
|
93
97
|
* boolean: When true the map view will be set after render due to popup obstructing the view
|
|
94
98
|
* MapView.when is not fired when mapView is not currently visible
|
|
@@ -130,10 +134,10 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
130
134
|
this.theme = "light";
|
|
131
135
|
this.zoomAndScrollToSelected = false;
|
|
132
136
|
this.zoomToScale = undefined;
|
|
133
|
-
this._expandPopup =
|
|
137
|
+
this._expandPopup = false;
|
|
134
138
|
this._hideFooter = false;
|
|
135
139
|
this._hideTable = false;
|
|
136
|
-
this._isMobile =
|
|
140
|
+
this._isMobile = false;
|
|
137
141
|
this._translations = undefined;
|
|
138
142
|
this._layer = undefined;
|
|
139
143
|
this._layoutMode = ELayoutMode.GRID;
|
|
@@ -158,8 +162,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
158
162
|
* When true the map will be hidden on load
|
|
159
163
|
*/
|
|
160
164
|
hideMapOnLoadWatchHandler() {
|
|
161
|
-
this.showHideMapPopupAndTable(this.hideMapOnLoad);
|
|
162
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
165
|
+
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
|
166
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
163
167
|
}
|
|
164
168
|
/**
|
|
165
169
|
* When true the map will be hidden on load
|
|
@@ -230,7 +234,8 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
230
234
|
* Update the state expandPopup when mapInfoChange event occurs
|
|
231
235
|
*/
|
|
232
236
|
async mapInfoChange() {
|
|
233
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
237
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
238
|
+
this._hideMapOnLoadHonored = false;
|
|
234
239
|
}
|
|
235
240
|
//--------------------------------------------------------------------------
|
|
236
241
|
//
|
|
@@ -252,7 +257,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
252
257
|
render() {
|
|
253
258
|
// only avoid border when we have a header color that is not white
|
|
254
259
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
255
|
-
return (h(Host, { key: '
|
|
260
|
+
return (h(Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
256
261
|
}
|
|
257
262
|
/**
|
|
258
263
|
* Called after each render
|
|
@@ -448,6 +453,7 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
448
453
|
*/
|
|
449
454
|
_togglePopup() {
|
|
450
455
|
this._expandPopup = !this._expandPopup;
|
|
456
|
+
this._hideMapOnLoadHonored = true;
|
|
451
457
|
}
|
|
452
458
|
/**
|
|
453
459
|
* Get the card node
|
|
@@ -496,6 +502,9 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
|
|
|
496
502
|
if (forceOpen) {
|
|
497
503
|
this._panelOpen = true;
|
|
498
504
|
}
|
|
505
|
+
if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
|
|
506
|
+
this.hideMapOnLoadWatchHandler();
|
|
507
|
+
}
|
|
499
508
|
}
|
|
500
509
|
/**
|
|
501
510
|
* Open/Close the appropriate panel.
|
|
@@ -30,17 +30,12 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
30
30
|
* Watch for changes to the mapView and re-init the floor filter
|
|
31
31
|
*/
|
|
32
32
|
async mapViewWatchHandler() {
|
|
33
|
-
console.log("mapViewWatchHandler");
|
|
34
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
35
33
|
await this._initFloorFilter(this.mapView);
|
|
36
34
|
}
|
|
37
35
|
/**
|
|
38
36
|
* Watch for changes to the enabled property and re-init or destroy the floor filter
|
|
39
37
|
*/
|
|
40
38
|
async enabledWatchHandler() {
|
|
41
|
-
console.log("enabledWatchHandler");
|
|
42
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
43
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
44
39
|
if (this.enabled) {
|
|
45
40
|
await this._initFloorFilter(this.mapView);
|
|
46
41
|
}
|
|
@@ -63,9 +58,7 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
63
58
|
* Renders the component.
|
|
64
59
|
*/
|
|
65
60
|
render() {
|
|
66
|
-
|
|
67
|
-
console.log(`this._floorFilterElement: ${this._floorFilterElement}`);
|
|
68
|
-
return (h(Host, { key: '01b71c71af2a183b85c8620c338512fd338f19ef' }, h("div", { key: '752d397c6e3b6a2257d0a8a05051ed821eca4b94', ref: (el) => { this._floorFilterElement = el; } })));
|
|
61
|
+
return (h(Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
|
|
69
62
|
}
|
|
70
63
|
//--------------------------------------------------------------------------
|
|
71
64
|
//
|
|
@@ -93,7 +86,6 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
93
86
|
* @protected
|
|
94
87
|
*/
|
|
95
88
|
_destroyWidget() {
|
|
96
|
-
console.log("_destroyWidget");
|
|
97
89
|
if (this.floorFilterWidget) {
|
|
98
90
|
this.floorFilterWidget.destroy();
|
|
99
91
|
this.floorFilterWidget = undefined;
|
|
@@ -108,7 +100,6 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
108
100
|
* @protected
|
|
109
101
|
*/
|
|
110
102
|
_initContainer() {
|
|
111
|
-
console.log("_initContainer");
|
|
112
103
|
this._destroyWidget();
|
|
113
104
|
this._floorFilterElement = document.createElement("div");
|
|
114
105
|
}
|
|
@@ -116,16 +107,9 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
|
|
|
116
107
|
* Initialize the floor filter or reset the current view if it already exists
|
|
117
108
|
*/
|
|
118
109
|
async _initFloorFilter(view) {
|
|
119
|
-
console.log("_initFloorFilter");
|
|
120
110
|
const webMap = view === null || view === void 0 ? void 0 : view.map;
|
|
121
111
|
await webMap.when(() => {
|
|
122
112
|
var _a, _b, _c;
|
|
123
|
-
console.log("webMap.when");
|
|
124
|
-
console.log("_initFloorFilter");
|
|
125
|
-
console.log(`view: ${view}`);
|
|
126
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
127
|
-
console.log(`this.FloorFilter: ${this.FloorFilter}`);
|
|
128
|
-
console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
|
|
129
113
|
if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
|
|
130
114
|
this._initContainer();
|
|
131
115
|
this.floorFilterWidget = new this.FloorFilter({
|
|
@@ -136,17 +136,12 @@ const FloorFilter = class {
|
|
|
136
136
|
* Watch for changes to the mapView and re-init the floor filter
|
|
137
137
|
*/
|
|
138
138
|
async mapViewWatchHandler() {
|
|
139
|
-
console.log("mapViewWatchHandler");
|
|
140
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
141
139
|
await this._initFloorFilter(this.mapView);
|
|
142
140
|
}
|
|
143
141
|
/**
|
|
144
142
|
* Watch for changes to the enabled property and re-init or destroy the floor filter
|
|
145
143
|
*/
|
|
146
144
|
async enabledWatchHandler() {
|
|
147
|
-
console.log("enabledWatchHandler");
|
|
148
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
149
|
-
console.log(`this.mapView: ${this.mapView}`);
|
|
150
145
|
if (this.enabled) {
|
|
151
146
|
await this._initFloorFilter(this.mapView);
|
|
152
147
|
}
|
|
@@ -169,9 +164,7 @@ const FloorFilter = class {
|
|
|
169
164
|
* Renders the component.
|
|
170
165
|
*/
|
|
171
166
|
render() {
|
|
172
|
-
|
|
173
|
-
console.log(`this._floorFilterElement: ${this._floorFilterElement}`);
|
|
174
|
-
return (h(Host, { key: '01b71c71af2a183b85c8620c338512fd338f19ef' }, h("div", { key: '752d397c6e3b6a2257d0a8a05051ed821eca4b94', ref: (el) => { this._floorFilterElement = el; } })));
|
|
167
|
+
return (h(Host, { key: 'c80a8d46fb48f3789d9fa09c2400faad49e2e236' }, h("div", { key: '82919a3ba061a17c8aeaa0d2f6f4f13bc428b519', ref: (el) => { this._floorFilterElement = el; } })));
|
|
175
168
|
}
|
|
176
169
|
//--------------------------------------------------------------------------
|
|
177
170
|
//
|
|
@@ -199,7 +192,6 @@ const FloorFilter = class {
|
|
|
199
192
|
* @protected
|
|
200
193
|
*/
|
|
201
194
|
_destroyWidget() {
|
|
202
|
-
console.log("_destroyWidget");
|
|
203
195
|
if (this.floorFilterWidget) {
|
|
204
196
|
this.floorFilterWidget.destroy();
|
|
205
197
|
this.floorFilterWidget = undefined;
|
|
@@ -214,7 +206,6 @@ const FloorFilter = class {
|
|
|
214
206
|
* @protected
|
|
215
207
|
*/
|
|
216
208
|
_initContainer() {
|
|
217
|
-
console.log("_initContainer");
|
|
218
209
|
this._destroyWidget();
|
|
219
210
|
this._floorFilterElement = document.createElement("div");
|
|
220
211
|
}
|
|
@@ -222,16 +213,9 @@ const FloorFilter = class {
|
|
|
222
213
|
* Initialize the floor filter or reset the current view if it already exists
|
|
223
214
|
*/
|
|
224
215
|
async _initFloorFilter(view) {
|
|
225
|
-
console.log("_initFloorFilter");
|
|
226
216
|
const webMap = view === null || view === void 0 ? void 0 : view.map;
|
|
227
217
|
await webMap.when(() => {
|
|
228
218
|
var _a, _b, _c;
|
|
229
|
-
console.log("webMap.when");
|
|
230
|
-
console.log("_initFloorFilter");
|
|
231
|
-
console.log(`view: ${view}`);
|
|
232
|
-
console.log(`this.enabled: ${this.enabled}`);
|
|
233
|
-
console.log(`this.FloorFilter: ${this.FloorFilter}`);
|
|
234
|
-
console.log(`webMap?.floorInfo: ${webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo}`);
|
|
235
219
|
if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
|
|
236
220
|
this._initContainer();
|
|
237
221
|
this.floorFilterWidget = new this.FloorFilter({
|
|
@@ -32,6 +32,10 @@ const CrowdsourceManager = class {
|
|
|
32
32
|
* MapView.when is not fired when mapView is not currently visible
|
|
33
33
|
*/
|
|
34
34
|
this._defaultLevelHonored = false;
|
|
35
|
+
/**
|
|
36
|
+
* boolean: When true hideMapOnLoad was honored for the current map
|
|
37
|
+
*/
|
|
38
|
+
this._hideMapOnLoadHonored = false;
|
|
35
39
|
/**
|
|
36
40
|
* boolean: When true the map view will be set after render due to popup obstructing the view
|
|
37
41
|
* MapView.when is not fired when mapView is not currently visible
|
|
@@ -73,10 +77,10 @@ const CrowdsourceManager = class {
|
|
|
73
77
|
this.theme = "light";
|
|
74
78
|
this.zoomAndScrollToSelected = false;
|
|
75
79
|
this.zoomToScale = undefined;
|
|
76
|
-
this._expandPopup =
|
|
80
|
+
this._expandPopup = false;
|
|
77
81
|
this._hideFooter = false;
|
|
78
82
|
this._hideTable = false;
|
|
79
|
-
this._isMobile =
|
|
83
|
+
this._isMobile = false;
|
|
80
84
|
this._translations = undefined;
|
|
81
85
|
this._layer = undefined;
|
|
82
86
|
this._layoutMode = ELayoutMode.GRID;
|
|
@@ -101,8 +105,8 @@ const CrowdsourceManager = class {
|
|
|
101
105
|
* When true the map will be hidden on load
|
|
102
106
|
*/
|
|
103
107
|
hideMapOnLoadWatchHandler() {
|
|
104
|
-
this.showHideMapPopupAndTable(this.hideMapOnLoad);
|
|
105
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
108
|
+
this.showHideMapPopupAndTable(this.hideMapOnLoad && !this._isMobile);
|
|
109
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
106
110
|
}
|
|
107
111
|
/**
|
|
108
112
|
* When true the map will be hidden on load
|
|
@@ -173,7 +177,8 @@ const CrowdsourceManager = class {
|
|
|
173
177
|
* Update the state expandPopup when mapInfoChange event occurs
|
|
174
178
|
*/
|
|
175
179
|
async mapInfoChange() {
|
|
176
|
-
this._expandPopup = this.hideMapOnLoad;
|
|
180
|
+
this._expandPopup = this.hideMapOnLoad && !this._isMobile;
|
|
181
|
+
this._hideMapOnLoadHonored = false;
|
|
177
182
|
}
|
|
178
183
|
//--------------------------------------------------------------------------
|
|
179
184
|
//
|
|
@@ -195,7 +200,7 @@ const CrowdsourceManager = class {
|
|
|
195
200
|
render() {
|
|
196
201
|
// only avoid border when we have a header color that is not white
|
|
197
202
|
const borderClass = this.popupHeaderColor && this.popupHeaderColor !== "#FFFFFF" ? "border-width-0" : "";
|
|
198
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: '09154a91e9c1ca9ee6fffcc9d15f6488d1572429' }, h("calcite-shell", { key: '78268044775861d16a557d7e95678614c3be90c8', class: "position-relative" }, h("calcite-panel", { key: '2efe00d79d9c939400bc13558e8ad89a06ae68ab', class: `width-full height-full ${borderClass}` }, this._getBody(this._layoutMode, this._panelOpen, this._hideTable)), this._getFooter())));
|
|
199
204
|
}
|
|
200
205
|
/**
|
|
201
206
|
* Called after each render
|
|
@@ -391,6 +396,7 @@ const CrowdsourceManager = class {
|
|
|
391
396
|
*/
|
|
392
397
|
_togglePopup() {
|
|
393
398
|
this._expandPopup = !this._expandPopup;
|
|
399
|
+
this._hideMapOnLoadHonored = true;
|
|
394
400
|
}
|
|
395
401
|
/**
|
|
396
402
|
* Get the card node
|
|
@@ -439,6 +445,9 @@ const CrowdsourceManager = class {
|
|
|
439
445
|
if (forceOpen) {
|
|
440
446
|
this._panelOpen = true;
|
|
441
447
|
}
|
|
448
|
+
if ((this.hideMapOnLoad && !this._hideMapOnLoadHonored) || this._isMobile) {
|
|
449
|
+
this.hideMapOnLoadWatchHandler();
|
|
450
|
+
}
|
|
442
451
|
}
|
|
443
452
|
/**
|
|
444
453
|
* Open/Close the appropriate panel.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Esri
|
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,h as i,H as s,g as e,c as a}from"./p-6d753a3d.js";import{l as h,g as o}from"./p-896c9644.js";import"./p-82e085d0.js";const n=class{constructor(i){t(this,i),this.mapView=void 0,this.basemapConfig=void 0,this.basemapWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initBaseMapGallery(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"7fe5ef48d77de087f17498e2e1f3370a069e8629"},i("div",{key:"aca555c687352046a138343cab6f656234069644",ref:t=>{this._basemapElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t,i]=await h(["esri/widgets/BasemapGallery","esri/widgets/BasemapGallery/support/PortalBasemapsSource"]);this.BasemapGallery=t,this.PortalBasemapsSource=i}async _initBaseMapGallery(t){var i;if(this.BasemapGallery){this.basemapWidget&&this.basemapWidget.destroy();const s=new this.PortalBasemapsSource({query:(null===(i=this.basemapConfig)||void 0===i?void 0:i.basemapGroupId)?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:this.basemapConfig?t=>!this.basemapConfig.basemapIdsToFilter.includes(t.portalItem.id):()=>!0});await s.refresh(),this.basemapWidget=new this.BasemapGallery({container:this._basemapElement,view:t,source:s})}}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};n.style=":host{display:block}";const c=class{constructor(i){t(this,i),this.facilityChanged=a(this,"facilityChanged",7),this.levelChanged=a(this,"levelChanged",7),this.siteChanged=a(this,"siteChanged",7),this.enabled=void 0,this.floorFilterWidget=void 0,this.mapView=void 0}async mapViewWatchHandler(){await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"c80a8d46fb48f3789d9fa09c2400faad49e2e236"},i("div",{key:"82919a3ba061a17c8aeaa0d2f6f4f13bc428b519",ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t,i]=await h(["esri/widgets/FloorFilter","esri/core/reactiveUtils"]);this.FloorFilter=t,this.reactiveUtils=i}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement&&this._floorFilterElement.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement=document.createElement("div")}async _initFloorFilter(t){const i=null==t?void 0:t.map;await i.when((()=>{var s,e,a;t&&this.enabled&&this.FloorFilter&&(null==i?void 0:i.floorInfo)&&(this._initContainer(),this.floorFilterWidget=new this.FloorFilter({container:this._floorFilterElement,view:t}),null===(s=this._facilityHandle)||void 0===s||s.remove(),this._facilityHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.facility),(t=>{this.facilityChanged.emit(t)})),null===(e=this._levelHandle)||void 0===e||e.remove(),this._levelHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.level),(t=>{this.levelChanged.emit(t)})),null===(a=this._siteHandle)||void 0===a||a.remove(),this._siteHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.site),(t=>{this.siteChanged.emit(t)})))}))}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],enabled:["enabledWatchHandler"]}}};c.style=":host{display:block}";const r=class{constructor(i){t(this,i),this.fullscreenStateChange=a(this,"fullscreenStateChange",7),this.mapView=void 0,this.fullscreenWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this._initFullscreenWidget()}))}async componentWillLoad(){await this._initModules()}render(){return i(s,{key:"943217d26f3cf5861c165c3300ba24736ce8f7dc"},i("div",{key:"6c76ebf6e63dab19f24d776cd27cd86b74ea93d0",class:"fullscreen-widget",ref:t=>{this._fullscreenElement=t}}))}async componentDidUpdate(){await this._initFullscreenWidget()}async componentDidLoad(){await this._initFullscreenWidget()}async _initModules(){const[t,i]=await h(["esri/widgets/Fullscreen","esri/core/reactiveUtils"]);this.Fullscreen=t,this.reactiveUtils=i}async _initFullscreenWidget(){this.mapView&&this._fullscreenElement&&!this.fullscreenWidget?(this.fullscreenWidget=new this.Fullscreen({view:this.mapView}),await this.fullscreenWidget.when((()=>{this._fullscreenStateChangeHandle&&this._fullscreenStateChangeHandle.remove(),this._fullscreenStateChangeHandle=this.reactiveUtils.watch((()=>this.fullscreenWidget.viewModel.state),(t=>this.fullscreenStateChange.emit(t)))}))):this.fullscreenWidget&&(this.fullscreenWidget.view=this.mapView)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};r.style=":host{display:block}";const d=class{constructor(i){t(this,i),this.mapView=void 0,this.legendWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initLegend(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"bdd3b848bec1aec6f8c7676f8bab5e9463b16064"},i("div",{key:"d7bb217db6971758ef8774d19d6ac5cfa94a0ddc",ref:t=>{this._legendElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t]=await h(["esri/widgets/Legend"]);this.Legend=t}_initLegend(t){t&&this.Legend&&(this.legendWidget?this.legendWidget.view=t:this.legendWidget=new this.Legend({container:this._legendElement,view:t}))}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};d.style=":host{display:block}";const l=class{constructor(i){t(this,i),this.mapInfoChange=a(this,"mapInfoChange",7),this._loadedId="",this.mapInfos=[],this._mapListExpanded=!1,this._translations=void 0,this._webMapInfo=void 0}_webMapInfoWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&(this._loadedId=null==t?void 0:t.id,this.mapInfoChange.emit(t))}async mapInfosWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._webMapSelected(t[0])}async setMapByID(t){var i;const s=null===(i=this.mapInfos)||void 0===i?void 0:i.filter((i=>i.id===t));t&&(null==s?void 0:s.length)>0&&this._webMapSelected(s[0])}async componentWillLoad(){await this._getTranslations()}render(){return i(s,{key:"86994e2c4d87809c1508b073c3af1c0975c2d81d"},this._getToolbar(),this._getMapNameList(this._mapListExpanded))}async componentDidLoad(){const t=this.mapInfos&&this.mapInfos.length>0?this.mapInfos[0]:void 0;t&&this._webMapSelected(t)}_getMapPicker(){var t;const s="map-picker-expand-toggle";return i("div",{class:"width-full"},i("calcite-button",{alignment:"icon-end-space-between",appearance:"transparent",class:"width-full height-full",iconEnd:this._mapListExpanded?"chevron-up":"chevron-down",id:s,kind:"neutral",onClick:()=>this._chooseMap(),width:"full"},null===(t=this._webMapInfo)||void 0===t?void 0:t.name),i("calcite-tooltip",{label:"",placement:"bottom","reference-element":s},i("span",null,this._translations.switchMap)))}_getToolbar(){return i("div",{class:"display-flex"},i("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker()))}_getMapNameList(t){return i("div",{class:t?"map-list border-bottom-1":"display-none"},i("calcite-list",{id:"mapList",ref:t=>this._list=t,selectionAppearance:"border",selectionMode:"single"},this.mapInfos.map((t=>i("calcite-list-item",{label:t.name,onClick:()=>this._webMapSelected(t),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){this._mapListExpanded=!1,this._webMapInfo=t}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return e(this)}static get watchers(){return{_webMapInfo:["_webMapInfoWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};l.style=":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}";const p=class{constructor(i){t(this,i),this.mapView=void 0,this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchConfiguration=void 0,this.searchTerm=void 0,this.searchWidget=void 0}async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initSearchWidget()}))}async componentWillLoad(){await this._initModules()}async componentDidLoad(){return this._initSearchWidget()}render(){return i(s,{key:"5036a89c6a686b2486ff88dffd06f0bed1ea510e"},i("div",{key:"4c5ede4d9877ff0ca0f16706c99aba354df21fd1",class:"search-widget",ref:t=>{this._searchElement=t}}))}async _initModules(){const[t,i]=await h(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=t,this.FeatureLayer=i}_initSearchWidget(){if(this.mapView&&this._searchElement&&!this.searchWidget){let t={view:this.mapView,container:this._searchElement,searchTerm:this.searchTerm};if(this.searchConfiguration){const i=this._getSearchConfig(this.searchConfiguration,this.mapView);t=Object.assign({},i)}this.searchWidget=new this.Search(t),this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(t,i){const s=t.sources;return(null==s?void 0:s.length)>0?(t.includeDefaultSources=!1,s.forEach((t=>{var s,e;if(t.hasOwnProperty("layer")){const a=t,h=null===(s=a.layer)||void 0===s?void 0:s.id,o=h?i.map.findLayerById(h):null,n=null===(e=null==a?void 0:a.layer)||void 0===e?void 0:e.url;o?a.layer=o:n&&(a.layer=new this.FeatureLayer(n))}})),null==s||s.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===(null==i?void 0:i.name)&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t=Object.assign(Object.assign({},t),{includeDefaultSources:!0}),t}static get watchers(){return{searchConfiguration:["watchSearchConfigurationHandler"],mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";const u=class{constructor(i){t(this,i),this._widgets=[],this.basemapConfig=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSearch=void 0,this.enableBasemap=void 0,this.enableHome=void 0,this.enableSingleExpand=void 0,this.homeZoomToolsSize="m",this.layout="vertical",this.mapView=void 0,this.mapWidgetsSize="m",this.position="top-right",this.searchConfiguration=void 0,this.stackTools=!0,this.toolOrder=void 0,this._hasFloorInfo=!1,this._translations=void 0,this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1}async mapViewWatchHandler(){await this.mapView.when((()=>{var t,i;this._hasFloorInfo=null===(i=null===(t=this.mapView)||void 0===t?void 0:t.map)||void 0===i?void 0:i.floorInfo}))}async _showBasemapWidgetWatchHandler(t){t?this.mapView.ui.add(this._basemapElement.basemapWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._basemapElement.basemapWidget)}async _showFloorFilterWatchHandler(t){const i=this._floorFilterElement.floorFilterWidget;t?this.mapView.ui.add(i,{position:this.position,index:1}):this.mapView.ui.remove(i)}async _showFullscreenWatchHandler(t){const i=this._fullscreenElement.fullscreenWidget;t?"ready"===i.viewModel.state&&i.viewModel.enter():"active"===i.viewModel.state&&i.viewModel.exit()}async _showLegendWidgetWatchHandler(t){t?this.mapView.ui.add(this._legendElement.legendWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._legendElement.legendWidget)}async _showSearchWidgetWatchHandler(t){t?this.mapView.ui.add(this._searchElement.searchWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._searchElement.searchWidget)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){this._setZoomToolsSize();const t=this._showTools?"":"display-none",e=this._showSearchWidget?"":"display-none",a=this._showBasemapWidget?"":"display-none",h=this._showLegendWidget?"":"display-none",o=this._showFloorFilter?"":"display-none",n=this._showFullscreen?"":"display-none",c=this.enableSingleExpand?"margin-top-1-2":"",r=this.toolOrder?this.toolOrder:["legend","search","fullscreen","floorfilter"],d=this.stackTools?"box-shadow":"";return i(s,{key:"a1557491ffd833bed11843dbe1bd040a9d2d6b15"},i("div",{key:"8866b3bc6e05fa75605b078e1a3deecaf6392024",class:this.enableBasemap||this.enableFullscreen||this.enableLegend||this.enableSearch?"":"display-none"},this.enableSingleExpand?i("div",{class:"box-shadow"},this._getActionGroup(this._showTools?"chevrons-up":"chevrons-down",!1,this._showTools?this._translations.collapse:this._translations.expand,(()=>this._toggleTools()))):void 0,i("div",{key:"6a4e62ad1afcca39365aa965ffabedf8933051d4",class:`${c} ${d} ${t}`},this._getMapWidgets(r))),i("basemap-gallery",{key:"4edade9536c0912a89f6a9335ae05ae46669e14d",basemapConfig:this.basemapConfig,class:a,mapView:this.mapView,ref:t=>{this._basemapElement=t}}),i("map-search",{key:"046d02c1927def025294645c6e855906fabd30aa",class:e,mapView:this.mapView,ref:t=>{this._searchElement=t},resultGraphicEnabled:!0,searchConfiguration:this.searchConfiguration}),i("map-legend",{key:"54575e31073bdc68b611939eb0e619e4479b26f3",class:h,mapView:this.mapView,ref:t=>{this._legendElement=t}}),i("map-fullscreen",{key:"9a54a22e12c372dd85717f83cf31b4ace80489eb",class:n,mapView:this.mapView,onFullscreenStateChange:t=>this._fullscreenStateChange(t.detail),ref:t=>{this._fullscreenElement=t}}),i("floor-filter",{key:"ffadf501a03186ed6f2fec8754cd758faea5b4dd",class:o,enabled:this.enableFloorFilter,mapView:this.mapView,ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t]=await h(["esri/widgets/Expand"]);this.Expand=t}_setZoomToolsSize(){var t,i;const s=null===(t=document.getElementsByClassName("esri-zoom")[0])||void 0===t?void 0:t.children[0],e=null===(i=document.getElementsByClassName("esri-zoom")[0])||void 0===i?void 0:i.children[1];if(s&&e){const t="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";s.style.width=t,s.style.height=t,e.style.width=t,e.style.height=t}}_getMapWidgets(t){const i=this._showFullscreen?"full-screen-exit":"full-screen",s=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return t.map((t=>{var e,a,h,o,n;switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,(()=>this._showLegend())):this.enableLegend?this._getWidget(t,null===(e=this._legendElement)||void 0===e?void 0:e.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,(()=>this._search())):this.enableSearch?this._getWidget(t,null===(a=this._searchElement)||void 0===a?void 0:a.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(i,!1,s,(()=>this._expand())):this.enableFullscreen?this._getWidget(t,null===(h=this._fullscreenElement)||void 0===h?void 0:h.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,(()=>this._toggleBasemapPicker())):this.enableBasemap?this._getWidget(t,null===(o=this._basemapElement)||void 0===o?void 0:o.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,(()=>this._toggleFloorFilter())):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,null===(n=this._floorFilterElement)||void 0===n?void 0:n.floorFilterWidget,!0):void 0}}))}_fullscreenStateChange(t){"ready"===t&&this._showFullscreen?this._showFullscreen=!1:"active"!==t||this._showFullscreen||(this._showFullscreen=!0)}_getActionGroup(t,s,e,a){return i("div",null,i("calcite-action",{alignment:"center",class:`${"s"===this.mapWidgetsSize?"square-32":"m"===this.mapWidgetsSize?"square-40":"square-48"} ${this.stackTools?"":"margin-bottom-1-2"} border-bottom ${this.stackTools?"":"box-shadow"}`,compact:!1,disabled:s,icon:t,id:t,onClick:a,scale:"s",text:""},i("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),i("calcite-tooltip",{label:"",placement:"trailing","reference-element":t},i("span",null,e)))}_getWidget(t,i,s){if(this._widgets.indexOf(t)<0&&this.mapView&&i){const e=this.toolOrder.indexOf(t),a=new this.Expand({view:this.mapView,content:i});this.mapView.ui.add(s?a:i,{position:this.position,index:e>-1?e+(this.enableHome?2:1):1}),this._widgets.push(t)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],_showBasemapWidget:["_showBasemapWidgetWatchHandler"],_showFloorFilter:["_showFloorFilterWatchHandler"],_showFullscreen:["_showFullscreenWatchHandler"],_showLegendWidget:["_showLegendWidgetWatchHandler"],_showSearchWidget:["_showSearchWidgetWatchHandler"]}}};u.style=":host{display:block}.display-none{display:none}.margin-top-1-2{margin-top:0.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.margin-bottom-1-2{margin-bottom:0.5rem}";export{n as basemap_gallery,c as floor_filter,r as map_fullscreen,d as map_legend,l as map_picker,p as map_search,u as map_tools}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Esri
|
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import{r as i,c as t,h as e,H as s,g as o}from"./p-6d753a3d.js";import{g as h}from"./p-896c9644.js";import{E as l}from"./p-c1cf3ebc.js";import{g as a}from"./p-5aaa05ef.js";import"./p-82e085d0.js";const n=class{constructor(e){i(this,e),this.showIntroductionWindow=t(this,"showIntroductionWindow",7),this.showCoverPage=t(this,"showCoverPage",7),this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._hideMapOnLoadHonored=!1,this._shouldSetMapView=!1,this.appProxies=void 0,this.basemapConfig=void 0,this.coverPageEnabled=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableZoom=!0,this.hideMapOnLoad=!1,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this._expandPopup=!1,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._tableOnly=!1}enableZoomWatchHandler(){this._initMapZoom()}hideMapOnLoadWatchHandler(){this.showHideMapPopupAndTable(this.hideMapOnLoad&&!this._isMobile),this._expandPopup=this.hideMapOnLoad&&!this._isMobile}mapInfosWatchHandler(){console.log("mapInfosWatchHandler"),console.log(this.mapInfos)}async featureSelectionChange(i){var t;this._numSelected=null===(t=i.detail)||void 0===t?void 0:t.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async idsFound(i){const t=i.detail;this._tableOnly=t.tableIds.length>0&&0===t.layerIds.length,this._tableOnly&&(this._expandPopup=!0)}async layoutChanged(i){this._layoutMode=i.detail}async mapChanged(i){this._mapChange=i.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async beforeMapChanged(){this._expandPopup&&(this._shouldSetMapView=!0)}async layerSelectionChange(i){const t=i.detail[0],e=await a(this._mapView,t);await e.when((()=>{this._layer=e}))}async mapInfoChange(){this._expandPopup=this.hideMapOnLoad&&!this._isMobile,this._hideMapOnLoadHonored=!1}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return e(s,{key:"09154a91e9c1ca9ee6fffcc9d15f6488d1572429"},e("calcite-shell",{key:"78268044775861d16a557d7e95678614c3be90c8",class:"position-relative"},e("calcite-panel",{key:"2efe00d79d9c939400bc13558e8ad89a06ae68ab",class:"width-full height-full "+(this.popupHeaderColor&&"#FFFFFF"!==this.popupHeaderColor?"border-width-0":"")},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()))}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el)}_getFooter(){var i,t,s,o;const h=(null===(i=this._layer)||void 0===i?void 0:i.editingEnabled)&&(null===(o=null===(s=null===(t=this._layer)||void 0===t?void 0:t.capabilities)||void 0===s?void 0:s.operations)||void 0===o?void 0:o.supportsDelete);return this._isMobile&&this._numSelected>0&&!this._hideFooter?e("div",{class:"width-100",slot:"footer"},e("div",{class:"display-flex padding-1-2"},e("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),h?e("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer}):void 0)):void 0}_getDividerIcon(i,t){let e="";switch(i){case l.HORIZONTAL:e=t?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=t?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(i,t,e){let s="";switch(i){case l.HORIZONTAL:s=(t&&!e?"height-1-2 display-grid":t&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(t?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(t?"width-1-2":"width-0")}return s}_getTableSizeClass(i,t){let e="";switch(i){case l.HORIZONTAL:e=(t?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(t?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(t?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(i,t,s){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e("calcite-panel",{class:"width-full height-full"},e("div",{class:"width-full height-full overflow-hidden "+(i===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(i,t,s),this._getTable(i,t,s)),this.coverPageEnabled&&e("div",{class:"floating-container",onClick:this.coverPageButtonClick.bind(this)},e("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"content-minimal",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})),this.introductionWindowEnabled&&e("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},e("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(i,t,s){const o=this._getMapSizeClass(i,t,s);return e("div",{class:`${o} overflow-hidden`},this._getMapNode(t),this._getPopupExpandNode())}_getMapNode(i){var t;return e("div",{class:(this._layoutMode!==l.HORIZONTAL||this._isMobile&&!i?"adjusted-height-50":"")+" overflow-hidden"},e("map-card",{appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:!0,hidden:this._expandPopup&&!this._isMobile,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",mapInfos:null===(t=this.mapInfos)||void 0===t?void 0:t.filter((i=>!1!==i.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"]}))}_getPopupExpandNode(){var i;const t=this._expandPopup?"chevrons-down":"chevrons-up",s="expand-popup",o=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,h="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",l=this._expandPopup?1===(null===(i=this.mapInfos)||void 0===i?void 0:i.length)||this._isMobile?"position-absolute-0":"position-absolute-50":"height-full",a=this._isMobile?"display-none height-0":"";return e("div",{class:`${this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark"} ${l} ${this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},e("calcite-panel",null,this._isMobile?void 0:e("div",{class:`display-flex align-items-center ${a}`,slot:"header-content"},e("calcite-icon",{icon:"information",scale:"s"}),e("div",{class:"padding-inline-start-75"},this._translations.information)),e("calcite-action",{class:a,disabled:this._tableOnly,icon:t,id:s,onClick:()=>this._togglePopup(),slot:"header-actions-end",text:""}),this._tableOnly?void 0:e("calcite-tooltip",{class:h,label:"",placement:"bottom","reference-element":s},e("span",null,o)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup,this._hideMapOnLoadHonored=!0}_getCardNode(){return e("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},e("card-manager",{class:(this._expandPopup||this._isMobile?"height-full":"height-50")+" width-full",isMobile:this._isMobile,mapView:null==this?void 0:this._mapView,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(i,t,s){var o,h;const a=s&&this._isMobile?"visibility-hidden":"",n=this._getTableSizeClass(i,t),d=this._getDividerIcon(i,t),r=t?this._translations.close:this._translations.open,c="toggle-layout",p=i===l.HORIZONTAL?"horizontal":"vertical",g=i===l.HORIZONTAL?"header":"panel-start",u=this.defaultWebmap&&this.defaultLayer,f=this.defaultGlobalId?(null===(o=this.defaultGlobalId)||void 0===o?void 0:o.indexOf(","))>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,b=this.defaultOid?(null===(h=this.defaultOid)||void 0===h?void 0:h.indexOf(","))>-1?this.defaultOid.split(",").map((i=>parseInt(i,10))):[parseInt(this.defaultOid,10)]:void 0;return e("calcite-shell",{class:`${n} ${a} border-bottom`},this._isMobile?void 0:e("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:p,slot:g},e("calcite-action",{class:"toggle-node",icon:d,id:c,onClick:()=>this._toggleLayout(),text:""}),e("calcite-tooltip",{label:r,placement:"bottom","reference-element":c},e("span",null,r))),e("div",{class:"width-full height-full position-relative"},e("layer-table",{defaultGlobalId:u?f:void 0,defaultLayerId:u?this.defaultLayer:"",defaultOid:u&&!f?b:void 0,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:null==this?void 0:this._mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:i=>this._layerTable=i,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})))}_onResize(){const i=this.el.offsetWidth<1024,t=!this._isMobile&&i;this._isMobile=i,this._layoutMode=this._isMobile?l.HORIZONTAL:l.GRID,t&&(this._panelOpen=!0),(this.hideMapOnLoad&&!this._hideMapOnLoadHonored||this._isMobile)&&this.hideMapOnLoadWatchHandler()}_toggleLayout(){this._panelOpen=!this._panelOpen}showHideMapPopupAndTable(i){this._expandPopup=!1,this._hideTable=i,this._hideFooter=i}_getMapInfo(i){let t;return this.mapInfos.some((e=>{if(e.id===i)return t=e,!0})),Object.assign({},t)}async _setMapView(){var i;this._mapInfo=this._getMapInfo(this._mapChange.id),this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored||null===(i=this.defaultCenter)||void 0===i?void 0:i.split(";").map((i=>parseFloat(i))),e=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&e&&(await this._mapView.goTo({center:t,zoom:e}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const i=await h(this.el);this._translations=i[0]}get el(){return o(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"],hideMapOnLoad:["hideMapOnLoadWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};n.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.height-50{height:50%}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-50{height:calc(100% - 50px)}.display-none{display:none}.height-53{height:53px}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}";export{n as crowdsource_manager}
|