@arcgis/map-components 4.32.0-next.20 → 4.32.0-next.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/arcgis-map-components/{NBQX2PVV.js → 2DNTLMTB.js} +2 -2
- package/dist/arcgis-map-components/{E5D4CPWV.js → 2U733VXV.js} +2 -2
- package/dist/arcgis-map-components/33AA3PEL.js +203 -0
- package/dist/arcgis-map-components/{ZF5CP5WV.js → 3DBN7NBY.js} +2 -2
- package/dist/arcgis-map-components/{C6ZSDFBZ.js → 3DN66BEC.js} +2 -2
- package/dist/arcgis-map-components/{PNZ2G4N2.js → 3XOMWGZP.js} +2 -2
- package/dist/arcgis-map-components/{TVVAEM4M.js → 4JPI5FZ7.js} +2 -2
- package/dist/arcgis-map-components/4LKLM5XC.js +6 -0
- package/dist/arcgis-map-components/5E36Y6LW.js +6 -0
- package/dist/arcgis-map-components/{XXMG2AON.js → 5E7EUJ5A.js} +2 -2
- package/dist/arcgis-map-components/6FDS3YVF.js +6 -0
- package/dist/arcgis-map-components/{LOKWMMAC.js → 6QQZSC3U.js} +2 -2
- package/dist/arcgis-map-components/6RZ3S2EF.js +8 -0
- package/dist/arcgis-map-components/{7B75CFKS.js → 7AY6XL2I.js} +1 -1
- package/dist/arcgis-map-components/7OHAZ62N.js +6 -0
- package/dist/arcgis-map-components/{4E6LETTC.js → 7SM4LN5H.js} +2 -2
- package/dist/arcgis-map-components/{YQKQAATS.js → 7T4CPEUN.js} +2 -2
- package/dist/arcgis-map-components/{OOW4UPZL.js → 7TFJYPQY.js} +2 -2
- package/dist/arcgis-map-components/{6QL7QAA5.js → AVK52HRN.js} +2 -2
- package/dist/arcgis-map-components/{6E2U7XGV.js → BMI4WHZK.js} +2 -2
- package/dist/arcgis-map-components/{EMZ5HVE6.js → CQFEQEOG.js} +2 -2
- package/dist/arcgis-map-components/DOJRMVHP.js +6 -0
- package/dist/arcgis-map-components/{J6662W2O.js → EBLGHMSC.js} +2 -2
- package/dist/arcgis-map-components/{FXA7BOUX.js → ETF6MM6B.js} +2 -2
- package/dist/arcgis-map-components/{MEB7IANZ.js → GEULEAEM.js} +2 -2
- package/dist/arcgis-map-components/IM4FB5R3.js +6 -0
- package/dist/arcgis-map-components/{QVBQLBOQ.js → IOTXSBMW.js} +2 -2
- package/dist/arcgis-map-components/{6XYS7PCB.js → JQKDLJNY.js} +2 -2
- package/dist/arcgis-map-components/JVJRAPUX.js +6 -0
- package/dist/arcgis-map-components/{5LV7RNPY.js → JYCWSPOU.js} +2 -2
- package/dist/arcgis-map-components/{NMXKPS7A.js → K2WCJUWA.js} +2 -2
- package/dist/arcgis-map-components/{QPTWIZO7.js → KXZJEXIL.js} +2 -2
- package/dist/arcgis-map-components/{P46JNE5Z.js → L2YRXBR6.js} +2 -2
- package/dist/arcgis-map-components/{HG5527TM.js → L6L75XFG.js} +2 -2
- package/dist/arcgis-map-components/{GMV6BWDH.js → LCD47EYR.js} +2 -2
- package/dist/arcgis-map-components/{V73BVBXS.js → LCX5VUD4.js} +2 -2
- package/dist/arcgis-map-components/{K32NOVJH.js → LOVPVCP5.js} +2 -2
- package/dist/arcgis-map-components/{BVQCG65I.js → MIXPTOWS.js} +2 -2
- package/dist/arcgis-map-components/{DOHCAWQ3.js → MZ2OHNBQ.js} +2 -2
- package/dist/arcgis-map-components/{IFCTYPYU.js → MZBTFGYM.js} +2 -2
- package/dist/arcgis-map-components/{6LOYHRNG.js → NV2JSNTY.js} +2 -2
- package/dist/arcgis-map-components/{SZ5WCSH6.js → P3FSTHG5.js} +2 -2
- package/dist/arcgis-map-components/{JCX6ASIV.js → P4FLA3RN.js} +1 -1
- package/dist/arcgis-map-components/{VHPA56IK.js → QPF7IYYE.js} +2 -2
- package/dist/arcgis-map-components/{TRKDXUIA.js → QPIYXIHT.js} +2 -2
- package/dist/arcgis-map-components/{LVYYU2DM.js → QQ3QW4JQ.js} +2 -2
- package/dist/arcgis-map-components/{32NTW4SQ.js → RS5GQRJB.js} +2 -2
- package/dist/arcgis-map-components/{MVTDXCAM.js → S3JBVJPX.js} +2 -2
- package/dist/arcgis-map-components/S6I7VCVM.js +6 -0
- package/dist/arcgis-map-components/{L4XNUK5O.js → SJU5UCZD.js} +2 -2
- package/dist/arcgis-map-components/{FG4TP4PA.js → SNSKYHBC.js} +2 -2
- package/dist/arcgis-map-components/{U3BDOFGB.js → TA2WFOIS.js} +2 -2
- package/dist/arcgis-map-components/{KYBMXL3Y.js → TFDBIOU7.js} +2 -2
- package/dist/arcgis-map-components/{WAVJUW46.js → U5LSQVRU.js} +2 -2
- package/dist/arcgis-map-components/{FDJ6HKAX.js → UFQE6RTO.js} +2 -2
- package/dist/arcgis-map-components/{36IFNAX2.js → UILXLOJJ.js} +2 -2
- package/dist/arcgis-map-components/{XG63H5X7.js → UKOX6DQF.js} +2 -2
- package/dist/arcgis-map-components/{6Z3UBYKO.js → UPSGI4YB.js} +2 -2
- package/dist/arcgis-map-components/{ZJENKLNZ.js → VC64WSZG.js} +2 -2
- package/dist/arcgis-map-components/{7OQN5GKF.js → VZH3CAF6.js} +2 -2
- package/dist/arcgis-map-components/{EEKI6XV3.js → WIUB5GL5.js} +2 -2
- package/dist/arcgis-map-components/WYSLUAQV.js +6 -0
- package/dist/arcgis-map-components/{DLPALYE6.js → XOXGIFMM.js} +2 -2
- package/dist/arcgis-map-components/{IPUO6QSO.js → Y6CAFLD6.js} +2 -2
- package/dist/arcgis-map-components/{FW4F6TTR.js → YEDOBJVM.js} +2 -2
- package/dist/arcgis-map-components/{XKUOXI7R.js → YGYIOEST.js} +2 -2
- package/dist/arcgis-map-components/{5FUZCMHF.js → YWIPYX56.js} +2 -2
- package/dist/arcgis-map-components/{HQR3WRHD.js → Z556VFKP.js} +2 -2
- package/dist/arcgis-map-components/{I255SXDT.js → ZDEHXZL7.js} +2 -2
- package/dist/arcgis-map-components/{4SBEOIGA.js → ZJ2P3FUV.js} +2 -2
- package/dist/arcgis-map-components/{HHG2IOJJ.js → ZLJZTLQU.js} +2 -2
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/index.d.ts +3 -3
- package/dist/components/arcgis-basemap-toggle/index.js +3 -3
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-compass/index.d.ts +2 -2
- package/dist/components/arcgis-compass/index.js +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +2 -2
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +4 -2
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/index.d.ts +1 -1
- package/dist/components/arcgis-fullscreen/index.js +1 -1
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +9562 -1000
- package/dist/components/arcgis-home/index.d.ts +1 -1
- package/dist/components/arcgis-home/index.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-locate/index.d.ts +2 -2
- package/dist/components/arcgis-locate/index.js +2 -2
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-track/index.d.ts +2 -2
- package/dist/components/arcgis-track/index.js +2 -2
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management/index.d.ts +4 -4
- package/dist/components/arcgis-version-management/index.js +4 -4
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/index.d.ts +5 -5
- package/dist/components/arcgis-version-management-service-item/index.js +5 -5
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/index.d.ts +4 -4
- package/dist/components/arcgis-version-management-version-item/index.js +4 -4
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/index.d.ts +10 -10
- package/dist/components/arcgis-version-management-version-list/index.js +10 -10
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/index.d.ts +10 -10
- package/dist/components/arcgis-version-management-version-properties/index.js +10 -10
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/arcgis-zoom/index.d.ts +1 -1
- package/dist/components/arcgis-zoom/index.js +1 -1
- package/dist/docs/api.json +1249 -1442
- package/dist/docs/docs.json +878 -834
- package/dist/docs/vscode.html-custom-data.json +229 -346
- package/dist/docs/web-types.json +892 -1118
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +67 -61
- package/package.json +5 -5
- package/dist/arcgis-map-components/3F7DW3N2.js +0 -6
- package/dist/arcgis-map-components/4SYTH7P3.js +0 -6
- package/dist/arcgis-map-components/CKQ4UHRE.js +0 -6
- package/dist/arcgis-map-components/CPU2FVJE.js +0 -8
- package/dist/arcgis-map-components/GN3KL52J.js +0 -6
- package/dist/arcgis-map-components/J2GCXAKR.js +0 -6
- package/dist/arcgis-map-components/J7KTF33Y.js +0 -6
- package/dist/arcgis-map-components/JWSVGXMH.js +0 -6
- package/dist/arcgis-map-components/WKQGYL5T.js +0 -6
- package/dist/arcgis-map-components/XS54DQEB.js +0 -6
- package/dist/arcgis-map-components/Z3KQ55OO.js +0 -6
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@ import { s, g as t } from "./chunks/runtime.js";
|
|
2
2
|
/*!
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
4
4
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
5
|
-
* v4.32.0-next.
|
5
|
+
* v4.32.0-next.21
|
6
6
|
*/
|
7
7
|
const a = s, A = t;
|
8
8
|
export {
|
package/dist/loader.js
CHANGED
@@ -3,7 +3,7 @@ import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
3
3
|
/*!
|
4
4
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
5
5
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
6
|
-
* v4.32.0-next.
|
6
|
+
* v4.32.0-next.21
|
7
7
|
*/
|
8
8
|
const a = t(e, {
|
9
9
|
"arcgis-area-measurement-2d": [() => import("./components/arcgis-area-measurement-2d/customElement.js"), "autoDestroyDisabled,icon,label,position,referenceElement,state,unit,unitOptions:;destroy"],
|
@@ -29,7 +29,7 @@ const a = t(e, {
|
|
29
29
|
"arcgis-feature-form": [() => import("./components/arcgis-feature-form/customElement.js"), "autoDestroyDisabled,feature:,formTemplate:,groupDisplay,headingLevel,icon,label,layer:,position,referenceElement,state,timeZone;destroy,getValues,submit"],
|
30
30
|
"arcgis-feature-table": [() => import("./components/arcgis-feature-table/customElement.js"), "actionColumnConfig:,activeFilters:,activeSortOrders:,allRelatedTablesVisible:,attachmentsEnabled,attributeTableTemplate:,autoDestroyDisabled,autoRefreshDisabled,columnReorderingDisabled,columns:,description,editingEnabled,effectiveSize:,filterBySelectionEnabled,filterGeometry:,hiddenFields:,hideColumnDescriptions,hideColumnMenuItemsSortAscending,hideColumnMenuItemsSortDescending,hideColumnMenus,hideHeader,hideMenu,hideMenuItemsClearSelection,hideMenuItemsDeleteSelection,hideMenuItemsExportSelectionToCsv,hideMenuItemsRefreshData,hideMenuItemsSelectedRecordsShowAllToggle,hideMenuItemsSelectedRecordsShowSelectedToggle,hideMenuItemsToggleColumns,hideMenuItemsZoomToSelection,hideProgress,hideSelectionColumn,hideTooltips,highlightDisabled,highlightIds:,icon,initialSize,isQueryingOrSyncing:,label,layer:,layerItemId,layers:,layerUrl,layerView:,maxSize,menuConfig:,multipleSelectionDisabled,multipleSortEnabled,objectIds:,outFields:,pageCount:,pageIndex,pageSize,paginationEnabled,position,referenceElement,relatedRecordsEnabled,relatedTable:,relatedTables:,returnGeometryEnabled,returnMEnabled,returnZEnabled,rowHighlightIds:,showLayerDropdown,size:,state,tableController:,tableDisabled,tableParent:,tableTemplate:,timeExtent:,timeZone;deleteSelection,destroy,exportSelectionToCSV,findColumn,goToPage,hideColumn,nextPage,previousPage,refresh,scrollToBottom,scrollToIndex,scrollToLeft,scrollToRow,scrollToTop,showAllColumns,showColumn,sortColumn,zoomToSelection"],
|
31
31
|
"arcgis-feature-templates": [() => import("./components/arcgis-feature-templates/customElement.js"), "autoDestroyDisabled,enableListScroll,filterFunction:,filterText,groupBy,headingLevel,hideFilter,icon,label,layers:,position,referenceElement,selectionMode,state;destroy"],
|
32
|
-
"arcgis-features": [() => import("./components/arcgis-features/customElement.js"), "actions:,active,autoDestroyDisabled,collapsed,content,features:,featuresPerPage,featuresTitle,featureViewModelAbilities:,goToOverride:,headingLevel,hideActionBar,hideCloseButton,hideFeatureNavigation,hideFlow,hideHeading,hideSpinner,icon,includeDefaultActions,label,map:,position,promises:,referenceElement,selectedFeature:,selectedFeatureIndex,showCollapseButton,spatialReference:,state,timeZone;clear,close,destroy,fetchFeatures,next,open,previous,triggerAction"],
|
32
|
+
"arcgis-features": [() => import("./components/arcgis-features/customElement.js"), "actions:,active,autoDestroyDisabled,collapsed,content,featureNavigationTop,features:,featuresPerPage,featuresTitle,featureViewModelAbilities:,goToOverride:,headerActions:,headingLevel,hideActionBar,hideCloseButton,hideFeatureNavigation,hideFlow,hideHeading,hideSpinner,icon,includeDefaultActions,label,map:,position,promises:,referenceElement,selectedFeature:,selectedFeatureIndex,showCollapseButton,spatialReference:,state,timeZone;clear,close,destroy,fetchFeatures,next,open,previous,triggerAction"],
|
33
33
|
"arcgis-floor-filter": [() => import("./components/arcgis-floor-filter/customElement.js"), "autoDestroyDisabled,facility,headingLevel,icon,label,level,longNames,position,referenceElement,site;destroy,updateWebDocument"],
|
34
34
|
"arcgis-fullscreen": [() => import("./components/arcgis-fullscreen/customElement.js"), "autoDestroyDisabled,element:,icon,label,messageOverrides:,position,referenceElement,state;destroy"],
|
35
35
|
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "autoDestroyDisabled,average,barCreatedFunction:,bins:,dataLineCreatedFunction:,dataLines:,icon,label,labelFormatFunction:,layout,max,min,position,referenceElement,state;destroy"],
|
package/dist/types/lumina.d.ts
CHANGED
@@ -194,7 +194,7 @@ interface LuminaArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplat
|
|
194
194
|
onarcgisSelect?: EventHandler<TargetedEvent<HTMLArcgisFeatureTemplatesElement, CustomEvent<ArcgisFeatureTemplates["arcgisSelect"]["detail"]>>>;
|
195
195
|
}
|
196
196
|
|
197
|
-
interface LuminaArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'content' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, h.JSX.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
197
|
+
interface LuminaArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'collapsed' | 'content' | 'featureNavigationTop' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headerActions' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, h.JSX.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
198
198
|
onarcgisPropertyChange?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisPropertyChange"]["detail"]>>>;
|
199
199
|
onarcgisReady?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisReady"]["detail"]>>>;
|
200
200
|
onarcgisTriggerAction?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisTriggerAction"]["detail"]>>>;
|
package/dist/types/preact.d.ts
CHANGED
@@ -185,7 +185,7 @@ interface PreactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplat
|
|
185
185
|
onarcgisSelect?: PreactJsx.EventHandler<PreactJsx.TargetedEvent<HTMLArcgisFeatureTemplatesElement, CustomEvent<ArcgisFeatureTemplates["arcgisSelect"]["detail"]>>>;
|
186
186
|
}
|
187
187
|
|
188
|
-
interface PreactArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'content' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, PreactJsx.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
188
|
+
interface PreactArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'collapsed' | 'content' | 'featureNavigationTop' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headerActions' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, PreactJsx.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
189
189
|
onarcgisPropertyChange?: PreactJsx.EventHandler<PreactJsx.TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisPropertyChange"]["detail"]>>>;
|
190
190
|
onarcgisReady?: PreactJsx.EventHandler<PreactJsx.TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisReady"]["detail"]>>>;
|
191
191
|
onarcgisTriggerAction?: PreactJsx.EventHandler<PreactJsx.TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisTriggerAction"]["detail"]>>>;
|
package/dist/types/react.d.ts
CHANGED
@@ -208,7 +208,7 @@ interface ReactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplate
|
|
208
208
|
onarcgisSelect?: EventHandler<SyntheticEvent<HTMLArcgisFeatureTemplatesElement, CustomEvent<ArcgisFeatureTemplates["arcgisSelect"]["detail"]>>>;
|
209
209
|
}
|
210
210
|
|
211
|
-
interface ReactArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'content' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, HTMLAttributes<HTMLArcgisFeaturesElement> {
|
211
|
+
interface ReactArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'collapsed' | 'content' | 'featureNavigationTop' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headerActions' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, HTMLAttributes<HTMLArcgisFeaturesElement> {
|
212
212
|
ref?: Ref<HTMLArcgisFeaturesElement>;
|
213
213
|
onarcgisPropertyChange?: EventHandler<SyntheticEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisPropertyChange"]["detail"]>>>;
|
214
214
|
onarcgisReady?: EventHandler<SyntheticEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisReady"]["detail"]>>>;
|
package/dist/types/stencil.d.ts
CHANGED
@@ -194,7 +194,7 @@ interface StencilArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTempla
|
|
194
194
|
onArcgisSelect?: EventHandler<TargetedEvent<HTMLArcgisFeatureTemplatesElement, CustomEvent<ArcgisFeatureTemplates["arcgisSelect"]["detail"]>>>;
|
195
195
|
}
|
196
196
|
|
197
|
-
interface StencilArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'content' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, StencilJsx.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
197
|
+
interface StencilArcgisFeatures extends Partial<Pick<ArcgisFeatures, 'actions' | 'autoDestroyDisabled' | 'collapsed' | 'content' | 'featureNavigationTop' | 'features' | 'featuresPerPage' | 'featuresTitle' | 'featureViewModelAbilities' | 'goToOverride' | 'headerActions' | 'headingLevel' | 'hideActionBar' | 'hideCloseButton' | 'hideFeatureNavigation' | 'hideFlow' | 'hideHeading' | 'hideSpinner' | 'icon' | 'includeDefaultActions' | 'label' | 'map' | 'position' | 'promises' | 'referenceElement' | 'selectedFeatureIndex' | 'showCollapseButton' | 'spatialReference' | 'timeZone'>>, StencilJsx.HTMLAttributes<HTMLArcgisFeaturesElement> {
|
198
198
|
onArcgisPropertyChange?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisPropertyChange"]["detail"]>>>;
|
199
199
|
onArcgisReady?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisReady"]["detail"]>>>;
|
200
200
|
onArcgisTriggerAction?: EventHandler<TargetedEvent<HTMLArcgisFeaturesElement, CustomEvent<ArcgisFeatures["arcgisTriggerAction"]["detail"]>>>;
|
@@ -444,67 +444,73 @@ interface StencilArcgisZoom extends Partial<Pick<ArcgisZoom, 'autoDestroyDisable
|
|
444
444
|
onArcgisReady?: EventHandler<TargetedEvent<HTMLArcgisZoomElement, CustomEvent<ArcgisZoom["arcgisReady"]["detail"]>>>;
|
445
445
|
}
|
446
446
|
|
447
|
+
interface ExposedElements {
|
448
|
+
"arcgis-area-measurement-2d": StencilArcgisAreaMeasurement2d;
|
449
|
+
"arcgis-area-measurement-3d": StencilArcgisAreaMeasurement3d;
|
450
|
+
"arcgis-attachments": StencilArcgisAttachments;
|
451
|
+
"arcgis-basemap-gallery": StencilArcgisBasemapGallery;
|
452
|
+
"arcgis-basemap-layer-list": StencilArcgisBasemapLayerList;
|
453
|
+
"arcgis-basemap-toggle": StencilArcgisBasemapToggle;
|
454
|
+
"arcgis-bookmarks": StencilArcgisBookmarks;
|
455
|
+
"arcgis-building-explorer": StencilArcgisBuildingExplorer;
|
456
|
+
"arcgis-catalog-layer-list": StencilArcgisCatalogLayerList;
|
457
|
+
"arcgis-compass": StencilArcgisCompass;
|
458
|
+
"arcgis-coordinate-conversion": StencilArcgisCoordinateConversion;
|
459
|
+
"arcgis-daylight": StencilArcgisDaylight;
|
460
|
+
"arcgis-directional-pad": StencilArcgisDirectionalPad;
|
461
|
+
"arcgis-directions": StencilArcgisDirections;
|
462
|
+
"arcgis-directline-measurement-3d": StencilArcgisDirectLineMeasurement3d;
|
463
|
+
"arcgis-distance-measurement-2d": StencilArcgisDistanceMeasurement2d;
|
464
|
+
"arcgis-editor": StencilArcgisEditor;
|
465
|
+
"arcgis-elevation-profile": StencilArcgisElevationProfile;
|
466
|
+
"arcgis-expand": StencilArcgisExpand;
|
467
|
+
"arcgis-feature": StencilArcgisFeature;
|
468
|
+
"arcgis-feature-form": StencilArcgisFeatureForm;
|
469
|
+
"arcgis-feature-table": StencilArcgisFeatureTable;
|
470
|
+
"arcgis-feature-templates": StencilArcgisFeatureTemplates;
|
471
|
+
"arcgis-features": StencilArcgisFeatures;
|
472
|
+
"arcgis-floor-filter": StencilArcgisFloorFilter;
|
473
|
+
"arcgis-fullscreen": StencilArcgisFullscreen;
|
474
|
+
"arcgis-histogram": StencilArcgisHistogram;
|
475
|
+
"arcgis-histogram-range-slider": StencilArcgisHistogramRangeSlider;
|
476
|
+
"arcgis-home": StencilArcgisHome;
|
477
|
+
"arcgis-layer-list": StencilArcgisLayerList;
|
478
|
+
"arcgis-legend": StencilArcgisLegend;
|
479
|
+
"arcgis-line-of-sight": StencilArcgisLineOfSight;
|
480
|
+
"arcgis-locate": StencilArcgisLocate;
|
481
|
+
"arcgis-map": StencilArcgisMap;
|
482
|
+
"arcgis-measurement": StencilArcgisMeasurement;
|
483
|
+
"arcgis-navigation-toggle": StencilArcgisNavigationToggle;
|
484
|
+
"arcgis-oriented-imagery-viewer": StencilArcgisOrientedImageryViewer;
|
485
|
+
"arcgis-placement": StencilArcgisPlacement;
|
486
|
+
"arcgis-print": StencilArcgisPrint;
|
487
|
+
"arcgis-scale-bar": StencilArcgisScaleBar;
|
488
|
+
"arcgis-scale-range-slider": StencilArcgisScaleRangeSlider;
|
489
|
+
"arcgis-scene": StencilArcgisScene;
|
490
|
+
"arcgis-search": StencilArcgisSearch;
|
491
|
+
"arcgis-shadow-cast": StencilArcgisShadowCast;
|
492
|
+
"arcgis-sketch": StencilArcgisSketch;
|
493
|
+
"arcgis-slice": StencilArcgisSlice;
|
494
|
+
"arcgis-slider": StencilArcgisSlider;
|
495
|
+
"arcgis-swipe": StencilArcgisSwipe;
|
496
|
+
"arcgis-table-list": StencilArcgisTableList;
|
497
|
+
"arcgis-time-slider": StencilArcgisTimeSlider;
|
498
|
+
"arcgis-track": StencilArcgisTrack;
|
499
|
+
"arcgis-utility-network-associations": StencilArcgisUtilityNetworkAssociations;
|
500
|
+
"arcgis-utility-network-trace": StencilArcgisUtilityNetworkTrace;
|
501
|
+
"arcgis-utility-network-validate-topology": StencilArcgisUtilityNetworkValidateTopology;
|
502
|
+
"arcgis-value-picker": StencilArcgisValuePicker;
|
503
|
+
"arcgis-version-management": StencilArcgisVersionManagement;
|
504
|
+
"arcgis-weather": StencilArcgisWeather;
|
505
|
+
"arcgis-zoom": StencilArcgisZoom;
|
506
|
+
}
|
507
|
+
|
508
|
+
export namespace JSX {
|
509
|
+
export interface IntrinsicElements extends ExposedElements {}
|
510
|
+
}
|
511
|
+
|
447
512
|
declare module "@stencil/core/internal/stencil-public-runtime" {
|
448
513
|
export namespace h.JSX {
|
449
|
-
interface IntrinsicElements {
|
450
|
-
"arcgis-area-measurement-2d": StencilArcgisAreaMeasurement2d;
|
451
|
-
"arcgis-area-measurement-3d": StencilArcgisAreaMeasurement3d;
|
452
|
-
"arcgis-attachments": StencilArcgisAttachments;
|
453
|
-
"arcgis-basemap-gallery": StencilArcgisBasemapGallery;
|
454
|
-
"arcgis-basemap-layer-list": StencilArcgisBasemapLayerList;
|
455
|
-
"arcgis-basemap-toggle": StencilArcgisBasemapToggle;
|
456
|
-
"arcgis-bookmarks": StencilArcgisBookmarks;
|
457
|
-
"arcgis-building-explorer": StencilArcgisBuildingExplorer;
|
458
|
-
"arcgis-catalog-layer-list": StencilArcgisCatalogLayerList;
|
459
|
-
"arcgis-compass": StencilArcgisCompass;
|
460
|
-
"arcgis-coordinate-conversion": StencilArcgisCoordinateConversion;
|
461
|
-
"arcgis-daylight": StencilArcgisDaylight;
|
462
|
-
"arcgis-directional-pad": StencilArcgisDirectionalPad;
|
463
|
-
"arcgis-directions": StencilArcgisDirections;
|
464
|
-
"arcgis-directline-measurement-3d": StencilArcgisDirectLineMeasurement3d;
|
465
|
-
"arcgis-distance-measurement-2d": StencilArcgisDistanceMeasurement2d;
|
466
|
-
"arcgis-editor": StencilArcgisEditor;
|
467
|
-
"arcgis-elevation-profile": StencilArcgisElevationProfile;
|
468
|
-
"arcgis-expand": StencilArcgisExpand;
|
469
|
-
"arcgis-feature": StencilArcgisFeature;
|
470
|
-
"arcgis-feature-form": StencilArcgisFeatureForm;
|
471
|
-
"arcgis-feature-table": StencilArcgisFeatureTable;
|
472
|
-
"arcgis-feature-templates": StencilArcgisFeatureTemplates;
|
473
|
-
"arcgis-features": StencilArcgisFeatures;
|
474
|
-
"arcgis-floor-filter": StencilArcgisFloorFilter;
|
475
|
-
"arcgis-fullscreen": StencilArcgisFullscreen;
|
476
|
-
"arcgis-histogram": StencilArcgisHistogram;
|
477
|
-
"arcgis-histogram-range-slider": StencilArcgisHistogramRangeSlider;
|
478
|
-
"arcgis-home": StencilArcgisHome;
|
479
|
-
"arcgis-layer-list": StencilArcgisLayerList;
|
480
|
-
"arcgis-legend": StencilArcgisLegend;
|
481
|
-
"arcgis-line-of-sight": StencilArcgisLineOfSight;
|
482
|
-
"arcgis-locate": StencilArcgisLocate;
|
483
|
-
"arcgis-map": StencilArcgisMap;
|
484
|
-
"arcgis-measurement": StencilArcgisMeasurement;
|
485
|
-
"arcgis-navigation-toggle": StencilArcgisNavigationToggle;
|
486
|
-
"arcgis-oriented-imagery-viewer": StencilArcgisOrientedImageryViewer;
|
487
|
-
"arcgis-placement": StencilArcgisPlacement;
|
488
|
-
"arcgis-print": StencilArcgisPrint;
|
489
|
-
"arcgis-scale-bar": StencilArcgisScaleBar;
|
490
|
-
"arcgis-scale-range-slider": StencilArcgisScaleRangeSlider;
|
491
|
-
"arcgis-scene": StencilArcgisScene;
|
492
|
-
"arcgis-search": StencilArcgisSearch;
|
493
|
-
"arcgis-shadow-cast": StencilArcgisShadowCast;
|
494
|
-
"arcgis-sketch": StencilArcgisSketch;
|
495
|
-
"arcgis-slice": StencilArcgisSlice;
|
496
|
-
"arcgis-slider": StencilArcgisSlider;
|
497
|
-
"arcgis-swipe": StencilArcgisSwipe;
|
498
|
-
"arcgis-table-list": StencilArcgisTableList;
|
499
|
-
"arcgis-time-slider": StencilArcgisTimeSlider;
|
500
|
-
"arcgis-track": StencilArcgisTrack;
|
501
|
-
"arcgis-utility-network-associations": StencilArcgisUtilityNetworkAssociations;
|
502
|
-
"arcgis-utility-network-trace": StencilArcgisUtilityNetworkTrace;
|
503
|
-
"arcgis-utility-network-validate-topology": StencilArcgisUtilityNetworkValidateTopology;
|
504
|
-
"arcgis-value-picker": StencilArcgisValuePicker;
|
505
|
-
"arcgis-version-management": StencilArcgisVersionManagement;
|
506
|
-
"arcgis-weather": StencilArcgisWeather;
|
507
|
-
"arcgis-zoom": StencilArcgisZoom;
|
508
|
-
}
|
514
|
+
interface IntrinsicElements extends ExposedElements {}
|
509
515
|
}
|
510
516
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcgis/map-components",
|
3
|
-
"version": "4.32.0-next.
|
3
|
+
"version": "4.32.0-next.21",
|
4
4
|
"description": "ArcGIS Map Components",
|
5
5
|
"keywords": [
|
6
6
|
"ArcGIS",
|
@@ -40,10 +40,10 @@
|
|
40
40
|
],
|
41
41
|
"license": "SEE LICENSE IN LICENSE.md",
|
42
42
|
"dependencies": {
|
43
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
44
|
-
"@arcgis/components-utils": "4.32.0-next.
|
45
|
-
"@arcgis/core-adapter": "4.32.0-next.
|
46
|
-
"@arcgis/lumina": "4.32.0-next.
|
43
|
+
"@arcgis/components-controllers": "4.32.0-next.21",
|
44
|
+
"@arcgis/components-utils": "4.32.0-next.21",
|
45
|
+
"@arcgis/core-adapter": "4.32.0-next.21",
|
46
|
+
"@arcgis/lumina": "4.32.0-next.21",
|
47
47
|
"tslib": "^2.7.0"
|
48
48
|
},
|
49
49
|
"peerDependencies": {
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{b as y,c as a}from"./6Z3UBYKO.js";import{b as r}from"./7B75CFKS.js";import{g as h,h as w,l as _}from"./CPU2FVJE.js";var P=(d,s)=>(i,e)=>v(i,d,e),p=class extends y{constructor(s,i,e){super(s,i,e),this._watchedViewModelProperties=new Map,this._watchedVisibleElementsProperties={},this._isBindingViewModel={value:!0},Object.defineProperty(this.exports,"viewModel",{value:a.makeGetterProxy(s,this._watchedViewModelProperties,this._isBindingViewModel)}),Object.defineProperty(this.exports,"visibleElements",{value:this._makeVisibleElementsBinder()})}hostConnected(){super.hostConnected(),this._isBindingViewModel.value=!1,this.component.manager.loadedCalled&&r(this.component)}async hostLoad(){if(this._watchedProperties.delete("viewModel"),await super.hostLoad(),this.component.manager.destroyed)return;this._watchMetaProperties(),this.onLifecycle(()=>this.reactiveUtils.watch(()=>this._instance.viewModel,e=>{this.component.viewModel=e},{initial:!0}));let s=this._instance.viewModel;typeof s=="object"&&(a.watchComponentUpdates(this,s,this._watchedViewModelProperties),a.watchAccessorUpdates(this,s,this._watchedViewModelProperties));let i=Object.entries(this._watchedVisibleElementsProperties);i.length>0&&this.onLifecycle(()=>i.map(([e,t])=>{let o=this._instance.visibleElements??{},n;for(let c of t.slice(0,-1))if(typeof o[c]=="object"&&o[c]!==null)o=o[c];else{n=!!o[c];break}n===void 0&&(n=!!(o[t.slice(-1)[0]]??!0)),e.startsWith("hide");let m=e.startsWith("hide")||e.startsWith("show")?e.startsWith("hide"):n,l=this.component;return typeof l[e]=="boolean"?this._updateWidgetVisibleElement(t,l[e],m):l[e]=!1,h(this.component,e,c=>this._updateWidgetVisibleElement(t,c,m))}))}_updateWidgetVisibleElement(s,i,e){let t=this._instance.visibleElements??{};for(let n of s.slice(0,-1))(typeof t[n]!="object"||t[n]===null)&&(t[n]={}),t=t[n];let o=!!(e?!i:i);t[s.at(-1)]=o}hostLoaded(){let{el:s}=this.component;s.childElem??=document.createElement("div"),this._instance.container=s.childElem;let i=!1,e=this.component.el.view;Object.defineProperty(this.component.el,"view",{get:()=>this._instance.view??this._instance.viewModel?.view,set:t=>{!("view"in this._instance)&&typeof this._instance.viewModel=="object"?this._instance.viewModel.view=t:this._instance.view=t,!("map"in this._instance)&&typeof this._instance.viewModel=="object"?this._instance.viewModel.map=t.map:this._instance.map=t.map,this._watchViewDestroy(),t&&!i&&(i=!0,this.component.arcgisReady.emit())},configurable:!0,enumerable:!0}),e&&(this._instance.view=e),this.component.el.isConnected&&(r(this.component),this._watchViewDestroy())}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.el.view?.ui?.remove(this.component.el.childElem)}hostDestroy(){super.hostDestroy(),this._watchViewDestroyHandle?.remove()}_watchMetaProperties(){h(this.component,"position",s=>{this.component.el.childElem!=null&&typeof s=="string"&&r(this.component)}),h(this.component,"referenceElement",()=>r(this.component))}_makeVisibleElementsBinder(){return new Proxy({},{has:(s,i)=>typeof i=="string"||Reflect.has(s,i),get:(s,i)=>{if(typeof i=="symbol"||i in Promise.prototype)return Reflect.get(s,i);let e=[i],t=this._makeRecursiveProxy(e);return w(this.component,o=>{let n=o;this.component[n]=!1,this._watchedVisibleElementsProperties[n]=e},t)}})}_makeRecursiveProxy(s){let i=new Proxy({},{get:(e,t)=>{let o=Reflect.get(e,t);return typeof t=="symbol"||t in Promise.prototype?o:(s.push(t),i)}});return i}_watchViewDestroy(){this._watchViewDestroyHandle?.remove(),this._watchViewDestroyHandle=this.reactiveUtils.when(()=>this.component.el.view?.destroyed===!0,()=>void this.component.destroy().catch(console.error),{sync:!0})}},v=_(p);export{P as a};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as y,b as z}from"./MEB7IANZ.js";import{a as t}from"./JCX6ASIV.js";import{a as k,b}from"./Z3KQ55OO.js";import{d as s}from"./6Z3UBYKO.js";import{O as v}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as u,C as r,E as w,G as f,a as d,o as h,p,q as e,y as m,z as g}from"./CPU2FVJE.js";var O={arrowDown:"esri-icon-arrow-down",arrowUp:"esri-icon-arrow-up",basemap:"esri-icon-basemap",bookmark:"esri-icon-bookmark",calendar:"esri-icon-calendar",checkMark:"esri-icon-check-mark",checkboxUnchecked:"esri-icon-checkbox-unchecked",close:"esri-icon-close",collapse:"esri-icon-collapse",defaultAction:"esri-icon-default-action",description:"esri-icon-description",directions:"esri-icon-directions",dockBottom:"esri-icon-dock-bottom",dockLeft:"esri-icon-dock-left",dockRight:"esri-icon-dock-right",down:"esri-icon-down",downArrow:"esri-icon-down-arrow",download:"esri-icon-download",dragHorizontal:"esri-icon-drag-horizontal",dragVertical:"esri-icon-drag-vertical",duplicate:"esri-icon-duplicate",edit:"esri-icon-edit",elevationProfile:"esri-icon-elevation-profile",environmentSettings:"esri-icon-environment-settings",erase:"esri-icon-erase",error:"esri-icon-error",expand:"esri-icon-expand",fontFallbackText:"esri-icon-font-fallback-text",forward:"esri-icon-forward",gear:"esri-icon-gear",handleHorizontal:"esri-icon-handle-horizontal",handleVertical:"esri-icon-handle-vertical",home:"esri-icon-home",icon:"esri-icon",launchLinkExternal:"esri-icon-launch-link-external",layerList:"esri-icon-layer-list",layers:"esri-icon-layers",left:"esri-icon-left",leftArrows:"esri-icon-left-arrow",leftTriangleArrow:"esri-icon-left-triangle-arrow",lineOfSight:"esri-icon-line-of-sight",link:"esri-icon-link",linkExternal:"esri-icon-link-external",linkHorizontal:"esri-icon-link-horizontal",loadingIndicator:"esri-icon-loading-indicator",locate:"esri-icon-locate",locateCircled:"esri-icon-locate-circled",locked:"esri-icon-locked",mapPin:"esri-icon-map-pin",maximize:"esri-icon-maximize",measure:"esri-icon-measure",measureArea:"esri-icon-measure-area",measureBuildingHeightShadow:"esri-icon-measure-building-height-shadow",measureLine:"esri-icon-measure-line",menu:"esri-icon-menu",minimize:"esri-icon-minimize",minus:"esri-icon-minus",nonVisible:"esri-icon-non-visible",northNavigation:"esri-icon-north-navigation",noticeTriangle:"esri-icon-notice-triangle",organization:"esri-icon-organization",pan:"esri-icon-pan",pan2:"esri-icon-pan2",partlyCloudy:"esri-icon-partly-cloudy",pause:"esri-icon-pause",play:"esri-icon-play",playCircled:"esri-icon-play-circled",plus:"esri-icon-plus",polyline:"esri-icon-polyline",printer:"esri-icon-printer",radioChecked:"esri-icon-radio-checked",radioUnchecked:"esri-icon-radio-unchecked",refresh:"esri-icon-refresh",reverse:"esri-icon-reverse",right:"esri-icon-right",rightArrow:"esri-icon-right-arrow",rightTriangleArrow:"esri-icon-right-triangle-arrow",rotate:"esri-icon-rotate",save:"esri-icon-save",search:"esri-icon-search",settings2:"esri-icon-settings2",slice:"esri-icon-slice",swap:"esri-icon-swap",table:"esri-icon-table",timeClock:"esri-icon-time-clock",tracking:"esri-icon-tracking",trash:"esri-icon-trash",unlockedLinkHorizontal:"esri-icon-unlocked-link-horizontal",up:"esri-icon-up",upArrow:"esri-icon-up-arrow",upDownArrows:"esri-icon-up-down-arrows",urbanModel:"esri-icon-urban-model",vertexGps:"esri-icon-vertex-gps",visible:"esri-icon-visible",zoomInFixed:"esri-icon-zoom-in-fixed",zoomInMagnifyingGlass:"esri-icon-zoom-in-magnifying-glass",zoomOutFixed:"esri-icon-zoom-out-fixed",zoomToObject:"esri-icon-zoom-to-object"},T=p`arcgis-locate{display:block}`,$={base:"esri-locate"},E="gps-off",D=b(v),n=class extends u{constructor(){super(...arguments),this.messages=k(),this.viewModel=D(this),this._calciteButton=y(),this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=E,this.popupDisabled=this.viewModel.popupEnabled,this.position="top-left",this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.arcgisError=s(()=>this.viewModel,"locate-error"),this.arcgisPropertyChange=h()("state"),this.arcgisReady=m(),this.arcgisSuccess=s(()=>this.viewModel,"locate")}static{this.properties={autoDestroyDisabled:5,geolocationOptions:1,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:3,label:1,messageOverrides:0,popupDisabled:5,position:3,referenceElement:1,scale:9,state:3}}static{this.shadowRootOptions=g}static{this.styles=T}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}updated(){if(this._calciteButton.value)if(this.viewModel.state==="locating"){if(!this._calciteButton.value.children[0]){let i=document.createElement("calcite-loader");i.inline=!0,i.label="",this._calciteButton.value.append(i)}}else this._calciteButton.value.children[0]?.remove()}_localizeError(i){if(i instanceof GeolocationPositionError)return i.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:i.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(i instanceof Error)return i.message}_locate(){let{viewModel:i}=this;i.state==="locating"?i.cancelLocate():i.locate().catch(()=>{})}render(){let{viewModel:i,icon:M}=this,{state:o}=i,a=o==="locating",c=a?this.messages.cancel:this.messages.title,x=o==="feature-unsupported",L=O===void 0?E:void 0,l=this._localizeError(this.viewModel?.error);return e`<div class=${r(d($.base,t.widget))}>${!x&&e`<calcite-button class=${r(t.widgetButton)} .disabled=${o==="disabled"} .iconStart=${a?void 0:M??L} kind=neutral .label=${c} @click=${this._locate} title=${c??w} ${z(this._calciteButton)}></calcite-button>`||""}${l?e`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${l}</calcite-tooltip>`:null}</div>`}};f("arcgis-locate",n);export{n as ArcgisLocate};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as d}from"./JCX6ASIV.js";import{a as k,b as C}from"./Z3KQ55OO.js";import"./6Z3UBYKO.js";import{la as S,n as M}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as T,C as a,D as p,E as o,G as x,a as m,m as y,o as _,p as w,q as l,y as B,z as f}from"./CPU2FVJE.js";var t="esri-basemap-toggle",r="esri-basemap-thumbnail",e={base:t,secondaryBasemapImage:`${t}__image--secondary`,container:`${r} ${t}__container`,image:`${r}__image ${t}__image`,imageLoading:`${t}__image--loading`,overlay:`${r}__overlay ${t}__image-overlay`,title:`${r}__title ${t}__title`,overlayScrim:`${r}__overlay-scrim`},L=w`arcgis-basemap-toggle{display:block}`,R=C(M),g=class extends T{constructor(){super(...arguments),this.basemapUtils=y(S),this.messages=k(),this.viewModel=R(this),this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.icon="layer-basemap",this.nextBasemap=this.viewModel.nextBasemap,this.position="top-left",this.showTitle=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("nextBasemap","state"),this.arcgisReady=B()}static{this.properties={activeBasemap:0,autoDestroyDisabled:5,icon:3,label:1,messageOverrides:0,nextBasemap:0,position:3,referenceElement:1,showTitle:5,state:3}}static{this.shadowRootOptions=f}static{this.styles=L}async destroy(){await this.manager.destroy()}async toggle(){return await this.viewModel.toggle()}_getThumbnailStyles(s){let n=this.basemapUtils.getBasemapThumbnailUrl(s);return n?{backgroundImage:`url(${n})`}:{backgroundImage:""}}render(){let s=this.viewModel,n=s.state==="disabled"?null:s.activeBasemap,i=s.state==="disabled"?null:s.nextBasemap,D=s.state==="loading",h=s.state==="incompatible-next-basemap",c=i?.title??"",$=i&&i.loadStatus!=="loaded",v,b=this.showTitle&&c,u=h,I=b||u,U=this._getThumbnailStyles(n),A=this._getThumbnailStyles(i);return I&&(v=l`<div class=${a(e.overlay)}>${b?l`<span class=${a(e.title)} title=${c??o}>${c}</span>`:null}${u?l`<calcite-scrim class=${a(e.overlayScrim)} title=${this.messages.incompatibleSpatialReference??o}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>`:null}</div>`),l`<div class=${a(m(e.base,d.widget))}><calcite-button appearance=transparent data-basemap-id=${(i?i.id:"")??o} .disabled=${h} kind=neutral .label=${this.label??void 0} @click=${()=>void this.toggle()} title=${this.label??void 0??o}><div class=${a(m(e.container,e.secondaryBasemapImage))}><div class=${a(e.image)} style=${p(U)}></div></div><div class=${a(e.container)}><div class=${a(m(e.image,$?e.imageLoading:null))} style=${p(A)}>${$||D?l`<calcite-scrim><span aria-hidden=true class=${a(d.loaderAnimation)} role=presentation></span></calcite-scrim>`:null}</div>${v}</div></calcite-button></div>`}};x("arcgis-basemap-toggle",g);export{g as ArcgisBasemapToggle};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
function zo(...e){let t=[];for(let o=0;o<e.length;o++){let s=e[o];if(typeof s=="string")t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if(typeof s=="object")for(let n in s)s[n]&&t.push(n)}let r=t.join(" ");return t.length=0,r}var b=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function Re(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function Me(e,t,r){let{subscribe:o}=je(t);return o(s=>{s.some(i=>Re(e,i.target))&&r()})}var bt={};function je(e){let t=e.join(","),r=bt[t];if(r!==void 0)return r;let o=new Set,s=new MutationObserver(i=>o.forEach(a=>a(i)));globalThis.document&&s.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let n={subscribe(i){return o.add(i),{remove:()=>{o.delete(i),o.size===0&&(s.disconnect(),bt[t]=void 0)}}}};return bt[t]=n,n}function Ve(e,t){let r=e;for(;r;){let o=r.closest?.(t);if(o)return o;let s=r.getRootNode?.();if(s===globalThis.document)return null;r=s.host}return null}function Ie(e,t,r){return Ve(e,`[${t}]`)?.getAttribute(t)??r}function p(e,t,...r){try{return e?.call(t,...r)}catch(o){console.error(o,e)}}async function W(e,t,...r){try{let o=e?.call(t,...r);return o instanceof Promise?await o:o}catch(o){console.error(o,e)}}var ze=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],He=new Set(ze),tt="en",We={pt:"pt-PT",no:"nb",zh:"zh-CN"};async function Be(e,t,r=""){let o=`${t}/${r}`,s=`${o}${e}.json`;return _t[s]??(_t[s]=Mt(e,o)),await _t[s]}var _t={};async function Mt(e,t){let r=`${t}${e}.json`;try{let o=await fetch(r);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return e===tt?{}:await Mt(tt,t)}function Et(e,t){let r=Ie(e,"lang",globalThis.navigator?.language||tt);return{lang:r,t9nLocale:jt(r,t)}}function jt(e,t){let[r,o]=e.split("-"),s=r.toLowerCase(),n=s;return o&&(n=`${s}-${o.toUpperCase()}`),n=We[n]??n,t&&n==="nb"?"no":He.has(n)?n:o?jt(s):tt}function Vt(e,t,r,o,s){let n,i=()=>void Fe(e,t,o,s).then(a=>{(n?.lang!==a.lang||n.t9nLocale!==a.t9nLocale||n.t9nStrings!==a.t9nStrings)&&r(a),n=a}).catch(console.error);return i(),Me(e,["lang"],i)}async function Fe(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),o){let{lang:s,t9nLocale:n}=Et(e,o),i=`${t}/${r}/t9n`,a=`${r}.t9n.`,c=r===null?{}:await Be(n,i,a);return{lang:s,t9nLocale:n,t9nStrings:c}}var et=e=>e.replace(Ge,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),Ge=/[A-Z]+(?![a-z])|[A-Z]/gu;function It(e,t){let r=t>qe?Ke:t/Je,o=0,s=setInterval(()=>{o+=r,o>=t&&(clearInterval(s),e())},r);return s}var qe=4e3,Ke=2e3,Je=4;function zt(e){return e!==void 0}function Ht(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([o,s])=>s.noAccessor?void 0:[o,[(s.readOnly?2048:0)|(s.state?32:16)]]).filter(zt))}else{let r=e.constructor,o=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof o!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([s,[n]])=>(n&63)!==0))}}function Wt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Bt=(e,t)=>e.manager.internals.members?.[t]?.[0];var rt=Symbol.for("controller");var qt=e=>typeof e=="object"&&e!==null&&(rt in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var B;function x(e){B!==e&&(B=e,queueMicrotask(()=>{B===e&&(B=void 0)}))}function I(e){return B}var P=[];function st(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function Kt(){return P}var V;function Ye(e){V!==e&&(V=e,queueMicrotask(()=>{V===e&&(V=void 0)}))}function Qe(){let e=V;return V=void 0,e}var Ze=async(e,t)=>{let r=At(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let o=r.watchExports(s=>t(s,o))}return r.exports},Xe=async e=>{let t=At(e);return await t.ready,t},At=e=>{let t=Qe();if(t!==void 0)return t;let o=I().manager.internals.resolveExports(e);if(o!==void 0)return o;if(qt(e))return e},$={setter:!1,getter:!1,readOnly:!1},F=new WeakMap,Jt;Jt=rt;var wt=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new b,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Jt]=!0,this.ready=this._ready.promise,this._exports=Gt(this),this._exportWatchers=new Set;let t=e??I(new.target.name);this.component=t,this.component.addController(this),st(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Gt(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return x(this.component),Ze}get useRef(){return x(this.component),Xe}get useRefSync(){return x(this.component),At}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await W(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(W)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Ft,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Ft,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){x(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(o=>{typeof o=="function"?this._lifecycleCleanups.push(o):typeof o=="object"&&typeof o.remove=="function"&&this._lifecycleCleanups.push(o.remove)})}};function Ft(e){p(e,void 0,this)}var Yt=wt;function Gt(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,o,s){if(!(to.has(o)&&o in r&&r[o]===t)&&(o in r||o in Promise.prototype||typeof o=="symbol"))return typeof r=="function"?r[o]:Reflect.get(r,o,s)},set:(r,o,s,n)=>Reflect.set(r,o,s,n)});return t}var to=new Set(["exports","_exports"]);function nt(e,t,r){let o=Object.keys(e),s=o.length;T===void 0&&queueMicrotask(G),T??(T=new Map);let n=T.get(e);return n===void 0&&(n={callbacks:[],keyCount:s},T.set(e,n)),n.keyCount!==s&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=s),n.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[s];c===void 0?a(void 0):e[c]===r?a(c):a(void 0)}),r}var T=void 0;function G(){Array.from(T?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(o=>o(r))}),T=void 0}function q(e,t,r){var o;let s=t,n=e.manager.internals;(o=n.allWatchers)[s]??(o[s]=[]);let i=n.allWatchers[s],a=r,c=(l,h,d)=>p(a,null,l,h,d);return i.push(c),()=>{let l=i.indexOf(c);l!==-1&&i.splice(l,1)}}var Qt=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[o]])=>{var s;o&2048&&((s=t.setters)[r]??(s[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=$t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,o)=>{if($.readOnly)return t;throw new Error(`Cannot assign to read-only property "${o}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=$t,this.keyTrackers=[],r.forEach(o=>o(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let o=t.el.constructor.prototype;r!==o&&this._getSetProxy(o,e,"html")}_getSetProxy(e,t,r){let o=this.component,s=Bt(o,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,a=n.set,c=ot in i,l=ot in a;if(c&&l)return;let h=!c,d=!l,f=h?function(){let v=i.call(this),E=F.get(this);if($.getter||E===void 0)return v;let j=E.manager.internals;v=j.accessorGetter[t](v,t);let g=j.getters[t]??Ct;for(let C=0;C<g.length;C++)v=g[C](v,t);return v}:i,y=d?function(v){let E=i.call(this),j=F.get(this);if(j===void 0){a.call(this,v);return}let g=j.manager.isLit?v??void 0:Wt(v,s),C=j.manager.internals;if(g===E)a.call(this,g);else{let Rt=$.setter?Ct:C.setters[t]??Ct;for(let H=0;H<Rt.length&&(g=Rt[H](g,E,t),g!==E);H++);g=C.accessorSetter[t](g,E,t),a.call(this,g),g!==E&&C.enabledWatchers[t]?.forEach(H=>H(g,E,t))}C.keyTrackers.length>0&&C?.firePropTrackers(t,v)}:a;h&&(f[ot]=!0),d&&(y[ot]=!0),Object.defineProperty(e,t,{...n,get:f,set:y})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Ct=[],ot=Symbol(),$t=Symbol();function Zt(e,t,r){let o=e.manager.internals;return o.trackedValue!==$t&&o.trackedValue!==r&&o.firePropTrackers(void 0,void 0),o.keyTrackers.length===0&&queueMicrotask(()=>o.firePropTrackers(void 0,void 0)),o.trackedValue=r,o.keyTrackers.push((s,n)=>p(t,void 0,r===n?s:void 0)),r}function Xt(e,t,r){let o=Array.isArray(e)?e:[e],s=o.length+1,n=a=>{s-=1,a!==void 0&&(s=Math.min(s,0)),s===0&&t(a)};o.forEach(a=>nt(a,c=>n(c===void 0?void 0:{key:c,host:a,isReactive:!1}),r));let i=o.find(a=>"manager"in a&&typeof a.manager=="object"&&a.manager.component===a);return i&&Zt(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),r),r}function eo(e){$.setter=!0;try{return e()}finally{$.setter=!1}}function oo(e){$.getter=!0;try{return e()}finally{$.getter=!1}}function te(e){$.readOnly=!0;try{return e()}finally{$.readOnly=!1}}var ee=e=>(...t)=>{let r=Kt(),o=new e(...t),s=o.exports;st(r.at(-1));let n=o.component.manager.internals;n.markExports(o,s),o.watchExports(a=>n.markExports(o,a)),Ye(o);let i=[o.component,...r].reverse();return Xt(i,a=>a===void 0?void 0:ro(o,a,s),s)};function ro(e,{host:t,key:r,isReactive:o},s){let n=t,i=n[r]!==e.exports,a=n[r]!==s,c=s!==e.exports;if(i&&!a&&c&&(n[r]=e.exports),t===e.component){if(o){let h=e.component.manager.internals;a&&h.markExports(e,n[r]),q(e.component,r,d=>{d!==e.exports&&h.markExports(e,d)})}e.assignedProperty=o?void 0:r}e.watchExports(()=>{if(n[r]===e.exports)return;let h=e.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?te(()=>{n[r]=e.exports}):n[r]=e.exports})}var se=(e,t)=>new so(e,t),so=class extends Yt{constructor(e,t){let r="addController"in e,o=new Set;function s(c){o.add(c),!(rt in c)&&e.renderRoot&&e.el.isConnected&&c.hostConnected?.()}function n(c){o.delete(c),c.controllerRemoved?.()}let i=e;if(i.addController=s,i.removeController=n,!r){let c=t??e.constructor.__forceUpdate;i.requestUpdate=()=>c(e)}super(e),this.internals=new Qt(this.component),this.destroyed=!1,this._updatePromise=new b,this._originalLifecycles={},this.isLit=r,this.component.manager=this,Ht(e,r),this._controllers=o,this.exports=void 0,this.hasDestroy=Lt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let a=this.internals;Object.keys(a.members).forEach(c=>{a.accessorGetter[c]=oe,a.accessorSetter[c]=oe,a.getSetProxy(c)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(a.enableReadonly),st(void 0),x(e),F.set(e.el,e),F.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let o=this._connectedCallback.bind(this),s=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:o,hostDisconnected:s,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=o,e.disconnectedCallback=s,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Lt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(io),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(ao),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,co)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&q(this.component,Lt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(lo),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(ho,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(po,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new b,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(uo),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=It(e,no)}}},Lt="autoDestroyDisabled",no=1e3;var oe=e=>e;function io(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function ao(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function co(e){"triggerLoad"in e?await e.triggerLoad():await W(e.hostLoad,e)}function lo(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function ho(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function po(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function uo(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var ne=e=>mo(void 0,e);var fo=class extends wt{constructor(e,t){super(e);let r=this.exports;try{x(this.component);let o=t(this.component,this),s=this.exports!==r;if(o instanceof Promise){s||this.setProvisionalExports(o);let n=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!s||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this._ready.reject(o),console.error(o)}}catchUpLifecycle(){}},mo=ee(fo);var cr=ne;var hr=(e,t)=>(r={})=>ne((o,s)=>{let n=Et(o.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},a=o;queueMicrotask(()=>s.onLifecycle(()=>Vt(o.el,e("./assets"),({t9nLocale:l,t9nStrings:h,lang:d})=>{let f={...h,_lang:d,_t9nLocale:l,_loading:!1};s.exports=f;let y=h.componentLabel??h.widgetLabel;typeof y=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=y)),c(a.messageOverrides)},r.name,t)));function c(l){let h=s.exports,d=h._original??h,f=ie(d,l);l&&(f._original=d),s.exports=f}return"messageOverrides"in a&&s.onLifecycle(()=>q(a,"messageOverrides",c)),r.blocking?(s.setProvisionalExports(i,!1),s.ready):i});function ie(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([o,s])=>{typeof s=="object"?r[o]=ie(e[o],s):r[o]=s??e[o]}),r}var dr=e=>yo,re="arcgisPropertyChange";function yo(...e){let t=I(),o=t[re];return t.manager.isLit&&(o=t.constructor.$createEvent(re,void 0,t)),t.manager.onLoad(()=>t.manager.onLifecycle(()=>e.map(s=>q(t,s,()=>o.emit({name:s}))))),o}var it=globalThis,at=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ot=Symbol(),ae=new WeakMap,K=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==Ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(at&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=ae.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ae.set(r,t))}return t}toString(){return this.cssText}},ce=e=>new K(typeof e=="string"?e:e+"",void 0,Ot),go=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,s,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new K(r,e,Ot)},St=(e,t)=>{if(at)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),s=it.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=r.cssText,e.appendChild(o)}},ct=at?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return ce(r)})(e):e;var Tt=globalThis,lt=Tt.trustedTypes,le=lt?lt.createPolicy("lit-html",{createHTML:e=>e}):void 0,xt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Nt="?"+A,vo=`<${Nt}>`,k=document,Y=()=>k.createComment(""),Q=e=>e===null||typeof e!="object"&&typeof e!="function",Dt=Array.isArray,me=e=>Dt(e)||typeof e?.[Symbol.iterator]=="function",Pt=`[
|
7
|
-
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,de=/>/g,N=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pe=/'/g,ue=/"/g,ye=/^(?:script|style|textarea|title)$/i,kt=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),yr=kt(1),gr=kt(2),vr=kt(3),m=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),fe=new WeakMap,D=k.createTreeWalker(k,129);function ge(e,t){if(!Dt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return le!==void 0?le.createHTML(t):t}var ve=(e,t)=>{let r=e.length-1,o=[],s,n=t===2?"<svg>":t===3?"<math>":"",i=J;for(let a=0;a<r;a++){let c=e[a],l,h,d=-1,f=0;for(;f<c.length&&(i.lastIndex=f,h=i.exec(c),h!==null);)f=i.lastIndex,i===J?h[1]==="!--"?i=he:h[1]!==void 0?i=de:h[2]!==void 0?(ye.test(h[2])&&(s=RegExp("</"+h[2],"g")),i=N):h[3]!==void 0&&(i=N):i===N?h[0]===">"?(i=s??J,d=-1):h[1]===void 0?d=-2:(d=i.lastIndex-h[2].length,l=h[1],i=h[3]===void 0?N:h[3]==='"'?ue:pe):i===ue||i===pe?i=N:i===he||i===de?i=J:(i=N,s=void 0);let y=i===N&&e[a+1].startsWith("/>")?" ":"";n+=i===J?c+vo:d>=0?(o.push(l),c.slice(0,d)+xt+c.slice(d)+A+y):c+A+(d===-2?a:y)}return[ge(e,n+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},Z=class e{constructor({strings:t,_$litType$:r},o){let s;this.parts=[];let n=0,i=0,a=t.length-1,c=this.parts,[l,h]=ve(t,r);if(this.el=e.createElement(l,o),D.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(s=D.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let d of s.getAttributeNames())if(d.endsWith(xt)){let f=h[i++],y=s.getAttribute(d).split(A),S=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:S[2],strings:y,ctor:S[1]==="."?dt:S[1]==="?"?pt:S[1]==="@"?ut:R}),s.removeAttribute(d)}else d.startsWith(A)&&(c.push({type:6,index:n}),s.removeAttribute(d));if(ye.test(s.tagName)){let d=s.textContent.split(A),f=d.length-1;if(f>0){s.textContent=lt?lt.emptyScript:"";for(let y=0;y<f;y++)s.append(d[y],Y()),D.nextNode(),c.push({type:2,index:++n});s.append(d[f],Y())}}}else if(s.nodeType===8)if(s.data===Nt)c.push({type:2,index:n});else{let d=-1;for(;(d=s.data.indexOf(A,d+1))!==-1;)c.push({type:7,index:n}),d+=A.length-1}n++}}static createElement(t,r){let o=k.createElement("template");return o.innerHTML=t,o}};function U(e,t,r=e,o){if(t===m)return t;let s=o!==void 0?r.o?.[o]:r.l,n=Q(t)?void 0:t._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,o)),o!==void 0?(r.o??=[])[o]=s:r.l=s),s!==void 0&&(t=U(e,s._$AS(e,t.values),s,o)),t}var ht=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,s=(t?.creationScope??k).importNode(r,!0);D.currentNode=s;let n=D.nextNode(),i=0,a=0,c=o[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new z(n,n.nextSibling,this,t):c.type===1?l=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(l=new ft(n,this,t)),this._$AV.push(l),c=o[++a]}i!==c?.index&&(n=D.nextNode(),i++)}return D.currentNode=k,s}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},z=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,o,s){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=s,this.v=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=U(this,t,r),Q(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&Q(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Z.createElement(ge(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new ht(s,this),i=n.u(this.options);n.p(r),this.T(i),this._$AH=n}}_$AC(t){let r=fe.get(t.strings);return r===void 0&&fe.set(t.strings,r=new Z(t)),r}k(t){Dt(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,s=0;for(let n of t)s===r.length?r.push(o=new e(this.O(Y()),this.O(Y()),this,this.options)):o=r[s],o._$AI(n),s++;s<r.length&&(this._$AR(o&&o._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,s,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}_$AI(t,r=this,o,s){let n=this.strings,i=!1;if(n===void 0)t=U(this,t,r,0),i=!Q(t)||t!==this._$AH&&t!==m,i&&(this._$AH=t);else{let a=t,c,l;for(t=n[0],c=0;c<n.length-1;c++)l=U(this,a[o+c],r,c),l===m&&(l=this._$AH[c]),i||=!Q(l)||l!==this._$AH[c],l===u?t=u:t!==u&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}i&&!s&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},pt=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ut=class extends R{constructor(t,r,o,s,n){super(t,r,o,s,n),this.type=5}_$AI(t,r=this){if((t=U(this,t,r,0)??u)===m)return;let o=this._$AH,s=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==u&&(o===u||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}},be={M:xt,P:A,A:Nt,C:1,L:ve,R:ht,D:me,V:U,I:z,H:R,N:pt,U:ut,B:dt,F:ft},bo=Tt.litHtmlPolyfillSupport;bo?.(Z,z),(Tt.litHtmlVersions??=[]).push("3.2.0");var _e=(e,t,r)=>{let o=r?.renderBefore??t,s=o._$litPart$;if(s===void 0){let n=r?.renderBefore??null;o._$litPart$=s=new z(t.insertBefore(Y(),n),n,void 0,r??{})}return s._$AI(e),s};var{is:_o,defineProperty:Eo,getOwnPropertyDescriptor:Co,getOwnPropertyNames:$o,getOwnPropertySymbols:Ao,getPrototypeOf:wo}=Object,yt=globalThis,Ee=yt.trustedTypes,Lo=Ee?Ee.emptyScript:"",Oo=yt.reactiveElementPolyfillSupport,X=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?Lo:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ut=(e,t)=>!_o(e,t),Ce={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Ut};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Ce){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),s=this.getPropertyDescriptor(t,o,r);s!==void 0&&Eo(this.prototype,t,s)}}static getPropertyDescriptor(t,r,o){let{get:s,set:n}=Co(this.prototype,t)??{get(){return this[r]},set(i){this[r]=i}};return{get(){return s?.call(this)},set(i){let a=s?.call(this);n.call(this,i),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ce}static _$Ei(){if(this.hasOwnProperty(X("elementProperties")))return;let t=wo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(X("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(X("properties"))){let r=this.properties,o=[...$o(r),...Ao(r)];for(let s of o)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,s]of r)this.elementProperties.set(o,s)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let s=this._$Eu(r,o);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let s of o)r.unshift(ct(s))}else t!==void 0&&r.push(ct(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return St(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EC(t,r){let o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:mt).toAttribute(r,o.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,r){let o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let n=o.getPropertyOptions(s),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:mt;this._$Em=s,this[s]=i.fromAttribute(r,n.type),this._$Em=null}}requestUpdate(t,r,o){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Ut)(this[t],r))return;this.P(t,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[s,n]of o)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[X("elementProperties")]=new Map,w[X("finalized")]=new Map,Oo?.({ReactiveElement:w}),(yt.reactiveElementVersions??=[]).push("2.0.4");var L=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=_e(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return m}};L._$litElement$=!0,L.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:L});var So=globalThis.litElementPolyfillSupport;So?.({LitElement:L});(globalThis.litElementVersions??=[]).push("4.1.0");var _={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=e=>(...t)=>({_$litDirective$:e,values:t}),O=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,o){this.t=t,this._$AM=r,this.i=o}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var $e=";",gt=",",Ae=":";var we=M(class extends O{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let r=e.element.classList;for(let o of this.st)o in t||(r.remove(o),this.st.delete(o));for(let o in t){let s=!!t[o];s===this.st.has(o)||this.nt?.has(o)||(s?(r.add(o),this.st.add(o)):(r.remove(o),this.st.delete(o)))}return m}});var Le="important",To=" !"+Le,Oe=M(class extends O{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return o==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in t){let s=t[o];if(s!=null){this.ft.add(o);let n=typeof s=="string"&&s.endsWith(To);o.includes("-")||n?r.setProperty(o,n?s.slice(0,-11):s,n?Le:""):r[o]=s}}return m}});var{I:Qr}=be;var Se=e=>e.strings===void 0;var xo={},Pe=(e,t=xo)=>e._$AH=t;var No=M(class extends O{constructor(e){if(super(e),e.type!==_.PROPERTY&&e.type!==_.ATTRIBUTE&&e.type!==_.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Se(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===m||t===u)return t;let r=e.element,o=e.name;if(e.type===_.PROPERTY){if(t===r[o])return m}else if(e.type===_.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(o))return m}else if(e.type===_.ATTRIBUTE&&r.getAttribute(o)===t+"")return m;return Pe(e),t}});var xe=(e="",t={},r=I())=>{let o={emit:s=>{e===""&&G();let n=new CustomEvent(e,{detail:s,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(n),n}};return e===""&&nt(r,s=>{e=s},o),o},as=xe.bind(null,"");function Ne(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}var Te={},ds=(e,t)=>function(o,s){if(!globalThis.customElements)return;let i=(s??o??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(ko)};function ko([e,[t,r=""]]){if(customElements.get(e))return;let[o,s,n]=r.split($e),i=o?o?.split(gt).map(De):void 0,a=i?.map(([l])=>l),c=class extends Ro{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=a}static{this._asyncMethods=s?s?.split(gt):void 0}static{this._syncMethods=n?.split(gt)}static{this._name=e}constructor(){!c._loadPromise&&(c._loadPromise=t(),c._initializePrototype()),super()}};customElements.define(e,c)}var vt=Object.defineProperty;function De(e){let t=e.split(Ae);return t.length===1?[t[0],et(t[0])]:t}var Uo=globalThis.HTMLElement??De,Ro=class extends Uo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new b,this._postLoaded=new b,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){vt(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){vt(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){vt(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(r=>{Object.hasOwn(this,r)&&(this._store[r]=t[r],delete t[r])})}attributeChangedCallback(e,t,r){this._litElement?.attributeChangedCallback(e,t,r),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=Ne(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,r=t._name,o=this._store,s=Object.values(e).find(l=>l.tagName===r),n=`${r}--lazy`;!t._LitConstructor&&(t._LitConstructor=s,s.prototype.removeAttribute=function(l){HTMLElement.prototype.removeAttribute.call(this.el,l)},s.prototype.setAttribute=function(l,h){HTMLElement.prototype.setAttribute.call(this.el,l,h)},vt(s.prototype,"isConnected",{get(){return this.el.isConnected}}),customElements.define(n,s)),s.lazy=this;let a=document.createElement(n);s.lazy=void 0,this._litElement=a,this._store=a,this._pendingAttributes.forEach(l=>{let h=this.getAttribute(l);a.attributeChangedCallback(l,null,h)}),Object.entries(o).forEach(Mo,a);let c=this.isConnected;(c||this._ancestorLoad)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}};function Mo([e,t]){this[e]=t}var jo=()=>{},Vo=class ke extends L{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=se(this),this._postLoad=this.constructor.lazy?._postLoad??new b,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new b,this._enableUpdating=this.enableUpdating,this.enableUpdating=jo;let t=ke.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),o=this.shadowRootOptions===Te;return this.runtime?.commonStyles===void 0||o?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let o=typeof r=="number"?r:Array.isArray(r)?r[0]:0,s=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:o&1&&typeof t=="string"?et(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),...s})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,o=r.shadowRootOptions,n=t??(o===Te?this.el:this.el.attachShadow(o));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return L.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...r.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async _load(){let t=this.el._ancestorLoad??Ne(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(o=>!o.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async o=>await o.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,o){let s=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,s,o),()=>this.el.removeEventListener(t,s,o)))}listenOn(t,r,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(r,n,s),()=>t.removeEventListener(r,n,s)))}async componentOnReady(){return await this._postLoaded.promise,this}};Vo.$createEvent=xe;function Ue(e){let t,r=s=>{t=new URL(s,globalThis.location?.href).href},o={...e,getAssetPath(s){let n=new URL(s,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:r,customElement(s,n){n.runtime=o,n.tagName=s,customElements.get(s)||customElements.define(s,n)}};return r(e.defaultAssetPath),o}var bs=e=>typeof e=="object"&&e!=null?we(e):e,_s=e=>typeof e=="object"&&e!=null?Oe(e):e;var Cs=u;var Io=Ue({defaultAssetPath:"https://jsdev.arcgis.com/map-components/next/",hydratedAttribute:"hydrated"}),{customElement:Os,getAssetPath:Ss,setAssetPath:Ps}=Io;export{zo as a,et as b,It as c,zt as d,I as e,Yt as f,q as g,Zt as h,Xt as i,eo as j,oo as k,ee as l,cr as m,hr as n,dr as o,go as p,yr as q,gr as r,vr as s,u as t,_ as u,M as v,O as w,Se as x,as as y,Te as z,ds as A,Vo as B,bs as C,_s as D,Cs as E,Io as F,Os as G,Ss as H};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as t}from"./JCX6ASIV.js";import{a as p,b}from"./Z3KQ55OO.js";import"./6Z3UBYKO.js";import{ia as z}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as h,C as o,E as i,G as u,a,o as l,p as n,q as m,y as c,z as d}from"./CPU2FVJE.js";var g={base:"esri-zoom",horizontalLayout:"esri-zoom--horizontal"},v=n`arcgis-zoom{display:block}.esri-zoom{display:flex;flex-flow:column nowrap}.esri-zoom .esri-widget--button{box-shadow:none}.esri-zoom .esri-widget--button:first-child{margin-bottom:0}.esri-zoom .esri-widget--button:last-child{border-top:solid 1px var(--calcite-color-border-1)}.esri-zoom.esri-zoom--horizontal{flex-flow:row-reverse nowrap}.esri-zoom.esri-zoom--horizontal .esri-widget--button:last-child{border-top:none}.esri-zoom.esri-zoom--horizontal .esri-widget--button:first-child{border-left:solid 1px var(--calcite-color-border-1)}[dir=rtl] .esri-zoom.esri-zoom--horizontal .esri-widget--button:first-child{border-top:none}[dir=rtl] .esri-zoom.esri-zoom--horizontal .esri-widget--button:last-child{border-left:solid 1px var(--calcite-color-border-1)}`,$=b(z),s=class extends h{constructor(){super(...arguments),this.messages=p({}),this.viewModel=$(this),this.canZoomIn=this.viewModel.canZoomIn,this.canZoomOut=this.viewModel.canZoomOut,this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.position="top-left",this.state=this.viewModel.state,this.arcgisPropertyChange=l()("state"),this.arcgisReady=c()}static{this.properties={canZoomIn:16,canZoomOut:16,autoDestroyDisabled:5,icon:3,label:1,layout:3,messageOverrides:0,position:1,referenceElement:1,state:3}}static{this.shadowRootOptions=d}static{this.styles=v}async destroy(){await this.manager.destroy()}async zoomIn(){this.viewModel.zoomIn()}async zoomOut(){this.viewModel.zoomOut()}render(){let w={[g.horizontalLayout]:this.layout==="horizontal"},{canZoomIn:f,canZoomOut:y}=this.viewModel,{zoomIn:e,zoomOut:r}=this.messages;return m`<div class=${o(a(g.base,t.widget,w))}><calcite-button class=${o(t.widgetButton)} .disabled=${!f} icon-start=plus kind=neutral .label=${e} @click=${this.zoomIn} title=${e??i}></calcite-button><calcite-button class=${o(t.widgetButton)} .disabled=${!y} icon-start=minus kind=neutral .label=${r} @click=${this.zoomOut} title=${r??i}></calcite-button></div>`}};u("arcgis-zoom",s);export{s as ArcgisZoom};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as p}from"./3F7DW3N2.js";import{d as t}from"./6Z3UBYKO.js";import{X as g,a as r}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as d,G as h,o,p as l,y as a,z as n}from"./CPU2FVJE.js";var c=l`arcgis-sketch{display:block}`,m=p(g),s=class extends d{constructor(){super(),this.widget=m(this,{editConstructorProperties:this._editConstructorProperties}),this.viewModel=this.widget.viewModel,this.activeTool=this.widget.activeTool,this.autoDestroyDisabled=!1,this.availableCreateTools=this.widget.availableCreateTools,this.createGraphic=this.widget.createGraphic,this.creationMode=this.widget.creationMode,this.defaultCreateOptions=this.widget.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.widget.defaultUpdateOptions,this.hideCreateToolsCircle=this.widget.visibleElements.createTools.circle,this.hideCreateToolsPoint=this.widget.visibleElements.createTools.point,this.hideCreateToolsPolygon=this.widget.visibleElements.createTools.polygon,this.hideCreateToolsPolyline=this.widget.visibleElements.createTools.polyline,this.hideCreateToolsRectangle=this.widget.visibleElements.createTools.rectangle,this.hideDuplicateButton=this.widget.visibleElements.duplicateButton,this.hideLabelsToggle=this.widget.visibleElements.labelsToggle,this.hideSelectionToolsLassoSelection=this.widget.visibleElements.selectionTools["lasso-selection"],this.hideSelectionToolsRectangleSelection=this.widget.visibleElements.selectionTools["rectangle-selection"],this.hideSettingsMenu=this.widget.visibleElements.settingsMenu,this.hideSnappingControls=this.widget.visibleElements.snappingControls,this.hideSnappingControlsElementsEnabledToggle=this.widget.visibleElements.snappingControlsElements.enabledToggle,this.hideSnappingControlsElementsFeatureEnabledToggle=this.widget.visibleElements.snappingControlsElements.featureEnabledToggle,this.hideSnappingControlsElementsLayerList=this.widget.visibleElements.snappingControlsElements.layerList,this.hideSnappingControlsElementsSelfEnabledToggle=this.widget.visibleElements.snappingControlsElements.selfEnabledToggle,this.hideTooltipsToggle=this.widget.visibleElements.tooltipsToggle,this.hideUndoRedoMenu=this.widget.visibleElements.undoRedoMenu,this.icon=this.widget.icon,this.label=this.widget.label,this.labelOptions=this.widget.labelOptions,this.layer=this.widget.layer,this.layout=this.widget.layout,this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.position="bottom-left",this.showSnappingControlsElementsHeader=this.widget.visibleElements.snappingControlsElements.header,this.snappingOptions=this.widget.snappingOptions,this.state=this.widget.state,this.tooltipOptions=this.widget.tooltipOptions,this.updateGraphics=this.widget.updateGraphics,this.arcgisCreate=t(()=>this.widget,"create"),this.arcgisDelete=t(()=>this.widget,"delete"),this.arcgisPropertyChange=o()("state"),this.arcgisReady=a(),this.arcgisRedo=t(()=>this.widget,"redo"),this.arcgisUndo=t(()=>this.widget,"undo"),this.arcgisUpdate=t(()=>this.widget,"update"),this.listen("arcgisReady",this._arcgisReadyHandler)}static{this.properties={activeTool:3,autoDestroyDisabled:5,availableCreateTools:0,createGraphic:0,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,hideCreateToolsCircle:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,position:1,referenceElement:1,showSnappingControlsElementsHeader:5,snappingOptions:0,state:3,tooltipOptions:0,updateGraphics:0}}static{this.shadowRootOptions=n}static{this.styles=c}async cancel(){this.widget?.cancel()}async complete(){this.widget?.complete()}async create(e,i){await this.widget?.create(e,i)}async delete(){this.widget?.delete()}async destroy(){await this.manager.destroy()}async duplicate(){this.widget?.duplicate()}async redo(){this.widget?.redo()}async triggerUpdate(e,i){return void this.widget?.update(e,i)}async undo(){this.widget?.undo()}_arcgisReadyHandler(){this.defaultGraphicsLayerDisabled||this.el.view?.map.add(this.widget.layer)}async _editConstructorProperties(e){return this.defaultGraphicsLayerDisabled||(e.layer??=await r({title:"Sketch Layer"})),e}};h("arcgis-sketch",s);export{s as ArcgisSketch};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as y}from"./3F7DW3N2.js";import"./6Z3UBYKO.js";import{d as s,v as w}from"./4E6LETTC.js";import{d as c}from"./7B75CFKS.js";import{B as n,G as l,o,p as r,y as h,z as d}from"./CPU2FVJE.js";var m=r`arcgis-directions{display:block}`,g=y(w),i="map-components:arcgis-directions",a=class extends n{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.apiKey=this.widget.apiKey,this.autoDestroyDisabled=!1,this.headingLevel=this.widget.headingLevel,this.hideLayerDetails=this.widget.visibleElements.layerDetails,this.hideSaveAsButton=this.widget.visibleElements.saveAsButton,this.hideSaveButton=this.widget.visibleElements.saveButton,this.icon=this.widget.icon,this.label=this.widget.label,this.lastRoute=this.widget.lastRoute,this.layer=this.widget.layer,this.maxStops=this.widget.maxStops,this.position="bottom-left",this.searchProperties=this.widget.searchProperties,this.state=this.viewModel.state,this.unit=this.widget.unit,this.useDefaultRouteLayer=!1,this.arcgisPropertyChange=o()("lastRoute","state"),this.arcgisReady=h()}static{this.properties={apiKey:1,autoDestroyDisabled:5,headingLevel:9,hideLayerDetails:5,hideSaveAsButton:5,hideSaveButton:5,icon:1,label:1,lastRoute:0,layer:0,maxStops:9,position:1,referenceElement:1,routeLayerItemId:1,searchProperties:0,state:0,unit:1,useDefaultRouteLayer:5}}static{this.shadowRootOptions=d}static{this.styles=m}async destroy(){await this.manager.destroy()}async getDirections(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to get directions`);return await this.widget?.getDirections()}async save(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions`);return await this.widget?.save()}async saveAs(t,e){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to save directions as a Portal Item`);return await this.widget?.saveAs(t,e)}async zoomToRoute(){if(this.widget?.viewModel?.state!=="ready")throw new Error(`${i} - component not ready to zoom to route`);this.widget?.zoomToRoute()}willUpdate(t){if(t.has("routeLayerItemId")){let e=this.routeLayerItemId;c(e)&&!this.useDefaultRouteLayer?(this.widget.view?.map.remove(this.layer),this._setDefaultLayer()):e&&this.widget&&s({portalItem:{id:e}}).then(u=>{this.layer=u,this.widget.view?.map.add(this.layer)}).catch(console.error)}t.has("useDefaultRouteLayer")&&this._setDefaultLayer()}_setDefaultLayer(){this.useDefaultRouteLayer&&!this.routeLayerItemId&&s({}).then(t=>{this.layer=t,this.widget.view?.map.add(this.layer)}).catch(console.error)}};l("arcgis-directions",a);export{a as ArcgisDirections};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as fe,b as pe}from"./MEB7IANZ.js";import{a as L}from"./JCX6ASIV.js";import{a as ce,b as le}from"./Z3KQ55OO.js";import{d as se}from"./6Z3UBYKO.js";import{K as ue}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as oe,C as D,E as ae,G as ie,a as G,b as K,o as J,p as X,q as $,r as Z,s as Q,v as ee,w as te,y as ne,z as re}from"./CPU2FVJE.js";var we=Symbol.for(""),Se=u=>{if(u?.r===we)return u?._$litStatic$};var de=new Map,N=u=>(i,...m)=>{let d=m.length,v,g,b=[],R=[],w,h=0,O=!1;for(;h<d;){for(w=i[h];h<d&&(g=m[h],(v=Se(g))!==void 0);)w+=v+i[++h],O=!0;h!==d&&R.push(g),b.push(w),h++}if(h===d&&b.push(i[d]),O){let S=b.join("$$lit$$");(i=de.get(S))===void 0&&(b.raw=b,de.set(S,i=b)),m=R}return u(i,...m)},De=N($),Le=N(Z),Ne=N(Q);var n={};var ye;function Re(){if(ye)return n;ye=1;var u=Symbol.for("react.element"),i=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),b=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),S=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=S&&e[S]||e["@@iterator"],typeof e=="function"?e:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,A={};function _(e,t,r){this.props=e,this.context=t,this.refs=A,this.updater=r||V}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function U(){}U.prototype=_.prototype;function j(e,t,r){this.props=e,this.context=t,this.refs=A,this.updater=r||V}var T=j.prototype=new U;T.constructor=j,F(T,_.prototype),T.isPureReactComponent=!0;var B=Array.isArray,z=Object.prototype.hasOwnProperty,P={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function W(e,t,r){var a,o={},c=null,f=null;if(t!=null)for(a in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(c=""+t.key),t)z.call(t,a)&&!H.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){for(var s=Array(l),y=0;y<l;y++)s[y]=arguments[y+2];o.children=s}if(e&&e.defaultProps)for(a in l=e.defaultProps,l)o[a]===void 0&&(o[a]=l[a]);return{$$typeof:u,type:e,key:c,ref:f,props:o,_owner:P.current}}function he(e,t){return{$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function ge(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Y=/\/+/g;function I(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ge(""+e.key):t.toString(36)}function k(e,t,r,a,o){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case u:case i:f=!0}}if(f)return f=e,o=o(f),e=a===""?"."+I(f,0):a,B(o)?(r="",e!=null&&(r=e.replace(Y,"$&/")+"/"),k(o,t,r,"",function(y){return y})):o!=null&&(x(o)&&(o=he(o,r+(!o.key||f&&f.key===o.key?"":(""+o.key).replace(Y,"$&/")+"/")+e)),t.push(o)),1;if(f=0,a=a===""?".":a+":",B(e))for(var l=0;l<e.length;l++){c=e[l];var s=a+I(c,l);f+=k(c,t,r,s,o)}else if(s=ve(e),typeof s=="function")for(e=s.call(e),l=0;!(c=e.next()).done;)c=c.value,s=a+I(c,l++),f+=k(c,t,r,s,o);else if(c==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function E(e,t,r){if(e==null)return e;var a=[],o=0;return k(e,a,"","",function(c){return t.call(r,c,o++)}),a}function be(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var p={current:null},C={transition:null},_e={ReactCurrentDispatcher:p,ReactCurrentBatchConfig:C,ReactCurrentOwner:P};function q(){throw Error("act(...) is not supported in production builds of React.")}return n.Children={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=_,n.Fragment=m,n.Profiler=v,n.PureComponent=j,n.StrictMode=d,n.Suspense=w,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_e,n.act=q,n.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=F({},e.props),o=e.key,c=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(c=t.ref,f=P.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)z.call(t,s)&&!H.hasOwnProperty(s)&&(a[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)a.children=r;else if(1<s){l=Array(s);for(var y=0;y<s;y++)l[y]=arguments[y+2];a.children=l}return{$$typeof:u,type:e.type,key:o,ref:c,props:a,_owner:f}},n.createContext=function(e){return e={$$typeof:b,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:g,_context:e},e.Consumer=e},n.createElement=W,n.createFactory=function(e){var t=W.bind(null,e);return t.type=e,t},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:R,render:e}},n.isValidElement=x,n.lazy=function(e){return{$$typeof:O,_payload:{_status:-1,_result:e},_init:be}},n.memo=function(e,t){return{$$typeof:h,type:e,compare:t===void 0?null:t}},n.startTransition=function(e){var t=C.transition;C.transition={};try{e()}finally{C.transition=t}},n.unstable_act=q,n.useCallback=function(e,t){return p.current.useCallback(e,t)},n.useContext=function(e){return p.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return p.current.useDeferredValue(e)},n.useEffect=function(e,t){return p.current.useEffect(e,t)},n.useId=function(){return p.current.useId()},n.useImperativeHandle=function(e,t,r){return p.current.useImperativeHandle(e,t,r)},n.useInsertionEffect=function(e,t){return p.current.useInsertionEffect(e,t)},n.useLayoutEffect=function(e,t){return p.current.useLayoutEffect(e,t)},n.useMemo=function(e,t){return p.current.useMemo(e,t)},n.useReducer=function(e,t,r){return p.current.useReducer(e,t,r)},n.useRef=function(e){return p.current.useRef(e)},n.useState=function(e){return p.current.useState(e)},n.useSyncExternalStore=function(e,t,r){return p.current.useSyncExternalStore(e,t,r)},n.useTransition=function(){return p.current.useTransition()},n.version="18.3.1",n}var Oe={exports:{}};Oe.exports;Re();var me=(()=>{let u;return typeof window<"u"?u=window:typeof globalThis<"u"?u=globalThis:typeof global<"u"?u=global:typeof self<"u"?u=self:u={},u})(),{window:ke}=me;ke.STORYBOOK_ENV="web-components";var{window:Ee,EventSource:Ce}=me;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new Ce("__webpack_hmr").addEventListener("message",function(u){try{let{action:i}=JSON.parse(u.data);i==="built"&&Ee.location.reload()}catch{}}));var $e=new Set(["componentName","view","itemId","mapItemId","sceneItemId"]),je=class extends te{update(u,i){let[m]=i,d=u;Object.entries(m).forEach(([v,g])=>{$e.has(v)||g==="false"||g===!1||d.element.setAttribute(K(v),String(g))})}};ee(je);var Te=X`arcgis-home{display:block}`,Pe={base:"esri-home"},xe=le(ue),M=class extends oe{constructor(){super(...arguments),this.messages=ce(),this.viewModel=xe(this),this._calciteButton=fe(),this.autoDestroyDisabled=!1,this.goToOverride=this.viewModel.goToOverride,this.icon="home",this.position="top-left",this.state=this.viewModel.state,this.viewpoint=this.viewModel.viewpoint,this.arcgisGo=se(()=>this.viewModel,"go"),this.arcgisPropertyChange=J()("state"),this.arcgisReady=ne()}static{this.properties={autoDestroyDisabled:5,goToOverride:0,icon:3,label:1,messageOverrides:0,position:3,referenceElement:1,state:3,viewpoint:0}}static{this.shadowRootOptions=re}static{this.styles=Te}async cancelGo(){this.viewModel.cancelGo()}async destroy(){await this.manager.destroy()}async go(){return this.viewModel.go()}updated(){if(this._calciteButton.value)if(this.viewModel?.state==="going-home"){if(!this._calciteButton.value.children[0]){let i=document.createElement("calcite-loader");i.inline=!0,i.label="",this._calciteButton.value.append(i)}}else this._calciteButton.value.children[0]?.remove()}_go(){let{viewModel:i}=this;i.state==="going-home"?i.cancelGo():i.go()}render(){let{messages:i,icon:m}=this,d=this.viewModel?.state,v=d==="going-home";return $`<div class=${D(G(Pe.base,L.widget))}><calcite-button class=${D(L.widgetButton)} .disabled=${d==="disabled"} .iconStart=${v?void 0:m??void 0} kind=neutral .label=${i.componentLabel} @click=${this._go} .scale=${v?"s":"m"} title=${(d==="going-home"?i.cancel:i.title)??ae} ${pe(this._calciteButton)}></calcite-button></div>`}};ie("arcgis-home",M);export{M as ArcgisHome};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as l}from"./3F7DW3N2.js";import{d}from"./6Z3UBYKO.js";import{D as n}from"./4E6LETTC.js";import"./7B75CFKS.js";import{B as r,G as h,o as i,p as s,y as a,z as o}from"./CPU2FVJE.js";var g=s`arcgis-features{display:block}`,w=l(n),t=class extends r{constructor(){super(...arguments),this.widget=w(this),this.viewModel=this.widget.viewModel,this.actions=this.viewModel.actions,this.active=this.widget.active,this.autoDestroyDisabled=!1,this.collapsed=this.widget.collapsed,this.content=this.widget.content,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.features=this.widget.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featuresTitle=this.widget.title,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=this.widget.headingLevel,this.hideActionBar=this.widget.visibleElements.actionBar,this.hideCloseButton=this.widget.visibleElements.closeButton,this.hideFeatureNavigation=this.widget.visibleElements.featureNavigation,this.hideFlow=this.widget.visibleElements.flow,this.hideHeading=this.widget.visibleElements.heading,this.hideSpinner=this.widget.visibleElements.spinner,this.icon=this.widget.icon,this.includeDefaultActions=this.viewModel.includeDefaultActions,this.label=this.widget.label,this.map=this.widget.map,this.position="bottom-left",this.promises=this.widget.promises,this.selectedFeature=this.widget.selectedFeature,this.selectedFeatureIndex=this.widget.selectedFeatureIndex,this.showCollapseButton=this.widget.visibleElements.collapseButton,this.spatialReference=this.widget.spatialReference,this.state=this.viewModel.state,this.timeZone=this.widget.timeZone,this.arcgisPropertyChange=i()("selectedFeature","selectedFeatureIndex","state"),this.arcgisReady=a(),this.arcgisTriggerAction=d(()=>this.widget,"trigger-action")}static{this.properties={actions:0,active:7,autoDestroyDisabled:5,collapsed:7,content:1,featureViewModelAbilities:0,features:0,featuresPerPage:9,featuresTitle:1,goToOverride:0,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureNavigation:5,hideFlow:5,hideHeading:5,hideSpinner:5,icon:1,includeDefaultActions:5,label:1,map:0,position:1,promises:0,referenceElement:1,selectedFeature:0,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:3,timeZone:1}}static{this.shadowRootOptions=o}static{this.styles=g}async clear(){this.widget?.clear()}async close(){this.widget?.close()}async destroy(){await this.manager.destroy()}async fetchFeatures(e,c){return await this.widget?.fetchFeatures(e,c)}async next(){return this.widget?.next()}async open(e){this.widget?.open(e)}async previous(){return this.widget?.previous()}async triggerAction(e){this.widget?.triggerAction(e)}};h("arcgis-features",t);export{t as ArcgisFeatures};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{a as r,c as y,d as t}from"./6Z3UBYKO.js";import{f as d,h as g,ja as u}from"./4E6LETTC.js";import{e as h,f as _,g as n,h as o}from"./7B75CFKS.js";import{B as v,G as l,m,p as w,y as a,z as p}from"./CPU2FVJE.js";var V=w`.arcgis-scene{padding:0;margin:0;height:100%;width:100%}`,f=r(g,{}),b=r(d,{}),c=class extends v{constructor(){super(...arguments),this._map=f(this,{editConstructorProperties:this._editMapProperties}),this.reactiveUtils=m(u),this.view=b(this,{editConstructorProperties:this._editViewProperties}),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.arcgisViewChange=a(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layer-view-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layer-view-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layer-view-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=a()}static{this.properties={view:32,allLayerViews:0,alphaCompositingEnabled:5,analyses:0,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,center:1,clippingArea:0,constraints:0,environment:0,extent:0,fatalError:0,floors:0,gamepad:32,graphics:0,ground:0,groundView:0,highlightOptions:0,interacting:32,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupDisabled:5,qualityProfile:1,ready:0,resolution:32,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,updating:7,viewingMode:1,viewpoint:0,zoom:9}}static{this.shadowRootOptions=p}static{this.styles=V}get camera(){return this.view.camera??this._camera}set camera(e){this._camera=e,this.ready&&!h(this.camera,e)&&(this.view.camera=e)}get cameraFov(){return this.view.camera?.fov??this._cameraFov}set cameraFov(e){this.ready?e!=null&&this._mutateCamera(i=>{i.fov=e}):this._cameraFov=e}get cameraHeading(){return this.view.camera?.heading??this._cameraHeading}set cameraHeading(e){this.ready?e!=null&&this._mutateCamera(i=>{i.heading=e}):this._cameraFov=e}get cameraPosition(){return this.view.camera?.position??this._cameraPosition}set cameraPosition(e){if(this.ready){let i=o(this.view.camera?.position,e);i&&this._mutateCamera(s=>{s.position=i})}else this._cameraPosition=e}get cameraTilt(){return this.view.camera?.tilt??this._cameraTilt}set cameraTilt(e){if(this.ready)e!=null&&this._mutateCamera(i=>{i.tilt=e});else{this._cameraTilt=e;return}}get center(){return this.view.center??this._center}set center(e){let i=n(e,this.ready?this.view:void 0);i&&(this.ready&&(this.view.center=i),this._center=i)}get extent(){return this.view.extent??this._extent}set extent(e){this.view.ready||(this._extent=e),e&&!this.extent?.equals(e)&&(this.view.extent=e)}get gamepad(){return this.ready?this.view.input.gamepad:void 0}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id??this._itemId}set itemId(e){this._itemId=e,this.ready&&y.reCreate(this._map,this).then(()=>{this.view.map=this._map}).catch(console.error)}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get resolution(){return this.view.resolution}get scale(){return this.view.scale??this._scale}set scale(e){this.ready&&(this.view.scale=e),this._scale=e}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint??this._viewpoint}set viewpoint(e){_(this.viewpoint,e)&&(this.ready&&(this.view.viewpoint=e),this._viewpoint=e)}get zoom(){return this.view.zoom??this._zoom}set zoom(e){this.ready&&(this.view.zoom=e),this._zoom=e}async addLayer(e,i){this.map?.add(e,i)}async addLayers(e,i){this.map?.addMany(e,i)}async closePopup(){this.view?.closePopup()}async destroy(){await this.manager.destroy()}async goTo(e,i){return await this.view?.goTo(e,i)}async hitTest(e,i){return await this.view?.hitTest(e,i)}async openPopup(e){await this.view?.openPopup(e)}async takeScreenshot(e){return await this.view?.takeScreenshot(e)}toMap(e,i){return this.view.toMap(e,i)}toScreen(e){return this.view.toScreen(e)}async tryFatalErrorRecovery(){this.view?.tryFatalErrorRecovery()}async whenAnalysisView(e){return await this.view?.whenAnalysisView(e)}async whenLayerView(e){return await this.view?.whenLayerView(e)}load(){this.el.childElem=document.createElement("div"),this.el.childElem.classList.add("arcgis-scene"),this.el.append(this.el.childElem),this.view.container??=this.el.childElem}loaded(){let{watch:e}=this.reactiveUtils;this.manager.onLifecycle(()=>[e(()=>this.view.stationary,()=>{this.arcgisViewChange.emit()},{initial:!0}),e(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready})])}_editMapProperties(e){this.map&&(this._map=this.map),this.itemId?e.portalItem={id:this.itemId}:this.basemap?this.basemap==="none"&&(e.basemap=void 0,this.basemap=null):e.basemap="topo-vector";let{basemap:i,...s}=e;return i||(e=s),e}async _editViewProperties(e){await this.manager.use(this._map),this.view.ui||(e.ui={components:["attribution"]}),e.map??=this._map;let i=n(this.center,void 0);i&&(e.center=i),this.viewpoint&&(e.viewpoint=this.viewpoint),this.scale!==void 0&&(e.scale=this.scale),this.extent&&(e.extent=this.extent),this.camera&&(e.camera=this.camera);let s=o(void 0,this.cameraPosition);return s&&(e.camera??={},e.camera.position=s),this.cameraHeading!=null&&(e.camera??={},e.camera.heading=this.cameraHeading),this.cameraTilt!=null&&(e.camera??={},e.camera.tilt=this.cameraTilt),this.cameraFov!=null&&(e.camera??={},e.camera.fov=this.cameraFov),this.zoom!==void 0&&(e.zoom=this.zoom),e}_mutateCamera(e){let i=this.view.camera.clone();e(i),h(this.view.camera,i)||(this.view.camera=i)}};l("arcgis-scene",c);export{c as ArcgisScene};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
4
|
-
* v4.32.0-next.20
|
5
|
-
*/
|
6
|
-
import{b as d}from"./6Z3UBYKO.js";import{b as t}from"./7B75CFKS.js";import{H as p,g as n,l as m,n as l}from"./CPU2FVJE.js";var D=l(p),u=(c,e)=>(s,o)=>y(s,c,o),i=class extends d{hostConnected(){this.component.manager.loadedCalled&&t(this.component)}async hostLoad(){await super.hostLoad(),!this.component.manager.destroyed&&this._watchMetaProperties()}hostLoaded(){let{el:e}=this.component,s=e.shadowRoot?.firstElementChild??e.firstElementChild??void 0;e.childElem=s??e.childElem;let o=!1,h=this.component.el.view;Object.defineProperty(this.component.el,"view",{get:()=>this._instance.view,set:r=>{let w=this.component.el.view,a=r;this._instance.view=a,this._instance.map=a?.map,this._watchViewDestroy(),this.component.requestUpdate("view",w),r&&!o&&(o=!0,this.component.arcgisReady.emit())},configurable:!0,enumerable:!0}),h&&(this._instance.view=h),this.component.el.isConnected&&(t(this.component),this._watchViewDestroy())}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.el.view?.ui?.remove(this.component.el.childElem)}hostDestroy(){super.hostDestroy(),this._watchViewDestroyHandle?.remove()}_watchMetaProperties(){n(this.component,"position",e=>{this.component.el.childElem!=null&&typeof e=="string"&&t(this.component)}),n(this.component,"referenceElement",()=>t(this.component))}_watchViewDestroy(){this._watchViewDestroyHandle?.remove(),this._watchViewDestroyHandle=this.reactiveUtils.when(()=>this.component.el.view?.destroyed===!0,()=>void this.component.destroy().catch(console.error),{sync:!0})}},y=m(i);export{D as a,u as b};
|