@arcgis/map-components 4.28.0-beta.25 → 4.28.0-beta.27
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-b6910378.entry.js → p-07747158.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-eea9bf44.entry.js → p-0bb53493.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-146db8d0.entry.js → p-11cfc309.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-22b0f594.entry.js → p-13f0d637.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-67e5396e.entry.js → p-1bc4d1b5.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-e43863f1.entry.js → p-20c25d3a.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8abbcb30.entry.js → p-211c45ce.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-719d4dc9.entry.js → p-213da634.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-59c5f1d9.entry.js → p-29c26804.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-a18cc167.entry.js → p-2f8d75fc.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-d6be6a96.entry.js → p-31323a10.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-91e502ce.entry.js → p-4500b9d7.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-b21b290f.entry.js → p-48c5fd01.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-92bb0344.entry.js → p-498d1434.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-f7812476.entry.js → p-49e132b6.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-fbcd9ac6.entry.js → p-4c42f2de.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-5cc71c33.entry.js → p-4eccea0d.entry.js} +1 -1
- package/dist/arcgis-map-components/p-4f74ae12.entry.js +1 -0
- package/dist/arcgis-map-components/{p-e7262fa2.entry.js → p-506e0bff.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-90b9682e.entry.js → p-53b845f5.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-ebefd15f.entry.js → p-5e1caf8b.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-d1ddff0e.entry.js → p-618e81a2.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1e4adac8.entry.js → p-63593487.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-da8b78d4.entry.js → p-66bb0029.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-26609adf.entry.js → p-6aa5c8a0.entry.js} +1 -1
- package/dist/arcgis-map-components/p-6c3400f4.js +1 -0
- package/dist/arcgis-map-components/{p-0dfdb90a.entry.js → p-6c82fb33.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-583f68b3.entry.js → p-6f0104d1.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-b9827487.entry.js → p-7331a03b.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-70f15b21.entry.js → p-74cdb21c.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-87c54198.entry.js → p-7d22c2b0.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-25f2914b.entry.js → p-83990daa.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-52d7a346.entry.js → p-8bfc24af.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-99b99c0f.entry.js → p-956781f2.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-740772e2.entry.js → p-956d916f.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-f4fb7324.entry.js → p-97a0b3e5.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-27449d5c.entry.js → p-a7c50961.entry.js} +1 -1
- package/dist/arcgis-map-components/p-abfa6f76.entry.js +1 -0
- package/dist/arcgis-map-components/{p-10224c09.entry.js → p-adab1d00.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-dafbb712.entry.js → p-baee455e.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-a1c80264.entry.js → p-c07fa452.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-fdffde0d.entry.js → p-c3ef2aff.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-28c1cdb2.entry.js → p-ccaec09f.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-8efb067d.entry.js → p-d106d2ba.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-eb66e3ba.entry.js → p-d2330076.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-6089ddcd.entry.js → p-d5b7c6fd.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-547def3a.entry.js → p-d7566474.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-4e2e379b.entry.js → p-de450271.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-1984aa5a.entry.js → p-e8c73c1c.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-7ab903d9.entry.js → p-ec6fe8ff.entry.js} +1 -1
- package/dist/arcgis-map-components/{p-bd37e0cf.entry.js → p-fca388c3.entry.js} +1 -1
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-attachments.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-basemap-gallery_4.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-compass.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-daylight.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-directions.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-editor.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-feature.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-features.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-histogram.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-home.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-legend.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-locate.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-map-components.cjs.js +1 -1
- package/dist/cjs/arcgis-measurement.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-print.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-scene.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-sketch.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-slice.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-swipe.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-table-list.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-track.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-weather.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-zoom.cjs.entry.js +1 -1
- package/dist/cjs/index-6b51d5a0.js +0 -4
- package/dist/cjs/{index-91d6ff5b.js → index-f4f4177e.js} +0 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/components/arcgis-directions.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d.js +1 -1
- package/dist/components/arcgis-editor.js +1 -1
- package/dist/components/arcgis-elevation-profile.js +1 -1
- package/dist/components/arcgis-expand2.js +1 -1
- package/dist/components/arcgis-feature-form.js +1 -1
- package/dist/components/arcgis-feature-table.js +1 -1
- package/dist/components/arcgis-feature-templates.js +1 -1
- package/dist/components/arcgis-feature.js +1 -1
- package/dist/components/arcgis-features.js +1 -1
- package/dist/components/arcgis-floor-filter.js +1 -1
- package/dist/components/arcgis-fullscreen.js +1 -1
- package/dist/components/arcgis-histogram-range-slider.js +1 -1
- package/dist/components/arcgis-histogram.js +1 -1
- package/dist/components/arcgis-home.js +1 -1
- package/dist/components/arcgis-layer-list.js +1 -1
- package/dist/components/arcgis-legend.js +1 -1
- package/dist/components/arcgis-line-of-sight.js +1 -1
- package/dist/components/arcgis-locate.js +1 -1
- package/dist/components/arcgis-map.js +1 -1
- package/dist/components/arcgis-measurement.js +1 -1
- package/dist/components/arcgis-navigation-toggle.js +1 -1
- package/dist/components/arcgis-print.js +1 -1
- package/dist/components/arcgis-scale-bar.js +1 -1
- package/dist/components/arcgis-scale-range-slider.js +1 -1
- package/dist/components/arcgis-scene.js +1 -1
- package/dist/components/arcgis-search.js +1 -1
- package/dist/components/arcgis-shadow-cast.js +1 -1
- package/dist/components/arcgis-sketch.js +1 -1
- package/dist/components/arcgis-slice.js +1 -1
- package/dist/components/arcgis-slider.js +1 -1
- package/dist/components/arcgis-swipe.js +1 -1
- package/dist/components/arcgis-table-list.js +1 -1
- package/dist/components/arcgis-time-slider.js +1 -1
- package/dist/components/arcgis-track.js +1 -1
- package/dist/components/arcgis-utility-network-associations.js +1 -1
- package/dist/components/arcgis-utility-network-trace.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology.js +1 -1
- package/dist/components/arcgis-value-picker.js +1 -1
- package/dist/components/arcgis-weather.js +1 -1
- package/dist/components/arcgis-zoom.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index2.js +1 -12
- package/dist/esm/arcgis-area-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-area-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-attachments.entry.js +1 -1
- package/dist/esm/arcgis-basemap-gallery_4.entry.js +1 -1
- package/dist/esm/arcgis-basemap-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-basemap-toggle.entry.js +1 -1
- package/dist/esm/arcgis-bookmarks.entry.js +1 -1
- package/dist/esm/arcgis-building-explorer.entry.js +1 -1
- package/dist/esm/arcgis-compass.entry.js +1 -1
- package/dist/esm/arcgis-coordinate-conversion.entry.js +1 -1
- package/dist/esm/arcgis-daylight.entry.js +1 -1
- package/dist/esm/arcgis-directions.entry.js +1 -1
- package/dist/esm/arcgis-directline-measurement-3d.entry.js +1 -1
- package/dist/esm/arcgis-distance-measurement-2d.entry.js +1 -1
- package/dist/esm/arcgis-editor.entry.js +1 -1
- package/dist/esm/arcgis-elevation-profile.entry.js +1 -1
- package/dist/esm/arcgis-feature-form.entry.js +1 -1
- package/dist/esm/arcgis-feature-table.entry.js +1 -1
- package/dist/esm/arcgis-feature-templates.entry.js +1 -1
- package/dist/esm/arcgis-feature.entry.js +1 -1
- package/dist/esm/arcgis-features.entry.js +1 -1
- package/dist/esm/arcgis-floor-filter.entry.js +1 -1
- package/dist/esm/arcgis-fullscreen.entry.js +1 -1
- package/dist/esm/arcgis-histogram-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-histogram.entry.js +1 -1
- package/dist/esm/arcgis-home.entry.js +1 -1
- package/dist/esm/arcgis-layer-list.entry.js +1 -1
- package/dist/esm/arcgis-legend.entry.js +1 -1
- package/dist/esm/arcgis-line-of-sight.entry.js +1 -1
- package/dist/esm/arcgis-locate.entry.js +1 -1
- package/dist/esm/arcgis-map-components.js +1 -1
- package/dist/esm/arcgis-measurement.entry.js +1 -1
- package/dist/esm/arcgis-navigation-toggle.entry.js +1 -1
- package/dist/esm/arcgis-print.entry.js +1 -1
- package/dist/esm/arcgis-scale-bar.entry.js +1 -1
- package/dist/esm/arcgis-scale-range-slider.entry.js +1 -1
- package/dist/esm/arcgis-scene.entry.js +1 -1
- package/dist/esm/arcgis-shadow-cast.entry.js +1 -1
- package/dist/esm/arcgis-sketch.entry.js +1 -1
- package/dist/esm/arcgis-slice.entry.js +1 -1
- package/dist/esm/arcgis-slider.entry.js +1 -1
- package/dist/esm/arcgis-swipe.entry.js +1 -1
- package/dist/esm/arcgis-table-list.entry.js +1 -1
- package/dist/esm/arcgis-time-slider.entry.js +1 -1
- package/dist/esm/arcgis-track.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-associations.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-trace.entry.js +1 -1
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +1 -1
- package/dist/esm/arcgis-value-picker.entry.js +1 -1
- package/dist/esm/arcgis-weather.entry.js +1 -1
- package/dist/esm/arcgis-zoom.entry.js +1 -1
- package/dist/esm/{index-0144a65b.js → index-d508cad4.js} +1 -12
- package/dist/esm/index-eb3ead33.js +0 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components.d.ts +0 -31
- package/package.json +5 -5
- package/dist/arcgis-map-components/p-0dfb2e0a.entry.js +0 -1
- package/dist/arcgis-map-components/p-4bfb7b9b.entry.js +0 -1
- package/dist/arcgis-map-components/p-d781fd72.entry.js +0 -1
- package/dist/arcgis-map-components/p-e2c852f0.js +0 -1
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +0 -100
- package/dist/components/arcgis-directional-pad.d.ts +0 -11
- package/dist/components/arcgis-directional-pad.js +0 -126
- package/dist/esm/arcgis-directional-pad.entry.js +0 -96
- package/dist/types/components/arcgis-directional-pad/arcgis-directional-pad.d.ts +0 -29
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
3
|
"description": "ArcGIS Map Components",
|
|
4
|
-
"version": "4.28.0-beta.
|
|
4
|
+
"version": "4.28.0-beta.27",
|
|
5
5
|
"module": "dist/components/index.js",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@stencil/core": "2.22.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@arcgis/components-plugins": "4.28.0-beta.
|
|
56
|
-
"@arcgis/core": "rc",
|
|
57
|
-
"@arcgis/core-adapter": "4.28.0-beta.
|
|
55
|
+
"@arcgis/components-plugins": "4.28.0-beta.27",
|
|
56
|
+
"@arcgis/core": ">=4.28.0-rc <4.29",
|
|
57
|
+
"@arcgis/core-adapter": "4.28.0-beta.27",
|
|
58
58
|
"@arcgis/eslint-config": "1.0.0",
|
|
59
59
|
"@arcgis/typescript-config": "1.0.0",
|
|
60
60
|
"@esri/calcite-components": "^1.8.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"@arcgis/core": ">=4.28.0-rc <4.29",
|
|
88
88
|
"@esri/calcite-components": ">=1.7.0 <2.0.0"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "126b4b71095515535c3488294c023469ea880c29"
|
|
91
91
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,g as r}from"./p-1e5e5ed9.js";import{h as e}from"./p-e2c852f0.js";import{c as h,o as a}from"./p-b813c9e6.js";const c=class{constructor(i){t(this,i),this.widgetReady=s(this,"widgetReady",7),this.referenceElement=void 0,this.position="bottom-left",this.expandable=!1,this.graphic=void 0,this.widget=void 0}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}async componentDidLoad(){const t=this._createParams(),s=await e(t);this.widget=s,this.widgetReady.emit({widget:this.widget}),h(this)}disconnectedCallback(){a(this)}render(){return this.expandable?i("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},i("div",{ref:t=>this.childElem=t})):i("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return this.graphic&&(t.graphic=this.graphic),t}get el(){return r(this)}static get watchers(){return{graphic:["graphicWatcher"]}}};c.style="";export{c as arcgis_attachments}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{r}from"./p-e2c852f0.js";import{u as a,c as h}from"./p-2d3406f7.js";import{o}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.visualScale=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}visualScaleWatcher(t){void 0!==t&&this.widget&&(this.widget.visualScale=t)}referenceElementWatcher(t){"string"==typeof t?a(t).then((t=>{this.widget.view=t})):void 0!==t&&this.widget&&(this.widget.view=t.view)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this.widgetReady.emit({widget:this.widget}),h(this)}disconnectedCallback(){o(this)}render(){return this.expandable?s("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},s("div",{ref:t=>this.childElem=t})):s("div",{ref:t=>this.childElem=t})}_createParams(){const t={container:this.childElem};return void 0!==this.visualScale&&(t.visualScale=this.visualScale),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],visualScale:["visualScaleWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-directional-pad{}";export{c as arcgis_directional_pad}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{a0 as h,i as o}from"./p-e2c852f0.js";import{r as a,c as r}from"./p-2d3406f7.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(s){t(this,s),this.trackComplete=i(this,"trackComplete",7),this.trackError=i(this,"trackError",7),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.geolocationOptions=void 0,this.goToLocationEnabled=void 0,this.graphic=void 0,this.scale=void 0,this.tracking=void 0,this.useHeadingEnabled=void 0,this.position="bottom-left",this.view=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}geolocationOptionsWatcher(t){void 0!==t&&this.widget&&(this.widget.geolocationOptions=t)}goToLocationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.goToLocationEnabled=t)}graphicWatcher(t){void 0!==t&&this.widget&&(this.widget.graphic=t)}scaleWatcher(t){void 0!==t&&this.widget&&(this.widget.scale=t)}useHeadingEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.useHeadingEnabled=t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit({widget:this.widget}),r(this)}disconnectedCallback(){c(this)}render(){return s("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await o();t((()=>this.widget.tracking),(t=>this.tracking=t),{initial:!0})}_createParams(){const t={container:this.childElem};return void 0!==this.geolocationOptions&&(t.geolocationOptions=this.geolocationOptions),void 0!==this.goToLocationEnabled&&(t.goToLocationEnabled=this.goToLocationEnabled),void 0!==this.graphic&&(t.graphic=this.graphic),void 0!==this.useHeadingEnabled&&(t.useHeadingEnabled=this.useHeadingEnabled),void 0!==this.scale&&(t.scale=this.scale),this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("track",(t=>this.trackComplete.emit(t))),this.widget.on("track-error",(t=>this.trackError.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],geolocationOptions:["geolocationOptionsWatcher"],goToLocationEnabled:["goToLocationEnabledWatcher"],graphic:["graphicWatcher"],scale:["scaleWatcher"],useHeadingEnabled:["useHeadingEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="";export{n as arcgis_track}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i="define"in window&&"function"==typeof window.define&&"amd"in window.define;function t(i){return new Promise((t=>window.require([i],(i=>{t(i)}))))}async function a(a){return new(await async function(){return i?t("esri/layers/FeatureLayer"):(await import("@arcgis/core/layers/FeatureLayer.js")).default}())(a)}async function e(a){return new(await async function(){return i?t("esri/layers/GraphicsLayer"):(await import("@arcgis/core/layers/GraphicsLayer.js")).default}())(a)}async function n(a){return new(await async function(){return i?t("esri/layers/RouteLayer"):(await import("@arcgis/core/layers/RouteLayer.js")).default}())(a)}async function r(a){return new(await async function(){return i?t("esri/views/MapView"):(await import("@arcgis/core/views/MapView.js")).default}())(a)}async function s(a){return new(await async function(){return i?t("esri/views/SceneView"):(await import("@arcgis/core/views/SceneView.js")).default}())(a)}async function c(a){return new(await async function(){return i?t("esri/WebMap"):(await import("@arcgis/core/WebMap.js")).default}())(a)}async function o(a){return new(await async function(){return i?t("esri/WebScene"):(await import("@arcgis/core/WebScene.js")).default}())(a)}async function w(a){return new(await async function(){return i?t("esri/widgets/AreaMeasurement2D"):(await import("@arcgis/core/widgets/AreaMeasurement2D.js")).default}())(a)}async function u(a){return new(await async function(){return i?t("esri/widgets/AreaMeasurement3D"):(await import("@arcgis/core/widgets/AreaMeasurement3D.js")).default}())(a)}async function g(a){return new(await async function(){return i?t("esri/widgets/Attachments"):(await import("@arcgis/core/widgets/Attachments.js")).default}())(a)}async function y(a){return new(await async function(){return i?t("esri/widgets/BasemapGallery"):(await import("@arcgis/core/widgets/BasemapGallery.js")).default}())(a)}async function d(a){return new(await async function(){return i?t("esri/widgets/BasemapLayerList"):(await import("@arcgis/core/widgets/BasemapLayerList.js")).default}())(a)}async function f(a){return new(await async function(){return i?t("esri/widgets/BasemapToggle"):(await import("@arcgis/core/widgets/BasemapToggle.js")).default}())(a)}async function m(a){return new(await async function(){return i?t("esri/widgets/Bookmarks"):(await import("@arcgis/core/widgets/Bookmarks.js")).default}())(a)}async function p(a){return new(await async function(){return i?t("esri/widgets/BuildingExplorer"):(await import("@arcgis/core/widgets/BuildingExplorer.js")).default}())(a)}async function l(a){return new(await async function(){return i?t("esri/widgets/Compass"):(await import("@arcgis/core/widgets/Compass.js")).default}())(a)}async function j(a){return new(await async function(){return i?t("esri/widgets/CoordinateConversion"):(await import("@arcgis/core/widgets/CoordinateConversion.js")).default}())(a)}async function S(a){return new(await async function(){return i?t("esri/widgets/Daylight"):(await import("@arcgis/core/widgets/Daylight.js")).default}())(a)}async function L(a){return new(await async function(){return i?t("esri/widgets/DirectionalPad"):(await import("@arcgis/core/widgets/DirectionalPad.js")).default}())(a)}async function F(a){return new(await async function(){return i?t("esri/widgets/Directions"):(await import("@arcgis/core/widgets/Directions.js")).default}())(a)}async function D(a){return new(await async function(){return i?t("esri/widgets/DirectLineMeasurement3D"):(await import("@arcgis/core/widgets/DirectLineMeasurement3D.js")).default}())(a)}async function T(a){return new(await async function(){return i?t("esri/widgets/DistanceMeasurement2D"):(await import("@arcgis/core/widgets/DistanceMeasurement2D.js")).default}())(a)}async function h(a){return new(await async function(){return i?t("esri/widgets/Editor"):(await import("@arcgis/core/widgets/Editor.js")).default}())(a)}async function k(a){return new(await async function(){return i?t("esri/widgets/ElevationProfile"):(await import("@arcgis/core/widgets/ElevationProfile.js")).default}())(a)}async function M(a){return new(await async function(){return i?t("esri/widgets/Expand"):(await import("@arcgis/core/widgets/Expand.js")).default}())(a)}async function v(a){return new(await async function(){return i?t("esri/widgets/Feature"):(await import("@arcgis/core/widgets/Feature.js")).default}())(a)}async function B(a){return new(await async function(){return i?t("esri/widgets/FeatureForm"):(await import("@arcgis/core/widgets/FeatureForm.js")).default}())(a)}async function P(a){return new(await async function(){return i?t("esri/widgets/Features"):(await import("@arcgis/core/widgets/Features.js")).default}())(a)}async function b(a){return new(await async function(){return i?t("esri/widgets/FeatureTable"):(await import("@arcgis/core/widgets/FeatureTable.js")).default}())(a)}async function A(a){return new(await async function(){return i?t("esri/widgets/FeatureTemplates"):(await import("@arcgis/core/widgets/FeatureTemplates.js")).default}())(a)}async function C(a){return new(await async function(){return i?t("esri/widgets/FloorFilter"):(await import("@arcgis/core/widgets/FloorFilter.js")).default}())(a)}async function E(a){return new(await async function(){return i?t("esri/widgets/Fullscreen"):(await import("@arcgis/core/widgets/Fullscreen.js")).default}())(a)}async function N(a){return new(await async function(){return i?t("esri/widgets/Histogram"):(await import("@arcgis/core/widgets/Histogram.js")).default}())(a)}async function U(a){return new(await async function(){return i?t("esri/widgets/HistogramRangeSlider"):(await import("@arcgis/core/widgets/HistogramRangeSlider.js")).default}())(a)}async function V(a){return new(await async function(){return i?t("esri/widgets/Home"):(await import("@arcgis/core/widgets/Home.js")).default}())(a)}async function H(a){return new(await async function(){return i?t("esri/widgets/LayerList"):(await import("@arcgis/core/widgets/LayerList.js")).default}())(a)}async function R(a){return new(await async function(){return i?t("esri/widgets/Legend"):(await import("@arcgis/core/widgets/Legend.js")).default}())(a)}async function W(a){return new(await async function(){return i?t("esri/widgets/LineOfSight"):(await import("@arcgis/core/widgets/LineOfSight.js")).default}())(a)}async function x(a){return new(await async function(){return i?t("esri/widgets/Locate"):(await import("@arcgis/core/widgets/Locate.js")).default}())(a)}async function G(a){return new(await async function(){return i?t("esri/widgets/Measurement"):(await import("@arcgis/core/widgets/Measurement.js")).default}())(a)}async function O(a){return new(await async function(){return i?t("esri/widgets/NavigationToggle"):(await import("@arcgis/core/widgets/NavigationToggle.js")).default}())(a)}async function Z(a){return new(await async function(){return i?t("esri/widgets/Print"):(await import("@arcgis/core/widgets/Print.js")).default}())(a)}async function q(a){return new(await async function(){return i?t("esri/widgets/ScaleBar"):(await import("@arcgis/core/widgets/ScaleBar.js")).default}())(a)}async function z(a){return new(await async function(){return i?t("esri/widgets/ScaleRangeSlider"):(await import("@arcgis/core/widgets/ScaleRangeSlider.js")).default}())(a)}async function I(a){return new(await async function(){return i?t("esri/widgets/Search"):(await import("@arcgis/core/widgets/Search.js")).default}())(a)}async function J(a){return new(await async function(){return i?t("esri/widgets/ShadowCast"):(await import("@arcgis/core/widgets/ShadowCast.js")).default}())(a)}async function K(a){return new(await async function(){return i?t("esri/widgets/Sketch"):(await import("@arcgis/core/widgets/Sketch.js")).default}())(a)}async function Q(a){return new(await async function(){return i?t("esri/widgets/Slice"):(await import("@arcgis/core/widgets/Slice.js")).default}())(a)}async function X(a){return new(await async function(){return i?t("esri/widgets/Slider"):(await import("@arcgis/core/widgets/Slider.js")).default}())(a)}async function Y(a){return new(await async function(){return i?t("esri/widgets/Swipe"):(await import("@arcgis/core/widgets/Swipe.js")).default}())(a)}async function $(a){return new(await async function(){return i?t("esri/widgets/TableList"):(await import("@arcgis/core/widgets/TableList.js")).default}())(a)}async function _(a){return new(await async function(){return i?t("esri/widgets/TimeSlider"):(await import("@arcgis/core/widgets/TimeSlider.js")).default}())(a)}async function ii(a){return new(await async function(){return i?t("esri/widgets/Track"):(await import("@arcgis/core/widgets/Track.js")).default}())(a)}async function ti(a){return new(await async function(){return i?t("esri/widgets/UtilityNetworkAssociations"):(await import("@arcgis/core/widgets/UtilityNetworkAssociations.js")).default}())(a)}async function ai(a){return new(await async function(){return i?t("esri/widgets/UtilityNetworkTrace"):(await import("@arcgis/core/widgets/UtilityNetworkTrace.js")).default}())(a)}async function ei(a){return new(await async function(){return i?t("esri/widgets/UtilityNetworkValidateTopology"):(await import("@arcgis/core/widgets/UtilityNetworkValidateTopology.js")).default}())(a)}async function ni(a){return new(await async function(){return i?t("esri/widgets/ValuePicker"):(await import("@arcgis/core/widgets/ValuePicker.js")).default}())(a)}async function ri(a){return new(await async function(){return i?t("esri/widgets/Weather"):(await import("@arcgis/core/widgets/Weather.js")).default}())(a)}async function si(a){return new(await async function(){return i?t("esri/widgets/Zoom"):(await import("@arcgis/core/widgets/Zoom.js")).default}())(a)}async function ci(){return i?t("esri/config"):(await import("@arcgis/core/config.js")).default}async function oi(){return i?t("esri/core/reactiveUtils"):await import("@arcgis/core/core/reactiveUtils.js")}export{_ as $,a as A,b as B,A as C,P as D,C as E,E as F,N as G,U as H,V as I,H as J,R as K,W as L,x as M,G as N,O,Z as P,q as Q,z as R,o as S,s as T,J as U,K as V,e as W,Q as X,X as Y,Y as Z,$ as _,M as a,ii as a0,ti as a1,ai as a2,ei as a3,ni as a4,ri as a5,si as a6,ci as b,c,r as d,I as e,w as f,u as g,g as h,oi as i,d as j,f as k,m as l,p as m,y as n,l as o,j as p,S as q,L as r,n as s,F as t,D as u,T as v,h as w,k as x,v as y,B as z}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-6b51d5a0.js');
|
|
6
|
-
const index$1 = require('./index-91d6ff5b.js');
|
|
7
|
-
const componentUtils = require('./component-utils-cbd20e88.js');
|
|
8
|
-
const disconnected = require('./disconnected-306cb220.js');
|
|
9
|
-
|
|
10
|
-
const arcgisDirectionalPadCss = "arcgis-directional-pad{}";
|
|
11
|
-
|
|
12
|
-
const ArcgisDirectionalPad = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.widgetReady = index.createEvent(this, "widgetReady", 7);
|
|
16
|
-
this.referenceElement = undefined;
|
|
17
|
-
this.visualScale = undefined;
|
|
18
|
-
this.view = undefined;
|
|
19
|
-
this.position = "bottom-left";
|
|
20
|
-
this.expandable = false;
|
|
21
|
-
this.widget = undefined;
|
|
22
|
-
}
|
|
23
|
-
//--------------------------------------------------------------------------
|
|
24
|
-
//
|
|
25
|
-
// Watchers
|
|
26
|
-
//
|
|
27
|
-
//--------------------------------------------------------------------------
|
|
28
|
-
positionWatcher(newValue) {
|
|
29
|
-
if (newValue !== undefined && this.widget) {
|
|
30
|
-
if (typeof this.view !== "string") {
|
|
31
|
-
this.view.ui.move(this.childElem, newValue);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
visualScaleWatcher(newValue) {
|
|
36
|
-
if (newValue !== undefined && this.widget) {
|
|
37
|
-
this.widget.visualScale = newValue;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
referenceElementWatcher(newValue) {
|
|
41
|
-
if (typeof newValue === "string") {
|
|
42
|
-
componentUtils.updateForView(newValue).then((view) => {
|
|
43
|
-
this.widget.view = view;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
else if (newValue !== undefined && this.widget) {
|
|
47
|
-
this.widget.view = newValue.view;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
viewWatcher(newValue) {
|
|
51
|
-
if (newValue !== undefined && this.widget) {
|
|
52
|
-
this.widget.view = newValue;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//--------------------------------------------------------------------------
|
|
56
|
-
//
|
|
57
|
-
// Lifecycle
|
|
58
|
-
//
|
|
59
|
-
//--------------------------------------------------------------------------
|
|
60
|
-
async componentDidLoad() {
|
|
61
|
-
const params = this._createParams();
|
|
62
|
-
const widget = await index$1.newWidgetsDirectionalPad(params);
|
|
63
|
-
this.widget = widget;
|
|
64
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
65
|
-
componentUtils.checkForView(this);
|
|
66
|
-
}
|
|
67
|
-
disconnectedCallback() {
|
|
68
|
-
disconnected.onDisconnectedHelper(this);
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
if (this.expandable) {
|
|
72
|
-
return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
|
|
73
|
-
}
|
|
74
|
-
return index.h("div", { ref: (el) => (this.childElem = el) });
|
|
75
|
-
}
|
|
76
|
-
//--------------------------------------------------------------------------
|
|
77
|
-
//
|
|
78
|
-
// Private Methods
|
|
79
|
-
//
|
|
80
|
-
//--------------------------------------------------------------------------
|
|
81
|
-
_createParams() {
|
|
82
|
-
const params = {
|
|
83
|
-
container: this.childElem
|
|
84
|
-
};
|
|
85
|
-
if (this.visualScale !== undefined) {
|
|
86
|
-
params.visualScale = this.visualScale;
|
|
87
|
-
}
|
|
88
|
-
return params;
|
|
89
|
-
}
|
|
90
|
-
get el() { return index.getElement(this); }
|
|
91
|
-
static get watchers() { return {
|
|
92
|
-
"position": ["positionWatcher"],
|
|
93
|
-
"visualScale": ["visualScaleWatcher"],
|
|
94
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
95
|
-
"view": ["viewWatcher"]
|
|
96
|
-
}; }
|
|
97
|
-
};
|
|
98
|
-
ArcgisDirectionalPad.style = arcgisDirectionalPadCss;
|
|
99
|
-
|
|
100
|
-
exports.arcgis_directional_pad = ArcgisDirectionalPad;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface ArcgisDirectionalPad extends Components.ArcgisDirectionalPad, HTMLElement {}
|
|
4
|
-
export const ArcgisDirectionalPad: {
|
|
5
|
-
prototype: ArcgisDirectionalPad;
|
|
6
|
-
new (): ArcgisDirectionalPad;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { l as newWidgetsDirectionalPad } from './index2.js';
|
|
3
|
-
import { u as updateForView, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDirectionalPadCss = "arcgis-directional-pad{}";
|
|
7
|
-
|
|
8
|
-
const ArcgisDirectionalPad$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
-
this.referenceElement = undefined;
|
|
14
|
-
this.visualScale = undefined;
|
|
15
|
-
this.view = undefined;
|
|
16
|
-
this.position = "bottom-left";
|
|
17
|
-
this.expandable = false;
|
|
18
|
-
this.widget = undefined;
|
|
19
|
-
}
|
|
20
|
-
//--------------------------------------------------------------------------
|
|
21
|
-
//
|
|
22
|
-
// Watchers
|
|
23
|
-
//
|
|
24
|
-
//--------------------------------------------------------------------------
|
|
25
|
-
positionWatcher(newValue) {
|
|
26
|
-
if (newValue !== undefined && this.widget) {
|
|
27
|
-
if (typeof this.view !== "string") {
|
|
28
|
-
this.view.ui.move(this.childElem, newValue);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
visualScaleWatcher(newValue) {
|
|
33
|
-
if (newValue !== undefined && this.widget) {
|
|
34
|
-
this.widget.visualScale = newValue;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
referenceElementWatcher(newValue) {
|
|
38
|
-
if (typeof newValue === "string") {
|
|
39
|
-
updateForView(newValue).then((view) => {
|
|
40
|
-
this.widget.view = view;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
else if (newValue !== undefined && this.widget) {
|
|
44
|
-
this.widget.view = newValue.view;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
viewWatcher(newValue) {
|
|
48
|
-
if (newValue !== undefined && this.widget) {
|
|
49
|
-
this.widget.view = newValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
//--------------------------------------------------------------------------
|
|
53
|
-
//
|
|
54
|
-
// Lifecycle
|
|
55
|
-
//
|
|
56
|
-
//--------------------------------------------------------------------------
|
|
57
|
-
async componentDidLoad() {
|
|
58
|
-
const params = this._createParams();
|
|
59
|
-
const widget = await newWidgetsDirectionalPad(params);
|
|
60
|
-
this.widget = widget;
|
|
61
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
62
|
-
checkForView(this);
|
|
63
|
-
}
|
|
64
|
-
disconnectedCallback() {
|
|
65
|
-
onDisconnectedHelper(this);
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
if (this.expandable) {
|
|
69
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
70
|
-
}
|
|
71
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
72
|
-
}
|
|
73
|
-
//--------------------------------------------------------------------------
|
|
74
|
-
//
|
|
75
|
-
// Private Methods
|
|
76
|
-
//
|
|
77
|
-
//--------------------------------------------------------------------------
|
|
78
|
-
_createParams() {
|
|
79
|
-
const params = {
|
|
80
|
-
container: this.childElem
|
|
81
|
-
};
|
|
82
|
-
if (this.visualScale !== undefined) {
|
|
83
|
-
params.visualScale = this.visualScale;
|
|
84
|
-
}
|
|
85
|
-
return params;
|
|
86
|
-
}
|
|
87
|
-
get el() { return this; }
|
|
88
|
-
static get watchers() { return {
|
|
89
|
-
"position": ["positionWatcher"],
|
|
90
|
-
"visualScale": ["visualScaleWatcher"],
|
|
91
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
92
|
-
"view": ["viewWatcher"]
|
|
93
|
-
}; }
|
|
94
|
-
static get style() { return arcgisDirectionalPadCss; }
|
|
95
|
-
}, [0, "arcgis-directional-pad", {
|
|
96
|
-
"referenceElement": [1, "reference-element"],
|
|
97
|
-
"visualScale": [1, "visual-scale"],
|
|
98
|
-
"view": [1040],
|
|
99
|
-
"position": [1],
|
|
100
|
-
"expandable": [4],
|
|
101
|
-
"widget": [1040]
|
|
102
|
-
}]);
|
|
103
|
-
function defineCustomElement$1() {
|
|
104
|
-
if (typeof customElements === "undefined") {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const components = ["arcgis-directional-pad", "arcgis-expand"];
|
|
108
|
-
components.forEach(tagName => { switch (tagName) {
|
|
109
|
-
case "arcgis-directional-pad":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
customElements.define(tagName, ArcgisDirectionalPad$1);
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "arcgis-expand":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$2();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
} });
|
|
120
|
-
}
|
|
121
|
-
defineCustomElement$1();
|
|
122
|
-
|
|
123
|
-
const ArcgisDirectionalPad = ArcgisDirectionalPad$1;
|
|
124
|
-
const defineCustomElement = defineCustomElement$1;
|
|
125
|
-
|
|
126
|
-
export { ArcgisDirectionalPad, defineCustomElement };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-eb3ead33.js';
|
|
2
|
-
import { r as newWidgetsDirectionalPad } from './index-0144a65b.js';
|
|
3
|
-
import { u as updateForView, c as checkForView } from './component-utils-2ebdae59.js';
|
|
4
|
-
import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
|
|
5
|
-
|
|
6
|
-
const arcgisDirectionalPadCss = "arcgis-directional-pad{}";
|
|
7
|
-
|
|
8
|
-
const ArcgisDirectionalPad = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
-
this.referenceElement = undefined;
|
|
13
|
-
this.visualScale = undefined;
|
|
14
|
-
this.view = undefined;
|
|
15
|
-
this.position = "bottom-left";
|
|
16
|
-
this.expandable = false;
|
|
17
|
-
this.widget = undefined;
|
|
18
|
-
}
|
|
19
|
-
//--------------------------------------------------------------------------
|
|
20
|
-
//
|
|
21
|
-
// Watchers
|
|
22
|
-
//
|
|
23
|
-
//--------------------------------------------------------------------------
|
|
24
|
-
positionWatcher(newValue) {
|
|
25
|
-
if (newValue !== undefined && this.widget) {
|
|
26
|
-
if (typeof this.view !== "string") {
|
|
27
|
-
this.view.ui.move(this.childElem, newValue);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
visualScaleWatcher(newValue) {
|
|
32
|
-
if (newValue !== undefined && this.widget) {
|
|
33
|
-
this.widget.visualScale = newValue;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
referenceElementWatcher(newValue) {
|
|
37
|
-
if (typeof newValue === "string") {
|
|
38
|
-
updateForView(newValue).then((view) => {
|
|
39
|
-
this.widget.view = view;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
else if (newValue !== undefined && this.widget) {
|
|
43
|
-
this.widget.view = newValue.view;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
viewWatcher(newValue) {
|
|
47
|
-
if (newValue !== undefined && this.widget) {
|
|
48
|
-
this.widget.view = newValue;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
//--------------------------------------------------------------------------
|
|
52
|
-
//
|
|
53
|
-
// Lifecycle
|
|
54
|
-
//
|
|
55
|
-
//--------------------------------------------------------------------------
|
|
56
|
-
async componentDidLoad() {
|
|
57
|
-
const params = this._createParams();
|
|
58
|
-
const widget = await newWidgetsDirectionalPad(params);
|
|
59
|
-
this.widget = widget;
|
|
60
|
-
this.widgetReady.emit({ widget: this.widget });
|
|
61
|
-
checkForView(this);
|
|
62
|
-
}
|
|
63
|
-
disconnectedCallback() {
|
|
64
|
-
onDisconnectedHelper(this);
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
if (this.expandable) {
|
|
68
|
-
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
69
|
-
}
|
|
70
|
-
return h("div", { ref: (el) => (this.childElem = el) });
|
|
71
|
-
}
|
|
72
|
-
//--------------------------------------------------------------------------
|
|
73
|
-
//
|
|
74
|
-
// Private Methods
|
|
75
|
-
//
|
|
76
|
-
//--------------------------------------------------------------------------
|
|
77
|
-
_createParams() {
|
|
78
|
-
const params = {
|
|
79
|
-
container: this.childElem
|
|
80
|
-
};
|
|
81
|
-
if (this.visualScale !== undefined) {
|
|
82
|
-
params.visualScale = this.visualScale;
|
|
83
|
-
}
|
|
84
|
-
return params;
|
|
85
|
-
}
|
|
86
|
-
get el() { return getElement(this); }
|
|
87
|
-
static get watchers() { return {
|
|
88
|
-
"position": ["positionWatcher"],
|
|
89
|
-
"visualScale": ["visualScaleWatcher"],
|
|
90
|
-
"referenceElement": ["referenceElementWatcher"],
|
|
91
|
-
"view": ["viewWatcher"]
|
|
92
|
-
}; }
|
|
93
|
-
};
|
|
94
|
-
ArcgisDirectionalPad.style = arcgisDirectionalPadCss;
|
|
95
|
-
|
|
96
|
-
export { ArcgisDirectionalPad as arcgis_directional_pad };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import type DirectionalPad from "@arcgis/core/widgets/DirectionalPad";
|
|
3
|
-
import { VNode } from "../../stencil-public-runtime";
|
|
4
|
-
import { ArcgisReferenceElement } from "../../utils/component-utils";
|
|
5
|
-
import { ExpandableComponent } from "../../utils/expandable";
|
|
6
|
-
import { ArcGISMapView } from "../types";
|
|
7
|
-
export type DirectionalPadWidget = InstanceType<typeof DirectionalPad>;
|
|
8
|
-
export declare class ArcgisDirectionalPad implements ExpandableComponent {
|
|
9
|
-
el: HTMLDivElement;
|
|
10
|
-
childElem: HTMLDivElement;
|
|
11
|
-
expandElem: HTMLArcgisExpandElement;
|
|
12
|
-
referenceElement: ArcgisReferenceElement | string;
|
|
13
|
-
visualScale: DirectionalPadWidget["visualScale"];
|
|
14
|
-
view: ArcGISMapView;
|
|
15
|
-
position: string;
|
|
16
|
-
expandable: boolean;
|
|
17
|
-
widget: DirectionalPadWidget;
|
|
18
|
-
widgetReady: EventEmitter<{
|
|
19
|
-
widget: __esri.DirectionalPad;
|
|
20
|
-
}>;
|
|
21
|
-
positionWatcher(newValue: string): void;
|
|
22
|
-
visualScaleWatcher(newValue: DirectionalPadWidget["visualScale"]): void;
|
|
23
|
-
referenceElementWatcher(newValue: ArcgisReferenceElement | string): void;
|
|
24
|
-
viewWatcher(newValue: ArcGISMapView): void;
|
|
25
|
-
componentDidLoad(): Promise<void>;
|
|
26
|
-
disconnectedCallback(): void;
|
|
27
|
-
render(): VNode;
|
|
28
|
-
private _createParams;
|
|
29
|
-
}
|