@arcgis/map-components 5.1.0-next.75 → 5.1.0-next.76
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/{FM3AT2SL.js → AG7LUCV3.js} +1 -1
- package/dist/cdn/G7KHJU6J.js +2 -0
- package/dist/cdn/{ACAAYGKC.js → HL4M23YL.js} +1 -1
- package/dist/cdn/MNXYDKVS.js +2 -0
- package/dist/cdn/PP7ZT3L2.js +2 -0
- package/dist/cdn/QW4QGAIG.js +2 -0
- package/dist/cdn/SD7DMWPD.js +2 -0
- package/dist/cdn/{KGLUFWJ7.js → T66WG4I4.js} +1 -1
- package/dist/cdn/V2HLEYHF.js +3 -0
- package/dist/cdn/{3TVO5LIN.js → WO2BX7U2.js} +1 -1
- package/dist/cdn/XOTOQOK6.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +20 -19
- package/dist/chunks/video-utils.js +12 -0
- package/dist/components/arcgis-feature/customElement.js +75 -53
- package/dist/components/arcgis-feature-media/customElement.js +222 -211
- package/dist/components/arcgis-feature-relationship/customElement.js +69 -68
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +44 -44
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-video-player/customElement.js +22 -21
- package/dist/components/arcgis-video-player-action-bar/customElement.js +14 -17
- 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/2IXIUNGH.js +0 -2
- package/dist/cdn/CQCKW6L4.js +0 -2
- package/dist/cdn/EXZFAJW4.js +0 -3
- package/dist/cdn/GHSQJ4UC.js +0 -2
- package/dist/cdn/QPMWCCXQ.js +0 -2
- package/dist/cdn/YCM6SOEX.js +0 -2
package/dist/loader.js
CHANGED
|
@@ -37,7 +37,7 @@ const s = t(e, {
|
|
|
37
37
|
"arcgis-feature-expression": [() => import("./components/arcgis-feature-expression/customElement.js"), "expressionInfo:,fieldInfoMap:,graphic:,headingLevel,interceptor:,location:,map:,messages:,spatialReference:,values:,view:"],
|
|
38
38
|
"arcgis-feature-fields": [() => import("./components/arcgis-feature-fields/customElement.js"), "description,expressionInfos:,fieldInfos:,graphic:,heading,headingLevel,isContentFieldInfos,layer:,messages:,values:"],
|
|
39
39
|
"arcgis-feature-form": [() => import("./components/arcgis-feature-form/customElement.js"), "autoDestroyDisabled,disabled,editType,feature:,formTemplate:,groupDisplay,headingLevel,hideReadOnlyNotice,icon,label,layer:,map:,referenceElement,state:,timeZone;destroy,getValues,submit"],
|
|
40
|
-
"arcgis-feature-media": [() => import("./components/arcgis-feature-media/customElement.js"), "activeMediaInfo:,activeMediaInfoIndex,chartAnimationDisabled,description,fieldInfoMap:,formattedMediaInfoCount:,formattedMediaInfos:,formattedValues:,graphic:,heading,headingLevel,layer:,mediaInfos:,messages:,popupTemplate:,relatedInfos:,values:;;next,previous,setActiveMedia"],
|
|
40
|
+
"arcgis-feature-media": [() => import("./components/arcgis-feature-media/customElement.js"), "activeMediaInfo:,activeMediaInfoIndex,chartAnimationDisabled,description,expressionValues:,fieldInfoMap:,formattedMediaInfoCount:,formattedMediaInfos:,formattedValues:,graphic:,heading,headingLevel,layer:,mediaInfos:,messages:,popupTemplate:,relatedInfos:,values:;;next,previous,setActiveMedia"],
|
|
41
41
|
"arcgis-feature-relationship": [() => import("./components/arcgis-feature-relationship/customElement.js"), "activeCategory:,allItemsDescription:,autoDestroyDisabled,description,displayCount,featurePage,featuresPerPage,flowItems:,flowType,graphic:,heading,headingLevel,hideDescription,hideHeading,label,layer:,map:,messages:,orderByFields:,relationshipId,showAllEnabled,spatialReference:,timeZone,values:,view:;destroy"],
|
|
42
42
|
"arcgis-feature-table": [() => import("./components/arcgis-feature-table/customElement.js"), "actionColumn:,actionColumnConfig:,activeFilters:,activeSortOrders:,allColumns:,allRelatedTablesVisible:,allVisibleColumns:,attachmentsColumns:,attachmentsEnabled,attachmentsViewOptions:,attributeTableTemplate:,autoDestroyDisabled,autoRefreshDisabled,autoSaveDisabled,canAddRelatedFeature:,columnPerformanceModeDisabled,columnReorderingDisabled,columns:,definitionExpression,description,disabled,editingEnabled,effectiveSize:,fieldColumns:,filterBySelectionEnabled,filterGeometry:,groupColumns:,hasContingentValues:,hasInvalidPendingEdits:,hasPendingEdits:,hiddenFields:,hideColumnDescriptions,hideColumnMenuItemsSortAscending,hideColumnMenuItemsSortDescending,hideColumnMenus,hideHeader,hideLayerDropdownIcons,hideMenu,hideMenuItemsClearSelection,hideMenuItemsDeleteSelection,hideMenuItemsExportSelectionToCsv,hideMenuItemsRefreshData,hideMenuItemsSelectedRecordsShowAllToggle,hideMenuItemsSelectedRecordsShowSelectedToggle,hideMenuItemsToggleColumns,hideMenuItemsZoomToSelection,hideProgress,hideSelectionColumn,hideTooltips,highlightDisabled,highlightIds:,icon,initialSize,isQueryingOrSyncing:,isSyncingAttachments:,label,layer:,layerItemId,layers:,layerUrl,layerView:,maxSize,menuConfig:,multipleSelectionDisabled,multipleSortEnabled,multipleSortPriority,navigationScale,noDataMessage,objectIds:,outFields:,pageCount:,pageIndex,pageSize,paginationEnabled,referenceElement,relatedRecordsEnabled,relatedTable:,relatedTables:,relationship:,relationshipColumns:,returnGeometryEnabled,returnMEnabled,returnZEnabled,rowHighlightIds:,selectionManager:,showLayerDropdown,size:,state:,supportsAddAttachments:,supportsAttachments:,supportsDeleteAttachments:,supportsResizeAttachments:,supportsUpdateAttachments:,syncTemplateOnChangesDisabled,syncViewSelection,tableController:,tableDisabled,tableParent:,tableTemplate:,tableTitle,timeExtent:,timeZone,view:,visibleColumns:;deleteSelection,destroy,discardPendingEdits,exportSelectionToCSV,findColumn,getFeatureStoreItemByObjectId,goToPage,hideColumn,nextPage,previousPage,refresh,refreshCellContent,savePendingEdits,scrollToBottom,scrollToIndex,scrollToLeft,scrollToRow,scrollToTop,showAllColumns,showColumn,sortColumn,toggleColumnVisibility,zoomToSelection;addPendingEdits"],
|
|
43
43
|
"arcgis-feature-templates-legacy": [() => import("./components/arcgis-feature-templates-legacy/customElement.js"), "autoDestroyDisabled,disabledItemFunction:,enableListScroll,filterFunction:,filterText,groupBy,headingLevel,hideFilter,icon,items:,label,layers:,referenceElement,selectedItem:,selectionMode,state:,view:;destroy;select"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.76",
|
|
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.1.0-next.
|
|
50
|
-
"@arcgis/
|
|
51
|
-
"@arcgis/
|
|
49
|
+
"@arcgis/common-components": "5.1.0-next.76",
|
|
50
|
+
"@arcgis/lumina": "5.1.0-next.76",
|
|
51
|
+
"@arcgis/toolkit": "5.1.0-next.76"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcgis/core": "^5.1.0-next",
|
package/dist/cdn/2IXIUNGH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as m,c as E}from"./YFXHW7I2.js";import{b as s,e as c}from"./X4K6UDSU.js";import{a as u}from"./L5MVC2NA.js";import{M as h,b as a,x as i,z as l}from"./GRYRJF75.js";export default $arcgis.t(([{when:d,watch:f}])=>{var g=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.slotGroupRefs=m(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{let e=o.reason;if(e?.name==="webgl:required"){let{name:p}=e;this.webGLError={name:p}}})}hostLifecycle(){return[d(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),d(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length?this.openPopup({location:o,promises:e}):this.popupElement.open&&this.closePopup()}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return E({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},G=s((n,t)=>{let o=i();return t.onLifecycle(()=>f(()=>{let{map:e}=n;if(!e||e.destroyed)return[];let p=[];return e.loadError&&p.push(e),e.basemap?.loadError&&p.push(e.basemap),e.ground.loadError&&p.push(e.ground),[...e.allLayers,...e.allTables].forEach(r=>{r.loadError&&p.push(r)}),p},e=>{e.length&&(n.loadErrorSources=e,o.emit())})),o}),R=s((n,t)=>{let o=i();return t.onLifecycle(()=>f(()=>n.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:g,b:G,c:R}},"core/reactiveUtils")
|
package/dist/cdn/CQCKW6L4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import g from"./BH32Z76H.js";import f from"./R3NYK6BO.js";import e from"./S5JVHVOR.js";import{a as F}from"./3AX3SJK2.js";import d from"./6UX4Z6VU.js";import c from"./6PKEUXSO.js";import{g as _}from"./X4K6UDSU.js";import"./HWEEHWOD.js";import a from"./BAJLAC4A.js";import{c as x}from"./L5MVC2NA.js";import{N as y,O as I,P as M,R as b,U as C,a as $,b as r,x as w}from"./GRYRJF75.js";import"./3TTFCHAA.js";export default $arcgis.t(([{substitute:k},B,{watch:N},{stripHTML:Z},H,,,,L,,{a:E,b:T,c:A,d:D,e:V,i:R,p:d}])=>{var P=$`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`,U=L(H),v=class extends I{constructor(){super(...arguments),this.messages=F(),this._rootFlowNode=null,this.flowType="feature",this.internalFlowItems=new B,this.viewModel=U(this),this.view=this.viewModel.view,this.icon="icon",this.isFeatureFromTable=this.viewModel.isFeatureFromTable,this.graphic=this.viewModel.graphic,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.headingLevel=2,this.spatialReference=this.viewModel.spatialReference,this.timeZone=this.viewModel.timeZone,this.heading=this.viewModel.heading,this.map=this.viewModel.map,this.chartAnimationDisabled=this.viewModel.abilities.chartAnimation,this.hideHeading=!1,this.hideContent=!1,this.hideAttachmentsContent=!1,this.hideCustomContent=!1,this.hideExpressionContent=!1,this.hideFieldsContent=!1,this.hideMediaContent=!1,this.showRelationshipContent=!1,this.hideTextContent=!1,this.showUtilityNetworkContent=!1,this.hideLastEditedInfo=!1,this.autoDestroyDisabled=!1,this.location=this.viewModel.location,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("flowItems","state"),this.arcgisReady=w()}static{this.properties={flowType:16,popupTemplate:16,sourceLayer:16,fieldInfoMap:16,values:16,globalValues:16,internalFlowItems:16,viewModel:0,view:0,flowItems:0,referenceElement:1,icon:1,isFeatureFromTable:36,graphic:0,defaultPopupTemplateEnabled:5,headingLevel:9,spatialReference:0,timeZone:1,heading:0,map:0,chartAnimationDisabled:5,hideHeading:5,hideContent:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,showRelationshipContent:5,hideTextContent:5,showUtilityNetworkContent:5,hideLastEditedInfo:5,autoDestroyDisabled:5,messageOverrides:0,label:1,location:0,state:32}}static{this.styles=P}get popupTemplate(){return A(this.graphic,this.defaultPopupTemplateEnabled)??void 0}get sourceLayer(){return D(this.graphic)}get fieldInfoMap(){return E(T(this.popupTemplate),this.sourceLayer)}get values(){return this.graphic?.attributes??{}}get globalValues(){return this.viewModel.formattedAttributes?.global??{}}async destroy(){this._removeFlowItems(),await this.manager.destroy()}async nextMedia(e){return this._pageContentElementMedia(e,1)}async previousMedia(e){return this._pageContentElementMedia(e,-1)}async setActiveMedia(e,t){let i=this.viewModel.content;if(!Array.isArray(i))return;let s=i[e];if(s?.type!=="media")return;let a=s;return this._setContentElementMedia(a,t)}async updateGeometry(){return await this.viewModel.updateGeometry()}loaded(){this.manager.onLifecycle(()=>[N(()=>[this.internalFlowItems?.length],()=>this._setFocus())])}_setContentElementMedia(e,t){let i=e.mediaInfos?.length??0,s=(t+i)%i;e.activeMediaInfoIndex=s}_pageContentElementMedia(e,t){let i=this.viewModel.content;if(!Array.isArray(i))return;let s=i[e];if(s?.type!=="media")return;let a=s,{activeMediaInfoIndex:n}=a,o=(n??0)+t;this._setContentElementMedia(a,o)}_removeFlowItems(){this.internalFlowItems?.destroyAll()}_storeRootFlowNode(e){this._rootFlowNode=e}_setFocus(){this._rootFlowNode?.setFocus()}_handleDrillInBackClick(){this.internalFlowItems?.pop()?.destroy()}render(){let{state:e}=this.viewModel,t=r`<div class="container">${e==="error"?this._renderError():e==="loading"?this._renderLoading():this._renderContentContainer()}</div>`;return r`<div class="root">${t}</div>`}_renderError(){let{messages:e,hideHeading:t}=this;return r`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t?null:r`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`}_renderLoading(){return r`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`}_renderAttachments(e){let{values:t,fieldInfoMap:i,sourceLayer:s,globalValues:a}=this,n=d({values:t,fieldInfoMap:i,globalValues:a,layer:s,text:e.title}),o=d({values:t,fieldInfoMap:i,globalValues:a,layer:s,text:e.description});return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${n} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords??void 0} .attachmentTypes=${e.attachmentTypes??void 0} .orderByFields=${e.orderByFields??void 0} .graphic=${this.graphic??void 0} .description=${o} .messages=${this.messages}></arcgis-feature-attachments>`}_renderCustom(e){return r`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer??void 0} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderFields(e,t){let i=this.viewModel.formattedAttributes,{values:s,fieldInfoMap:a,sourceLayer:n,popupTemplate:o,globalValues:l,graphic:c}=this,h=!!e?.fieldInfos,p=(e.fieldInfos??o?.fieldInfos??[])?.filter(({fieldName:u})=>!!u&&(R(u)||V(u)||u in s)),m=o?.expressionInfos,f=d({values:s,fieldInfoMap:a,globalValues:l,layer:n,text:e.title}),g=d({values:s,fieldInfoMap:a,globalValues:l,layer:n,text:e.description});return r`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${f} class="content-element" .messages=${this.messages} .graphic=${c??void 0} .isContentFieldInfos=${h} .layer=${n} .description=${g} .values=${{...i?.global,...i?.content?.[t]}} .fieldInfos=${p} .expressionInfos=${m??void 0}></arcgis-feature-fields>`}_renderMedia(e,t){let{values:i,graphic:s,fieldInfoMap:a,sourceLayer:n,popupTemplate:o,globalValues:l}=this,{formattedAttributes:c,relatedInfos:h}=this.viewModel,p={...c?.global,...c?.content?.[t]},m=d({values:i,fieldInfoMap:a,globalValues:l,layer:n,text:e.title}),f=d({values:i,fieldInfoMap:a,globalValues:l,layer:n,text:e.description});return r`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex??0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .description=${f} .values=${i} .layer=${n} .graphic=${s??void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos??[]} .popupTemplate=${o??void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`}_renderText(e){return r`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic??void 0} class="content-element"></arcgis-feature-content>`}_renderExpression(e,t){let i=this.viewModel.formattedAttributes,{fieldInfoMap:s}=this;return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map??void 0} .spatialReference=${this.spatialReference??void 0} .view=${this.viewModel.view??void 0} .graphic=${this.graphic??void 0} .location=${this.location??void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${s} .values=${{...i?.global,...i?.content?.[t]}}></arcgis-feature-expression>`}_renderRelationship(e,t){let{values:i,graphic:s,fieldInfoMap:a,sourceLayer:n,globalValues:o}=this,{displayCount:l,orderByFields:c,relationshipId:h}=e,{formattedAttributes:p,view:m}=this.viewModel,f={...p?.global,...p?.content?.[t]},g=d({values:i,fieldInfoMap:a,globalValues:o,layer:n,text:e.title}),u=d({values:i,fieldInfoMap:a,globalValues:o,layer:n,text:e.description});return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems??this.internalFlowItems} .description=${u} .layer=${n} .map=${this.map??void 0} .displayCount=${l} .graphic=${s??void 0} .heading=${g} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${c??void 0} .relationshipId=${h??void 0} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .values=${f} .view=${m??void 0}></arcgis-feature-relationship>`}_renderAssociation(e){let{fieldInfoMap:t,globalValues:i,graphic:s,messages:a,sourceLayer:n,values:o}=this,l=d({values:o,fieldInfoMap:t,globalValues:i,layer:n,text:e.title}),c=d({values:o,fieldInfoMap:t,globalValues:i,layer:n,text:e.description});return r`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${c} .flowItems=${this.flowItems??this.internalFlowItems} .graphic=${s??void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${n} .map=${this.map??void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.viewModel.view??void 0}></arcgis-feature-utility-network-associations>`}_renderContentElement(e,t){switch(e.type){case"attachments":return this.hideAttachmentsContent?null:this._renderAttachments(e);case"custom":return this.hideCustomContent?null:this._renderCustom(e);case"fields":return this.hideFieldsContent?null:this._renderFields(e,t);case"media":return this.hideMediaContent?null:this._renderMedia(e,t);case"text":return this.hideTextContent?null:this._renderText(e);case"expression":return this.hideExpressionContent?null:this._renderExpression(e,t);case"relationship":return this.showRelationshipContent?this._renderRelationship(e,t):null;case"utility-network-associations":return this.showUtilityNetworkContent?this._renderAssociation(e):null;default:return null}}_renderContent(){let{content:e,graphic:t}=this.viewModel;return e?Array.isArray(e)&&e.length?e.length?e.map(this._renderContentElement,this):null:typeof e=="string"?r`<arcgis-feature-content .creator=${e} .graphic=${t??void 0} class="content-element"></arcgis-feature-content>`:e instanceof HTMLElement?e:null:null}_renderContentContainer(){let{hideContent:e,internalFlowItems:t,headingLevel:i,state:s,messages:a}=this;if(e)return null;let n=r`<div class="main">${[this._renderContent(),this._renderLastEditInfo()]}</div>`,o=a.returnToInitialFeature??"";return this.flowItems?n:r`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s==="loading"} .headingLevel=${i} .heading=${this.hideHeading?void 0:Z(this.heading)} .selected=${!t.length}>${n}</calcite-flow-item>${t.toArray().map((l,c)=>r`<calcite-flow-item @calciteFlowItemBack=${h=>{h.preventDefault(),this._handleDrillInBackClick()}} .loading=${s==="loading"} .headingLevel=${i} .selected=${c===t.length-1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${o} title=${o??b}></calcite-action>${l}</calcite-flow-item>`)}</calcite-flow>`}_renderLastEditInfo(){let{hideLastEditedInfo:e,messages:t}=this,{lastEditInfo:i}=this.viewModel;if(!i||e)return null;let{date:s,user:a}=i,n=i.type==="edit"?a?t.lastEditedByUser:t.lastEdited:a?t.lastCreatedByUser:t.lastCreated,o=k(n??"",{date:s,user:a});return r`<div class=${M(x("last-edited-info","content-element"))}>${o}</div>`}};C("arcgis-feature",v);return v},"intl","core/Collection","core/reactiveUtils","applications/Components/stringUtils","popup/Feature",a,c,d,e,f,g)
|
package/dist/cdn/EXZFAJW4.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import b from"./BH32Z76H.js";import a from"./R3NYK6BO.js";import{a as j}from"./N7VR7H4O.js";import{d as D,e as O}from"./X4K6UDSU.js";import"./HWEEHWOD.js";import{f as H}from"./L5MVC2NA.js";import{N as P,O as U,R as x,U as B,a as E,b as y}from"./GRYRJF75.js";import"./3TTFCHAA.js";export default $arcgis.t(([{getColorsFromRenderer:ae},{substitute:re},{watch:ne},se,J,{renderingSanitizer:Q},,{e:C,f:G,g:L,h:K,i:W,j:q,l:F,n:V,o:k,p:R}])=>{var oe=E`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;function z(S){if(!C(S))return null;let[e,t]=S.split("/").slice(1);return{layerId:e,fieldName:t}}var X=15,M="category",A="value",le="rgba(50, 50, 50, 1)",ce=250,de=500,he=200,N=class extends U{constructor(){super(...arguments),this._direction=O(),this._prefersReducedMotion=D("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=oe}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[ne(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,i=(e+t)%t;this.activeMediaInfoIndex=i}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,i=t+e;this._setContentElementMedia(i)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,i=this.values??{},a=this.formattedValues??{},r=this.fieldInfoMap??new Map;return e?.map(s=>{let n=s?.clone();if(!n)return null;if(n.title=R({values:i,fieldInfoMap:r,globalValues:a,layer:t,text:n.title}),n.caption=R({values:i,fieldInfoMap:r,globalValues:a,layer:t,text:n.caption}),n.altText=R({values:i,fieldInfoMap:r,globalValues:a,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let o=n.value;return this._setImageValue({value:o,formattedValues:a,layer:t}),o.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let o=n.value;return this._setChartValue({value:o,chartType:n.type,values:i,formattedValues:a,layer:t}),n}return null}).filter(s=>s!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:i,formattedValues:a,layer:r}=e,{linkURL:s,sourceURL:n}=i;if(n){let o=k(n,r);i.sourceURL=V({formattedValues:a,template:o,fieldInfoMap:t})}if(s){let o=k(s,r);i.linkURL=V({formattedValues:a,template:o,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:i,formattedValues:a,chartType:r,layer:s}=e,{popupTemplate:n,relatedInfos:o}=this,{fields:c,normalizeField:g}=t,h=s;if(t.fields=K(c,h),g&&(t.normalizeField=L(g,h)),!c.some(d=>!!(a[d]!=null||C(d)&&o?.size)))return;let l=n?.fieldInfos??[];t.series=[],c.forEach((d,m)=>{let u=t.colors?.[m];if(C(d)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:l,fieldName:d,formattedValues:a,chartType:r,value:t,color:u})];return}let p=this._getChartOption({value:t,values:i,chartType:r,formattedValues:a,fieldName:d,fieldInfos:l,color:u});t.series.push(p)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:i,formattedValues:a,chartType:r,value:s,color:n}=e,o=[],c=z(i),g=c&&this.relatedInfos?.get(c.layerId);if(!g)return o;let{relatedFeatures:h,relation:l}=g;if(!l||!h)return o;let{cardinality:d}=l;return h.forEach(m=>{let u=m.attributes;u&&Object.keys(u).forEach(p=>{p===c.fieldName&&o.push(this._getChartOption({value:s,values:u,formattedValues:a,fieldName:i,chartType:r,relatedFieldName:p,hasMultipleRelatedFeatures:h?.length>1,fieldInfos:t,color:n}))})}),d&&(d==="one-to-many"||d==="many-to-many")?o:[o[0]]}_getTooltip({label:e,value:t,chartType:i}){return i==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:i,formattedValues:a,fieldName:r,relatedFieldName:s,fieldInfos:n,chartType:o,hasMultipleRelatedFeatures:c,color:g}=e,{layer:h,graphic:l}=this,d=this.fieldInfoMap??new Map,{normalizeField:m,tooltipField:u}=t,p=m?C(m)?i[z(m).fieldName]:i[m]:null,v=W(r)&&a?.[r]!==void 0?a[r]:s&&i[s]!==void 0?i[s]:i[r]!==void 0?i[r]:a[r],_=v===void 0?null:v&&p&&typeof v=="number"&&typeof p=="number"?v/p:v,I=q(n,r),f=L(r,h),w=(u&&a[u]!==void 0?a[u]:F({fieldInfo:I||new se({fieldName:f}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:l,layer:h}))??"",b=a[f]??"",Y=_!=null?typeof _=="number"?_:Number(_):null;if(C(r)){let T=d.get(r.toLowerCase()),Z=u?d.get(u.toLowerCase()):null,ee=T?.fieldName??r,$=c&&u?z(u).fieldName:Z?.fieldName??u,te=(c&&$?i[$]:a[$]??(T&&F({fieldInfo:T,layer:h,graphic:l}))??T?.fieldName??s)??"",ie=(c&&s?i[s]:a[ee])??"";return new J({fieldName:r,tooltip:this._getTooltip({label:te,value:ie,chartType:o}),color:g,value:Y})}return new J({fieldName:r,tooltip:this._getTooltip({label:w,value:b,chartType:o}),color:g,value:Y})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./KUHHYT6E.js"),i=new Map;return e.forEach(a=>{a.color&&i.set(a,t(a.color.toCss(!0)))}),i}async _getRendererColors(){let{color:e}=await import("./KUHHYT6E.js"),t=new Map,i=this._getRenderer(),a="default";if(!i)return t;let r=await ae(i);return r.delete(a),Array.from(r.values()).every(s=>s?.length===1)&&Array.from(r.keys()).forEach(s=>{let n=r.get(s)?.[0]?.toCss(!0);n&&t.set(s,e(n))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:i}=await import("./NYFOMOKM.js").then(m=>m.default.then(e=>({createRoot:e}))),a=await i(e);this._chartRoot=a,this._renderChart({mediaInfo:t,root:a})}_handleMediaKeyup(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?ce:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?de:0}async _customizeChartTooltip(e,t="horizontal"){let{color:i}=await import("./KUHHYT6E.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:i(le)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:he})}async _createPieChart(e,t){let[{Tooltip:i},{PieChart:a,PieSeries:r}]=await Promise.all([import("./KUHHYT6E.js"),import("./6L32XZYR.js")]),{mediaInfo:s,root:n}=e,{title:o}=s,c=5,g=s?.altText||s?.title||"",h=n.container.children.push(a.new(n,{role:"figure",ariaLabel:g,focusable:!0,paddingBottom:c,paddingTop:c,paddingLeft:c,paddingRight:c})),l=`{category}: {valuePercentTotal.formatNumber('0.00')}%
|
|
3
|
-
({value})`,d=i.new(n,{labelText:l}),m=h.series.push(r.new(n,{name:o,valueField:A,categoryField:M,tooltip:d}));m.ticks.template.set("forceHidden",!0),m.labels.template.set("forceHidden",!0),m.slices.template.states.create("active",{shiftRadius:c}),this._customizeChartTooltip(d),m.slices.template.setAll({ariaLabel:l,focusable:!0,templateField:"columnSettings"}),m.data.setAll(t),m.appear(this._getChartSeriesAnimationMS()),h.appear(this._getChartAnimationMS()),h.root.dom.classList.toggle("chart-rendered",!0)}_getMinSeriesValue(e){let t=0;return e.forEach(i=>t=Math.min(i.value,t)),t}async _createColumnChart(e,t,i){let[{Tooltip:a,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:c,ColumnSeries:g}]=await Promise.all([import("./KUHHYT6E.js"),import("./OU4GNV5Y.js")]),{mediaInfo:h,root:l}=t,{value:d,title:m}=h,{_direction:u}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let p=e.xAxes.push(s.new(l,{renderer:n.new(l,{inversed:u==="rtl"}),categoryField:M}));p.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(c.new(l,{renderer:o.new(l,{inside:!1}),min:this._getMinSeriesValue(d.series)}));v.get("renderer").labels.template.setAll({direction:u});let _="{categoryX}",I=a.new(l,{labelText:_}),f=e.series.push(g.new(l,{name:m,xAxis:p,yAxis:v,valueYField:A,categoryXField:M,tooltip:I}));this._customizeChartTooltip(I),f.columns.template.setAll({ariaLabel:_,focusable:!0,templateField:"columnSettings"}),d.series.length>X&&e.set("scrollbarX",r.new(l,{orientation:"horizontal"})),p.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,i){let[{Tooltip:a,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:c,ColumnSeries:g}]=await Promise.all([import("./KUHHYT6E.js"),import("./OU4GNV5Y.js")]),{mediaInfo:h,root:l}=t,{value:d,title:m}=h,{_direction:u}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let p=e.yAxes.push(s.new(l,{renderer:o.new(l,{inversed:!0}),categoryField:M}));p.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.xAxes.push(c.new(l,{renderer:n.new(l,{inside:!1,inversed:u==="rtl"}),min:this._getMinSeriesValue(d.series)}));v.get("renderer").labels.template.setAll({direction:u});let _="{categoryY}",I=a.new(l,{labelText:_}),f=e.series.push(g.new(l,{name:m,xAxis:v,yAxis:p,valueXField:A,categoryYField:M,tooltip:I}));this._customizeChartTooltip(I,"vertical"),f.columns.template.setAll({ariaLabel:_,focusable:!0,templateField:"columnSettings"}),d.series.length>X&&e.set("scrollbarY",r.new(l,{orientation:"vertical"})),p.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,i){let[{Tooltip:a,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:c,LineSeries:g}]=await Promise.all([import("./KUHHYT6E.js"),import("./OU4GNV5Y.js")]),{root:h,mediaInfo:l}=t,{value:d,title:m}=l,{_direction:u}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let p=e.xAxes.push(s.new(h,{renderer:n.new(h,{inversed:u==="rtl"}),categoryField:M}));p.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(c.new(h,{renderer:o.new(h,{inside:!1}),min:this._getMinSeriesValue(d.series)}));v.get("renderer").labels.template.setAll({direction:u});let _="{categoryX}",I=i[0]?.lineSettings?.stroke,f=a.new(h,{getFillFromSprite:!I,labelText:_});I&&f.get("background")?.setAll({fill:I});let w=e.series.push(g.new(h,{name:m,xAxis:p,yAxis:v,valueYField:A,categoryXField:M,tooltip:f}));w.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(f,"vertical"),d.series.length>X&&e.set("scrollbarX",r.new(h,{orientation:"horizontal"})),p.data.setAll(i),w.data.setAll(i),w.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:i,XYCursor:a}=await import("./OU4GNV5Y.js"),{root:r,mediaInfo:s}=e,{type:n}=s,o=s?.altText||s?.title||"",c=r.container.children.push(i.new(r,{role:"figure",ariaLabel:o,focusable:!0,panX:!0,panY:!0}));c.set("cursor",a.new(r,{})),n==="column-chart"&&await this._createColumnChart(c,e,t),n==="bar-chart"&&await this._createBarChart(c,e,t),n==="line-chart"&&await this._createLineChart(c,e,t),c.root.dom.classList.toggle("chart-rendered",!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:i}=e,a=t*6e4;this._updateMediaInfoTimestamp(i.sourceURL);let r=window.setInterval(()=>{this._updateMediaInfoTimestamp(i.sourceURL)},a);this._refreshTimer=r}_getImageSource(e,t){let i=e.includes("?")?"&":"?",[a,r=""]=e.split("#");return`${a}${i}timestamp=${t}${r?"#":""}${r}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return y`<div class="root" @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,i=this._renderMediaText();return e?y`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e>1?y`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${re(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?y`<div class="item-title" .innerHTML=${Q.sanitize(e.title)??""}></div>`:null,i=e?.caption?y`<div class="item-caption" .innerHTML=${Q.sanitize(e.caption)??""}></div>`:null;return t||i?y`<div class="item-text">${t}${i}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:i,refreshInterval:a,altText:r,title:s}=e,{sourceURL:n,linkURL:o}=i,c=G(o??void 0)?"_blank":"_self",g=c==="_blank"?"noreferrer":"",h=a?t:null,l=h?h.sourceURL:n,d=y`<img alt=${(r||s)??x} src=${l??void 0??x}>`;return(o?y`<a href=${o??x} rel=${g??x} target=${c??x} title=${s??x}>${d}</a>`:null)??d}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:i}=this;return j(`media-${e.type}-${t}-${i}`,y`<div class="chart" ${P(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?y`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",i=t?this.messages?.previous??"":this.messages?.next??"",a=t?"chevron-left":"chevron-right",r=t?this.previous:this.next;return y`<button .ariaLabel=${i} class="pagination-button" @click=${r} tabindex=0 title=${i??x} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:i}=e,{value:a,type:r}=i,[{default:s},{default:n},{default:o},{esriChartColorSet:c},{ColorSet:g,Theme:h}]=await Promise.all([import("./A22L5XP5.js"),import("./ONHQ3PYJ.js"),import("./2MYNJXEY.js"),import("./NBMOR3C3.js"),import("./KUHHYT6E.js")]),l=h.new(t);l.rule("ColorSet").set("colors",c),l.rule("ColorSet").set("reuse",!0);let d=[o.new(t),l];H(this.el)==="dark"&&d.push(n.new(t)),this._canAnimateChart()&&d.push(s.new(t)),t.setThemes(d);let m=await this._getRendererColors(),u=await this._getSeriesColors(a.series),p=g.new(t,{}),v=u.get(a.series[0]),_=v?{lineSettings:{stroke:v}}:void 0,I=a.series.map((f,w)=>{let b=u.get(f)||m.get(f.fieldName)||p.getIndex(w);return{[M]:f.tooltip,[A]:f.value,columnSettings:{fill:b,stroke:b},..._}}).filter(f=>r==="pie-chart"?f.value!=null&&f.value>0:!0);r==="pie-chart"?this._createPieChart(e,I):this._createXYChart(e,I)}};B("arcgis-feature-media",N);return N},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a,b)
|
package/dist/cdn/GHSQJ4UC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{c as n}from"./L5MVC2NA.js";import{O as r,P as l,U as c,a,b as i}from"./GRYRJF75.js";import"./3TTFCHAA.js";export default $arcgis.t(([{formatDate:v},{watch:g}])=>{var m=a`.toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2)}.timecode{color:var(--calcite-color-text-3);line-height:1.25rem}.controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.live-icon{color:var(--calcite-color-status-danger)}.controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`;function s(o){return v(Math.round(o)*1e3,{minute:"2-digit",second:"2-digit"})}var t=class extends r{static{this.properties={_isLive:16,viewModel:0,messages:0,currentTime:9,duration:9,toggleMetadata:0,inline:5}}static{this.styles=m}loaded(){this.manager.onLifecycle(()=>[g(()=>this.viewModel.layer?.isLive,e=>{this._isLive=e??void 0},{initial:!0})])}render(){let{messages:e}=this;this._isLive===void 0&&(this._isLive=this.viewModel.layer?.isLive);let d=this._isLive?s(this.currentTime):`${s(this.currentTime)} / ${s(this.duration)}`;return i`<div class=${l(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${e} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive?i`<calcite-icon class="live-icon" icon=beacon></calcite-icon>`:null}${!this.inline||this._isLive?i`<div class="timecode">${d}</div>`:null}</div>${this.inline?null:i`<arcgis-video-player-controls-group class="controls-group" .messages=${e} .toggleMetadata=${()=>this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`}};c("arcgis-video-player-action-bar",t);return t},"intl","core/reactiveUtils")
|
package/dist/cdn/QPMWCCXQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import i from"./S5JVHVOR.js";import{a as v}from"./3AX3SJK2.js";import{a as _}from"./54VXNFQ4.js";import f from"./6UX4Z6VU.js";import b from"./6PKEUXSO.js";import{g as m}from"./X4K6UDSU.js";import"./HWEEHWOD.js";import a from"./BAJLAC4A.js";import{c as g}from"./L5MVC2NA.js";import{M as n,N as d,O as h,P as c,U as u,a as o,b as e,x as r}from"./GRYRJF75.js";import"./3TTFCHAA.js";export default $arcgis.t(([p,{watch:t},,,,f])=>{var y=o`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`,$=f(p),a=class extends h{constructor(){super(...arguments),this.messages=v({blocking:!0}),this.viewModel=$(this),this._videoViewRef=n(),this._metadataVisible=!1,this._duration=0,this._currentTime=0,this._bufferedValue=0,this._currentValue=0,this._isBuffering=!1,this._videoViewReady=!1,this.icon="video-web",this.state=this.viewModel.state,this.layer=this.viewModel.layer,this.autoDestroyDisabled=!1,this.inline=!1,this.showFullscreenToggle=!1,this.hideHeader=!1,this.view=this.viewModel.view,this.arcgisPropertyChange=m()("state","layer"),this.arcgisReady=r(),this.arcgisVideoReady=r()}static{this.properties={_metadataVisible:16,_duration:16,_currentTime:16,_bufferedValue:16,_currentValue:16,_isBuffering:16,_videoViewReady:16,_layerTitle:16,_isLive:16,referenceElement:1,icon:1,state:32,followingMode:1,layer:0,autoDestroyDisabled:5,messageOverrides:0,label:3,inline:7,showFullscreenToggle:5,hideHeader:5,view:0}}static{this.styles=y}get followingMode(){return this.viewModel.followingMode}set followingMode(i){this.viewModel.followingMode=i}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[t(()=>[this.viewModel.currentTime,this.viewModel.duration,this.viewModel.duration,this.viewModel.ended],()=>{let{buffered:i,currentTime:l,duration:s,ended:w}=this.viewModel;this._duration=s,this._currentTime=l,this._bufferedValue=i/(s||1),this._currentValue=l/(s||1),this._isBuffering=!w&&this._bufferedValue<this._currentValue}),t(()=>this.layer?.title,i=>{this._layerTitle=i??void 0},{initial:!0}),t(()=>this.layer?.isLive,i=>{this._isLive=i??void 0},{initial:!0}),t(()=>this.viewModel.view?.map,()=>this.requestUpdate())])}render(){return e`<div class=${c(g(this.inline?"inline":"root",_.widget))}><calcite-panel .heading=${this.hideHeader||this.inline?void 0:this._layerTitle??this.messages.videoPlayer}>${this.inline||this.hideHeader||!this.showFullscreenToggle?null:e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${()=>this.inline=!this.inline}></calcite-action>`}${this.inline?e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle?e`<calcite-action icon=full-screen text=maximize @click=${()=>this.inline=!this.inline}></calcite-action>`:null}</div>`:e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline?null:e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`}_renderLoadingScrim(){return this._videoViewReady?null:e`<calcite-scrim .loading=${this.state!=="error"}>${this.state==="error"?this.messages.errorLoadingLayer:null}</calcite-scrim>`}_renderBuffering(){return this._isBuffering?e`<calcite-progress type=indeterminate></calcite-progress>`:null}_renderVideoSection(){return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${()=>{this._videoViewReady=!0,this.arcgisVideoReady.emit()}} ${d(this._videoViewRef)}></arcgis-video>`}_renderSlider(){return this._isLive?null:e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue*100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`}_renderActionBar(){return e`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${()=>this._metadataVisible=!this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`}_renderMetadataSection(){return this._metadataVisible?e`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>`:null}};u("arcgis-video-player",a);return a},"widgets/VideoPlayer/VideoPlayerViewModel","core/reactiveUtils",a,b,f,i)
|
package/dist/cdn/YCM6SOEX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as b}from"./MP6Z45SA.js";import c from"./BH32Z76H.js";import a from"./R3NYK6BO.js";import{a as R}from"./N7VR7H4O.js";import{c as P}from"./L5MVC2NA.js";import{M as O,N as S,O as j,P as q,S as L,U as Q,a as x,b as o}from"./GRYRJF75.js";import"./3TTFCHAA.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:k},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},K,T,{ignoreAbortErrors:D},Y,,{g:B}])=>{var ee=x`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},E=100,M=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await D(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await D(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await D(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=b(this._queryController,E),this._queryFeatureCountDebounced=b(this._queryFeatureCountController,E),this._queryPageDebounced=b(this._queryPageController,E),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:w}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:v}=await w({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),I=v.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=I}return}let{historicMoment:p,gdbVersion:f}=e,F=new T({cacheHint:C,gdbVersion:f,historicMoment:p,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(F,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:p,supportsCacheHint:f}=this,{canQuery:F,objectId:h}=this;if(!F||!a||!l||h==null)return[];let w=p?((i-1)*s+r)%r:0,v=p?s:t,I=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...g,I,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,W=new T({orderByFields:m,start:w,num:v,outFields:c,cacheHint:f,historicMoment:A,gdbVersion:Z,relationshipId:C,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),$=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?$.forEach(d=>{let z=d.attributes[u],N=l.findSublayerForSubtypeCode?.(z);d.sourceLayer=N,d.layer=N}):$.forEach(d=>{d.sourceLayer=l,d.layer=l}),$}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(L(R(e,o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(L(R(t,o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${q(P("list-item",{"list-item-hidden":s==="loading"}))} .description=${k(l.toString())} .label=${k(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${q(P("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",M);return M},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/Feature",a,c)
|