@esri/solutions-components 0.7.50 → 0.7.51

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.
@@ -136,8 +136,17 @@ const FloorFilter = class {
136
136
  //
137
137
  //--------------------------------------------------------------------------
138
138
  async mapViewWatchHandler() {
139
- await this.mapView.when(() => {
140
- this._initFloorFilter(this.mapView);
139
+ const webMap = this.mapView.map;
140
+ await webMap.when(() => {
141
+ if (this.floorFilterWidget) {
142
+ this.floorFilterWidget.destroy();
143
+ this.floorFilterWidget = undefined;
144
+ }
145
+ if (this._floorFilterElement) {
146
+ this._floorFilterElement.remove();
147
+ this._floorFilterElement = document.createElement("div");
148
+ }
149
+ this._initFloorFilter(this.mapView, webMap);
141
150
  });
142
151
  }
143
152
  //--------------------------------------------------------------------------
@@ -177,30 +186,25 @@ const FloorFilter = class {
177
186
  /**
178
187
  * Initialize the floor filter or reset the current view if it already exists
179
188
  */
180
- _initFloorFilter(view) {
181
- var _a, _b, _c, _d;
182
- if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
183
- if (!this.floorFilterWidget) {
184
- this.floorFilterWidget = new this.FloorFilter({
185
- container: this._floorFilterElement,
186
- view
187
- });
188
- (_b = this._facilityHandle) === null || _b === void 0 ? void 0 : _b.remove();
189
- this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
190
- this.facilityChanged.emit(facility);
191
- });
192
- (_c = this._levelHandle) === null || _c === void 0 ? void 0 : _c.remove();
193
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
194
- this.levelChanged.emit(level);
195
- });
196
- (_d = this._siteHandle) === null || _d === void 0 ? void 0 : _d.remove();
197
- this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
198
- this.siteChanged.emit(site);
199
- });
200
- }
201
- else {
202
- this.floorFilterWidget.viewModel.view = view;
203
- }
189
+ _initFloorFilter(view, webMap) {
190
+ var _a, _b, _c;
191
+ if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
192
+ this.floorFilterWidget = new this.FloorFilter({
193
+ container: this._floorFilterElement,
194
+ view
195
+ });
196
+ (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
197
+ this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
198
+ this.facilityChanged.emit(facility);
199
+ });
200
+ (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
201
+ this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
202
+ this.levelChanged.emit(level);
203
+ });
204
+ (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
205
+ this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
206
+ this.siteChanged.emit(site);
207
+ });
204
208
  }
205
209
  }
206
210
  get el() { return index.getElement(this); }
