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