@arcgis/map-components 4.29.0-beta.26 → 4.29.0-beta.28

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.
Files changed (198) hide show
  1. package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
  2. package/dist/arcgis-map-components/p-027c9e49.entry.js +1 -0
  3. package/dist/arcgis-map-components/{p-e542a72e.entry.js → p-085ee848.entry.js} +1 -1
  4. package/dist/arcgis-map-components/{p-68e79f08.entry.js → p-0bbf94b9.entry.js} +1 -1
  5. package/dist/arcgis-map-components/{p-8d37ccc8.entry.js → p-0cda46ba.entry.js} +1 -1
  6. package/dist/arcgis-map-components/{p-e765deec.entry.js → p-0f24c01e.entry.js} +1 -1
  7. package/dist/arcgis-map-components/{p-0adc450b.entry.js → p-111b7d47.entry.js} +1 -1
  8. package/dist/arcgis-map-components/{p-41070a7c.entry.js → p-13b0986e.entry.js} +1 -1
  9. package/dist/arcgis-map-components/p-143a2510.entry.js +1 -0
  10. package/dist/arcgis-map-components/p-16286afd.entry.js +1 -0
  11. package/dist/arcgis-map-components/{p-0c74ff98.entry.js → p-174b2cf3.entry.js} +1 -1
  12. package/dist/arcgis-map-components/{p-e8c0be13.entry.js → p-287d01e6.entry.js} +1 -1
  13. package/dist/arcgis-map-components/p-2acf072d.entry.js +1 -0
  14. package/dist/arcgis-map-components/p-313b8a97.entry.js +1 -0
  15. package/dist/arcgis-map-components/{p-45fd4f76.entry.js → p-32fdbec9.entry.js} +1 -1
  16. package/dist/arcgis-map-components/p-3605e0e3.entry.js +1 -0
  17. package/dist/arcgis-map-components/{p-4064f028.entry.js → p-3df9109f.entry.js} +1 -1
  18. package/dist/arcgis-map-components/p-3e3b3856.entry.js +1 -0
  19. package/dist/arcgis-map-components/{p-e7f5fad9.entry.js → p-4151c045.entry.js} +1 -1
  20. package/dist/arcgis-map-components/p-41521839.entry.js +1 -0
  21. package/dist/arcgis-map-components/{p-d06df52b.entry.js → p-4807aeb2.entry.js} +1 -1
  22. package/dist/arcgis-map-components/{p-55206cea.entry.js → p-4ae72dd5.entry.js} +1 -1
  23. package/dist/arcgis-map-components/{p-8617e4d1.entry.js → p-4e9d6419.entry.js} +1 -1
  24. package/dist/arcgis-map-components/{p-61ba38a9.entry.js → p-56d202dd.entry.js} +1 -1
  25. package/dist/arcgis-map-components/{p-b92055ca.entry.js → p-5e800501.entry.js} +1 -1
  26. package/dist/arcgis-map-components/{p-5b74cd3d.entry.js → p-62db093b.entry.js} +1 -1
  27. package/dist/arcgis-map-components/p-6f67cc5c.entry.js +1 -0
  28. package/dist/arcgis-map-components/{p-56efb6d2.entry.js → p-70628198.entry.js} +1 -1
  29. package/dist/arcgis-map-components/{p-fcf0c05c.entry.js → p-7175b5a9.entry.js} +1 -1
  30. package/dist/arcgis-map-components/{p-b3658283.entry.js → p-7706c616.entry.js} +1 -1
  31. package/dist/arcgis-map-components/{p-61557a57.entry.js → p-83678753.entry.js} +1 -1
  32. package/dist/arcgis-map-components/p-8e4aa8d4.js +1 -0
  33. package/dist/arcgis-map-components/{p-da099e3b.entry.js → p-9aa0a0b9.entry.js} +1 -1
  34. package/dist/arcgis-map-components/{p-704daaee.entry.js → p-9eb6a25b.entry.js} +1 -1
  35. package/dist/arcgis-map-components/p-a0c848a1.entry.js +1 -0
  36. package/dist/arcgis-map-components/p-a10e042c.entry.js +1 -0
  37. package/dist/arcgis-map-components/p-a168dd8d.entry.js +1 -0
  38. package/dist/arcgis-map-components/{p-b202b1aa.entry.js → p-a2d92644.entry.js} +1 -1
  39. package/dist/arcgis-map-components/p-a4b6ea63.entry.js +1 -0
  40. package/dist/arcgis-map-components/{p-c81a5e03.entry.js → p-a9ec8628.entry.js} +1 -1
  41. package/dist/arcgis-map-components/{p-8f656eff.entry.js → p-ab020e01.entry.js} +1 -1
  42. package/dist/arcgis-map-components/p-af78f7b8.js +1 -0
  43. package/dist/arcgis-map-components/{p-0d9e9d6a.entry.js → p-b064b2d8.entry.js} +1 -1
  44. package/dist/arcgis-map-components/p-b679ccf8.entry.js +1 -0
  45. package/dist/arcgis-map-components/p-b8acf499.entry.js +1 -0
  46. package/dist/arcgis-map-components/{p-569ef1c7.entry.js → p-bc0d59d0.entry.js} +1 -1
  47. package/dist/arcgis-map-components/{p-f86f779d.entry.js → p-c73560fd.entry.js} +1 -1
  48. package/dist/arcgis-map-components/p-d19bb993.entry.js +1 -0
  49. package/dist/arcgis-map-components/{p-d7b80bdc.entry.js → p-d20cb48d.entry.js} +1 -1
  50. package/dist/arcgis-map-components/p-d2bf9ce6.entry.js +1 -0
  51. package/dist/arcgis-map-components/{p-950d17a0.entry.js → p-df39f75d.entry.js} +1 -1
  52. package/dist/arcgis-map-components/{p-da7b4f86.entry.js → p-ebbe7ecf.entry.js} +1 -1
  53. package/dist/arcgis-map-components/p-ed9f6cfa.js +2 -0
  54. package/dist/arcgis-map-components/{p-c9946f2e.entry.js → p-f3388486.entry.js} +1 -1
  55. package/dist/arcgis-map-components/{p-4e01cbff.js → p-f80af06c.js} +1 -1
  56. package/dist/arcgis-map-components/p-f89c8421.entry.js +1 -0
  57. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +3 -3
  58. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +3 -3
  59. package/dist/cjs/arcgis-attachments.cjs.entry.js +2 -2
  60. package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +3 -3
  61. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +3 -3
  62. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +3 -3
  63. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +3 -3
  64. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +3 -3
  65. package/dist/cjs/arcgis-compass.cjs.entry.js +3 -3
  66. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +3 -3
  67. package/dist/cjs/arcgis-daylight.cjs.entry.js +3 -3
  68. package/dist/cjs/arcgis-directions.cjs.entry.js +3 -3
  69. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +3 -3
  70. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +3 -3
  71. package/dist/cjs/arcgis-editor.cjs.entry.js +3 -3
  72. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +3 -3
  73. package/dist/cjs/arcgis-expand_4.cjs.entry.js +45 -141
  74. package/dist/cjs/arcgis-feature-form.cjs.entry.js +1 -1
  75. package/dist/cjs/arcgis-feature-table.cjs.entry.js +3 -3
  76. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +3 -3
  77. package/dist/cjs/arcgis-feature.cjs.entry.js +3 -3
  78. package/dist/cjs/arcgis-features.cjs.entry.js +3 -3
  79. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +3 -3
  80. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +3 -3
  81. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +3 -3
  82. package/dist/cjs/arcgis-histogram.cjs.entry.js +1 -1
  83. package/dist/cjs/arcgis-home.cjs.entry.js +3 -3
  84. package/dist/cjs/arcgis-layer-list.cjs.entry.js +3 -3
  85. package/dist/cjs/arcgis-legend.cjs.entry.js +147 -0
  86. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +3 -3
  87. package/dist/cjs/arcgis-locate.cjs.entry.js +3 -3
  88. package/dist/cjs/arcgis-map-components.cjs.js +2 -2
  89. package/dist/cjs/arcgis-measurement.cjs.entry.js +3 -3
  90. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +3 -3
  91. package/dist/cjs/arcgis-print.cjs.entry.js +3 -3
  92. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +3 -3
  93. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +3 -3
  94. package/dist/cjs/arcgis-search.cjs.entry.js +3 -3
  95. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +3 -3
  96. package/dist/cjs/arcgis-sketch.cjs.entry.js +3 -3
  97. package/dist/cjs/arcgis-slice.cjs.entry.js +3 -3
  98. package/dist/cjs/arcgis-slider.cjs.entry.js +3 -3
  99. package/dist/cjs/arcgis-swipe.cjs.entry.js +3 -3
  100. package/dist/cjs/arcgis-table-list.cjs.entry.js +3 -3
  101. package/dist/cjs/arcgis-time-slider.cjs.entry.js +3 -3
  102. package/dist/cjs/arcgis-track.cjs.entry.js +3 -3
  103. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +3 -3
  104. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +3 -3
  105. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +3 -3
  106. package/dist/cjs/arcgis-value-picker.cjs.entry.js +3 -3
  107. package/dist/cjs/arcgis-weather.cjs.entry.js +3 -3
  108. package/dist/cjs/arcgis-zoom.cjs.entry.js +3 -3
  109. package/dist/cjs/{component-utils-17140a1b.js → component-utils-e43d9ad1.js} +4 -4
  110. package/dist/cjs/{disconnected-62af3ef1.js → disconnected-86c5cc08.js} +2 -2
  111. package/dist/cjs/{index-6b51d5a0.js → index-b9b7643c.js} +383 -6
  112. package/dist/cjs/loader.cjs.js +2 -2
  113. package/dist/components/arcgis-placement.d.ts +11 -0
  114. package/dist/components/arcgis-placement.js +67 -0
  115. package/dist/components/disconnected.js +5 -5
  116. package/dist/components/index.d.ts +1 -0
  117. package/dist/components/index.js +1 -0
  118. package/dist/esm/arcgis-area-measurement-2d.entry.js +4 -4
  119. package/dist/esm/arcgis-area-measurement-3d.entry.js +4 -4
  120. package/dist/esm/arcgis-attachments.entry.js +3 -3
  121. package/dist/esm/arcgis-basemap-gallery.entry.js +4 -4
  122. package/dist/esm/arcgis-basemap-layer-list.entry.js +4 -4
  123. package/dist/esm/arcgis-basemap-toggle.entry.js +4 -4
  124. package/dist/esm/arcgis-bookmarks.entry.js +4 -4
  125. package/dist/esm/arcgis-building-explorer.entry.js +4 -4
  126. package/dist/esm/arcgis-compass.entry.js +4 -4
  127. package/dist/esm/arcgis-coordinate-conversion.entry.js +4 -4
  128. package/dist/esm/arcgis-daylight.entry.js +4 -4
  129. package/dist/esm/arcgis-directions.entry.js +4 -4
  130. package/dist/esm/arcgis-directline-measurement-3d.entry.js +4 -4
  131. package/dist/esm/arcgis-distance-measurement-2d.entry.js +4 -4
  132. package/dist/esm/arcgis-editor.entry.js +4 -4
  133. package/dist/esm/arcgis-elevation-profile.entry.js +4 -4
  134. package/dist/esm/arcgis-expand_4.entry.js +46 -142
  135. package/dist/esm/arcgis-feature-form.entry.js +2 -2
  136. package/dist/esm/arcgis-feature-table.entry.js +4 -4
  137. package/dist/esm/arcgis-feature-templates.entry.js +4 -4
  138. package/dist/esm/arcgis-feature.entry.js +4 -4
  139. package/dist/esm/arcgis-features.entry.js +4 -4
  140. package/dist/esm/arcgis-floor-filter.entry.js +4 -4
  141. package/dist/esm/arcgis-fullscreen.entry.js +4 -4
  142. package/dist/esm/arcgis-histogram-range-slider.entry.js +4 -4
  143. package/dist/esm/arcgis-histogram.entry.js +2 -2
  144. package/dist/esm/arcgis-home.entry.js +4 -4
  145. package/dist/esm/arcgis-layer-list.entry.js +4 -4
  146. package/dist/esm/arcgis-legend.entry.js +143 -0
  147. package/dist/esm/arcgis-line-of-sight.entry.js +4 -4
  148. package/dist/esm/arcgis-locate.entry.js +4 -4
  149. package/dist/esm/arcgis-map-components.js +3 -3
  150. package/dist/esm/arcgis-measurement.entry.js +4 -4
  151. package/dist/esm/arcgis-navigation-toggle.entry.js +4 -4
  152. package/dist/esm/arcgis-print.entry.js +4 -4
  153. package/dist/esm/arcgis-scale-bar.entry.js +4 -4
  154. package/dist/esm/arcgis-scale-range-slider.entry.js +4 -4
  155. package/dist/esm/arcgis-search.entry.js +4 -4
  156. package/dist/esm/arcgis-shadow-cast.entry.js +4 -4
  157. package/dist/esm/arcgis-sketch.entry.js +4 -4
  158. package/dist/esm/arcgis-slice.entry.js +4 -4
  159. package/dist/esm/arcgis-slider.entry.js +4 -4
  160. package/dist/esm/arcgis-swipe.entry.js +4 -4
  161. package/dist/esm/arcgis-table-list.entry.js +4 -4
  162. package/dist/esm/arcgis-time-slider.entry.js +4 -4
  163. package/dist/esm/arcgis-track.entry.js +4 -4
  164. package/dist/esm/arcgis-utility-network-associations.entry.js +4 -4
  165. package/dist/esm/arcgis-utility-network-trace.entry.js +4 -4
  166. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +4 -4
  167. package/dist/esm/arcgis-value-picker.entry.js +4 -4
  168. package/dist/esm/arcgis-weather.entry.js +4 -4
  169. package/dist/esm/arcgis-zoom.entry.js +4 -4
  170. package/dist/esm/{component-utils-b2132dc6.js → component-utils-da49aed7.js} +4 -4
  171. package/dist/esm/{disconnected-b4c94753.js → disconnected-dc405cac.js} +2 -2
  172. package/dist/esm/{index-eb3ead33.js → index-d73b34b5.js} +383 -6
  173. package/dist/esm/{index-793aa630.js → index-f2d328e4.js} +1 -1
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/types/components/placement/placement.d.ts +18 -0
  176. package/dist/types/components.d.ts +24 -0
  177. package/dist/types/utils/component-utils.d.ts +5 -3
  178. package/package.json +4 -4
  179. package/dist/arcgis-map-components/p-1464da83.js +0 -1
  180. package/dist/arcgis-map-components/p-1d1df08c.entry.js +0 -1
  181. package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
  182. package/dist/arcgis-map-components/p-23a946ff.entry.js +0 -1
  183. package/dist/arcgis-map-components/p-2819c845.entry.js +0 -1
  184. package/dist/arcgis-map-components/p-287dbb28.entry.js +0 -1
  185. package/dist/arcgis-map-components/p-2b530f54.entry.js +0 -1
  186. package/dist/arcgis-map-components/p-33b4a092.entry.js +0 -1
  187. package/dist/arcgis-map-components/p-4d8bc802.entry.js +0 -1
  188. package/dist/arcgis-map-components/p-5a9ea278.entry.js +0 -1
  189. package/dist/arcgis-map-components/p-72ce2a6e.entry.js +0 -1
  190. package/dist/arcgis-map-components/p-7330a10a.js +0 -1
  191. package/dist/arcgis-map-components/p-7d9bcc42.entry.js +0 -1
  192. package/dist/arcgis-map-components/p-7e0a2e8e.entry.js +0 -1
  193. package/dist/arcgis-map-components/p-97d6f3e7.entry.js +0 -1
  194. package/dist/arcgis-map-components/p-ab3dc9ad.entry.js +0 -1
  195. package/dist/arcgis-map-components/p-d7145fd7.entry.js +0 -1
  196. package/dist/arcgis-map-components/p-e616a1fd.entry.js +0 -1
  197. package/dist/arcgis-map-components/p-faee52eb.entry.js +0 -1
  198. package/dist/arcgis-map-components/p-ff2a451c.entry.js +0 -1
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { n as newWidgetsExpand, a as newWidgetsLegend, i as importConfig, b as importCoreReactiveUtils, c as newWebMap, d as newViewsMapView, e as newWebScene, f as newViewsSceneView } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { n as newWidgetsExpand, i as importConfig, a as importCoreReactiveUtils, b as newWebMap, c as newViewsMapView, d as newWebScene, e as newViewsSceneView } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const expandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
7
7
 