@@ -184,9 +184,15 @@ const LayerTable = class {
184
184
  // Watch handlers
185
185
  //
186
186
  //--------------------------------------------------------------------------
187
+ /**
188
+ * Handle url defaults when defaultOid is set
189
+ */
187
190
  async defaultOidWatchHandler() {
188
191
  await this._handleDefaults();
189
192
  }
193
+ /**
194
+ * Handle url defaults when defaultGlobalId is set
195
+ */
190
196
  async defaultGlobalIdWatchHandler() {
191
197
  await this._handleDefaults();
192
198
  }
@@ -1053,7 +1059,7 @@ const LayerTable = class {
1053
1059
  _resetColumnTemplates() {
1054
1060
  var _a, _b;
1055
1061
  const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
1056
- const hasChange = columnTemplates.some((ct, i) => {
1062
+ const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
1057
1063
  var _a;
1058
1064
  return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
1059
1065
  });
@@ -1117,6 +1123,9 @@ const LayerTable = class {
1117
1123
  this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
1118
1124
  await this._refresh();
1119
1125
  }
1126
+ /**
1127
+ * Handle default OID or GlobalID from url parameters
1128
+ */
1120
1129
  async _handleDefaults() {
1121
1130
  var _a, _b;
1122
1131
  if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
@@ -19,13 +19,26 @@ const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom
19
19
  const CrowdsourceManager = class {
20
20
  constructor(hostRef) {
21
21
  index.registerInstance(this, hostRef);
22
+ //--------------------------------------------------------------------------
23
+ //
24
+ // Properties (protected)
25
+ //
26
+ //--------------------------------------------------------------------------
22
27
  /**
23
28
  * boolean: When true the map view will be set after render due to popup obstructing the view
24
29
  * MapView.when is not fired when mapView is not currently visible
25
30
  */
26
- this._shouldSetMapView = false;
27
31
  this._defaultCenterHonored = false;
32
+ /**
33
+ * boolean: When true the map view will be set after render due to popup obstructing the view
34
+ * MapView.when is not fired when mapView is not currently visible
35
+ */
28
36
  this._defaultLevelHonored = false;
37
+ /**
38
+ * boolean: When true the map view will be set after render due to popup obstructing the view
39
+ * MapView.when is not fired when mapView is not currently visible
40
+ */
41
+ this._shouldSetMapView = false;
29
42
  this.defaultCenter = "";
30
43
  this.defaultGlobalId = "";
31
44
  this.defaultLayer = "";
@@ -24,13 +24,26 @@ import { ELayoutMode } from "../../utils/interfaces";
24
24
  import { getLayerOrTable } from "../../utils/mapViewUtils";
25
25
  export class CrowdsourceManager {
26
26
  constructor() {
27
+ //--------------------------------------------------------------------------
28
+ //
29
+ // Properties (protected)
30
+ //
31
+ //--------------------------------------------------------------------------
27
32
  /**
28
33
  * boolean: When true the map view will be set after render due to popup obstructing the view
29
34
  * MapView.when is not fired when mapView is not currently visible
30
35
  */
31
- this._shouldSetMapView = false;
32
36
  this._defaultCenterHonored = false;
37
+ /**
38
+ * boolean: When true the map view will be set after render due to popup obstructing the view
39
+ * MapView.when is not fired when mapView is not currently visible
40
+ */
33
41
  this._defaultLevelHonored = false;
42
+ /**
43
+ * boolean: When true the map view will be set after render due to popup obstructing the view
44
+ * MapView.when is not fired when mapView is not currently visible
45
+ */
46
+ this._shouldSetMapView = false;
34
47
  this.defaultCenter = "";
35
48
  this.defaultGlobalId = "";
36
49
  this.defaultLayer = "";
@@ -32,8 +32,17 @@ export class FloorFilter {
32
32
  //
33
33
  //--------------------------------------------------------------------------
34
34
  async mapViewWatchHandler() {
35
- await this.mapView.when(() => {
36
- this._initFloorFilter(this.mapView);
35
+ const webMap = this.mapView.map;
36
+ await webMap.when(() => {
37
+ if (this.floorFilterWidget) {
38
+ this.floorFilterWidget.destroy();
39
+ this.floorFilterWidget = undefined;
40
+ }
41
+ if (this._floorFilterElement) {
42
+ this._floorFilterElement.remove();
43
+ this._floorFilterElement = document.createElement("div");
44
+ }
45
+ this._initFloorFilter(this.mapView, webMap);
37
46
  });
38
47
  }
39
48
  //--------------------------------------------------------------------------
@@ -73,30 +82,25 @@ export class FloorFilter {
73
82
  /**
74
83
  * Initialize the floor filter or reset the current view if it already exists
75
84
  */
76
- _initFloorFilter(view) {
77
- var _a, _b, _c, _d;
78
- if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
79
- if (!this.floorFilterWidget) {
80
- this.floorFilterWidget = new this.FloorFilter({
81
- container: this._floorFilterElement,
82
- view
83
- });
84
- (_b = this._facilityHandle) === null || _b === void 0 ? void 0 : _b.remove();
85
- this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
86
- this.facilityChanged.emit(facility);
87
- });
88
- (_c = this._levelHandle) === null || _c === void 0 ? void 0 : _c.remove();
89
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
90
- this.levelChanged.emit(level);
91
- });
92
- (_d = this._siteHandle) === null || _d === void 0 ? void 0 : _d.remove();
93
- this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
94
- this.siteChanged.emit(site);
95
- });
96
- }
97
- else {
98
- this.floorFilterWidget.viewModel.view = view;
99
- }
85
+ _initFloorFilter(view, webMap) {
86
+ var _a, _b, _c;
87
+ if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
88
+ this.floorFilterWidget = new this.FloorFilter({
89
+ container: this._floorFilterElement,
90
+ view
91
+ });
92
+ (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
93
+ this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
94
+ this.facilityChanged.emit(facility);
95
+ });
96
+ (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
97
+ this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
98
+ this.levelChanged.emit(level);
99
+ });
100
+ (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
101
+ this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
102
+ this.siteChanged.emit(site);
103
+ });
100
104
  }
101
105
  }
102
106
  static get is() { return "floor-filter"; }
@@ -99,9 +99,15 @@ export class LayerTable {
99
99
  // Watch handlers
100
100
  //
101
101
  //--------------------------------------------------------------------------
102
+ /**
103
+ * Handle url defaults when defaultOid is set
104
+ */
102
105
  async defaultOidWatchHandler() {
103
106
  await this._handleDefaults();
104
107
  }
108
+ /**
109
+ * Handle url defaults when defaultGlobalId is set
110
+ */
105
111
  async defaultGlobalIdWatchHandler() {
106
112
  await this._handleDefaults();
107
113
  }
@@ -968,7 +974,7 @@ export class LayerTable {
968
974
  _resetColumnTemplates() {
969
975
  var _a, _b;
970
976
  const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
971
- const hasChange = columnTemplates.some((ct, i) => {
977
+ const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
972
978
  var _a;
973
979
  return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
974
980
  });
@@ -1032,6 +1038,9 @@ export class LayerTable {
1032
1038
  this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
1033
1039
  await this._refresh();
1034
1040
  }
1041
+ /**
1042
+ * Handle default OID or GlobalID from url parameters
1043
+ */
1035
1044
  async _handleDefaults() {
1036
1045
  var _a, _b;
1037
1046
  if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
@@ -71,13 +71,26 @@ const CrowdsourceManager$1 = /*@__PURE__*/ proxyCustomElement(class CrowdsourceM
71
71
  constructor() {
72
72
  super();
73
73
  this.__registerHost();
74
+ //--------------------------------------------------------------------------
75
+ //
76
+ // Properties (protected)
77
+ //
78
+ //--------------------------------------------------------------------------
74
79
  /**
75
80
  * boolean: When true the map view will be set after render due to popup obstructing the view
76
81
  * MapView.when is not fired when mapView is not currently visible
77
82
  */
78
- this._shouldSetMapView = false;
79
83
  this._defaultCenterHonored = false;
84
+ /**
85
+ * boolean: When true the map view will be set after render due to popup obstructing the view
86
+ * MapView.when is not fired when mapView is not currently visible
87
+ */
80
88
  this._defaultLevelHonored = false;
89
+ /**
90
+ * boolean: When true the map view will be set after render due to popup obstructing the view
91
+ * MapView.when is not fired when mapView is not currently visible
92
+ */
93
+ this._shouldSetMapView = false;
81
94
  this.defaultCenter = "";
82
95
  this.defaultGlobalId = "";
83
96
  this.defaultLayer = "";
@@ -26,8 +26,17 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
26
26
  //
27
27
  //--------------------------------------------------------------------------
28
28
  async mapViewWatchHandler() {
29
- await this.mapView.when(() => {
30
- this._initFloorFilter(this.mapView);
29
+ const webMap = this.mapView.map;
30
+ await webMap.when(() => {
31
+ if (this.floorFilterWidget) {
32
+ this.floorFilterWidget.destroy();
33
+ this.floorFilterWidget = undefined;
34
+ }
35
+ if (this._floorFilterElement) {
36
+ this._floorFilterElement.remove();
37
+ this._floorFilterElement = document.createElement("div");
38
+ }
39
+ this._initFloorFilter(this.mapView, webMap);
31
40
  });
32
41
  }
33
42
  //--------------------------------------------------------------------------
@@ -67,30 +76,25 @@ const FloorFilter = /*@__PURE__*/ proxyCustomElement(class FloorFilter extends H
67
76
  /**
68
77
  * Initialize the floor filter or reset the current view if it already exists
69
78
  */
70
- _initFloorFilter(view) {
71
- var _a, _b, _c, _d;
72
- if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
73
- if (!this.floorFilterWidget) {
74
- this.floorFilterWidget = new this.FloorFilter({
75
- container: this._floorFilterElement,
76
- view
77
- });
78
- (_b = this._facilityHandle) === null || _b === void 0 ? void 0 : _b.remove();
79
- this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
80
- this.facilityChanged.emit(facility);
81
- });
82
- (_c = this._levelHandle) === null || _c === void 0 ? void 0 : _c.remove();
83
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
84
- this.levelChanged.emit(level);
85
- });
86
- (_d = this._siteHandle) === null || _d === void 0 ? void 0 : _d.remove();
87
- this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
88
- this.siteChanged.emit(site);
89
- });
90
- }
91
- else {
92
- this.floorFilterWidget.viewModel.view = view;
93
- }
79
+ _initFloorFilter(view, webMap) {
80
+ var _a, _b, _c;
81
+ if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
82
+ this.floorFilterWidget = new this.FloorFilter({
83
+ container: this._floorFilterElement,
84
+ view
85
+ });
86
+ (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
87
+ this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
88
+ this.facilityChanged.emit(facility);
89
+ });
90
+ (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
91
+ this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
92
+ this.levelChanged.emit(level);
93
+ });
94
+ (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
95
+ this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
96
+ this.siteChanged.emit(site);
97
+ });
94
98
  }
95
99
  }
96
100
  get el() { return this; }
@@ -128,9 +128,15 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
128
128
  // Watch handlers
129
129
  //
130
130
  //--------------------------------------------------------------------------
131
+ /**
132
+ * Handle url defaults when defaultOid is set
133
+ */
131
134
  async defaultOidWatchHandler() {
132
135
  await this._handleDefaults();
133
136
  }
137
+ /**
138
+ * Handle url defaults when defaultGlobalId is set
139
+ */
134
140
  async defaultGlobalIdWatchHandler() {
135
141
  await this._handleDefaults();
136
142
  }
@@ -997,7 +1003,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
997
1003
  _resetColumnTemplates() {
998
1004
  var _a, _b;
999
1005
  const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
1000
- const hasChange = columnTemplates.some((ct, i) => {
1006
+ const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
1001
1007
  var _a;
1002
1008
  return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
1003
1009
  });
@@ -1061,6 +1067,9 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
1061
1067
  this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
1062
1068
  await this._refresh();
1063
1069
  }
1070
+ /**
1071
+ * Handle default OID or GlobalID from url parameters
1072
+ */
1064
1073
  async _handleDefaults() {
1065
1074
  var _a, _b;
1066
1075
  if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
@@ -132,8 +132,17 @@ const FloorFilter = class {
132
132
  //
133
133
  //--------------------------------------------------------------------------
134
134
  async mapViewWatchHandler() {
135
- await this.mapView.when(() => {
136
- this._initFloorFilter(this.mapView);
135
+ const webMap = this.mapView.map;
136
+ await webMap.when(() => {
137
+ if (this.floorFilterWidget) {
138
+ this.floorFilterWidget.destroy();
139
+ this.floorFilterWidget = undefined;
140
+ }
141
+ if (this._floorFilterElement) {
142
+ this._floorFilterElement.remove();
143
+ this._floorFilterElement = document.createElement("div");
144
+ }
145
+ this._initFloorFilter(this.mapView, webMap);
137
146
  });
138
147
  }
139
148
  //--------------------------------------------------------------------------
@@ -173,30 +182,25 @@ const FloorFilter = class {
173
182
  /**
174
183
  * Initialize the floor filter or reset the current view if it already exists
175
184
  */
176
- _initFloorFilter(view) {
177
- var _a, _b, _c, _d;
178
- if (view && this.enabled && this.FloorFilter && ((_a = view === null || view === void 0 ? void 0 : view.map) === null || _a === void 0 ? void 0 : _a.floorInfo)) {
179
- if (!this.floorFilterWidget) {
180
- this.floorFilterWidget = new this.FloorFilter({
181
- container: this._floorFilterElement,
182
- view
183
- });
184
- (_b = this._facilityHandle) === null || _b === void 0 ? void 0 : _b.remove();
185
- this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
186
- this.facilityChanged.emit(facility);
187
- });
188
- (_c = this._levelHandle) === null || _c === void 0 ? void 0 : _c.remove();
189
- this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
190
- this.levelChanged.emit(level);
191
- });
192
- (_d = this._siteHandle) === null || _d === void 0 ? void 0 : _d.remove();
193
- this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
194
- this.siteChanged.emit(site);
195
- });
196
- }
197
- else {
198
- this.floorFilterWidget.viewModel.view = view;
199
- }
185
+ _initFloorFilter(view, webMap) {
186
+ var _a, _b, _c;
187
+ if (view && this.enabled && this.FloorFilter && (webMap === null || webMap === void 0 ? void 0 : webMap.floorInfo)) {
188
+ this.floorFilterWidget = new this.FloorFilter({
189
+ container: this._floorFilterElement,
190
+ view
191
+ });
192
+ (_a = this._facilityHandle) === null || _a === void 0 ? void 0 : _a.remove();
193
+ this._facilityHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.facility, (facility) => {
194
+ this.facilityChanged.emit(facility);
195
+ });
196
+ (_b = this._levelHandle) === null || _b === void 0 ? void 0 : _b.remove();
197
+ this._levelHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.level, (level) => {
198
+ this.levelChanged.emit(level);
199
+ });
200
+ (_c = this._siteHandle) === null || _c === void 0 ? void 0 : _c.remove();
201
+ this._siteHandle = this.reactiveUtils.watch(() => this.floorFilterWidget.site, (site) => {
202
+ this.siteChanged.emit(site);
203
+ });
200
204
  }
201
205
  }
202
206
  get el() { return getElement(this); }
@@ -180,9 +180,15 @@ const LayerTable = class {
180
180
  // Watch handlers
181
181
  //
182
182
  //--------------------------------------------------------------------------
183
+ /**
184
+ * Handle url defaults when defaultOid is set
185
+ */
183
186
  async defaultOidWatchHandler() {
184
187
  await this._handleDefaults();
185
188
  }
189
+ /**
190
+ * Handle url defaults when defaultGlobalId is set
191
+ */
186
192
  async defaultGlobalIdWatchHandler() {
187
193
  await this._handleDefaults();
188
194
  }
@@ -1049,7 +1055,7 @@ const LayerTable = class {
1049
1055
  _resetColumnTemplates() {
1050
1056
  var _a, _b;
1051
1057
  const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
1052
- const hasChange = columnTemplates.some((ct, i) => {
1058
+ const hasChange = columnTemplates === null || columnTemplates === void 0 ? void 0 : columnTemplates.some((ct, i) => {
1053
1059
  var _a;
1054
1060
  return JSON.stringify((_a = this._table) === null || _a === void 0 ? void 0 : _a.tableTemplate.columnTemplates[i]) !== JSON.stringify(ct);
1055
1061
  });
@@ -1113,6 +1119,9 @@ const LayerTable = class {
1113
1119
  this.selectedIds = this.selectedIds.filter(id => this._allIds.indexOf(id) > -1);
1114
1120
  await this._refresh();
1115
1121
  }
1122
+ /**
1123
+ * Handle default OID or GlobalID from url parameters
1124
+ */
1116
1125
  async _handleDefaults() {
1117
1126
  var _a, _b;
1118
1127
  if (!this._defaultOidHonored && ((_a = this.defaultOid) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.defaultOid[0] > -1 && this._table) {
@@ -15,13 +15,26 @@ const crowdsourceManagerCss = ":host{display:block;--calcite-label-margin-bottom
15
15
  const CrowdsourceManager = class {
16
16
  constructor(hostRef) {
17
17
  registerInstance(this, hostRef);
18
+ //--------------------------------------------------------------------------
19
+ //
20
+ // Properties (protected)
21
+ //
22
+ //--------------------------------------------------------------------------
18
23
  /**
19
24
  * boolean: When true the map view will be set after render due to popup obstructing the view
20
25
  * MapView.when is not fired when mapView is not currently visible
21
26
  */
22
- this._shouldSetMapView = false;
23
27
  this._defaultCenterHonored = false;
28
+ /**
29
+ * boolean: When true the map view will be set after render due to popup obstructing the view
30
+ * MapView.when is not fired when mapView is not currently visible
31
+ */
24
32
  this._defaultLevelHonored = false;
33
+ /**
34
+ * boolean: When true the map view will be set after render due to popup obstructing the view
35
+ * MapView.when is not fired when mapView is not currently visible
36
+ */
37
+ this._shouldSetMapView = false;
25
38
  this.defaultCenter = "";
26
39
  this.defaultGlobalId = "";
27
40
  this.defaultLayer = "";
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as i,h as t,H as e,g as s}from"./p-7d280d8a.js";import{g as h}from"./p-b04c9dc3.js";import{E as o}from"./p-c1cf3ebc.js";import{g as l}from"./p-c897e3eb.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const a=class{constructor(t){i(this,t),this._shouldSetMapView=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableHome=!0,this.enableZoom=!0,this.enableBasemap=!0,this.basemapConfig=void 0,this.showNewestFirst=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.theme="light",this.zoomAndScrollToSelected=!1,this._expandPopup=!1,this._hideFooter=!1,this._hideTable=!1,this._isMobile=void 0,this._translations=void 0,this._layer=void 0,this._layoutMode=o.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._tableOnly=!1}enableZoomWatchHandler(){this._initMapZoom()}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,this._expandPopup=!1)}async layerSelectionChange(i){const t=i.detail[0],e=await l(this._mapView,t);await e.when((()=>{this._layer=e}))}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return t(e,null,t("calcite-shell",{class:"position-relative"},t("calcite-panel",{class:"width-full height-full "+(this._isMobile&&this._hideTable?"border-width-0":this._isMobile?"border-bottom-width-0":"")},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()))}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el)}_getFooter(){var i,e,s,h;const o=(null===(i=this._layer)||void 0===i?void 0:i.editingEnabled)&&(null===(h=null===(s=null===(e=this._layer)||void 0===e?void 0:e.capabilities)||void 0===s?void 0:s.operations)||void 0===h?void 0:h.supportsDelete);return this._isMobile&&this._numSelected>0&&!this._hideFooter?t("div",{class:"width-100",slot:"footer"},t("div",{class:"display-flex padding-1-2"},t("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),o?t("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 o.HORIZONTAL:e=t?"chevrons-up":"chevrons-down";break;case o.VERTICAL:case o.GRID:e=t?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(i,t,e){let s="";switch(i){case o.HORIZONTAL:s=(t&&!e?"height-1-2 display-grid":t&&e?"height-full":"height-0")+" width-full position-relative";break;case o.GRID:s="height-full position-relative "+(t?"width-1-3":"width-0");break;case o.VERTICAL:s="height-full position-relative "+(t?"width-1-2":"width-0")}return s}_getTableSizeClass(i,t){let e="";switch(i){case o.HORIZONTAL:e=(t?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case o.GRID:e=(t?"width-2-3":"width-full")+" height-full display-flex";break;case o.VERTICAL:e=(t?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(i,e,s){return t("calcite-panel",{class:"width-full height-full"},t("div",{class:"width-full height-full overflow-hidden "+(i===o.HORIZONTAL?"":"display-flex")},this._getMapAndCard(i,e,s),this._getTable(i,e,s)))}_getMapAndCard(i,e,s){const h=this._getMapSizeClass(i,e,s);return t("div",{class:`${h} overflow-hidden`},this._getMapNode(e),this._getPopupExpandNode())}_getMapNode(i){var e;return t("div",{class:(this._layoutMode!==o.HORIZONTAL||this._isMobile&&!i?"adjusted-height-50":"")+" overflow-hidden"},t("map-card",{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===(e=this.mapInfos)||void 0===e?void 0:e.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 e=this._expandPopup?"chevrons-down":"chevrons-up",s="expand-popup",h=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,o="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 t("div",{class:`${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":""}`},t("calcite-panel",null,this._isMobile?void 0:t("div",{class:`display-flex align-items-center ${a}`,slot:"header-content"},t("calcite-icon",{icon:"information",scale:"s"}),t("div",{class:"padding-inline-start-75"},this._translations.information)),t("calcite-action",{class:a,disabled:this._tableOnly,icon:e,id:s,onClick:()=>this._togglePopup(),slot:"header-actions-end",text:""}),this._tableOnly?void 0:t("calcite-tooltip",{class:o,label:"",placement:"bottom","reference-element":s},t("span",null,h)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return t("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},t("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,e,s){var h,l;const a=s&&this._isMobile?"visibility-hidden":"",d=this._getTableSizeClass(i,e),n=this._getDividerIcon(i,e),r=e?this._translations.close:this._translations.open,c="toggle-layout",p=i===o.HORIZONTAL?"horizontal":"vertical",u=i===o.HORIZONTAL?"header":"panel-start",g=this.defaultWebmap&&this.defaultLayer,b=this.defaultGlobalId?(null===(h=this.defaultGlobalId)||void 0===h?void 0:h.indexOf(","))>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,v=this.defaultOid?(null===(l=this.defaultOid)||void 0===l?void 0:l.indexOf(","))>-1?this.defaultOid.split(",").map((i=>parseInt(i,10))):[parseInt(this.defaultOid,10)]:void 0;return t("calcite-shell",{class:`${d} ${a} border-bottom`},this._isMobile?void 0:t("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:p,slot:u},t("calcite-action",{class:"toggle-node",icon:n,id:c,onClick:()=>this._toggleLayout(),text:""}),t("calcite-tooltip",{label:r,placement:"bottom","reference-element":c},t("span",null,r))),t("div",{class:"width-full height-full position-relative"},t("layer-table",{defaultGlobalId:g?b:void 0,defaultLayerId:g?this.defaultLayer:"",defaultOid:g&&!b?v:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isMobile,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})))}_onResize(){const i=this.el.offsetWidth<1024,t=!this._isMobile&&i;this._isMobile=i,this._layoutMode=this._isMobile?o.HORIZONTAL:o.GRID,t&&(this._panelOpen=!0)}_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 s(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};a.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}";export{a as crowdsource_manager}
6
+ import{r as i,h as t,H as e,g as s}from"./p-7d280d8a.js";import{g as h}from"./p-b04c9dc3.js";import{E as o}from"./p-c1cf3ebc.js";import{g as l}from"./p-c897e3eb.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const a=class{constructor(t){i(this,t),this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._shouldSetMapView=!1,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableInlineEdit=!1,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableHome=!0,this.enableZoom=!0,this.enableBasemap=!0,this.basemapConfig=void 0,this.showNewestFirst=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.theme="light",this.zoomAndScrollToSelected=!1,this._expandPopup=!1,this._hideFooter=!1,this._hideTable=!1,this._isMobile=void 0,this._translations=void 0,this._layer=void 0,this._layoutMode=o.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._tableOnly=!1}enableZoomWatchHandler(){this._initMapZoom()}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,this._expandPopup=!1)}async layerSelectionChange(i){const t=i.detail[0],e=await l(this._mapView,t);await e.when((()=>{this._layer=e}))}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return t(e,null,t("calcite-shell",{class:"position-relative"},t("calcite-panel",{class:"width-full height-full "+(this._isMobile&&this._hideTable?"border-width-0":this._isMobile?"border-bottom-width-0":"")},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()))}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el)}_getFooter(){var i,e,s,h;const o=(null===(i=this._layer)||void 0===i?void 0:i.editingEnabled)&&(null===(h=null===(s=null===(e=this._layer)||void 0===e?void 0:e.capabilities)||void 0===s?void 0:s.operations)||void 0===h?void 0:h.supportsDelete);return this._isMobile&&this._numSelected>0&&!this._hideFooter?t("div",{class:"width-100",slot:"footer"},t("div",{class:"display-flex padding-1-2"},t("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),o?t("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 o.HORIZONTAL:e=t?"chevrons-up":"chevrons-down";break;case o.VERTICAL:case o.GRID:e=t?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(i,t,e){let s="";switch(i){case o.HORIZONTAL:s=(t&&!e?"height-1-2 display-grid":t&&e?"height-full":"height-0")+" width-full position-relative";break;case o.GRID:s="height-full position-relative "+(t?"width-1-3":"width-0");break;case o.VERTICAL:s="height-full position-relative "+(t?"width-1-2":"width-0")}return s}_getTableSizeClass(i,t){let e="";switch(i){case o.HORIZONTAL:e=(t?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case o.GRID:e=(t?"width-2-3":"width-full")+" height-full display-flex";break;case o.VERTICAL:e=(t?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(i,e,s){return t("calcite-panel",{class:"width-full height-full"},t("div",{class:"width-full height-full overflow-hidden "+(i===o.HORIZONTAL?"":"display-flex")},this._getMapAndCard(i,e,s),this._getTable(i,e,s)))}_getMapAndCard(i,e,s){const h=this._getMapSizeClass(i,e,s);return t("div",{class:`${h} overflow-hidden`},this._getMapNode(e),this._getPopupExpandNode())}_getMapNode(i){var e;return t("div",{class:(this._layoutMode!==o.HORIZONTAL||this._isMobile&&!i?"adjusted-height-50":"")+" overflow-hidden"},t("map-card",{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===(e=this.mapInfos)||void 0===e?void 0:e.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 e=this._expandPopup?"chevrons-down":"chevrons-up",s="expand-popup",h=this._expandPopup?this._translations.collapsePopup:this._translations.expandPopup,o="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 t("div",{class:`${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":""}`},t("calcite-panel",null,this._isMobile?void 0:t("div",{class:`display-flex align-items-center ${a}`,slot:"header-content"},t("calcite-icon",{icon:"information",scale:"s"}),t("div",{class:"padding-inline-start-75"},this._translations.information)),t("calcite-action",{class:a,disabled:this._tableOnly,icon:e,id:s,onClick:()=>this._togglePopup(),slot:"header-actions-end",text:""}),this._tableOnly?void 0:t("calcite-tooltip",{class:o,label:"",placement:"bottom","reference-element":s},t("span",null,h)),this._getCardNode()))}_togglePopup(){this._expandPopup=!this._expandPopup}_getCardNode(){return t("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},t("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,e,s){var h,l;const a=s&&this._isMobile?"visibility-hidden":"",d=this._getTableSizeClass(i,e),n=this._getDividerIcon(i,e),r=e?this._translations.close:this._translations.open,c="toggle-layout",p=i===o.HORIZONTAL?"horizontal":"vertical",u=i===o.HORIZONTAL?"header":"panel-start",g=this.defaultWebmap&&this.defaultLayer,b=this.defaultGlobalId?(null===(h=this.defaultGlobalId)||void 0===h?void 0:h.indexOf(","))>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,v=this.defaultOid?(null===(l=this.defaultOid)||void 0===l?void 0:l.indexOf(","))>-1?this.defaultOid.split(",").map((i=>parseInt(i,10))):[parseInt(this.defaultOid,10)]:void 0;return t("calcite-shell",{class:`${d} ${a} border-bottom`},this._isMobile?void 0:t("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:p,slot:u},t("calcite-action",{class:"toggle-node",icon:n,id:c,onClick:()=>this._toggleLayout(),text:""}),t("calcite-tooltip",{label:r,placement:"bottom","reference-element":c},t("span",null,r))),t("div",{class:"width-full height-full position-relative"},t("layer-table",{defaultGlobalId:g?b:void 0,defaultLayerId:g?this.defaultLayer:"",defaultOid:g&&!b?v:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this.enableInlineEdit,enableShare:this.enableShare,isMobile:this._isMobile,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})))}_onResize(){const i=this.el.offsetWidth<1024,t=!this._isMobile&&i;this._isMobile=i,this._layoutMode=this._isMobile?o.HORIZONTAL:o.GRID,t&&(this._panelOpen=!0)}_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 s(this)}static get watchers(){return{enableZoom:["enableZoomWatchHandler"]}}};a.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}";export{a as crowdsource_manager}