@arcgis/map-components 5.2.0-next.30 → 5.2.0-next.32
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/DBF4LUEJ.js +2 -0
- package/dist/cdn/KIQMUMR7.js +2 -0
- package/dist/cdn/NLQ5PJXM.js +2 -0
- package/dist/cdn/Q2XRS2MQ.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +46 -41
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +9 -0
- package/dist/components/arcgis-table-list-next/customElement.js +33 -30
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +108 -97
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/types/lumina.d.ts +7 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/stencil.d.ts +7 -0
- package/package.json +4 -4
- package/dist/cdn/4IKFF53M.js +0 -2
- package/dist/cdn/7ED4UQDB.js +0 -2
- package/dist/cdn/EBWDF4RR.js +0 -2
- package/dist/cdn/R6Y3QBJZ.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import l from"./SAEE5GTI.js";import j from"./G4CPNGQ6.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"./JLZJ354E.js";import{a as _}from"./SBUR54TP.js";import i from"./QFH7PJYV.js";import h from"./MZWO5JYA.js";import g from"./DUWXDGIW.js";import"./VJVKFKSG.js";import f from"./6IEKX6LJ.js";import{a as k}from"./KPOSO4HB.js";import{a as p}from"./JD74LG7K.js";import e from"./R5NVFWFA.js";import c from"./GPVFCWMU.js";import{h as E}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import{d as R}from"./DU6OKLV4.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"./KLXEJCTT.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)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./MZWO5JYA.js";import{a as A}from"./KPOSO4HB.js";import"./VJ2SMYNX.js";import"./IDZCPNFC.js";import"./DU6OKLV4.js";import{O as C,U as x,a as I,b as w,p as c,r as m,x as T}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([G,L,u,N,$,F,_,S,{c:k,f:P}])=>{var H=I`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`,v=class extends C{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationChange=T(),this.arcgisTraceLocationSelectEnd=T(),this.arcgisTraceLocationSelectStart=T()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterHitTest:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,spatialTolerance:9,autoDestroyDisabled:5,utilityNetwork:0}}static{this.styles=H}async destroy(){this._resetCursor(),await this.manager.destroy()}async load(){u.isLoaded()||await u.load()}_calculatePercentAlong(t,e){let r=t.clone(),l=r.spatialReference,o=e.spatialReference;if(!l||!o)return c("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let i=e;if(!l.equals(o)){let f=u.execute(e,l);if(!f)return c("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;i=f}let s=N.getNearestCoordinate(r,i);if(s.isEmpty)return c("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=s.coordinate,n=a.x-.5,p=a.y-.5,h=a.x+.5,g=a.y+.5,y=new $({hasZ:!1,hasM:!0,paths:[[[n,p],[h,g]]],spatialReference:r.spatialReference}),d=G.execute(r,y);if(d.length>0){let f=L.execute(r,{unit:"feet"}),b;return d[0].paths[0][0][0]===r.paths[0][0][0]?b=L.execute(d[0],{unit:"feet"}):d.length>1?b=L.execute(d[1],{unit:"feet"}):b=0,b/f}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get _edgeSourceLayerIds(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async _handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){c("error",this,"Cannot add trace location."),e||c("error",this,m("sketchViewModel")),t||c("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}await this._startSketch(t,e)}async _startSketch(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=e.on("create",r=>this._handleSketchComplete(r,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}_handleSketchComplete(t,e,r){if(t.state==="complete"&&t.graphic){r.layer.remove(t.graphic),this._performHitTest(t,e,r);return}t.state==="cancel"&&(this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit())}async _performHitTest(t,e,r){let{utilityNetwork:l}=this,{graphic:o}=t;if(!l){c("error",this,m("utilityNetwork")),this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let i=o.geometry,s=e.toScreen(i);if(!s){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let a=(await e.hitTest(s,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!a.length){c("info",this,"No usable hit test results found."),this._startSketch(e,r);return}this._resetCursor(),await this._processHitTestResults(a,i,e)?this.arcgisTraceLocationSelectEnd.emit():this._startSketch(e,r)}_resetCursor(){let{view:t,sketchViewModel:e}=this;if(!t){c("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async _processHitTestResults(t,e,r){if(!t.length)return c("error",this,"There are no hit test results to process."),!1;let l=t[0],o=t.map(a=>{let n=a,p=n.graphic;return p.origin=n.layer,p.sourceLayer=n.layer,p}),i=l.graphic;if(this.afterHitTest)try{i=await this.afterHitTest(o)}catch{i=null}if(!i)return c("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this._ensureNecessaryAttributes(i);return s?await this._generateTraceLocation(s,e,r):(c("error",this,"Unable to ensure necessary attributes on the selected graphic."),this.arcgisTraceLocationSelectEnd.emit(),!0)}async _ensureNecessaryAttributes(t){let e=(k(t.layer),t.layer),r=e.geometryType===null,l=e.fieldsIndex?.get("assetgroup")??!1,o=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=e.fieldsIndex?.get("assettype")??!1,s=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),n=t.getObjectId(),p=l?!!t.getAttribute(o):!0,h=i?!!t.getAttribute(s):!0,g=!!t.geometry;if(a&&n&&p&&h&&(g||r))return t;let y=e.createQuery();return y.objectIds=[n],(await e.queryFeatures(y))?.features[0]||null}async _generateTraceLocation(t,e,r){let{traceLocations:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateFlagInfo(t,e);if(!s)return c("error",this,"Unable to generate flag info for trace location."),!1;let a=l?.filter(p=>p.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(a.length>0){if(i!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),!1;if(a.some(p=>Math.abs(p.traceLocation.percentAlong-s.traceLocation.percentAlong)<=this.spatialTolerance))return c("warn",this,"A flag with the same globalId already exists within tolerance."),!1}let n=this._addFlagGraphic(t,e,r);return n?(s.spatialProperties.flagGraphic=n,l?.add(s),!0):(c("warn",this,"Unable to add flag graphic."),!1)}async _generateFlagInfo(t,e){let{traceLocationType:r,utilityNetwork:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let a=l?.getTerminalConfiguration(t),n=a?a.terminals[0].id:1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:s,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([n]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let a=this._calculatePercentAlong(t.geometry,e);return a<0?(c("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,percentAlong:a}),flagProperties:{title:s,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!i){let a=P(t.layer)?t.layer.parent:t.layer,n=a&&this._edgeSourceLayerIds.includes(a.layerId),p=l?.getTerminalConfiguration(t),h=p?p.terminals[0].id:n?-1:1,g=n?.5:-1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:h,percentAlong:g}),flagProperties:{title:s,expanded:!1,terminalConfiguration:p??void 0,selectedTerminals:p?new Set([h]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateItemTitle(t){let{messages:e}=this,r=(k(t.layer),t.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}_addFlagGraphic(t,e,r){let l=t.geometry?t.geometry.type==="point"?t.geometry:e:null,o=this._createFlagSymbol(),i=new F({geometry:l,symbol:o,attributes:t.attributes});return r.graphics.add(i),i}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],r=[21,244,21,.6];return t==="stopping-point"?new S({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new S({color:e,style:"square",size:12,outline:{color:e,width:0}}):new S({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_handleClearButtonClick(){let{view:t,traceLocations:e}=this;e?.forEach(r=>{r.spatialProperties.flagGraphic&&t&&t.graphics.remove(r.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:r,view:l}=this,o=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,i=o.heading,s=o.description,a=o.buttonText;return w`<calcite-block .heading=${i} .label=${i} expanded .description=${s}>${r?.length?w`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t} .view=${l}></arcgis-utility-network-trace-location-list>`:null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this._handleAddButtonClick()}>${a}</calcite-button></div></calcite-block>`}render(){return w`<div class="root">${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",v);return v},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol",a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import"./ECNI2A4K.js";import j from"./SAEE5GTI.js";import i from"./G4CPNGQ6.js";import{a as G}from"./JCRPP54Z.js";import{a as x,b as B,c as O,g as R}from"./LDDAJOTV.js";import{a as A}from"./JLZJ354E.js";import{a as w}from"./SBUR54TP.js";import g from"./QFH7PJYV.js";import f from"./MZWO5JYA.js";import e from"./DUWXDGIW.js";import"./VJVKFKSG.js";import d from"./6IEKX6LJ.js";import{a as T}from"./KPOSO4HB.js";import{a as m}from"./JD74LG7K.js";import c from"./R5NVFWFA.js";import b from"./GPVFCWMU.js";import{h as D}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import{d as F}from"./DU6OKLV4.js";import{B as y,M as C,N as $,O as E,P as u,R as M,U as L,b as o,x as h}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([j,{watch:_,on:q},V,,,{a:P},U,,,,,{a:S,b:k,c:N}])=>{var b=G,H="nested",J=U(V),v=class extends E{constructor(){super(...arguments),this._lastDragDetail=null,this._rootGroupUid=`table-${y()}`,this._rootListRef=C(),this._selectedDragItemLayerUid=null,this.messages=T(),this.viewModel=J(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=this._getItem(e);if(!l||!("sortable"in l)||!l.sortable)return!1;let c=this._getItem(t),d=this._getLayerType(t),n=this._getItem(i),g=this._getLayerType(i),I=!!d&&!!g&&d===g,p={selected:l,from:c,to:n},f=t?.group,r=i?.group;return f&&r&&typeof a=="function"?a(p):I},this._onPanelOpen=()=>{this.requestUpdate()},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.icon="table",this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.map=this.viewModel.map,this.minDragEnabledItems=O,this.minFilterItems=B,this.selectedItems=new j,this.selectionMode="none",this.tables=this.viewModel.tables,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryTableIndicators=!1,this.arcgisClose=h(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=h(),this.arcgisFilterChange=h(),this.arcgisSelectedItemsChange=h(),this.arcgisTableItemsChanged=h(),this.arcgisTriggerAction=P(()=>this.viewModel,"trigger-action")}static{this.properties={_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,icon:1,label:1,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,map:0,minDragEnabledItems:9,minFilterItems:9,selectedItems:0,selectionMode:1,state:32,tableItems:32,tables:0,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryTableIndicators:5,messageOverrides:0}}static{this.styles=[N,k]}get _visibleItems(){return this.tableItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this.viewModel.totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.showFilter}get state(){return this.viewModel.state}get tableItems(){return this.viewModel.tableItems}async destroy(){await this.manager.destroy()}willUpdate(e){e.has("map")&&(this.viewModel.map=this.map),e.has("tables")&&(this.viewModel.tables=this.tables),e.has("listItemCreatedFunction")&&(this.viewModel.listItemCreatedFunction=this.listItemCreatedFunction)}loaded(){this.manager.onLifecycle(()=>[_(()=>this.view?.map,e=>{this.map||(this.viewModel.map=e)},{initial:!0}),q(()=>this.viewModel.tableItems,"change",()=>{R(this.selectedItems),this.arcgisTableItemsChanged.emit(),this.requestUpdate()},{initial:!0}),q(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),_(()=>[this.viewModel.state,this.viewModel.totalItems],()=>this.requestUpdate(),{initial:!0}),_(()=>[this.filterPredicate,this._rootListRef.value],()=>this._setFilterPredicate())])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_getItem(e){if(e?.tagName.toLowerCase()==="calcite-list-item")return e.value;let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.tableItems?.toArray()??[];for(;t.length;){let i=t.shift();if(i){if(i.uid===e)return i;t.push(...i.children?.toArray()??[])}}return null}_getLayerType(e){return e?.getAttribute("data-layer-type")??null}_setFilterPredicate(){let e=this._rootListRef.value;e&&(e.filterPredicate=this.filterPredicate?t=>{let i=this._getItem(t);return i?this.filterPredicate(i):!1}:void 0)}_handlePanelFlowItemBack(e){e.open=!1}_sortTablesToIds(e,t){e?.sort((i,s)=>{let a=i.uid!=null?t.indexOf(i.uid):-1,l=s.uid!=null?t.indexOf(s.uid):-1;return a>l?-1:a<l?1:0})}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:s}=e;s==null||!t||!i||t.insertBefore(i,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:l}=e,c=t?.newIndex===l&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||c)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value;let d=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortTablesToIds(this.viewModel.tables,d)}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let s=e.target.selectedItems.map(a=>this._getItem(a)).filter(Boolean);i.removeAll(),i.addMany(s)}_handleFlowItemClose(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}render(){let{state:e}=this,t={[m.hidden]:e==="loading",[m.disabled]:e==="disabled"};return o`<div class=${u(F(m.widget,m.panel,t))}>${this._renderItems()}</div>`}_renderNoItemsMessage(){return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return o`<div class=${u(b.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderPanelFlowItems(){return A(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t===this._openedPanelItems.length-1} @calciteFlowItemBack=${l=>{l.preventDefault(),a()}}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_filterEnabled:i,_rootGroupUid:s,showCloseButton:a,showCollapseButton:l,showHeading:c,_dragEnabled:d,selectionMode:n,filterText:g,filterPlaceholder:I,messages:p}=this,f=[o`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${c?this.label??p.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${()=>this._handleFlowItemClose()}>${t?.length?o`<calcite-list .canPull=${r=>this._canMove(r,"pull")} .canPut=${r=>this._canMove(r,"put")} data-layer-type=${s??M} .displayMode=${H} .dragEnabled=${d} .filterEnabled=${i} .filterPlaceholder=${I} .filterProps=${x} .filterText=${i?g:""} .group=${s} .label=${this.label??p.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${r=>this._handleCalciteListDragEnd(r.detail)} @calciteListFilter=${r=>{this.filterText=r.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${r=>this._onCalciteListOrderChange(r.detail)} ${$(this._rootListRef)}>${t.toArray().map(r=>this._renderItem(r))}${i?o`<div class=${u(b.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()];return this.closed?null:w("root-flow",o`<calcite-flow>${f}</calcite-flow>`)}_renderItem(e){return w(e.uid,S({canMove:this._canMove,css:b,displayMode:H,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,item:e,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,showErrors:this.showErrors,showFilter:this.showFilter,showTemporaryTableIndicators:this.showTemporaryTableIndicators,handleAction:(t,i)=>this._onTriggerAction(t,i),handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,view:this.view}))}};L("arcgis-table-list-next",v);return v},"core/Collection","core/reactiveUtils","widgets/TableList/TableListViewModel",a,b,c,d,e,f,g,i,j)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import j from"./TCFK2EXM.js";import i from"./NCHQCPM6.js";import f from"./R5NVFWFA.js";import e from"./GPVFCWMU.js";import{f as g,h}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import b from"./HKTQWWXP.js";import{g as d}from"./DU6OKLV4.js";import{O as c,U as s,a as n,q as r,x as a}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:w},f,x,{b:u,g:m},,{a:i},b,p])=>{var y=n`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-feature-table-icon-color: var(--calcite-icon-color);--arcgis-internal-feature-table-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-background-color-secondary: var(--calcite-color-surface-1);--arcgis-internal-feature-table-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-secondary: var(--calcite-color-text-2);--arcgis-internal-feature-table-text-color-tertiary: var(--calcite-color-text-3);--arcgis-internal-feature-table-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-interactive-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-interactive-text-color-hover: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-link: var(--calcite-color-text-link);--arcgis-internal-feature-table-text-color-link-hover: var(--calcite-color-text-highlight);--arcgis-internal-feature-table-column-header-background-color: var(--calcite-color-surface-1);--arcgis-internal-feature-table-column-header-sorted-background-color: var( --arcgis-internal-feature-table-background-color );--arcgis-internal-feature-table-column-header-icon-color: var(--arcgis-internal-feature-table-icon-color);--arcgis-internal-feature-table-column-header-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-column-header-text-font-weight: var(--calcite-font-weight-regular);--arcgis-internal-feature-table-row-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-row-background-color-hover: var(--calcite-color-surface-3);--arcgis-internal-feature-table-selection-checkbox-color: var(--calcite-icon-color, var(--calcite-color-brand));--arcgis-internal-feature-table-selected-row-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-background-color-primary: var(--calcite-color-brand);--arcgis-internal-feature-table-selected-row-background-color-secondary: var(--calcite-color-surface-2);--arcgis-internal-feature-table-selected-row-background-color: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 10%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) );--arcgis-internal-feature-table-selected-row-background-color-hover: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 20%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) )}.esri-feature-table{--icon-size: 64px;flex-direction:column;width:100%;height:100%;display:flex}.esri-feature-table__content{--calcite-action-text-color: var(--arcgis-internal-feature-table-interactive-text-color);--calcite-action-text-color-press: var(--arcgis-internal-feature-table-interactive-text-color-hover);--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-header-background-color: var(--arcgis-internal-feature-table-background-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color);overflow:hidden}.esri-feature-table__content calcite-pagination{justify-content:center}.esri-feature-table calcite-scrim>div:first-child{min-width:300px;max-width:400px;max-height:100%;position:relative}.esri-feature-table__collapsed{min-width:500px}.esri-feature-table__collapsed:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px;max-width:300px}.esri-feature-table__expanded{min-width:300px;display:flex}.esri-feature-table__expanded:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2)}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel{min-width:fit-content}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel>div:first-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child .esri-feature-table__collapsed{max-width:inherit}.esri-feature-table__table-container{flex:1 1 0;min-height:0;margin:0;padding:0;display:flex;width:100%;height:100%}.esri-feature-table__table-container calcite-panel>div{overflow-y:auto}.esri-feature-table__table-container calcite-panel div{flex:1 1 0;display:flex}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list{--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);color:var(--arcgis-internal-feature-table-text-color);flex:1 1 0;min-width:480px;overflow-y:auto}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list__filesize{cursor:default;align-items:center;height:100%;margin-inline-end:var(--calcite-space-md);display:flex}.esri-feature-table__table-navigation{--calcite-label-margin-bottom: 0;background-color:var(--arcgis-internal-feature-table-background-color);width:100%;line-height:initial;align-items:center;padding-block-start:var(--calcite-space-base);display:flex}.esri-feature-table__table-navigation calcite-action:first-child{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);transform:scaleX(-1)}.esri-feature-table__table-navigation calcite-chip{--calcite-chip-close-icon-color: var(--calcite-color-text-inverse);margin-inline-end:var(--calcite-space-md)}.esri-feature-table__table-navigation calcite-label{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline:var(--calcite-space-md);height:100%}.esri-feature-table__table-navigation calcite-action{display:flex;overflow:hidden}.esri-feature-table__table-navigation div:last-child{float:inline-end;align-items:center;height:100%;margin-inline:auto 0;display:flex}.esri-feature-table__table-navigation calcite-action:last-child{float:inline-end;margin-inline:auto 0;display:flex}.esri-feature-table__attachments-view{background-color:var(--arcgis-internal-feature-table-background-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px}.esri-feature-table__attachments-view__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);padding:var(--calcite-space-md);flex-direction:column;justify-content:center;align-items:center;width:100%;max-height:100%;overflow-y:auto}.esri-feature-table__attachments-view__details,.esri-feature-table__attachments-view__drop-area{flex-direction:column;justify-content:center;align-items:center;width:100%}.esri-feature-table__attachments-view__details{padding:var(--calcite-space-xl);max-height:100%}.esri-feature-table__attachments-view__details img{display:block;padding:var(--calcite-space-sm);max-width:100%;max-height:100%}.esri-feature-table__attachments-view__details calcite-action{position:sticky}.esri-feature-table__attachments-view__drop-area{border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-round);text-align:center}.esri-feature-table__attachments-view__drop-area form{justify-content:center;display:flex}.esri-feature-table__attachments-view__drop-area form fieldset{border:none;display:flex;flex-direction:column;align-items:center}.esri-feature-table__attachments-view__drop-area form fieldset calcite-button,.esri-feature-table__attachments-view__drop-area form fieldset span{margin-bottom:var(--calcite-space-sm)}.esri-feature-table__attachments-view__drop-area__label{margin-bottom:var(--calcite-space-md);font-size:var(--calcite-font-size-md)}.esri-feature-table__attachments-view__drop-area__message{margin-bottom:var(--calcite-space-md);word-break:break-all}.esri-feature-table__attachments-view__icon{--calcite-icon-color: var(--arcgis-internal-feature-table-icon-color);margin-bottom:var(--calcite-space-md);block-size:var(--icon-size);inline-size:var(--icon-size)}.esri-feature-table__attachments-view__information{--calcite-button-border-color: var(--calcite-color-brand);--calcite-button-text-color: var(--calcite-color-brand);padding:var(--calcite-space-md);flex-direction:column;max-width:200px;overflow-y:auto}.esri-feature-table__attachments-view__information calcite-button,.esri-feature-table__attachments-view__information calcite-icon,.esri-feature-table__attachments-view__information img{margin-block-end:var(--calcite-space-md)}.esri-feature-table__attachments-view__information__data{margin-block-end:var(--calcite-space-md);word-wrap:break-word;color:var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__attachments-view__information__label{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-weight:var(--calcite-font-weight-regular)}.esri-feature-table__attachments-view__list-item--delete{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-feature-table__attachments-view__list__thumbnail{margin-block:var(--calcite-space-sm);justify-content:center;align-items:center}.esri-feature-table__attachments-view__list__thumbnail span{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);width:var(--icon-size);height:var(--icon-size);color:var(--arcgis-internal-feature-table-text-color-tertiary);justify-content:center;align-items:center;display:flex;overflow:hidden}.esri-feature-table__menu-popover{--calcite-popover-text-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__menu-popover calcite-list{--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);color:var(--arcgis-internal-feature-table-text-color);max-width:300px;max-height:260px;overflow-y:auto}.esri-feature-table__dialog{--calcite-dialog-content-space: 0;--calcite-dialog-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dialog-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary)}.esri-feature-table__dialog calcite-progress{position:sticky;top:0;margin-bottom:var(--calcite-space-sm)}.esri-feature-table__dialog calcite-pagination{justify-content:center;width:100%}.esri-feature-table__dialog calcite-panel{--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__dialog img{width:auto;max-width:100%}.esri-feature-table__dialog__content{display:flex;flex-direction:column;flex-grow:1;align-items:center;justify-content:center}.esri-feature-table__dialog__header{color:var(--arcgis-internal-feature-table-text-color);display:flex;flex-direction:row;gap:var(--calcite-space-sm);justify-content:space-between;width:100%}.esri-feature-table__dialog__header span{align-self:center;word-break:break-all;padding-inline-start:var(--calcite-space-md)}.esri-feature-table__footer__message{gap:var(--calcite-space-sm);margin:0 var(--calcite-space-md);align-items:center;display:flex}.esri-feature-table__footer__icon--danger{color:var(--calcite-color-status-danger)}.esri-feature-table__footer__icon--success{color:var(--calcite-color-status-success)}.esri-feature-table__layer-switcher-menu{--calcite-dropdown-item-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dropdown-item-text-color-press: var(--arcgis-internal-feature-table-text-color);align-items:center;display:flex}calcite-button.esri-attachments-column__button,calcite-button.esri-column__show-related-records-button{--calcite-button-background-color: transparent;--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-offset-invert-focus: 2}calcite-button.esri-attachments-column__button:hover,calcite-button.esri-column__show-related-records-button:hover{--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link-hover);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-column__show-related-records-button{height:100%;display:flex}.esri-attachments-column__button{overflow:hidden}.esri-attachments-column__button>div{display:flex;overflow:hidden}.esri-attachments-column__button>div>div:first-child{text-overflow:ellipsis;width:100%;margin-inline-end:var(--calcite-space-2xl);overflow:hidden}.esri-attachments-column__button>div span{align-self:center;position:absolute;inset-inline-end:var(--calcite-space-3xl)}.esri-attachments-column__content{flex-direction:row;justify-content:space-between;width:100%;height:100%;display:flex;overflow:hidden}.esri-attachments-column__content>div:first-child{text-overflow:ellipsis;line-height:0;overflow:hidden}.esri-attachments-column__button calcite-icon,.esri-attachments-column__button img,.esri-attachments-column__content calcite-icon,.esri-attachments-column__content img{max-width:var(--calcite-space-2xl);max-height:var(--calcite-space-2xl);vertical-align:middle;margin-inline-end:var(--calcite-space-2xs);display:inline-flex}.esri-grid{background-color:var(--arcgis-internal-feature-table-background-color);width:100%;height:100%}.esri-grid vaadin-grid{border-block-end:none;border-inline:none;background-color:inherit;color:inherit;font-family:inherit;font-size:var(--calcite-font-size);overflow:visible}.esri-grid vaadin-grid[reordering]::part(cell):after{content:normal}.esri-grid vaadin-grid[reordering]::part(frozen-cell),.esri-grid vaadin-grid[reordering]::part(frozen-to-end-cell),.esri-grid vaadin-grid[reordering]::part(reorder-allowed-cell){filter:brightness(.9) contrast(1.1)}.esri-grid vaadin-grid::part(empty-state){border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell editing){z-index:2}.esri-grid vaadin-grid::part(frozen-cell),.esri-grid vaadin-grid::part(frozen-to-end-cell){z-index:4}.esri-grid vaadin-grid::part(cell last-frozen-cell){overflow:visible}.esri-grid vaadin-grid::part(cell text-wrap){text-wrap:wrap}.esri-grid vaadin-grid-cell-content{box-sizing:border-box!important;align-items:center;padding:var(--calcite-space-2xs) var(--calcite-space-sm);height:100%;min-height:var(--calcite-font-line-height-fixed-3xl)}.esri-grid vaadin-grid::part(cell){border-inline-end:var(--calcite-border-width-sm) solid;border-color:var(--calcite-color-surface-4);line-height:28px;color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell):focus:after{outline-color:var(--calcite-color-brand)}.esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(body-cell){background-color:var(--arcgis-internal-feature-table-row-background-color)}.esri-grid vaadin-grid::part(body-cell):hover{background-color:var(--arcgis-internal-feature-table-row-background-color-hover);color:var(--arcgis-internal-feature-table-text-color-hover)}.esri-grid vaadin-grid::part(body-cell invalid){color:var(--arcgis-internal-feature-table-text-color-tertiary);font-style:italic}.esri-grid vaadin-grid::part(header-cell){background-color:var(--arcgis-internal-feature-table-column-header-background-color)}.esri-grid vaadin-grid::part(header-cell invalid){font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand);background-color:var(--arcgis-internal-feature-table-column-header-sorted-background-color)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand)}.esri-grid vaadin-grid::part(body-cell highlight){background-color:var(--calcite-color-surface-4)}.esri-grid vaadin-grid::part(selected-row-cell){background-color:var(--arcgis-internal-feature-table-selected-row-background-color);color:var(--arcgis-internal-feature-table-selected-row-text-color)}.esri-grid vaadin-grid::part(selected-row-cell):hover{background-color:var(--arcgis-internal-feature-table-selected-row-background-color-hover);color:var(--arcgis-internal-feature-table-selected-row-text-color-hover)}.esri-grid vaadin-grid::part(body-cell pending-edit){border:var(--calcite-border-width-md) solid var(--calcite-color-status-success);background-color:color-mix(in sRGB,var(--calcite-color-status-success) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-success-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid){border:var(--calcite-border-width-md) dashed var(--calcite-color-status-danger);background-color:color-mix(in sRGB,var(--calcite-color-status-danger) 20%,var(--arcgis-internal-feature-table-background-color));font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-danger-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-other){cursor:not-allowed;color:var(--arcgis-internal-feature-table-text-color-tertiary)}.esri-grid vaadin-checkbox{line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox::part(checkbox){background-color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox[checked]::part(checkbox){background-color:var(--arcgis-internal-feature-table-selection-checkbox-color)}.esri-grid vaadin-grid-sorter[direction]::part(indicators),.esri-grid vaadin-grid-sorter[direction]::part(order){color:var(--arcgis-internal-feature-table-column-header-text-color)}.esri-grid .esri-grid__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);width:100%;height:100%}.esri-grid .esri-grid__grid{width:100%;height:100%}.esri-grid a{color:var(--arcgis-internal-feature-table-text-color-link);text-decoration:underline}.esri-grid a:hover,.esri-grid a:focus{color:var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-grid .esri-column__content--full{width:100%;height:100%;position:absolute;top:0;left:0}.esri-grid .esri-column__header-content{text-align:start;align-items:flex-start;width:100%;height:100%;font-weight:var(--calcite-font-weight-regular);display:flex;overflow:hidden}.esri-grid .esri-column__header-content:has(calcite-icon:only-child){justify-content:center;align-items:center}.esri-grid .esri-column__header-content div{width:100%;flex-flow:column wrap;display:flex;overflow:hidden}.esri-grid .esri-column__header-content div span{text-overflow:ellipsis;width:100%;line-height:var(--calcite-font-line-height-fixed-xl);overflow:hidden}.esri-grid .esri-column__header-content calcite-icon{color:var(--arcgis-internal-feature-table-column-header-icon-color);height:var(--calcite-space-2xl);margin-inline-end:var(--calcite-space-2xs)}.esri-grid .esri-column__header-content calcite-dropdown{float:inline-end;max-height:180px}.esri-grid .esri-column__header-content calcite-dropdown calcite-action{--calcite-icon-color: var(--arcgis-internal-feature-table-column-header-icon-color)}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group{max-width:200px;overflow-x:auto}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group:only-of-type{max-height:180px;overflow:visible}.esri-grid .esri-column__header-content calcite-dropdown[open] calcite-dropdown-item{display:flex}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item,.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item[hidden]{display:none}.esri-grid .esri-column__header-description{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-size:var(--calcite-font-size-sm)}.esri-grid .esri-column__sorter:hover{cursor:pointer}.esri-grid .esri-column__sorter,.esri-grid .esri-column__header-label{color:var(--arcgis-internal-feature-table-column-header-text-color);flex-grow:1;font-weight:var(--arcgis-internal-feature-table-column-header-text-font-weight);align-items:center;display:flex;overflow:hidden}.esri-column__header-menu-icon{margin-inline-end:15px}.esri-column__cell-input{border:none;flex:1 1 0;width:100%;height:100%}.esri-column__cell__input-container{flex-direction:column;align-items:center;width:100%;display:flex}.esri-column__cell__input-container input,.esri-column__cell__input-container select{padding:0;position:absolute;top:0;left:0}.esri-column__cell__input-container div,.esri-column__cell__input-container input,.esri-column__cell__input-container select{width:100%;display:flex}.esri-column__cell__input-container calcite-action-bar{background-color:var(--arcgis-internal-feature-table-background-color-secondary)}.esri-column__cell__input-container div:first-child{flex-direction:column}.esri-column__cell__input-container calcite-input-time-zone{--calcite-dropdown-width: 200px}.esri-column__cell__input-container calcite-input-time-picker:last-child,.esri-column__cell__input-container calcite-input-time-picker:nth-child(2),.esri-column__cell__input-container calcite-input-time-zone{margin-top:-1px}.esri-feature-table .esri-editor__prompt--danger{border-top:solid 3px var(--calcite-color-status-danger);background-color:var(--calcite-color-surface-1);color:var(--arcgis-internal-feature-table-text-color);flex-flow:column;max-height:85%;padding-block:var(--calcite-space-md);padding-inline:15px;animation:.25s ease-in-out esri-fade-in-up;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 1px 2px #0000004d}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header{color:var(--calcite-color-status-danger);flex:none;align-items:center;gap:7px;margin-bottom:var(--calcite-space-md);display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header__heading{color:var(--arcgis-internal-feature-table-text-color);margin:0 3px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__message{word-break:break-word;color:inherit;flex:auto;padding:0 0 12px;font-weight:var(--calcite-font-weight-regular);overflow:hidden auto}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__divider{color:inherit;border-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:1px;flex:none;margin:0 0 12px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__actions{flex-direction:row;display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__half-width-button{width:50%}`,k=b(x),l=class extends c{constructor(){super(...arguments),this._direction=g(),this.widget=k(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.attachmentsColumns=this.widget.attachmentsColumns,this.attributeTableTemplate=this.widget.attributeTableTemplate,this.actionColumn=this.widget.actionColumn,this.actionColumnConfig=this.widget.actionColumnConfig,this.activeFilters=this.widget.activeFilters,this.activeSortOrders=this.widget.activeSortOrders,this.allColumns=this.widget.allColumns,this.allRelatedTablesVisible=this.widget.allRelatedTablesVisible,this.allVisibleColumns=this.widget.allVisibleColumns,this.attachmentsEnabled=this.widget.attachmentsEnabled,this.attachmentsViewOptions=this.widget.attachmentsViewOptions,this.autoDestroyDisabled=!1,this.autoRefreshDisabled=this.widget.autoRefreshEnabled,this.autoSaveDisabled=this.widget.autoSaveEnabled,this.canAddRelatedFeature=this.widget.canAddRelatedFeature,this.closed=this.widget.closed,this.collapsed=this.widget.collapsed,this.columnPerformanceModeDisabled=this.widget.columnPerformanceModeEnabled,this.columnReorderingDisabled=this.widget.columnReorderingEnabled,this.columns=this.widget.columns,this.definitionExpression=this.widget.definitionExpression,this.description=this.widget.description,this.disabled=this.widget.disabled,this.editingEnabled=this.widget.editingEnabled,this.effectiveSize=this.widget.effectiveSize,this.fieldColumns=this.widget.fieldColumns,this.filterByLayerScaleRange=this.widget.filterByLayerScaleRange,this.filterBySelectionEnabled=this.widget.filterBySelectionEnabled,this.filterByViewExtent=this.widget.filterByViewExtent,this.filterGeometry=this.widget.filterGeometry,this.groupColumns=this.widget.groupColumns,this.hasContingentValues=this.widget.hasContingentValues,this.hasInvalidPendingEdits=this.widget.hasInvalidPendingEdits,this.hasPendingEdits=this.widget.hasPendingEdits,this.hiddenFields=this.widget.hiddenFields,this.hideColumnDescriptions=this.widget.visibleElements.columnDescriptions,this.hideColumnMenuItemsSortAscending=this.widget.visibleElements.columnMenuItems.sortAscending,this.hideColumnMenuItemsSortDescending=this.widget.visibleElements.columnMenuItems.sortDescending,this.hideColumnMenus=this.widget.visibleElements.columnMenus,this.hideColumnVisibilityMenu=this.widget.visibleElements.columnVisibilityMenu,this.hideColumnVisibilityMenuItemsFilter=this.widget.visibleElements.columnVisibilityMenuItems.filter,this.hideColumnVisibilityMenuItemsHeader=this.widget.visibleElements.columnVisibilityMenuItems.header,this.hideColumnVisibilityMenuItemsToggleAll=this.widget.visibleElements.columnVisibilityMenuItems.toggleAll,this.hideHeader=this.widget.visibleElements.header,this.hideLayerDropdownIcons=this.widget.visibleElements.layerDropdownIcons,this.hideMenu=this.widget.visibleElements.menu,this.hideMenuItemsClearSelection=this.widget.visibleElements.menuItems.clearSelection,this.hideMenuItemsDeleteSelection=this.widget.visibleElements.menuItems.deleteSelection,this.hideMenuItemsExportSelectionToCsv=this.widget.visibleElements.menuItems.exportSelectionToCSV,this.hideMenuItemsRefreshData=this.widget.visibleElements.menuItems.refreshData,this.hideMenuItemsSelectedRecordsShowAllToggle=this.widget.visibleElements.menuItems.selectedRecordsShowAllToggle,this.hideMenuItemsSelectedRecordsShowSelectedToggle=this.widget.visibleElements.menuItems.selectedRecordsShowSelectedToggle,this.hideMenuItemsToggleColumns=this.widget.visibleElements.menuItems.toggleColumns,this.hideMenuItemsZoomToSelection=this.widget.visibleElements.menuItems.zoomToSelection,this.hideProgress=this.widget.visibleElements.progress,this.hideSelectionColumn=this.widget.visibleElements.selectionColumn,this.hideTooltips=this.widget.visibleElements.tooltips,this.highlightDisabled=this.widget.highlightEnabled,this.highlightIds=this.widget.highlightIds,this.initialSize=this.widget.initialSize,this.icon=this.widget.icon,this.isQueryingOrSyncing=this.widget.isQueryingOrSyncing,this.isSyncingAttachments=this.widget.isSyncingAttachments,this.label=this.widget.label,this.layer=this.widget.layer,this.mapLayerId=p(this,e=>{e&&(this.layer=e)}),this.layerView=this.widget.layerView,this.layers=this.widget.layers,this.maxSize=this.widget.maxSize,this.menuConfig=this.widget.menuConfig,this.multipleSelectionDisabled=this.widget.multipleSelectionEnabled,this.multipleSortEnabled=this.widget.multiSortEnabled,this.multipleSortPriority=this.widget.multipleSortPriority,this.navigationScale=this.widget.navigationScale,this.noDataMessage=this.widget.noDataMessage,this.objectIds=this.widget.objectIds,this.outFields=this.widget.outFields,this.pageCount=this.widget.pageCount,this.pageIndex=this.widget.pageIndex,this.pageSize=this.widget.pageSize,this.paginationEnabled=this.widget.paginationEnabled,this.relatedRecordsEnabled=this.widget.relatedRecordsEnabled,this.relatedTable=this.widget.relatedTable,this.relatedTables=this.widget.relatedTables,this.relationship=this.widget.relationship,this.relationshipColumns=this.widget.relationshipColumns,this.returnGeometryEnabled=this.widget.returnGeometryEnabled,this.returnMEnabled=this.widget.returnMEnabled,this.returnZEnabled=this.widget.returnZEnabled,this.rowHighlightIds=this.widget.rowHighlightIds,this.selectionManager=this.widget.selectionManager,this.showCollapse=this.widget.visibleElements.collapse,this.showClose=this.widget.visibleElements.close,this.showLayerDropdown=this.widget.visibleElements.layerDropdown,this.size=this.widget.size,this.state=this.widget.state,this.supportsAddAttachments=this.widget.supportsAddAttachments,this.supportsAttachments=this.widget.supportsAttachments,this.supportsDeleteAttachments=this.widget.supportsDeleteAttachments,this.supportsResizeAttachments=this.widget.supportsResizeAttachments,this.supportsUpdateAttachments=this.widget.supportsUpdateAttachments,this.syncTemplateOnChangesDisabled=this.widget.syncTemplateOnChangesEnabled,this.syncViewSelection=this.widget.syncViewSelection,this.tableController=this.widget.tableController,this.tableParent=this.widget.tableParent,this.tableTemplate=this.widget.tableTemplate,this.tableTitle=this.widget.title,this.timeExtent=this.widget.timeExtent,this.timeZone=this.widget.timeZone,this.visibleColumns=this.widget.visibleColumns,this.arcgisCellClick=i(()=>this.widget,"cell-click"),this.arcgisCellDblClick=i(()=>this.widget,"cell-dblclick"),this.arcgisCellKeydown=i(()=>this.widget,"cell-keydown"),this.arcgisCellPointerout=i(()=>this.widget,"cell-pointerout"),this.arcgisCellPointerover=i(()=>this.widget,"cell-pointerover"),this.arcgisColumnReorder=i(()=>this.widget,"column-reorder"),this.arcgisPropertyChange=h()("effectiveSize","isQueryingOrSyncing","layerView","size","state"),this.arcgisReady=a(),this.arcgisSelectionChange=a()}static{this.properties={view:0,attachmentsColumns:32,attributeTableTemplate:0,actionColumn:32,actionColumnConfig:0,activeFilters:32,activeSortOrders:32,allColumns:32,allRelatedTablesVisible:36,allVisibleColumns:32,attachmentsEnabled:5,attachmentsViewOptions:0,autoDestroyDisabled:5,autoRefreshDisabled:5,autoSaveDisabled:5,canAddRelatedFeature:36,closed:5,collapsed:5,columnPerformanceModeDisabled:5,columnReorderingDisabled:5,columns:32,definitionExpression:1,description:1,disabled:7,editingEnabled:5,effectiveSize:40,fieldColumns:32,filterByLayerScaleRange:5,filterBySelectionEnabled:5,filterByViewExtent:5,filterGeometry:0,groupColumns:32,hasContingentValues:36,hasInvalidPendingEdits:36,hasPendingEdits:36,hiddenFields:0,hideColumnDescriptions:5,hideColumnMenuItemsSortAscending:5,hideColumnMenuItemsSortDescending:5,hideColumnMenus:5,hideColumnVisibilityMenu:5,hideColumnVisibilityMenuItemsFilter:5,hideColumnVisibilityMenuItemsHeader:5,hideColumnVisibilityMenuItemsToggleAll:5,hideHeader:5,hideLayerDropdownIcons:5,hideMenu:5,hideMenuItemsClearSelection:5,hideMenuItemsDeleteSelection:5,hideMenuItemsExportSelectionToCsv:5,hideMenuItemsRefreshData:5,hideMenuItemsSelectedRecordsShowAllToggle:5,hideMenuItemsSelectedRecordsShowSelectedToggle:5,hideMenuItemsToggleColumns:5,hideMenuItemsZoomToSelection:5,hideProgress:5,hideSelectionColumn:5,hideTooltips:5,highlightDisabled:5,highlightIds:0,initialSize:9,icon:1,isQueryingOrSyncing:36,isSyncingAttachments:36,label:1,layer:0,mapLayerId:1,layerItemId:1,layerUrl:1,layerId:9,layerView:32,layers:0,maxSize:9,menuConfig:0,multipleSelectionDisabled:5,multipleSortEnabled:5,multipleSortPriority:1,navigationScale:1,noDataMessage:1,objectIds:0,outFields:0,pageCount:40,pageIndex:9,pageSize:9,paginationEnabled:5,referenceElement:1,relatedRecordsEnabled:5,relatedTable:32,relatedTables:0,relationship:32,relationshipColumns:32,returnGeometryEnabled:5,returnMEnabled:5,returnZEnabled:5,rowHighlightIds:0,selectionManager:0,showCollapse:5,showClose:5,showLayerDropdown:5,size:40,state:32,supportsAddAttachments:36,supportsAttachments:36,supportsDeleteAttachments:36,supportsResizeAttachments:36,supportsUpdateAttachments:36,syncTemplateOnChangesDisabled:5,syncViewSelection:5,tableController:32,tableDisabled:5,tableParent:32,tableTemplate:0,tableTitle:1,timeExtent:0,timeZone:1,visibleColumns:32}}static{this.styles=y}get tableDisabled(){return this.widget.disabled}set tableDisabled(e){this.widget.disabled=e}addPendingEdits(e){this.widget.addPendingEdits(e)}async deleteSelection(e){await this.widget.deleteSelection(e)}async destroy(){await this.manager.destroy()}async discardPendingEdits(e,t){return await this.widget.discardPendingEdits(e,t)}async exportSelectionToCSV(e){await this.widget.exportSelectionToCSV(e)}async findColumn(e){return this.widget.findColumn(e)}async getFeatureStoreItemByObjectId(e){return this.widget.getFeatureStoreItemByObjectId(e)}async goToPage(e){this.widget.goToPage(e)}async hideColumn(e){this.widget.hideColumn(e)}async nextPage(){this.widget.nextPage()}async previousPage(){this.widget.previousPage()}async refresh(){await this.widget.refresh()}async refreshCellContent(){this.widget.refreshCellContent()}async savePendingEdits(){this.widget.savePendingEdits()}async scrollToBottom(){this.widget.scrollToBottom()}async scrollToIndex(e){this.widget.scrollToIndex(e)}async scrollToLeft(){this.widget.scrollLeft()}async scrollToRow(e){this.widget.scrollToRow(e)}async scrollToTop(){this.widget.scrollToTop()}async showAllColumns(){this.widget.showAllColumns()}async showColumn(e){this.widget.showColumn(e)}async sortColumn(e,t){this.widget.sortColumn(e,t)}async toggleColumnVisibility(e){this.widget.toggleColumnVisibility(e)}async zoomToSelection(){this.widget.zoomToSelection()}load(){this.manager.onLifecycle(()=>[w(()=>this.widget.highlightIds,"change",this.arcgisSelectionChange.emit)])}willUpdate(e){if(e.has("layerItemId")&&(u(this.layerItemId)?this.layer=null:this.layerItemId&&f.fromPortalItem({portalItem:{id:this.layerItemId}}).then(t=>{this.layer=t}).catch(r(this))),e.has("layerUrl")){let t=this.layerUrl;if(t){let o=t;typeof this.layerId=="number"&&(o=`${t}/${this.layerId}`);let v={url:o};f.fromArcGISServerUrl(v).then(_=>{this.layer=_}).catch(r(this))}else this.layer=null}}loaded(){m(this)?.classList.add("arcgis-feature-table");let e=d(this.el);this.setAttribute("calcite-mode",e),this.widget.direction=this._direction}};s("arcgis-feature-table",l);return l},"core/reactiveUtils","layers/Layer","widgets/FeatureTable",b,e,f,i,j)
|