@arcgis/map-components 4.28.0-beta.16 → 4.28.0-beta.18

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 (172) hide show
  1. package/dist/arcgis-map-components/arcgis-map-components.esm.js +1 -1
  2. package/dist/arcgis-map-components/{p-1276eb62.entry.js → p-0242af60.entry.js} +1 -1
  3. package/dist/arcgis-map-components/{p-6609ee7e.entry.js → p-03b5251f.entry.js} +1 -1
  4. package/dist/arcgis-map-components/{p-b1c703e3.entry.js → p-0936e80b.entry.js} +1 -1
  5. package/dist/arcgis-map-components/{p-b0a38600.entry.js → p-13e6a7d8.entry.js} +1 -1
  6. package/dist/arcgis-map-components/{p-6364554a.entry.js → p-13f54a3d.entry.js} +1 -1
  7. package/dist/arcgis-map-components/{p-b2243bb7.entry.js → p-1ad8b180.entry.js} +1 -1
  8. package/dist/arcgis-map-components/{p-0d840d8a.js → p-22fc56c8.js} +1 -1
  9. package/dist/arcgis-map-components/p-33cb8b14.entry.js +1 -0
  10. package/dist/arcgis-map-components/{p-c56960fd.entry.js → p-3c808d29.entry.js} +1 -1
  11. package/dist/arcgis-map-components/{p-30699f92.entry.js → p-3f59a46a.entry.js} +1 -1
  12. package/dist/arcgis-map-components/{p-b00e54a6.entry.js → p-3f877201.entry.js} +1 -1
  13. package/dist/arcgis-map-components/{p-86df43b4.entry.js → p-414430ed.entry.js} +1 -1
  14. package/dist/arcgis-map-components/{p-2fc502aa.entry.js → p-47b01830.entry.js} +1 -1
  15. package/dist/arcgis-map-components/{p-c97b580e.entry.js → p-4a77113b.entry.js} +1 -1
  16. package/dist/arcgis-map-components/{p-277f095a.entry.js → p-4b5deb57.entry.js} +1 -1
  17. package/dist/arcgis-map-components/p-4fe58b25.entry.js +1 -0
  18. package/dist/arcgis-map-components/p-51f8744c.entry.js +1 -0
  19. package/dist/arcgis-map-components/p-5db42e63.entry.js +1 -0
  20. package/dist/arcgis-map-components/{p-7d5d1afb.entry.js → p-5e3d16a0.entry.js} +1 -1
  21. package/dist/arcgis-map-components/p-6408870b.entry.js +1 -0
  22. package/dist/arcgis-map-components/{p-98bd22de.entry.js → p-6749a599.entry.js} +1 -1
  23. package/dist/arcgis-map-components/p-697a71a7.entry.js +1 -0
  24. package/dist/arcgis-map-components/{p-4117bf34.entry.js → p-6b479b72.entry.js} +1 -1
  25. package/dist/arcgis-map-components/{p-127d4102.entry.js → p-6c66cdcb.entry.js} +1 -1
  26. package/dist/arcgis-map-components/{p-179177e6.entry.js → p-7873dbf3.entry.js} +1 -1
  27. package/dist/arcgis-map-components/{p-0a37ebc1.entry.js → p-78e77f3b.entry.js} +1 -1
  28. package/dist/arcgis-map-components/p-89b1cd22.entry.js +1 -0
  29. package/dist/arcgis-map-components/{p-fdcc3045.entry.js → p-8f42c1d8.entry.js} +1 -1
  30. package/dist/arcgis-map-components/{p-3fc12c14.entry.js → p-9e08ec68.entry.js} +1 -1
  31. package/dist/arcgis-map-components/{p-731670a5.entry.js → p-9fde7a15.entry.js} +1 -1
  32. package/dist/arcgis-map-components/{p-08c65582.entry.js → p-a112eadb.entry.js} +1 -1
  33. package/dist/arcgis-map-components/{p-d23633b7.entry.js → p-a89496a7.entry.js} +1 -1
  34. package/dist/arcgis-map-components/{p-b75e9f5b.entry.js → p-acc2e85a.entry.js} +1 -1
  35. package/dist/arcgis-map-components/{p-da3a4c81.entry.js → p-af824cf7.entry.js} +1 -1
  36. package/dist/arcgis-map-components/{p-d23149d2.entry.js → p-b9fd5532.entry.js} +1 -1
  37. package/dist/arcgis-map-components/p-bb953d4e.entry.js +1 -0
  38. package/dist/arcgis-map-components/{p-957785b7.entry.js → p-bd14245a.entry.js} +1 -1
  39. package/dist/arcgis-map-components/{p-a87f8978.entry.js → p-bdd98302.entry.js} +1 -1
  40. package/dist/arcgis-map-components/{p-261995ff.entry.js → p-c657ea3a.entry.js} +1 -1
  41. package/dist/arcgis-map-components/{p-5eefc469.entry.js → p-cb795f29.entry.js} +1 -1
  42. package/dist/arcgis-map-components/{p-63d2e224.entry.js → p-cb8dd459.entry.js} +1 -1
  43. package/dist/arcgis-map-components/{p-7b5802c0.entry.js → p-d94df2de.entry.js} +1 -1
  44. package/dist/arcgis-map-components/{p-79b4b71b.entry.js → p-df745cb2.entry.js} +1 -1
  45. package/dist/arcgis-map-components/{p-8cb11200.entry.js → p-e01bdc7d.entry.js} +1 -1
  46. package/dist/arcgis-map-components/{p-1fefe50e.entry.js → p-e12442a4.entry.js} +1 -1
  47. package/dist/arcgis-map-components/{p-a1b3960f.entry.js → p-e1742407.entry.js} +1 -1
  48. package/dist/arcgis-map-components/{p-f6bfc95a.entry.js → p-f3ec85f2.entry.js} +1 -1
  49. package/dist/arcgis-map-components/{p-dfd70b03.entry.js → p-f6ff546b.entry.js} +1 -1
  50. package/dist/arcgis-map-components/{p-ae817fb1.entry.js → p-fa9fd142.entry.js} +1 -1
  51. package/dist/arcgis-map-components/{p-3de0e8b3.entry.js → p-faf08bf1.entry.js} +1 -1
  52. package/dist/arcgis-map-components/{p-1a619284.entry.js → p-fd06e0e1.entry.js} +1 -1
  53. package/dist/arcgis-map-components/{p-fb566956.entry.js → p-fe144585.entry.js} +1 -1
  54. package/dist/cjs/{arcgis-search.cjs.entry.js → arcgis-basemap-gallery_4.cjs.entry.js} +272 -0
  55. package/dist/cjs/arcgis-map-components.cjs.js +1 -1
  56. package/dist/cjs/index-6b51d5a0.js +2 -6
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/components/arcgis-area-measurement-2d.js +1 -1
  59. package/dist/components/arcgis-area-measurement-3d.js +1 -1
  60. package/dist/components/arcgis-basemap-gallery.js +1 -1
  61. package/dist/components/arcgis-basemap-layer-list.js +1 -1
  62. package/dist/components/arcgis-basemap-toggle.js +1 -1
  63. package/dist/components/arcgis-bookmarks.js +1 -1
  64. package/dist/components/arcgis-building-explorer.js +1 -1
  65. package/dist/components/arcgis-compass.js +1 -1
  66. package/dist/components/arcgis-coordinate-conversion.js +1 -1
  67. package/dist/components/arcgis-daylight.js +1 -1
  68. package/dist/components/arcgis-directional-pad.js +1 -1
  69. package/dist/components/arcgis-directions.js +1 -1
  70. package/dist/components/arcgis-directline-measurement-3d.js +1 -1
  71. package/dist/components/arcgis-distance-measurement-2d.js +1 -1
  72. package/dist/components/arcgis-editor.js +1 -1
  73. package/dist/components/arcgis-elevation-profile.js +1 -1
  74. package/dist/components/arcgis-expand2.js +1 -1
  75. package/dist/components/arcgis-feature-table.js +1 -1
  76. package/dist/components/arcgis-feature.js +1 -1
  77. package/dist/components/arcgis-features.js +1 -1
  78. package/dist/components/arcgis-floor-filter.js +1 -1
  79. package/dist/components/arcgis-fullscreen.js +1 -1
  80. package/dist/components/arcgis-home.js +1 -1
  81. package/dist/components/arcgis-layer-list.js +1 -1
  82. package/dist/components/arcgis-legend.js +1 -1
  83. package/dist/components/arcgis-line-of-sight.js +1 -1
  84. package/dist/components/arcgis-locate.js +1 -1
  85. package/dist/components/arcgis-map.js +2 -2
  86. package/dist/components/arcgis-measurement.js +1 -1
  87. package/dist/components/arcgis-navigation-toggle.js +1 -1
  88. package/dist/components/arcgis-print.js +1 -1
  89. package/dist/components/arcgis-scale-bar.js +1 -1
  90. package/dist/components/arcgis-scale-range-slider.js +1 -1
  91. package/dist/components/arcgis-scene.js +2 -2
  92. package/dist/components/arcgis-search.js +1 -1
  93. package/dist/components/arcgis-shadow-cast.js +1 -1
  94. package/dist/components/arcgis-sketch.js +1 -1
  95. package/dist/components/arcgis-slice.js +1 -1
  96. package/dist/components/arcgis-swipe.js +1 -1
  97. package/dist/components/arcgis-table-list.js +1 -1
  98. package/dist/components/arcgis-time-slider.js +1 -1
  99. package/dist/components/arcgis-track.js +1 -1
  100. package/dist/components/arcgis-utility-network-associations.js +1 -1
  101. package/dist/components/arcgis-utility-network-trace.js +1 -1
  102. package/dist/components/arcgis-utility-network-validate-topology.js +1 -1
  103. package/dist/components/arcgis-value-picker.js +1 -1
  104. package/dist/components/arcgis-weather.js +1 -1
  105. package/dist/components/arcgis-zoom.js +1 -1
  106. package/dist/esm/arcgis-area-measurement-2d.entry.js +1 -1
  107. package/dist/esm/arcgis-area-measurement-3d.entry.js +1 -1
  108. package/dist/esm/arcgis-attachments.entry.js +1 -1
  109. package/dist/esm/{arcgis-search.entry.js → arcgis-basemap-gallery_4.entry.js} +271 -2
  110. package/dist/esm/arcgis-basemap-layer-list.entry.js +1 -1
  111. package/dist/esm/arcgis-basemap-toggle.entry.js +1 -1
  112. package/dist/esm/arcgis-bookmarks.entry.js +1 -1
  113. package/dist/esm/arcgis-building-explorer.entry.js +1 -1
  114. package/dist/esm/arcgis-compass.entry.js +1 -1
  115. package/dist/esm/arcgis-coordinate-conversion.entry.js +1 -1
  116. package/dist/esm/arcgis-daylight.entry.js +1 -1
  117. package/dist/esm/arcgis-directional-pad.entry.js +1 -1
  118. package/dist/esm/arcgis-directions.entry.js +1 -1
  119. package/dist/esm/arcgis-directline-measurement-3d.entry.js +1 -1
  120. package/dist/esm/arcgis-distance-measurement-2d.entry.js +1 -1
  121. package/dist/esm/arcgis-editor.entry.js +1 -1
  122. package/dist/esm/arcgis-elevation-profile.entry.js +1 -1
  123. package/dist/esm/arcgis-feature-form.entry.js +1 -1
  124. package/dist/esm/arcgis-feature-table.entry.js +1 -1
  125. package/dist/esm/arcgis-feature-templates.entry.js +1 -1
  126. package/dist/esm/arcgis-feature.entry.js +1 -1
  127. package/dist/esm/arcgis-features.entry.js +1 -1
  128. package/dist/esm/arcgis-floor-filter.entry.js +1 -1
  129. package/dist/esm/arcgis-fullscreen.entry.js +1 -1
  130. package/dist/esm/arcgis-histogram-range-slider.entry.js +1 -1
  131. package/dist/esm/arcgis-histogram.entry.js +1 -1
  132. package/dist/esm/arcgis-home.entry.js +1 -1
  133. package/dist/esm/arcgis-layer-list.entry.js +1 -1
  134. package/dist/esm/arcgis-legend.entry.js +1 -1
  135. package/dist/esm/arcgis-line-of-sight.entry.js +1 -1
  136. package/dist/esm/arcgis-locate.entry.js +1 -1
  137. package/dist/esm/arcgis-map-components.js +1 -1
  138. package/dist/esm/arcgis-measurement.entry.js +1 -1
  139. package/dist/esm/arcgis-navigation-toggle.entry.js +1 -1
  140. package/dist/esm/arcgis-print.entry.js +1 -1
  141. package/dist/esm/arcgis-scale-bar.entry.js +1 -1
  142. package/dist/esm/arcgis-scale-range-slider.entry.js +1 -1
  143. package/dist/esm/arcgis-scene.entry.js +1 -1
  144. package/dist/esm/arcgis-shadow-cast.entry.js +1 -1
  145. package/dist/esm/arcgis-sketch.entry.js +1 -1
  146. package/dist/esm/arcgis-slice.entry.js +1 -1
  147. package/dist/esm/arcgis-slider.entry.js +1 -1
  148. package/dist/esm/arcgis-swipe.entry.js +1 -1
  149. package/dist/esm/arcgis-table-list.entry.js +1 -1
  150. package/dist/esm/arcgis-time-slider.entry.js +1 -1
  151. package/dist/esm/arcgis-track.entry.js +1 -1
  152. package/dist/esm/arcgis-utility-network-associations.entry.js +1 -1
  153. package/dist/esm/arcgis-utility-network-trace.entry.js +1 -1
  154. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +1 -1
  155. package/dist/esm/arcgis-value-picker.entry.js +1 -1
  156. package/dist/esm/arcgis-weather.entry.js +1 -1
  157. package/dist/esm/arcgis-zoom.entry.js +1 -1
  158. package/dist/esm/{index-bba27dab.js → index-800067b5.js} +1 -1
  159. package/dist/esm/index-eb3ead33.js +2 -6
  160. package/dist/esm/loader.js +1 -1
  161. package/package.json +18 -12
  162. package/dist/arcgis-map-components/p-23a160b5.entry.js +0 -1
  163. package/dist/arcgis-map-components/p-36de52a5.entry.js +0 -1
  164. package/dist/arcgis-map-components/p-a0fe6134.entry.js +0 -1
  165. package/dist/arcgis-map-components/p-cb3622cf.entry.js +0 -1
  166. package/dist/arcgis-map-components/p-cec94607.entry.js +0 -1
  167. package/dist/arcgis-map-components/p-cfff222e.entry.js +0 -1
  168. package/dist/arcgis-map-components/p-d0946ed2.entry.js +0 -1
  169. package/dist/arcgis-map-components/p-f08bed17.entry.js +0 -1
  170. package/dist/arcgis-map-components/p-ff66e8db.entry.js +0 -1
  171. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +0 -281
  172. package/dist/esm/arcgis-basemap-gallery_3.entry.js +0 -275
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.16",
4
+ "version": "4.28.0-beta.18",
5
5
  "module": "dist/components/index.js",