@@ -87,143 +87,6 @@ const ArcgisExpand = class {
87
87
  };
88
88
  ArcgisExpand.style = expandCss;
89
89
 
90
- const legendCss = "";
91
-
92
- const ArcgisLegend = class {
93
- constructor(hostRef) {
94
- registerInstance(this, hostRef);
95
- this.widgetReady = createEvent(this, "widgetReady", 7);
96
- this._watchHandles = [];
97
- this.referenceElement = undefined;
98
- this.activeLayerInfos = undefined;
99
- this.basemapLegendVisible = undefined;
100
- this.hideLayersNotInCurrentView = undefined;
101
- this.layerInfos = undefined;
102
- this.respectLayerVisibility = undefined;
103
- this.legendStyle = undefined;
104
- this.position = "bottom-left";
105
- this.expandable = false;
106
- this.view = undefined;
107
- this.widget = undefined;
108
- }
109
- //--------------------------------------------------------------------------
110
- //
111
- // Watchers
112
- //
113
- //--------------------------------------------------------------------------
114
- positionWatcher(newValue) {
115
- if (newValue !== undefined && this.widget) {
116
- if (typeof this.view !== "string") {
117
- this.view.ui.move(this.childElem, newValue);
118
- }
119
- }
120
- }
121
- activeLayerInfosWatcher(newValue) {
122
- if (newValue !== undefined && this.widget) {
123
- this.widget.activeLayerInfos = newValue;
124
- }
125
- }
126
- basemapLegendVisibleWatcher(newValue) {
127
- if (newValue !== undefined && this.widget) {
128
- this.widget.basemapLegendVisible = newValue;
129
- }
130
- }
131
- hideLayersNotInCurrentViewWatcher(newValue) {
132
- if (newValue !== undefined && this.widget) {
133
- this.widget.hideLayersNotInCurrentView = newValue;
134
- }
135
- }
136
- layerInfosWatcher(newValue) {
137
- if (newValue !== undefined && this.widget) {
138
- this.widget.layerInfos = newValue;
139
- }
140
- }
141
- respectLayerVisibilityWatcher(newValue) {
142
- if (newValue !== undefined && this.widget) {
143
- this.widget.respectLayerVisibility = newValue;
144
- }
145
- }
146
- styleWatcher(newValue) {
147
- if (newValue !== undefined && this.widget) {
148
- this.widget.style = newValue;
149
- }
150
- }
151
- referenceElementWatcher(newValue) {
152
- referenceElementHelper(this, newValue);
153
- }
154
- viewWatcher(newValue) {
155
- if (newValue !== undefined && this.widget) {
156
- this.widget.view = newValue;
157
- }
158
- }
159
- //--------------------------------------------------------------------------
160
- //
161
- // Lifecycle
162
- //
163
- //--------------------------------------------------------------------------
164
- async componentDidLoad() {
165
- const params = this._createParams();
166
- const widget = await newWidgetsLegend(params);
167
- this.widget = widget;
168
- this.widgetReady.emit({ widget: this.widget });
169
- checkForView(this);
170
- }
171
- disconnectedCallback() {
172
- onDisconnectedHelper(this);
173
- }
174
- render() {
175
- if (this.expandable) {
176
- return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
177
- }
178
- return h("div", { ref: (el) => (this.childElem = el) });
179
- }
180
- //--------------------------------------------------------------------------
181
- //
182
- // Private Methods
183
- //
184
- //--------------------------------------------------------------------------
185
- _createParams() {
186
- const params = {
187
- container: this.childElem
188
- };
189
- if (this.activeLayerInfos) {
190
- params.activeLayerInfos = this.activeLayerInfos;
191
- }
192
- if (this.basemapLegendVisible !== undefined) {
193
- params.basemapLegendVisible = this.basemapLegendVisible;
194
- }
195
- if (this.hideLayersNotInCurrentView !== undefined) {
196
- params.hideLayersNotInCurrentView = this.hideLayersNotInCurrentView;
197
- }
198
- if (this.layerInfos) {
199
- params.layerInfos = this.layerInfos;
200
- }
201
- if (this.respectLayerVisibility !== undefined) {
202
- params.respectLayerVisibility = this.respectLayerVisibility;
203
- }
204
- if (this.legendStyle) {
205
- params.style = this.legendStyle;
206
- }
207
- if (this.view) {
208
- params.view = this.view;
209
- }
210
- return params;
211
- }
212
- get el() { return getElement(this); }
213
- static get watchers() { return {
214
- "position": ["positionWatcher"],
215
- "activeLayerInfos": ["activeLayerInfosWatcher"],
216
- "basemapLegendVisible": ["basemapLegendVisibleWatcher"],
217
- "hideLayersNotInCurrentView": ["hideLayersNotInCurrentViewWatcher"],
218
- "layerInfos": ["layerInfosWatcher"],
219
- "respectLayerVisibility": ["respectLayerVisibilityWatcher"],
220
- "legendStyle": ["styleWatcher"],
221
- "referenceElement": ["referenceElementWatcher"],
222
- "view": ["viewWatcher"]
223
- }; }
224
- };
225
- ArcgisLegend.style = legendCss;
226
-
227
90
  function disableNavigation(view) {
228
91
  if (view.type === '2d') {
229
92
  view.constraints.rotationEnabled = false;
@@ -448,6 +311,47 @@ const ArcgisMap = class {
448
311
  };
449
312
  ArcgisMap.style = mapCss;
450
313
 
314
+ const placementCss = "arcgis-placement{}";
315
+
316
+ const ArcgisPlacement = class {
317
+ constructor(hostRef) {
318
+ registerInstance(this, hostRef);
319
+ this.placementReady = createEvent(this, "placementReady", 7);
320
+ this.referenceElement = undefined;
321
+ this.view = undefined;
322
+ this.position = "bottom-left";
323
+ }
324
+ referenceElementWatcher(newValue) {
325
+ referenceElementHelper(this, newValue);
326
+ }
327
+ positionWatcher(newValue) {
328
+ if (newValue !== undefined) {
329
+ this.view.ui.move(this.childElem, newValue);
330
+ }
331
+ }
332
+ //--------------------------------------------------------------------------
333
+ //
334
+ // Lifecycle
335
+ //
336
+ //--------------------------------------------------------------------------
337
+ async componentDidLoad() {
338
+ this.placementReady.emit({ ready: true });
339
+ checkForView(this);
340
+ }
341
+ disconnectedCallback() {
342
+ onDisconnectedHelper(this);
343
+ }
344
+ render() {
345
+ return (h("div", { ref: (el) => (this.childElem = el) }, h("slot", null)));
346
+ }
347
+ get el() { return getElement(this); }
348
+ static get watchers() { return {
349
+ "referenceElement": ["referenceElementWatcher"],
350
+ "position": ["positionWatcher"]
351
+ }; }
352
+ };
353
+ ArcgisPlacement.style = placementCss;
354
+
451
355
  const sceneCss = ".arcgis-scene{padding:0;margin:0;height:100%;width:100%}";
452
356
 
453
357
  const ArcgisScene = class {
@@ -623,4 +527,4 @@ const ArcgisScene = class {
623
527
  };
624
528
  ArcgisScene.style = sceneCss;
625
529
 
626
- export { ArcgisExpand as arcgis_expand, ArcgisLegend as arcgis_legend, ArcgisMap as arcgis_map, ArcgisScene as arcgis_scene };
530
+ export { ArcgisExpand as arcgis_expand, ArcgisMap as arcgis_map, ArcgisPlacement as arcgis_placement, ArcgisScene as arcgis_scene };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, g as getElement } from './index-eb3ead33.js';
2
- import { A as newWidgetsFeatureForm } from './index-793aa630.js';
1
+ import { r as registerInstance, c as createEvent, g as getElement } from './index-d73b34b5.js';
2
+ import { z as newWidgetsFeatureForm } from './index-f2d328e4.js';
3
3
 
4
4
  const featureFormCss = "";
5
5
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { B as newLayersFeatureLayer, C as newWidgetsFeatureTable, b as importCoreReactiveUtils } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { A as newLayersFeatureLayer, B as newWidgetsFeatureTable, a as importCoreReactiveUtils } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const featureTableCss = ".arcgis-feature-table{width:100%;height:100%}";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { D as newWidgetsFeatureTemplates } from './index-793aa630.js';
3
- import { c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { C as newWidgetsFeatureTemplates } from './index-f2d328e4.js';
3
+ import { c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const featureTemplatesCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { z as newWidgetsFeature } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { y as newWidgetsFeature } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const featureCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { E as newWidgetsFeatures, b as importCoreReactiveUtils } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { D as newWidgetsFeatures, a as importCoreReactiveUtils } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const featuresCss = "arcgis-features{}";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { F as newWidgetsFloorFilter } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { E as newWidgetsFloorFilter } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const floorFilterCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { G as newWidgetsFullscreen } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { F as newWidgetsFullscreen } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const fullscreenCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { I as newWidgetsHistogramRangeSlider } from './index-793aa630.js';
3
- import { c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { H as newWidgetsHistogramRangeSlider } from './index-f2d328e4.js';
3
+ import { c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const histogramRangeSliderCss = "arcgis-histogram-range-slider{}";
7
7
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, g as getElement } from './index-eb3ead33.js';
2
- import { H as newWidgetsHistogram } from './index-793aa630.js';
1
+ import { r as registerInstance, c as createEvent, g as getElement } from './index-d73b34b5.js';
2
+ import { G as newWidgetsHistogram } from './index-f2d328e4.js';
3
3
 
4
4
  const histogramCss = "arcgis-histogram{}";
5
5
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { J as newWidgetsHome } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { I as newWidgetsHome } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const homeCss = "arcgis-home{}";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { K as newWidgetsLayerList, b as importCoreReactiveUtils } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { J as newWidgetsLayerList, a as importCoreReactiveUtils } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const layerListCss = "";
7
7
 
@@ -0,0 +1,143 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { K as newWidgetsLegend } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
+
6
+ const legendCss = "";
7
+
8
+ const ArcgisLegend = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this._watchHandles = [];
13
+ this.referenceElement = undefined;
14
+ this.activeLayerInfos = undefined;
15
+ this.basemapLegendVisible = undefined;
16
+ this.hideLayersNotInCurrentView = undefined;
17
+ this.layerInfos = undefined;
18
+ this.respectLayerVisibility = undefined;
19
+ this.legendStyle = undefined;
20
+ this.position = "bottom-left";
21
+ this.expandable = false;
22
+ this.view = undefined;
23
+ this.widget = undefined;
24
+ }
25
+ //--------------------------------------------------------------------------
26
+ //
27
+ // Watchers
28
+ //
29
+ //--------------------------------------------------------------------------
30
+ positionWatcher(newValue) {
31
+ if (newValue !== undefined && this.widget) {
32
+ if (typeof this.view !== "string") {
33
+ this.view.ui.move(this.childElem, newValue);
34
+ }
35
+ }
36
+ }
37
+ activeLayerInfosWatcher(newValue) {
38
+ if (newValue !== undefined && this.widget) {
39
+ this.widget.activeLayerInfos = newValue;
40
+ }
41
+ }
42
+ basemapLegendVisibleWatcher(newValue) {
43
+ if (newValue !== undefined && this.widget) {
44
+ this.widget.basemapLegendVisible = newValue;
45
+ }
46
+ }
47
+ hideLayersNotInCurrentViewWatcher(newValue) {
48
+ if (newValue !== undefined && this.widget) {
49
+ this.widget.hideLayersNotInCurrentView = newValue;
50
+ }
51
+ }
52
+ layerInfosWatcher(newValue) {
53
+ if (newValue !== undefined && this.widget) {
54
+ this.widget.layerInfos = newValue;
55
+ }
56
+ }
57
+ respectLayerVisibilityWatcher(newValue) {
58
+ if (newValue !== undefined && this.widget) {
59
+ this.widget.respectLayerVisibility = newValue;
60
+ }
61
+ }
62
+ styleWatcher(newValue) {
63
+ if (newValue !== undefined && this.widget) {
64
+ this.widget.style = newValue;
65
+ }
66
+ }
67
+ referenceElementWatcher(newValue) {
68
+ referenceElementHelper(this, newValue);
69
+ }
70
+ viewWatcher(newValue) {
71
+ if (newValue !== undefined && this.widget) {
72
+ this.widget.view = newValue;
73
+ }
74
+ }
75
+ //--------------------------------------------------------------------------
76
+ //
77
+ // Lifecycle
78
+ //
79
+ //--------------------------------------------------------------------------
80
+ async componentDidLoad() {
81
+ const params = this._createParams();
82
+ const widget = await newWidgetsLegend(params);
83
+ this.widget = widget;
84
+ this.widgetReady.emit({ widget: this.widget });
85
+ checkForView(this);
86
+ }
87
+ disconnectedCallback() {
88
+ onDisconnectedHelper(this);
89
+ }
90
+ render() {
91
+ if (this.expandable) {
92
+ return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
93
+ }
94
+ return h("div", { ref: (el) => (this.childElem = el) });
95
+ }
96
+ //--------------------------------------------------------------------------
97
+ //
98
+ // Private Methods
99
+ //
100
+ //--------------------------------------------------------------------------
101
+ _createParams() {
102
+ const params = {
103
+ container: this.childElem
104
+ };
105
+ if (this.activeLayerInfos) {
106
+ params.activeLayerInfos = this.activeLayerInfos;
107
+ }
108
+ if (this.basemapLegendVisible !== undefined) {
109
+ params.basemapLegendVisible = this.basemapLegendVisible;
110
+ }
111
+ if (this.hideLayersNotInCurrentView !== undefined) {
112
+ params.hideLayersNotInCurrentView = this.hideLayersNotInCurrentView;
113
+ }
114
+ if (this.layerInfos) {
115
+ params.layerInfos = this.layerInfos;
116
+ }
117
+ if (this.respectLayerVisibility !== undefined) {
118
+ params.respectLayerVisibility = this.respectLayerVisibility;
119
+ }
120
+ if (this.legendStyle) {
121
+ params.style = this.legendStyle;
122
+ }
123
+ if (this.view) {
124
+ params.view = this.view;
125
+ }
126
+ return params;
127
+ }
128
+ get el() { return getElement(this); }
129
+ static get watchers() { return {
130
+ "position": ["positionWatcher"],
131
+ "activeLayerInfos": ["activeLayerInfosWatcher"],
132
+ "basemapLegendVisible": ["basemapLegendVisibleWatcher"],
133
+ "hideLayersNotInCurrentView": ["hideLayersNotInCurrentViewWatcher"],
134
+ "layerInfos": ["layerInfosWatcher"],
135
+ "respectLayerVisibility": ["respectLayerVisibilityWatcher"],
136
+ "legendStyle": ["styleWatcher"],
137
+ "referenceElement": ["referenceElementWatcher"],
138
+ "view": ["viewWatcher"]
139
+ }; }
140
+ };
141
+ ArcgisLegend.style = legendCss;
142
+
143
+ export { ArcgisLegend as arcgis_legend };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { L as newWidgetsLineOfSight, b as importCoreReactiveUtils } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { L as newWidgetsLineOfSight, a as importCoreReactiveUtils } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView, a as addHandles } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const lineOfSightCss = "arcgis-line-of-sight{}";
7
7
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
2
- import { M as newWidgetsLocate } from './index-793aa630.js';
3
- import { r as referenceElementHelper, c as checkForView } from './component-utils-b2132dc6.js';
4
- import { o as onDisconnectedHelper } from './disconnected-b4c94753.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-d73b34b5.js';
2
+ import { M as newWidgetsLocate } from './index-f2d328e4.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-da49aed7.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-dc405cac.js';
5
5
 
6
6
  const locateCss = "arcgis-locate{}";
7
7