@arcgis/map-components 5.2.0-next.40 → 5.2.0-next.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{TLFRQY4X.js → 6J7L2FAB.js} +1 -1
- package/dist/cdn/{5IO4VISO.js → BIZFPS3V.js} +1 -1
- package/dist/cdn/{AWQ26Q4D.js → CNV6ALQO.js} +1 -1
- package/dist/cdn/{KH3IAHXE.js → GPDIJQMG.js} +1 -1
- package/dist/cdn/{TVTHJ57O.js → J3LU4VHH.js} +1 -1
- package/dist/cdn/{V3YVWJA3.js → JIIWY7WR.js} +1 -1
- package/dist/cdn/{OTLQG3D4.js → NGYAHM32.js} +1 -1
- package/dist/cdn/QXFHLDLD.js +2 -0
- package/dist/cdn/VZK5BXWY.js +2 -0
- package/dist/cdn/{G55FBLQV.js → WACJO3GM.js} +1 -1
- package/dist/cdn/{Y7ESUBFW.js → ZMVTKENO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +10 -10
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +6 -6
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +3 -3
- package/dist/components/arcgis-feature-content/customElement.js +5 -5
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.d.ts +2 -1
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +5 -5
- package/dist/components/arcgis-popup/customElement.d.ts +2 -1
- package/dist/components/arcgis-popup/customElement.js +13 -9
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -33
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/KG4EPDJO.js +0 -2
- package/dist/cdn/XIVMPSLL.js +0 -2
package/dist/loader.js
CHANGED
|
@@ -31,7 +31,7 @@ const s = t(e, {
|
|
|
31
31
|
"arcgis-elevation-profile": [() => import("./components/arcgis-elevation-profile/customElement.js"), "_messages:,analysis:,autoDestroyDisabled,distanceUnit,distanceUnitOptions:,effectiveDisplayUnits:,elevationInfo:,elevationUnit,elevationUnitOptions:,feature:,geometry:,hideChart,hideChartAxisLabels,hideChartGridLines,hideClearButton,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideLegend,hideSelectButton,hideSettingsButton,hideStartButton,hideUniformChartScalingToggle,hideVisualization,highlightDisabled,icon,indicatorRelativePosition:,label,messageOverrides:,profiles:,progress:,referenceElement,state:,uniformChartScaling,view:;clear,destroy,select,start,stop"],
|
|
32
32
|
"arcgis-elevation-profile-legend": [() => import("./components/arcgis-elevation-profile-legend/customElement.js"), "effectiveDisplayUnits:,featureSelected,messages:,profiles:,results:;destroy"],
|
|
33
33
|
"arcgis-elevation-profile-legend-item": [() => import("./components/arcgis-elevation-profile-legend-item/customElement.js"), "effectiveDisplayUnits:,expanded,featureSelected,hideCheckbox,messages:,result:;destroy"],
|
|
34
|
-
"arcgis-elevation-profile-settings": [() => import("./components/arcgis-elevation-profile-settings/customElement.js"), "hasCustomEndContent,hasCustomStartContent,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideUniformChartScalingToggle,messages:,uniformChartScaling,unitOptionsDistance:,unitOptionsElevation:,viewModel:;destroy"],
|
|
34
|
+
"arcgis-elevation-profile-settings": [() => import("./components/arcgis-elevation-profile-settings/customElement.js"), "hasCustomEndContent,hasCustomStartContent,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideUniformChartScalingToggle,messageOverrides:,messages:,uniformChartScaling,unitOptionsDistance:,unitOptionsElevation:,viewModel:;destroy"],
|
|
35
35
|
"arcgis-elevation-profile-statistics": [() => import("./components/arcgis-elevation-profile-statistics/customElement.js"), "effectiveDisplayUnits:,messages:,result:;destroy"],
|
|
36
36
|
"arcgis-expand": [() => import("./components/arcgis-expand/customElement.js"), "autoCollapse,autoDestroyDisabled,closeOnEscDisabled,collapseIcon,collapseTooltip,content,expanded,expandIcon,expandTooltip,focusTrapDisabled,group,icon,iconNumber,label,messageOverrides:,messages:,mode,placement,referenceElement,state:,topLayerDisabled,view:,visualScale;collapse,destroy,expand"],
|
|
37
37
|
"arcgis-feature": [() => import("./components/arcgis-feature/customElement.js"), "autoDestroyDisabled,chartAnimationDisabled,defaultPopupTemplateEnabled,flowItems:,flowType,graphic:,heading:,headingLevel,hideAttachmentsContent,hideContent,hideCustomContent,hideExpressionContent,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideTextContent,icon,isFeatureFromTable:,label,location:,map:,messageOverrides:,messages:,referenceElement,showRelationshipContent,showUtilityNetworkContent,spatialReference:,state:,timeZone,view:,viewModel:;destroy,nextMedia,previousMedia,setActiveMedia,updateGeometry"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.42",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"lit": "^3.3.0",
|
|
47
47
|
"lodash-es": "^4.18.1",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
|
-
"@arcgis/common-components": "5.2.0-next.
|
|
50
|
-
"@arcgis/
|
|
51
|
-
"@arcgis/
|
|
49
|
+
"@arcgis/common-components": "5.2.0-next.42",
|
|
50
|
+
"@arcgis/lumina": "5.2.0-next.42",
|
|
51
|
+
"@arcgis/toolkit": "5.2.0-next.42"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcgis/core": "^5.2.0-next",
|
package/dist/cdn/KG4EPDJO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import l from"./NSF5Q73E.js";import j from"./2JBFSC6D.js";import{a as q}from"./JCRPP54Z.js";import{a as N,b as x,g as S,h as G,m as $}from"./LDDAJOTV.js";import{a as D}from"./EUCWM5S7.js";import{a as _}from"./O5T75PGZ.js";import i from"./X6PWBP6M.js";import h from"./MZWO5JYA.js";import g from"./P6CDJ2IV.js";import"./VJVKFKSG.js";import f from"./SYRZLONH.js";import{a as k}from"./JP24H6WY.js";import{a as p}from"./JD74LG7K.js";import e from"./V6VLUKHQ.js";import c from"./7MO7E734.js";import{g as E}from"./Z7J6NDSB.js";import"./VWED2WAO.js";import a from"./3MWUCGFA.js";import"./QUZTFUWM.js";import{d as R}from"./RZ6SODVT.js";import{B as T,M as P,N as m,O as A,P as u,R as b,S as v,U as O,b as r,x as d}from"./CDSRIIHC.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:z},I,{on:C,watch:V},W,X,{h:f},,,B,,,,,{a:H,b:U,c:j}])=>{var g=q,Y=y=>{let e=y?.type;return e==="knowledge-graph"||e==="map-image"||e==="tile"},Z=y=>y?.type==="catalog",J="nested",ee=I.ofType(X),te=B(W),F=class extends A{constructor(){super(...arguments),this._rootGroupUid=`operational-${T()}`,this._openedLayersController=null,this._rootListRef=P(),this._destroying=!1,this._destroyed=!1,this.messages=k(),this._clearActiveItem=()=>{this._activeItem=null},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(s=>s.classList?.contains(g.item));this._activeItem=$(t)},this._tooltipReferenceMap=z(),this._layerListMap=z(),this._setPanelFlowItemRef=e=>{e&&this._focusPanelFlowItemNode(e)},this._setRootFlowItemRef=e=>{e&&this._focusRootFlowItemNode(e)},this._setLayerFlowItemRef=e=>{e&&this._focusLayerFlowItemNode(e)},this.viewModel=te(this),this._activeItem=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this.layerTablesEnabled=new I(["knowledge-graph"]),this.mapImageOptions=null,this.tileOptions=null,this.view=this.viewModel.view,this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.closed=!1,this.topLayerDisabled=!1,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.openedLayers=new I,this.openedLayerLists=new I,this.collapsed=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minFilterItems=x,this.selectedItems=new ee,this.selectionMode="none",this.visibilityAppearance="default",this.arcgisPropertyChange=E()("state"),this.arcgisReady=d(),this.arcgisCatalogItemsChange=d(),this.arcgisFilterChange=d(),this.arcgisSelectedItemsChange=d(),this.arcgisOpenedLayersChange=d()}static{this.properties={_catalogLayerList:16,_activeItem:16,_focusRootFlowItem:16,_focusPanelFlowItem:16,_focusLayerFlowItem:16,_totalItems:16,_filterEnabled:16,_visibleItems:16,_openedPanelItems:16,_renderedOpenLayerFlowItems:16,layerTablesEnabled:16,mapImageOptions:16,tileOptions:16,view:0,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,closed:5,topLayerDisabled:5,autoDestroyDisabled:5,referenceElement:1,state:32,openedLayers:32,openedLayerLists:32,catalogItems:0,catalogLayer:0,catalogOptions:0,collapsed:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,label:1,listItemCreatedFunction:0,minFilterItems:9,selectedItems:0,selectionMode:1,visibilityAppearance:1,messageOverrides:0,onCatalogOpen:0,onTablesOpen:0}}static{this.styles=[j,U]}get _totalItems(){return this.catalogItems?.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length??0}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,s)=>this._renderLayerFlowItem(t,s===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}async destroy(){this._destroying||this._destroyed||(this._destroying=!0,this._openedLayersController?.abort(),this._openedLayersController=null,await this.manager.destroy(),this.openedLayerLists.removeAll(),this.openedLayers.removeAll(),this._layerListMap.clear(),this._tooltipReferenceMap.clear(),this._destroyed=!0,this._destroying=!1)}loaded(){this.manager.onLifecycle(()=>[C(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()}),C(()=>this.viewModel.catalogItems,"change",()=>{S(this.selectedItems),this.arcgisCatalogItemsChange.emit()}),C(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),V(()=>[this.filterPredicate,this._rootListRef.value],()=>G(this._rootListRef.value,this.filterPredicate))])}disconnectedCallback(){super.disconnectedCallback(),this._openedLayersController?.abort(),this._openedLayersController=null,!this.autoDestroyDisabled&&!this._destroyed&&!this._destroying&&this.destroy()}loadDependencies(){}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let{_layerListMap:s}=this,i=s.get(e);if(i)return i;let a=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||!this.isConnected||this._destroyed?(a?.destroy?.(),a):(t.aborted||s.set(e,a),a)}async _handleOpenedLayersChange(){if(!this.isConnected||this._destroyed)return;let{_layerListMap:e,openedLayers:t,openedLayerLists:s}=this;this._openedLayersController?.abort();let i=new AbortController,{signal:a}=i;this._openedLayersController=i,e.forEach((c,h)=>{t.includes(h)||(c?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(c=>this._createFlowList(c,a)));if(a.aborted||!this.isConnected||this._destroyed)return;s.removeAll(),s.addMany(o);let l=s.at(-1),n=l&&"catalogLayer"in l?l:void 0;this._catalogLayerList!==n&&(this._catalogLayerList=n),this.arcgisOpenedLayersChange.emit()}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_focusRootFlowItemNode(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,f(e))}_focusPanelFlowItemNode(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,f(e))}_focusLayerFlowItemNode(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,f(e))}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:s,view:i,referenceElement:a,filterPlaceholder:o,listItemCreatedFunction:l,minFilterItems:n,selectionMode:c,visibilityAppearance:h}=this;return v(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder??o} .listItemCreatedFunction=${s?.listItemCreatedFunction??l} .minFilterItems=${s?.minFilterItems??n} .selectionMode=${s?.selectionMode??c} .visibilityAppearance=${s?.visibilityAppearance??h} .showErrors=${s?.visibleElements?.errors??this.showErrors} .showFilter=${s?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${w=>w.stopPropagation()} .catalogLayer=${e} .view=${i} .referenceElement=${a} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:s,referenceElement:i,view:a}=this,o=this._getTableListParams(e);return v(r`<arcgis-table-list .headingLevel=${o?.headingLevel??t} .selectionMode=${o?.selectionMode??s} .collapsed=${o?.collapsed} .filterPlaceholder=${o?.filterPlaceholder} .filterText=${o?.filterText} .label=${o?.label} .tables=${o?.tables} .view=${a} .referenceElement=${i} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list>`)}_onTablesOpen(e){if(this.onTablesOpen){this.onTablesOpen(e);return}let t=e.layer;Y(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=t.uid)}_onCatalogOpen(e){if(this.onCatalogOpen){this.onCatalogOpen(e);return}let t=e.layer?.parent;Z(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=e.layer?.uid)}_onTooltipReferenceChange(e,t){t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)}_onTriggerAction(e,t){this.triggerAction(e,t)}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:s}=this;if(t==="none")return;let i=e.target.selectedItems.map(a=>$(a)).filter(Boolean);s.removeAll(),s.addMany(i)}render(){let{state:e}=this,t={[p.hidden]:e==="loading",[p.disabled]:e==="disabled"};return r`<div class=${u(R(p.widget,p.panel,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:s}=this;return e?.layer?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){return e.incompatible?this._renderItemTooltip(e):e.children?.filter(t=>!t.hidden).toArray().map(t=>this._renderItemTooltipNodes(t))}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return r`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return r`<div class=${u(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return D(e.toArray(),({uid:s})=>s,(s,i)=>{let{uid:a,title:o,panel:l}=s,n=()=>this._handlePanelFlowItemBack(l);return r`<calcite-flow-item .description=${o} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&i===e.length-1} @calciteFlowItemBack=${c=>{c.preventDefault(),n()}} ${m(this._setPanelFlowItemRef)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${n}>Back</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_filterEnabled:s,_rootGroupUid:i,showCloseButton:a,showCollapseButton:o,showHeading:l,selectionMode:n,filterText:c,filterPlaceholder:h,openedLayers:w,_openedPanelItems:K}=this,M=this.label??this.messages.componentLabel??"",Q=[r`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l?M:void 0} .headingLevel=${this.headingLevel} .selected=${!w.length&&!K.length} @calciteFlowItemClose=${()=>this.closed=!0} ${m(this._setRootFlowItemRef)}>${t?.length?r`<calcite-list data-layer-type=${i??b} .displayMode=${J} .filterEnabled=${s} .filterPlaceholder=${h} .filterProps=${N} .filterText=${s?c:""} .group=${i} .label=${M} @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} selection-appearance=border .selectionMode=${n} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${L=>{this.filterText=L.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} ${m(this._rootListRef)}>${t.toArray().map(L=>this._renderItem(L))}${s?r`<div class=${u(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:_("root-flow",r`<calcite-flow>${Q}</calcite-flow>`)}_renderLayerFlowItem(e,t){let{messages:s,openedLayers:i}=this,a=e.title||this.messages.untitledLayer;return _(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??b} .description=${a} .heading=${s[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${o=>{o.preventDefault(),i.pop();let l=i.at(-1);l?this._focusLayerFlowItem=l.uid:this._focusRootFlowItem=!0}} ${m(this._setLayerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderItem(e,t,s){let{hideStatusIndicators:i,showCloseButton:a,showCollapseButton:o,showErrors:l,showFilter:n,showHeading:c,showTemporaryLayerIndicators:h}=this;return _(e.uid,H({activeItem:this._activeItem??void 0,css:{...g,itemCatalogIcon:g.itemActionIcon},displayMode:J,dragEnabled:!1,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,parent:t,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,hideStatusIndicators:i,showCloseButton:a,showCollapseButton:o,showErrors:l,showFilter:n,showHeading:c,showTemporaryLayerIndicators:h,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};O("arcgis-catalog-layer-list-next",F);return F},"applications/Components/featureUtils","core/Collection","core/reactiveUtils","widgets/CatalogLayerList/CatalogLayerListViewModel","widgets/LayerList/ListItem",a,c,e,f,g,h,i,j,l)
|
package/dist/cdn/XIVMPSLL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./POKO37D3.js";import{N as h,O as p,R as a,U as g,a as l,b as i,x as r}from"./CDSRIIHC.js";import"./H6RQVSYM.js";var d=l`:host{--arcgis-unit-select-inline-size: 180px}calcite-popover[calcite-hydrated-hidden]{inset-block-start:-999999px;inset-inline-start:-999999px}.popover-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md);max-width:300px}.uniform-chart-scaling-label{--calcite-label-margin-bottom: 0}.uniform-chart-scaling-checkbox-wrapper{width:var(--arcgis-unit-select-inline-size);flex-shrink:0}.slot-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.slot-content ::slotted(*){max-inline-size:100%}`,c=class extends p{constructor(){super(...arguments),this._onUniformChartScalingChange=t=>{this.arcgisElevationProfileSettingsUniformChartScalingChange.emit(t.currentTarget.checked)},this._onActionRef=t=>{this._actionElement=t??void 0},this._popoverIsOpen=!1,this.hideDistanceDisplayUnitSelect=!1,this.hideElevationDisplayUnitSelect=!1,this.hideUniformChartScalingToggle=!1,this.hasCustomStartContent=!1,this.hasCustomEndContent=!1,this.arcgisElevationProfileSettingsUniformChartScalingChange=r()}static{this.properties={_popoverIsOpen:16,_actionElement:16,viewModel:0,hideDistanceDisplayUnitSelect:5,hideElevationDisplayUnitSelect:5,hideUniformChartScalingToggle:5,hasCustomStartContent:5,hasCustomEndContent:5,messages:0,uniformChartScaling:5,unitOptionsDistance:0,unitOptionsElevation:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}_onPopoverClose(){this._popoverIsOpen=!1}_onPopoverOpen(){this._popoverIsOpen=!0}render(){let{messages:t}=this;if(!t||!this.hasCustomStartContent&&!this.hasCustomEndContent&&this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect&&this.hideUniformChartScalingToggle)return;let e=(this._popoverIsOpen?t.hideSettings:t.showSettings)??"";return i`<calcite-action icon=gear .text=${e} title=${e??a} ${h(this._onActionRef)}></calcite-action>${this._actionElement?i`<calcite-popover auto-close .label=${e} placement=bottom-end .referenceElement=${this._actionElement} @calcitePopoverOpen=${this._onPopoverOpen} @calcitePopoverClose=${this._onPopoverClose}><div class="popover-content">${this._renderCustomContent("settings-start",this.hasCustomStartContent)}${this._renderUnitSelector()}${this._renderUniformChartScalingToggle()}${this._renderCustomContent("settings-end",this.hasCustomEndContent)}</div></calcite-popover>`:void 0}`}_renderUnitSelector(){let{viewModel:t,messages:e}=this;if(!t||this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect)return;let n="inline-space-between";return i`${o({hidden:this.hideDistanceDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsDistance} .selectLabel=${e.unitDistanceSelectLabel} .value=${t.distanceUnit} .layout=${n} @arcgisUnitSelectChange=${s=>{t.distanceUnit=s.detail}}></arcgis-unit-select>`})}${o({hidden:this.hideElevationDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsElevation} .selectLabel=${e.unitElevationSelectLabel} .value=${t.elevationUnit} .layout=${n} @arcgisUnitSelectChange=${s=>{t.elevationUnit=s.detail}}></arcgis-unit-select>`})}`}_renderUniformChartScalingToggle(){let{messages:t,hideUniformChartScalingToggle:e,uniformChartScaling:n}=this;if(e)return;let s=t?.[n?"uniformChartScalingDisable":"uniformChartScalingEnable"]??"";return i`<calcite-label class="uniform-chart-scaling-label" layout=inline-space-between>${t?.uniformChartScalingLabel}<div class="uniform-chart-scaling-checkbox-wrapper"><calcite-checkbox .checked=${n} title=${s??a} @calciteCheckboxChange=${this._onUniformChartScalingChange}></calcite-checkbox></div></calcite-label>`}_renderCustomContent(t,e){if(e)return i`<div class="slot-content"><slot name=${t??a}></slot></div>`}};g("arcgis-elevation-profile-settings",c);export{c as ArcgisElevationProfileSettings};
|