6
6
  "main": "dist/index.cjs.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -29,33 +29,35 @@
29
29
  },
30
30
  "license": "SEE LICENSE IN LICENSE.md",
31
31
  "scripts": {
32
- "start": "yarn pre && stencil build --dev --watch --serve",
32
+ "start": "yarn build:dev --watch --serve",
33
33
  "start:storybook": "storybook dev -c .storybook/internal -p 6007 --quiet",
34
34
  "start:external-storybook": "kill-port 6017 && storybook dev -c .storybook/external dev -p 6017 --quiet",
35
- "build": "yarn pre && stencil build",
36
- "build:dev": "yarn pre && stencil build --dev",
35
+ "watch": "yarn build:dev --watch",
36
+ "build": "yarn build:components",
37
+ "build:dev": "yarn build:components:dev",
37
38
  "build:storybook": "storybook build -c .storybook/internal --quiet",
38
- "build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet && yarn util:deploy-external-storybook",
39
- "util:deploy-external-storybook": "yarn g:shx cp -r storybook-static-external ../docs/storybook-static-external/map-components",
39
+ "build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
40
+ "build:components": "stencil build",
41
+ "build:components:dev": "stencil build --dev",
42
+ "build:composite-storybook": "yarn g:shx cp -r storybook-static-external ../docs/storybook-static-external/map-components",
40
43
  "test": "stencil test --spec --e2e",
41
44
  "test.watch": "stencil test --spec --e2e --watchAll",
42
45
  "generate": "stencil generate",
43
46
  "compress": "node ./scripts/compress.mjs",
44
47
  "create:comp": "node ./scripts/create-component.mjs",
45
- "pre": "rimraf ./dist ./www",
46
48
  "clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
47
49
  "lint": "eslint ."
48
50
  },
49
51
  "dependencies": {
50
- "@arcgis/core": ">=4.28.0-next <4.29",
51
- "@esri/calcite-components": "^1.8.0",
52
52
  "@stencil/core": "2.22.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@arcgis/components-plugins": "4.28.0-beta.16",
56
- "@arcgis/core-adapter": "4.28.0-beta.16",
55
+ "@arcgis/components-plugins": "4.28.0-beta.18",
56
+ "@arcgis/core": "next",
57
+ "@arcgis/core-adapter": "4.28.0-beta.18",
57
58
  "@arcgis/eslint-config": "1.0.0",
58
59
  "@arcgis/typescript-config": "1.0.0",
60
+ "@esri/calcite-components": "^1.8.0",
59
61
  "@stencil/angular-output-target": "0.8.1",
60
62
  "@stencil/react-output-target": "0.5.3",
61
63
  "@storybook/addon-a11y": "^7.4.5",
@@ -81,5 +83,9 @@
81
83
  "vite": "^4.4.9",
82
84
  "zlib": "^1.0.5"
83
85
  },
84
- "gitHead": "af4d6f5e5ab005bbdb887a5db8f2a0e7a1af6132"
86
+ "peerDependencies": {
87
+ "@arcgis/core": ">=4.28.0-next <4.29",
88
+ "@esri/calcite-components": ">=1.7.0 <2.0.0"
89
+ },
90
+ "gitHead": "df2eee238df910b9ac8e0fc1ac7da5fed9857390"
85
91
  }
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{o,i as r}from"./p-0d840d8a.js";import{r as h,c as a}from"./p-2d3406f7.js";import{o as n}from"./p-b813c9e6.js";const c=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.conversions=void 0,this.currentLocation=void 0,this.formats=void 0,this.locationSymbol=void 0,this.mode=void 0,this.multipleConversions=void 0,this.orientation=void 0,this.storageEnabled=void 0,this.storageType=void 0,this.position="bottom-left",this.expandable=!1,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)}conversionsWatcher(t){void 0!==t&&this.widget&&(this.widget.conversions=t)}formatsWatcher(t){void 0!==t&&this.widget&&(this.widget.formats=t)}locationSymbolWatcher(t){void 0!==t&&this.widget&&(this.widget.locationSymbol=t)}modeWatcher(t){void 0!==t&&this.widget&&(this.widget.mode=t)}multipleConversionsWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleConversions=t)}orientationWatcher(t){void 0!==t&&this.widget&&(this.widget.orientation=t)}storageEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.storageEnabled=t)}storageTypeWatcher(t){void 0!==t&&this.widget&&(this.widget.storageType=t)}referenceElementWatcher(t){h(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async reverseConvert(t,i){return this.widget?.reverseConvert(t,i)}async componentDidLoad(){const t=this._createParams(),i=await o(t);this.widget=i,await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),a(this)}disconnectedCallback(){n(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})}async _addWatchers(){const{watch:t}=await r();t((()=>this.widget.currentLocation),(t=>this.currentLocation=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],conversions:["conversionsWatcher"],formats:["formatsWatcher"],locationSymbol:["locationSymbolWatcher"],mode:["modeWatcher"],multipleConversions:["multipleConversionsWatcher"],orientation:["orientationWatcher"],storageEnabled:["storageEnabledWatcher"],storageType:["storageTypeWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="";export{c as arcgis_coordinate_conversion}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{n as h,i as a,a as r,b as c,c as o,d as n}from"./p-0d840d8a.js";import{r as d,c as p}from"./p-2d3406f7.js";import{o as m}from"./p-b813c9e6.js";import{d as v}from"./p-5cabdee7.js";const g=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.activeBasemap=void 0,this.position="bottom-left",this.expandable=!1,this.source=void 0,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)}referenceElementWatcher(t){d(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,this.widget.when((()=>{this.source=this.widget.source})),await this._addWatchers(),this.widgetReady.emit({widget:this.widget}),p(this)}disconnectedCallback(){m(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})}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.source),(()=>this.source=this.widget.source)),t((()=>this.widget.activeBasemap),(t=>this.activeBasemap=t))}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};g.style="";const w=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.position="top-right",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)}referenceElementWatcher(t){d(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async componentDidLoad(){const t=await r({container:this.childElem});this.widget=t,this.view&&(this.widget.view=this.view),this._checkForView()}disconnectedCallback(){m(this)}render(){return s("div",{ref:t=>this.childElem=t})}_checkForView(){const t=this.el.closest("arcgis-map")||this.el.closest("arcgis-scene");t?.view?(this.view=t.view,this.view.ui.add(this.childElem,this.position),this.widgetReady.emit({widget:this.widget})):t&&t.addEventListener("viewReady",(()=>{this.view=t.view,this.view.ui.add(this.childElem,this.position),this.widgetReady.emit({widget:this.widget})}),!1)}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};w.style="arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";const l=class{constructor(s){t(this,s),this.viewReady=i(this,"viewReady",7),this.apiKey=void 0,this.basemap=void 0,this.disableNavigation=!1,this.itemId=void 0,this.zoom=void 0,this.center=void 0,this.view=void 0}apiKeyWatcher(t){this.config.apiKey=t}itemIdWatcher(t,i){t&&t!==i&&this.loadMap()}async componentWillLoad(){this.config=await c(),this.apiKey&&(this.config.apiKey=this.apiKey),await this.loadMap()}componentDidRender(){this.view&&(this.view.container=this.el)}render(){return s("div",{class:"arcgis-map",ref:t=>this.el=t})}async loadMap(){const t={};this.itemId&&(t.portalItem={id:this.itemId}),this.basemap&&(t.basemap=this.basemap);const i=await o(t),s={};this.zoom&&(s.zoom=this.zoom),this.center&&(s.center="string"==typeof this.center?this.center.split(",").map((t=>Number(t))):this.center);const e=await n({map:i,...s}),{watch:h}=await a();this.view=e,h((()=>this.view.center),(t=>{this.center=`${t.longitude},${t.latitude}`})),h((()=>this.view.zoom),(t=>this.zoom=t)),this.disableNavigation&&v(this.view),this.view.when((()=>this.viewReady.emit({view:this.view})))}get hostElem(){return e(this)}static get watchers(){return{apiKey:["apiKeyWatcher"],itemId:["itemIdWatcher"]}}};l.style=".arcgis-map{padding:0;margin:0;height:100%;width:100%}";export{g as arcgis_basemap_gallery,w as arcgis_expand,l as arcgis_map}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{q as r}from"./p-0d840d8a.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 e,g as s}from"./p-1e5e5ed9.js";import{I as h,i as r}from"./p-0d840d8a.js";import{r as a,c as o}from"./p-2d3406f7.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(e){t(this,e),this.triggerActionEvent=i(this,"triggerActionEvent",7),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.multipleSelectionEnabled=void 0,this.operationalItems=void 0,this.selectedItems=void 0,this.selectionEnabled=void 0,this.position="bottom-left",this.expandable=!1,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)}multipleSelectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleSelectionEnabled=t)}selectedItemsWatcher(t){void 0!==t&&this.widget&&(this.widget.selectedItems=t)}selectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.selectionEnabled=t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async triggerAction(t,i){return this.widget?.triggerAction(t,i)}async componentDidLoad(){const t=this._createParams(),i=await h(t);this.widget=i,await this._addWatchers(),this._proxyEvents(),this.widgetReady.emit({widget:this.widget}),o(this)}disconnectedCallback(){c(this)}render(){return this.expandable?e("arcgis-expand",{position:this.position,ref:t=>this.expandElem=t},e("div",{ref:t=>this.childElem=t})):e("div",{ref:t=>this.childElem=t})}async _addWatchers(){const{watch:t}=await r();t((()=>this.widget.operationalItems),(t=>this.operationalItems=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}async _proxyEvents(){this.widget?.on("trigger-action",(t=>this.triggerActionEvent.emit(t)))}get el(){return s(this)}static get watchers(){return{position:["positionWatcher"],multipleSelectionEnabled:["multipleSelectionEnabledWatcher"],selectedItems:["selectedItemsWatcher"],selectionEnabled:["selectionEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="";export{n as arcgis_layer_list}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{T as h,i as a}from"./p-0d840d8a.js";import{r,c}from"./p-2d3406f7.js";import{o}from"./p-b813c9e6.js";const d=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.searchBlur=i(this,"searchBlur",7),this.searchClear=i(this,"searchClear",7),this.searchComplete=i(this,"searchComplete",7),this.searchFocus=i(this,"searchFocus",7),this.searchStart=i(this,"searchStart",7),this.selectResult=i(this,"selectResult",7),this.suggestComplete=i(this,"suggestComplete",7),this.suggestStart=i(this,"suggestStart",7),this.referenceElement=void 0,this.activeMenu=void 0,this.activeSource=void 0,this.activeSourceIndex=void 0,this.allPlaceholder=void 0,this.allSources=void 0,this.autoSelect=void 0,this.defaultSources=void 0,this.includeDefaultSources=void 0,this.locationEnabled=void 0,this.maxResults=void 0,this.maxSuggestions=void 0,this.minSuggestCharacters=void 0,this.popupEnabled=void 0,this.popupTemplate=void 0,this.portal=void 0,this.resultGraphic=void 0,this.resultGraphicEnabled=void 0,this.results=void 0,this.searchAllEnabled=void 0,this.searchTerm=void 0,this.selectedResult=void 0,this.sources=void 0,this.suggestions=void 0,this.suggestionsEnabled=void 0,this.position="top-right",this.expandable=!1,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)}activeMenuWatcher(t){void 0!==t&&this.widget&&(this.widget.activeMenu=t)}activeSourceIndexWatcher(t){void 0!==t&&this.widget&&(this.widget.activeSourceIndex=t)}allPlaceholderWatcher(t){void 0!==t&&this.widget&&(this.widget.allPlaceholder=t)}autoSelectWatcher(t){void 0!==t&&this.widget&&(this.widget.autoSelect=t)}includeDefaultSourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.includeDefaultSources=t)}locationEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.locationEnabled=t)}maxResultsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxResults=t)}maxSuggestionsWatcher(t){void 0!==t&&this.widget&&(this.widget.maxSuggestions=t)}minSuggestCharactersWatcher(t){void 0!==t&&this.widget&&(this.widget.minSuggestCharacters=t)}popupEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.popupEnabled=t)}popupTemplateWatcher(t){void 0!==t&&this.widget&&(this.widget.popupTemplate=t)}portalWatcher(t){void 0!==t&&this.widget&&(this.widget.portal=t)}resultGraphicEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.resultGraphicEnabled=t)}searchAllEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.searchAllEnabled=t)}searchTermWatcher(t){void 0!==t&&this.widget&&(this.widget.searchTerm=t)}sourcesWatcher(t){void 0!==t&&this.widget&&(this.widget.sources=t)}suggestionsEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.suggestionsEnabled=t)}referenceElementWatcher(t){r(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async blurSearch(){return this.widget?.blur()}async clearSearch(){return this.widget?.clear()}async focusSearch(){return this.widget?.focus()}async search(t){return this.widget?.search(t)}async suggest(t){return this.widget?.suggest(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}),c(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})}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.activeSource),(t=>this.activeSource=t),{initial:!0}),t((()=>this.widget.activeSourceIndex),(t=>this.activeSourceIndex=t),{initial:!0}),t((()=>this.widget.allSources),(t=>this.allSources=t),{initial:!0}),t((()=>this.widget.defaultSources),(t=>this.defaultSources=t),{initial:!0}),t((()=>this.widget.resultGraphic),(t=>this.resultGraphic=t),{initial:!0}),t((()=>this.widget.results),(t=>this.results=t),{initial:!0}),t((()=>this.widget.selectedResult),(t=>this.selectedResult=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}_proxyEvents(){this.widget.on("search-blur",(t=>this.searchBlur.emit(t))),this.widget.on("search-clear",(t=>this.searchClear.emit(t))),this.widget.on("search-complete",(t=>this.searchComplete.emit(t))),this.widget.on("search-focus",(t=>this.searchFocus.emit(t))),this.widget.on("search-start",(t=>this.searchStart.emit(t))),this.widget.on("select-result",(t=>this.selectResult.emit(t))),this.widget.on("suggest-complete",(t=>this.suggestComplete.emit(t))),this.widget.on("suggest-start",(t=>this.suggestStart.emit(t)))}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],activeMenu:["activeMenuWatcher"],activeSourceIndex:["activeSourceIndexWatcher"],allPlaceholder:["allPlaceholderWatcher"],autoSelect:["autoSelectWatcher"],includeDefaultSources:["includeDefaultSourcesWatcher"],locationEnabled:["locationEnabledWatcher"],maxResults:["maxResultsWatcher"],maxSuggestions:["maxSuggestionsWatcher"],minSuggestCharacters:["minSuggestCharactersWatcher"],popupEnabled:["popupEnabledWatcher"],popupTemplate:["popupTemplateWatcher"],portal:["portalWatcher"],resultGraphicEnabled:["resultGraphicEnabledWatcher"],searchAllEnabled:["searchAllEnabledWatcher"],searchTerm:["searchTermWatcher"],sources:["sourcesWatcher"],suggestionsEnabled:["suggestionsEnabledWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};d.style="";export{d as arcgis_search}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{X as h,i as r}from"./p-0d840d8a.js";import{r as a,c as o}from"./p-2d3406f7.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.analysis=void 0,this.view=void 0,this.position="bottom-left",this.expandable=!1,this.widget=void 0,this.headingLevel=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}headingLevelWatcher(t){void 0!==t&&this.widget&&this.widget.headingLevel!==t&&(this.widget.headingLevel=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.widgetReady.emit({widget:this.widget}),o(this)}disconnectedCallback(){c(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})}async _addWatchers(){const{watch:t}=await r();t((()=>this.widget.analysis),(t=>this.analysis=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],headingLevel:["headingLevelWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="arcgis-slice{}";export{n as arcgis_slice}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as r}from"./p-1e5e5ed9.js";import{g as a}from"./p-0d840d8a.js";import{c as e,o as h}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 a(t);this.widget=s,this.widgetReady.emit({widget:this.widget}),e(this)}disconnectedCallback(){h(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{C as r,i as h}from"./p-0d840d8a.js";import{r as a,c as n}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.view=void 0,this.position="bottom-left",this.expandable=!1,this.content=void 0,this.features=void 0,this.selectedFeature=void 0,this.selectedFeatureIndex=void 0,this.selectedFeatureWidget=void 0,this.widget=void 0}positionWatcher(t){void 0!==t&&this.widget&&"string"!=typeof this.view&&this.view.ui.move(this.childElem,t)}referenceElementWatcher(t){a(this,t)}viewWatcher(t){void 0!==t&&this.widget&&(this.widget.view=t)}async fetchFeatures(t,i){return this.widget?.fetchFeatures(t,i)}async clear(){return this.widget?.clear()}async close(){return this.widget?.close()}async next(){return this.widget?.next()}async open(t){return this.widget?.open(t)}async previous(){return this.widget?.previous()}async componentDidLoad(){const t=this._createParams(),i=await r(t);this.widget=i,this._addWatchers(),this.widgetReady.emit({widget:this.widget}),n(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})}async _addWatchers(){const{watch:t}=await h();t((()=>this.widget.selectedFeature),(t=>this.selectedFeature=t),{initial:!0}),t((()=>this.widget.selectedFeatureIndex),(t=>this.selectedFeatureIndex=t),{initial:!0}),t((()=>this.widget.selectedFeatureWidget),(t=>this.selectedFeatureWidget=t),{initial:!0})}_createParams(){const t={container:this.childElem};return this.view&&(t.view=this.view),this.content&&(t.content=this.content),this.features&&(t.features=this.features),t}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};c.style="arcgis-features{}";export{c as arcgis_features}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-1e5e5ed9.js";import{h,i as a}from"./p-0d840d8a.js";import{r,c as o}from"./p-2d3406f7.js";import{o as c}from"./p-b813c9e6.js";const n=class{constructor(s){t(this,s),this.widgetReady=i(this,"widgetReady",7),this.referenceElement=void 0,this.basemapTitle=void 0,this.baseItems=void 0,this.editingEnabled=!1,this.mulitpleSelectionEnabled=!1,this.position="bottom-left",this.expandable=!1,this.referenceItems=void 0,this.selectedItems=void 0,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)}basemapTitleWatcher(t){void 0!==t&&this.widget&&(this.widget.basemapTitle=t)}editingBasemapEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.editingEnabled=t)}multipleSelectionEnabledWatcher(t){void 0!==t&&this.widget&&(this.widget.multipleSelectionEnabled=t)}selectedItemsWatcher(t){void 0!==t&&this.widget&&(this.widget.selectedItems=t)}referenceElementWatcher(t){r(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.widgetReady.emit({widget:this.widget}),o(this)}disconnectedCallback(){c(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 this.basemapTitle&&(t.basemapTitle=this.basemapTitle),void 0!==this.editingEnabled&&(t.editingEnabled=this.editingEnabled),void 0!==this.mulitpleSelectionEnabled&&(t.multipleSelectionEnabled=this.mulitpleSelectionEnabled),this.view&&(t.view=this.view),t}async _addWatchers(){const{watch:t}=await a();t((()=>this.widget.basemapTitle),(t=>this.basemapTitle=t),{initial:!0}),t((()=>this.widget.editingEnabled),(t=>this.editingEnabled=t),{initial:!0}),t((()=>this.widget.multipleSelectionEnabled),(t=>this.mulitpleSelectionEnabled=t),{initial:!0}),t((()=>this.widget.referenceItems),(t=>this.referenceItems=t),{initial:!0}),t((()=>this.widget.selectedItems),(t=>this.selectedItems=t),{initial:!0})}get el(){return e(this)}static get watchers(){return{position:["positionWatcher"],basemapTitle:["basemapTitleWatcher"],editingEnabled:["editingBasemapEnabledWatcher"],mulitpleSelectionEnabled:["multipleSelectionEnabledWatcher"],selectedItems:["selectedItemsWatcher"],referenceElement:["referenceElementWatcher"],view:["viewWatcher"]}}};n.style="";export{n as arcgis_basemap_layer_list}
@@ -1,281 +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-3de624c5.js');
7
- const componentUtils = require('./component-utils-cbd20e88.js');
8
- const disconnected = require('./disconnected-306cb220.js');
9
- const mappingUtils = require('./mapping-utils-c2c7b994.js');
10
-
11
- const arcgisBasemapGalleryCss = "";
12
-
13
- const ArcgisBasemapGallery = class {
14
- constructor(hostRef) {
15
- index.registerInstance(this, hostRef);
16
- this.widgetReady = index.createEvent(this, "widgetReady", 7);
17
- this.referenceElement = undefined;
18
- this.activeBasemap = undefined;
19
- this.position = "bottom-left";
20
- this.expandable = false;
21
- this.source = undefined;
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
- referenceElementWatcher(newValue) {
38
- componentUtils.referenceElementHelper(this, newValue);
39
- }
40
- viewWatcher(newValue) {
41
- if (newValue !== undefined && this.widget) {
42
- this.widget.view = newValue;
43
- }
44
- }
45
- //--------------------------------------------------------------------------
46
- //
47
- // Lifecycle
48
- //
49
- //--------------------------------------------------------------------------
50
- async componentDidLoad() {
51
- const params = this._createParams();
52
- const widget = await index$1.newWidgetsBasemapGallery(params);
53
- this.widget = widget;
54
- this.widget.when(() => {
55
- this.source = this.widget.source;
56
- });
57
- await this._addWatchers();
58
- this.widgetReady.emit({ widget: this.widget });
59
- componentUtils.checkForView(this);
60
- }
61
- disconnectedCallback() {
62
- disconnected.onDisconnectedHelper(this);
63
- }
64
- render() {
65
- if (this.expandable) {
66
- return (index.h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, index.h("div", { ref: (el) => (this.childElem = el) })));
67
- }
68
- return index.h("div", { ref: (el) => (this.childElem = el) });
69
- }
70
- //--------------------------------------------------------------------------
71
- //
72
- // Private Interal Methods
73
- //
74
- //--------------------------------------------------------------------------
75
- async _addWatchers() {
76
- const { watch } = await index$1.importCoreReactiveUtils();
77
- watch(() => this.widget.source, () => (this.source = this.widget.source));
78
- watch(() => this.widget.activeBasemap, (basemap) => (this.activeBasemap = basemap));
79
- }
80
- _createParams() {
81
- const params = {
82
- container: this.childElem
83
- };
84
- if (this.view) {
85
- params.view = this.view;
86
- }
87
- return params;
88
- }
89
- get el() { return index.getElement(this); }
90
- static get watchers() { return {
91
- "position": ["positionWatcher"],
92
- "referenceElement": ["referenceElementWatcher"],
93
- "view": ["viewWatcher"]
94
- }; }
95
- };
96
- ArcgisBasemapGallery.style = arcgisBasemapGalleryCss;
97
-
98
- const arcgisExpandCss = "arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-ui-background)}";
99
-
100
- const ArcgisExpand = class {
101
- constructor(hostRef) {
102
- index.registerInstance(this, hostRef);
103
- this.widgetReady = index.createEvent(this, "widgetReady", 7);
104
- this.referenceElement = undefined;
105
- this.position = "top-right";
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
- referenceElementWatcher(newValue) {
122
- componentUtils.referenceElementHelper(this, newValue);
123
- }
124
- viewWatcher(newValue) {
125
- if (newValue !== undefined && this.widget) {
126
- this.widget.view = newValue;
127
- }
128
- }
129
- //--------------------------------------------------------------------------
130
- //
131
- // Lifecycle
132
- //
133
- //--------------------------------------------------------------------------
134
- async componentDidLoad() {
135
- const widget = await index$1.newWidgetsExpand({
136
- container: this.childElem
137
- });
138
- this.widget = widget;
139
- if (this.view) {
140
- this.widget.view = this.view;
141
- }
142
- this._checkForView();
143
- }
144
- disconnectedCallback() {
145
- disconnected.onDisconnectedHelper(this);
146
- }
147
- render() {
148
- return index.h("div", { ref: (el) => (this.childElem = el) });
149
- }
150
- //--------------------------------------------------------------------------
151
- //
152
- // Private Internal Methods
153
- //
154
- //--------------------------------------------------------------------------
155
- _checkForView() {
156
- const viewRef = this.el.closest("arcgis-map") || this.el.closest("arcgis-scene");
157
- if (viewRef?.view) {
158
- this.view = viewRef.view;
159
- this.view.ui.add(this.childElem, this.position);
160
- this.widgetReady.emit({ widget: this.widget });
161
- }
162
- else if (viewRef) {
163
- const handler = () => {
164
- this.view = viewRef.view;
165
- this.view.ui.add(this.childElem, this.position);
166
- this.widgetReady.emit({ widget: this.widget });
167
- };
168
- viewRef.addEventListener("viewReady", handler, false);
169
- }
170
- }
171
- get el() { return index.getElement(this); }
172
- static get watchers() { return {
173
- "position": ["positionWatcher"],
174
- "referenceElement": ["referenceElementWatcher"],
175
- "view": ["viewWatcher"]
176
- }; }
177
- };
178
- ArcgisExpand.style = arcgisExpandCss;
179
-
180
- const arcgisMapCss = ".arcgis-map{padding:0;margin:0;height:100%;width:100%}";
181
-
182
- const ArcgisMap = class {
183
- constructor(hostRef) {
184
- index.registerInstance(this, hostRef);
185
- this.viewReady = index.createEvent(this, "viewReady", 7);
186
- this.apiKey = undefined;
187
- this.basemap = undefined;
188
- this.disableNavigation = false;
189
- this.itemId = undefined;
190
- this.zoom = undefined;
191
- this.center = undefined;
192
- this.view = undefined;
193
- }
194
- //--------------------------------------------------------------------------
195
- //
196
- // Watchers
197
- //
198
- //--------------------------------------------------------------------------
199
- apiKeyWatcher(value) {
200
- this.config.apiKey = value;
201
- }
202
- itemIdWatcher(value, old) {
203
- if (value && value !== old) {
204
- this.loadMap();
205
- }
206
- }
207
- //--------------------------------------------------------------------------
208
- //
209
- // Lifecycle
210
- //
211
- //--------------------------------------------------------------------------
212
- async componentWillLoad() {
213
- this.config = await index$1.importConfig();
214
- if (this.apiKey) {
215
- this.config.apiKey = this.apiKey;
216
- }
217
- await this.loadMap();
218
- }
219
- componentDidRender() {
220
- if (this.view) {
221
- this.view.container = this.el;
222
- }
223
- }
224
- render() {
225
- return index.h("div", { class: "arcgis-map", ref: (el) => (this.el = el) });
226
- }
227
- //--------------------------------------------------------------------------
228
- //
229
- // Private Methods
230
- //
231
- //--------------------------------------------------------------------------
232
- async loadMap() {
233
- const mapParams = {};
234
- if (this.itemId) {
235
- mapParams.portalItem = {
236
- id: this.itemId
237
- };
238
- }
239
- if (this.basemap) {
240
- mapParams.basemap = this.basemap;
241
- }
242
- const map = await index$1.newWebMap(mapParams);
243
- const params = {};
244
- if (this.zoom) {
245
- params.zoom = this.zoom;
246
- }
247
- if (this.center) {
248
- if (typeof this.center === "string") {
249
- params.center = this.center.split(",").map((x) => Number(x));
250
- }
251
- else {
252
- params.center = this.center;
253
- }
254
- }
255
- const view = await index$1.newViewsMapView({
256
- map,
257
- ...params
258
- });
259
- const { watch } = await index$1.importCoreReactiveUtils();
260
- this.view = view;
261
- watch(() => this.view.center, (center) => {
262
- const value = `${center.longitude},${center.latitude}`;
263
- this.center = value;
264
- });
265
- watch(() => this.view.zoom, (value) => (this.zoom = value));
266
- if (this.disableNavigation) {
267
- mappingUtils.disableNavigation(this.view);
268
- }
269
- this.view.when(() => this.viewReady.emit({ view: this.view }));
270
- }
271
- get hostElem() { return index.getElement(this); }
272
- static get watchers() { return {
273
- "apiKey": ["apiKeyWatcher"],
274
- "itemId": ["itemIdWatcher"]
275
- }; }
276
- };
277
- ArcgisMap.style = arcgisMapCss;
278
-
279
- exports.arcgis_basemap_gallery = ArcgisBasemapGallery;
280
- exports.arcgis_expand = ArcgisExpand;
281
- exports.arcgis_map = ArcgisMap;