@esri/solutions-components 1.0.0-next.20250501 → 1.0.0-next.20250501.1
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/{F2AHNDFP.js.LEGAL.txt → JHGPYLWD.js.LEGAL.txt} +0 -4
- package/dist/cdn/{F2AHNDFP.js → LXNSX5GC.js} +2 -2
- package/dist/cdn/LXNSX5GC.js.LEGAL.txt +3 -0
- package/dist/cdn/{FMJCMP5V.js → MPVIIZEA.js} +1 -1
- package/dist/cdn/MPVIIZEA.js.LEGAL.txt +3 -0
- package/dist/cdn/index.esm.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/package.json +1 -1
- /package/dist/cdn/{FMJCMP5V.js.LEGAL.txt → JHGPYLWD.js} +0 -0
@@ -1,7 +1,3 @@
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
-
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250501 */
|
4
|
-
|
5
1
|
Bundled license information:
|
6
2
|
|
7
3
|
@arcgis/map-config-components/dist/components/arcgis-assets.js:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
3
|
v1.0.0-next.20250501 */
|
4
|
-
import{b as F}from"./L6BDEN2S.js";import"./TJNPKXSI.js";import"./AUYGSPKE.js";import"./2TRYHNAQ.js";import"./HKE2Q7CZ.js";import"./ZVQFWNID.js";import"./S7DMVS57.js";import"./W3AKQ2QN.js";import{a as T}from"./XHMJBPMV.js";import"./G7MUJYUQ.js";import{c as S,d as O,j as
|
4
|
+
import"./JHGPYLWD.js";import{b as F}from"./L6BDEN2S.js";import"./TJNPKXSI.js";import"./AUYGSPKE.js";import"./2TRYHNAQ.js";import"./HKE2Q7CZ.js";import"./ZVQFWNID.js";import"./S7DMVS57.js";import"./W3AKQ2QN.js";import{a as T}from"./XHMJBPMV.js";import"./G7MUJYUQ.js";import{c as S,d as O,j as g}from"./MYGCG5HU.js";import"./WLS6FMCQ.js";import{c as E}from"./WSFOZXFE.js";import{a as f,b as c}from"./WH474D65.js";import{b as v}from"./5ECSGZTG.js";import{a as x}from"./7YDOYPIR.js";import{B as I,c as y,d as n,f as d,n as _,q as m,w,x as p}from"./QTX5AWKY.js";import"./NTX6LIB3.js";var C=y`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -15,4 +15,4 @@ import{b as F}from"./L6BDEN2S.js";import"./TJNPKXSI.js";import"./AUYGSPKE.js";im
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
16
|
* See the License for the specific language governing permissions and
|
17
17
|
* limitations under the License.
|
18
|
-
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}}`,b=class extends w{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.onlyShowUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this.createFilterModal=!0,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=f(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._selectionFromMap=!1,this._shareNode=f(),this._toolbar=f(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this.featureSelectionChange=_(),this.toggleFilter=_(),this.showDelete=_(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),T(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,onlyShowUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,createFilterModal:5,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_filterOpen:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=C}static{this.shadowRootOptions=m}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}appLayoutWatchHandler(){this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}enableCSVWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}mapHiddenWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&this._initToolInfos()}async mapInfoWatchHandler(){this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let h=t.layer,o=this.mapView.allLayerViews.toArray(),l;o.some(async r=>r.layer.title===h?.title&&r.layer.type==="feature"?(l=r,this.mapView&&await u([i],l,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async load(){await this._initModules(),this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),h=this.isMobile?"height-full":"height-full-adjusted",o=this._canShowFullTextSearch();return this._validateActiveActions(),n`<div><calcite-scrim class=${p(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell>${this._getTableControlRow("header")}<div class=${`width-full ${h}`}><calcite-panel class="height-full width-full">${o&&n`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${l=>void this._searchTextChanged(l)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??d} type=search></calcite-input></div>`||""}<calcite-loader class=${p(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${p(e)} ${c(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:n`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell>${this.createFilterModal&&this._filterModal()||""}</div>`}async _initModules(){let[e,t,i]=await v(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length&&t){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getTableControlRow(e){return n`<div class=${"display-flex height-51-px border-bottom"} slot=${e??d} ${c(this._toolbar)}>${this._getActionBar()}<div slot=header-actions-end class="display-flex absolute-right"><field-selection class="actions-end" .layer=${this._layer} .mapView=${this.mapView} .table=${this._table}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div></div>`}_getActionBar(){let e=this.isMobile?"border-top":"";return n`<calcite-action-bar class=width-full expand-disabled expanded id=${this._getId("bar")??d} layout=horizontal><div class=${`border-end ${e}`} id=solutions-map-layer-picker-container><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} @lyShowUpdatableLayers=${this.onlyShowUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}_initToolInfos(){let e=this._featuresSelected();this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate;let t=!this.mapHidden&&!this._layer?.isTable,i=this._featuresEmpty(),s=!this._layer?.isTable||this._hasFilterExpressions(),a=[];t&&a.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),s&&a.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1}),this._deleteEnabled&&a.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),a.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),a.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),a.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:i}),a.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:i}),a.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),this.enableCSV&&a.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:i}),console.log(a),this._toolInfos=[...a]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return this._allIds.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,h,o){let l=this._layer===void 0?!0:h;return n`<calcite-action .active=${e} appearance=solid .disabled=${l} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${o} @click=${a} .text=${s} text-enabled></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&n`<div id=${this._getId(e)??d}><instant-apps-social-share class="actions-end" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${c(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?n`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return n`<div class="display-flex" id=${this._getId(e)??d}>${n`<calcite-action appearance=solid .disabled=${a} id=${e??d} @click=${i} text><calcite-button appearance=transparent .iconStart=${e} kind=danger>${t}</calcite-button></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){return this._table?.highlightIds?.map(e=>Number.parseInt(e.toString(),10)).toArray()||[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i}))}))}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()];this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._finishOnChange(),this._selectionFromMap=!1,this._highlightFeatures(this.selectedIds[0])}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}s&&(i=!1,this._skipEditCheck=!0,e.length>0?this._table?.highlightIds.removeMany(e):t.length>0&&this._table?.highlightIds.addMany(t))}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()&&this._table?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._getColumnTemplates(this._layer?.id,this._layer?.fields);e?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let t=this._table?.tableTemplate?.columnTemplates,i=t&&e&&t.length!==e.length||e?.some((s,a)=>t&&t[a]?JSON.stringify(t[a])!==JSON.stringify(s):!1);if(this._table&&e&&(i||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:e});let s=e.map(a=>a.fieldName);this._initColumnsInfo(s)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._getColumnTemplates(this._layer.id,this._layer?.fields);this._tableNode&&await this._getTable(this._tableNode,e)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await E(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(){this._editEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(h=>h.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}_filterModal(){return n`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s>${this.mapView&&n`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>this._filterList?.value?.filterCount&&void this._handleFilterUpdate(this._filterList?.value?.filterCount>0)} .view=${this.mapView} ${c(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._filterOpen&&(this._allIds=await this.queryAllIds(),this._filterOpen=!1)}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);i&&i.results.length>0?(i.results.forEach(s=>{let a=Number(s.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(a);h!==void 0&&h<0&&(this._selectionFromMap=!0,this._table?.highlightIds.add(a))}),this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)):await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){let e=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[],this._filterList.value&&(this._filterList.value.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter(t=>t.expressions.filter(i=>i.active).length>0).length>0)}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e={},t=this._getIds();this._layer&&this._layer.title&&(e[this._layer.id]={selectionSetNames:[this._layer.title],ids:t,layer:this._layer});let i=this._table&&this._table.columns.toArray().reduce((s,a)=>{if(!a.hidden){let h=a?.name||a?.fieldName;h&&s.push(h.toLocaleLowerCase())}return s},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView&&await F(this.mapView.map,e,!1,!1,!0,i,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){await this._validateActiveEdits([],this.selectedIds)&&(await this._table?.refresh(),this._allIds=await this.queryAllIds(),this.featureSelectionChange.emit(this.selectedIds))}async _zoom(){this._layer&&this.mapView&&await u(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await S(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,this._getFullTextSearchInfo()})}this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(l=>l.id===e?(i=l,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(l=>l.fieldName));let h=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(l=>i?.fields&&i.fields.indexOf(l)>-1):a.length>0?a:void 0,o;return t&&(o=t.reduce((l,r)=>{let g={type:"field",fieldName:r.name,label:r.alias,menuConfig:this._getMenuConfig(r.name)};return i&&i?.fields?i.fields.indexOf(r.name)>-1&&l.push(g):a.length>0?a.indexOf(r.name)>-1&&l.push(g):l.push(g),l},[])),o?h?o?.sort(this._sortFields.bind(this,h)):o:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};I("layer-table",b);export{b as LayerTable};
|
18
|
+
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}}`,b=class extends w{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.onlyShowUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this.createFilterModal=!0,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=f(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._selectionFromMap=!1,this._shareNode=f(),this._toolbar=f(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this.featureSelectionChange=_(),this.toggleFilter=_(),this.showDelete=_(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),T(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,onlyShowUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,createFilterModal:5,_allIds:16,_csvExporting:16,_fetchingData:16,_filterActive:16,_filterOpen:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=C}static{this.shadowRootOptions=m}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}appLayoutWatchHandler(){this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}enableCSVWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}mapHiddenWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&this._initToolInfos()}async mapInfoWatchHandler(){this._table&&this._resetColumnTemplates()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._mapClicked(e)}))}async _layerWatchHandler(){this._fetchingData=!0,await this._layer?.when(async()=>{this._definitionExpression=this._layer?.definitionExpression||"",this._floorField=this._layer?.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let h=t.layer,o=this.mapView.allLayerViews.toArray(),l;o.some(async r=>r.layer.title===h?.title&&r.layer.type==="feature"?(l=r,this.mapView&&await g([i],l,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async load(){await this._initModules(),this._initToolInfos()}render(){let e=this._fetchingData?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),h=this.isMobile?"height-full":"height-full-adjusted",o=this._canShowFullTextSearch();return this._validateActiveActions(),n`<div><calcite-scrim class=${p(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell>${this._getTableControlRow("header")}<div class=${`width-full ${h}`}><calcite-panel class="height-full width-full">${o&&n`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${l=>void this._searchTextChanged(l)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??d} type=search></calcite-input></div>`||""}<calcite-loader class=${p(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${p(e)} ${c(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:n`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell>${this.createFilterModal&&this._filterModal()||""}</div>`}async _initModules(){let[e,t,i]=await v(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length&&t){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t?.indexOf(this._searchExpression)>-1?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getTableControlRow(e){return n`<div class=${"display-flex height-51-px border-bottom"} slot=${e??d} ${c(this._toolbar)}>${this._getActionBar()}<div slot=header-actions-end class="display-flex absolute-right"><field-selection class="actions-end" .layer=${this._layer} .mapView=${this.mapView} .table=${this._table}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div></div>`}_getActionBar(){let e=this.isMobile?"border-top":"";return n`<calcite-action-bar class=width-full expand-disabled expanded id=${this._getId("bar")??d} layout=horizontal><div class=${`border-end ${e}`} id=solutions-map-layer-picker-container><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} @lyShowUpdatableLayers=${this.onlyShowUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading)),e),[])}_validateEnabledActions(){let e=this._featuresSelected(),t=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,i=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(s=>{s&&i.indexOf(s.icon)>-1&&(s.disabled=s.icon==="pencil"?!t:!e)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}_initToolInfos(){let e=this._featuresSelected();this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate;let t=!this.mapHidden&&!this._layer?.isTable,i=this._featuresEmpty(),s=!this._layer?.isTable||this._hasFilterExpressions(),a=[];t&&a.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e}),s&&a.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1}),this._deleteEnabled&&a.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0}),a.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e}),a.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e}),a.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:i}),a.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:i}),a.push({active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1}),this.enableCSV&&a.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:i}),console.log(a),this._toolInfos=[...a]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return this._allIds.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,h,o){let l=this._layer===void 0?!0:h;return n`<calcite-action .active=${e} appearance=solid .disabled=${l} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${o} @click=${a} .text=${s} text-enabled></calcite-action>`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return this.mapView&&n`<div id=${this._getId(e)??d}><instant-apps-social-share class="actions-end" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${c(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`||""}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this._shareNode.value&&(this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return document.getElementById(t)?n`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`:void 0}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return n`<div class="display-flex" id=${this._getId(e)??d}>${n`<calcite-action appearance=solid .disabled=${a} id=${e??d} @click=${i} text><calcite-button appearance=transparent .iconStart=${e} kind=danger>${t}</calcite-button></calcite-action>`}${this._getToolTip("bottom",e,t)}</div>`}_getIds(){return this._table?.highlightIds?.map(e=>Number.parseInt(e.toString(),10)).toArray()||[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i}))}))}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()];this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._finishOnChange(),this._selectionFromMap=!1,this._highlightFeatures(this.selectedIds[0])}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}s&&(i=!1,this._skipEditCheck=!0,e.length>0?this._table?.highlightIds.removeMany(e):t.length>0&&this._table?.highlightIds.addMany(t))}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()&&this._table?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._getColumnTemplates(this._layer?.id,this._layer?.fields);e?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let t=this._table?.tableTemplate?.columnTemplates,i=t&&e&&t.length!==e.length||e?.some((s,a)=>t&&t[a]?JSON.stringify(t[a])!==JSON.stringify(s):!1);if(this._table&&e&&(i||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:e});let s=e.map(a=>a.fieldName);this._initColumnsInfo(s)}}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._getColumnTemplates(this._layer.id,this._layer?.fields);this._tableNode&&await this._getTable(this._tableNode,e)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await E(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(){this._editEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(this._layer?.editingEnabled&&this._layer?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(h=>h.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}_filterModal(){return n`<calcite-dialog class="filter-content-space" .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog kind=brand modal @calciteDialogClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s>${this.mapView&&n`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>this._filterList?.value?.filterCount&&void this._handleFilterUpdate(this._filterList?.value?.filterCount>0)} .view=${this.mapView} ${c(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._filterOpen&&(this._allIds=await this.queryAllIds(),this._filterOpen=!1)}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);i&&i.results.length>0?(i.results.forEach(s=>{let a=Number(s.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(a);h!==void 0&&h<0&&(this._selectionFromMap=!0,this._table?.highlightIds.add(a))}),this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)):await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){let e=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[],this._filterList.value&&(this._filterList.value.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter(t=>t.expressions.filter(i=>i.active).length>0).length>0)}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e={},t=this._getIds();this._layer&&this._layer.title&&(e[this._layer.id]={selectionSetNames:[this._layer.title],ids:t,layer:this._layer});let i=this._table&&this._table.columns.toArray().reduce((s,a)=>{if(!a.hidden){let h=a?.name||a?.fieldName;h&&s.push(h.toLocaleLowerCase())}return s},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView&&await F(this.mapView.map,e,!1,!1,!0,i,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(){await this._validateActiveEdits([],this.selectedIds)&&(await this._table?.refresh(),this._allIds=await this.queryAllIds(),this.featureSelectionChange.emit(this.selectedIds))}async _zoom(){this._layer&&this.mapView&&await g(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await S(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,this._getFullTextSearchInfo()})}this._fetchingData=!1}_getColumnTemplates(e,t){let i;this.mapInfo?.layerOptions?.layers.some(l=>l.id===e?(i=l,!0):!1);let s=this._layer?.attributeTableTemplate?.elements,a=[];s?.length>0&&this.honorMapFieldSettings&&(a=s.map(l=>l.fieldName));let h=i?.fields&&i?.fieldOrder?i.fieldOrder.filter(l=>i?.fields&&i.fields.indexOf(l)>-1):a.length>0?a:void 0,o;return t&&(o=t.reduce((l,r)=>{let u={type:"field",fieldName:r.name,label:r.alias,menuConfig:this._getMenuConfig(r.name)};return i&&i?.fields?i.fields.indexOf(r.name)>-1&&l.push(u):a.length>0?a.indexOf(r.name)>-1&&l.push(u):l.push(u),l},[])),o?h?o?.sort(this._sortFields.bind(this,h)):o:[]}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};I("layer-table",b);export{b as LayerTable};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
3
|
v1.0.0-next.20250501 */
|
4
|
-
import{b as m}from"./WH474D65.js";import{a as p}from"./7YDOYPIR.js";import{B as h,c as r,d,w as c}from"./QTX5AWKY.js";import"./NTX6LIB3.js";var f=r`/** @license
|
4
|
+
import"./JHGPYLWD.js";import{b as m}from"./WH474D65.js";import{a as p}from"./7YDOYPIR.js";import{B as h,c as r,d,w as c}from"./QTX5AWKY.js";import"./NTX6LIB3.js";var f=r`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
package/dist/cdn/index.esm.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
3
|
v1.0.0-next.20250501 */
|
4
|
-
import{A as o,p as e}from"./QTX5AWKY.js";import"./NTX6LIB3.js";var a=e(o,{"arcgis-solution-assistant":[()=>import("./FFW5OHCB.js"),"AIServerUrl,token"],"basemap-gallery":[()=>import("./JNSUSFC4.js"),"basemapConfig:,basemapWidget:,mapView:"],"buffer-tools":[()=>import("./BGKV42DN.js"),"appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./XCPRA7LM.js"),"customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layer:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,zoomAndScrollToSelected"],"consent-manager":[()=>import("./4V4FINZ6.js"),"amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./MX3QK4BD.js"),"customizeSubmit,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,searchConfiguration:,selectedLayerId,showGuidingMsg,submitNewReportsMessage;refresh,submit"],"create-related-feature":[()=>import("./4K7M7ZQ3.js"),"customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./GFCR7XIN.js"),"appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableShare,enableSnapping,enableZoom,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./SXYVFJKU.js"),"center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableNewReports,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./YDQQI3ML.js")],"delete-button":[()=>import("./IFMZU3GF.js"),"buttonType,deleteDialog,disabled,icon,ids:,layer:"],"delete-dialog":[()=>import("./GTRMB3A4.js"),"ids:,layer:,open"],"edit-card":[()=>import("./WEKUO2VU.js"),"enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./6BIAHCPG.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./HJ5RNDHX.js"),"applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./FMJCMP5V.js"),"layer:,mapView:,table:"],"floor-filter":[()=>import("./UFY6HRGR.js"),"enabled,floorFilterWidget:,mapView:"],"info-card":[()=>import("./BWJJNSBT.js"),"allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"json-editor":[()=>import("./Z5PZ6FMA.js"),"hasChanges,hasErrors,instanceid,value;getEditorContents,prepareForDeletion,replaceCurrentSelection,reset"],"layer-list":[()=>import("./2PYO5DQ6.js"),"applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-table":[()=>import("./F2AHNDFP.js"),"appLayout,createFilterModal,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,onlyShowUpdatableLayers,selectedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,validateActiveEdits,validateTableUpdate"],"map-card":[()=>import("./DGMZ6QXM.js"),"appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableShare,enableSingleExpand,hide,homeZoomIndex,homeZoomPosition,homeZoomToolsSize,isMapLayout,isMobile,mapInfo:,mapInfos:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,onlyShowUpdatableLayers,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,stackTools,theme,toolOrder:,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./APJDAB5T.js"),"active,drawMode:,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-fullscreen":[()=>import("./53FQYX5H.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./LOYETYKV.js"),"appearance,defaultLayerId,display,enabledLayerIds:,enabledTableIds:,height,isMobile,mapView:,onlyShowUpdatableLayers,placeholderIcon,scale,selectedIds:,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./R6YADSJG.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./IZUA3C3T.js"),"isMapLayout,mapInfos:;close,setMapByID,toggle"],"map-search":[()=>import("./3QRK5WNP.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./2C57RBI5.js"),"bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./LLIJ7Z4U.js"),"basemapConfig:,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableSingleExpand,homeZoomToolsSize,layout,mapView:,mapWidgetsSize,position,searchConfiguration:,stackTools,toolOrder:"],"pci-calculator":[()=>import("./WGCV6GTL.js")],"pdf-download":[()=>import("./OY6GGSCZ.js"),"defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./LOSFVM3J.js"),"addresseeLayerIds:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./M73YHO37.js"),"addresseeLayer:,enabledLayerIds:,mapView:,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"solution-arcticle-card":[()=>import("./Q4366DLL.js")],"solution-card":[()=>import("./I2FHSU7W.js")],"solution-configuration":[()=>import("./RRIX5A5N.js"),"authentication:,serializedAuthentication,showLoading,solutionItemId;getSpatialReferenceInfo,saveSolution,unloadSolution"],"solution-contents":[()=>import("./NIPQB2A6.js"),"selectedItemId,templateHierarchy:"],"solution-delete-dialog":[()=>import("./2OJ7UM6M.js")],"solution-deploy-dialog":[()=>import("./W5LVWH37.js")],"solution-deploy-panel":[()=>import("./YAR2GV2A.js")],"solution-deployed-card":[()=>import("./M3LX3IKJ.js")],"solution-deployed-panel":[()=>import("./SLDVKLZQ.js")],"solution-deploying-panel":[()=>import("./54F6FEYA.js")],"solution-item":[()=>import("./BOTZPFN6.js"),"authentication:,itemId,organizationVariables,solutionVariables"],"solution-item-accordion":[()=>import("./WSBY7R3N.js"),"listSelectionMode,templateInfos:;collapseAll,deselectAll,selectItem"],"solution-item-details":[()=>import("./2RUSM53S.js"),"itemId"],"solution-item-icon":[()=>import("./55L42YVM.js"),"isPortal,type,typeKeywords:"],"solution-item-sharing":[()=>import("./2VZGDCVN.js"),"groupId;getShareInfo"],"solution-organization-variables":[()=>import("./ENUDMNIE.js"),"value"],"solution-resource-item":[()=>import("./ZOQYNMEP.js"),"authentication:,itemId"],"solution-spatial-ref":[()=>import("./3FZHZ2IN.js"),"enabled,enableDefault,featureServices:;_testAccess"],"solution-template-data":[()=>import("./OGB7O254.js"),"instanceid,itemId,organizationVariables,solutionVariables,varsOpen"],"solution-variables":[()=>import("./KRYPAQ3V.js"),"value"],"solutions-article-panel":[()=>import("./TFRZL4EC.js")],"solutions-articles":[()=>import("./WZ5FDMXT.js")],"solutions-articles-shell":[()=>import("./O2BCL7OO.js")],"solutions-deployed-panel":[()=>import("./MYKH54YC.js")],"solutions-deployed-shell":[()=>import("./DXQKJY5N.js")],"solutions-filter":[()=>import("./JBDRTLXO.js")],"solutions-panel":[()=>import("./R22Y543P.js")],"solutions-shell":[()=>import("./5Z4JBIKS.js")],"spatial-ref":[()=>import("./KTM3K5IU.js"),"defaultWkid,disabled,value;createSpatialRefDisplay,getSpatialRef,wkidToDisplay"],"store-manager":[()=>import("./TXHJL574.js"),"authentication:,templates:,value;getStoreInfo"]});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solution-assistant,basemap-gallery,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,floor-filter,info-card,json-editor,layer-list,layer-table,map-card,map-draw-tools,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,solution-arcticle-card,solution-card,solution-configuration,solution-contents,solution-delete-dialog,solution-deploy-dialog,solution-deploy-panel,solution-deployed-card,solution-deployed-panel,solution-deploying-panel,solution-item,solution-item-accordion,solution-item-details,solution-item-icon,solution-item-sharing,solution-organization-variables,solution-resource-item,solution-spatial-ref,solution-template-data,solution-variables,solutions-article-panel,solutions-articles,solutions-articles-shell,solutions-deployed-panel,solutions-deployed-shell,solutions-filter,solutions-panel,solutions-shell,spatial-ref,store-manager){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];a({resourcesUrl:import.meta.url});{window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{},});var a=$arcgis;a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c)}
|
4
|
+
import{A as o,p as e}from"./QTX5AWKY.js";import"./NTX6LIB3.js";var a=e(o,{"arcgis-solution-assistant":[()=>import("./FFW5OHCB.js"),"AIServerUrl,token"],"basemap-gallery":[()=>import("./JNSUSFC4.js"),"basemapConfig:,basemapWidget:,mapView:"],"buffer-tools":[()=>import("./BGKV42DN.js"),"appearance,disabled,distance,geometries:,max,min,sliderTicks,unionResults,unit;getTranslatedUnit"],"card-manager":[()=>import("./XCPRA7LM.js"),"customInfoText,enableCreateFeatures,enableEditGeometry,enableSnapping,isMobile,layer:,mapView:,selectedFeaturesIds:,selectingFeatureFromMap,zoomAndScrollToSelected"],"consent-manager":[()=>import("./4V4FINZ6.js"),"amazonAppId,amazonAppName,amazonUserPoolID,amazonVersion,firstUseVar,measurementIds:,portal:;getInstance"],"create-feature":[()=>import("./MX3QK4BD.js"),"customizeSubmit,enableSearch,enableSnapping,floorLevel,formElements,isMobile,mapView:,searchConfiguration:,selectedLayerId,showGuidingMsg,submitNewReportsMessage;refresh,submit"],"create-related-feature":[()=>import("./4K7M7ZQ3.js"),"customizeSubmit,enableSnapping,mapView:,selectedFeature:,showGuidingMsg,table:;submit"],"crowdsource-manager":[()=>import("./GFCR7XIN.js"),"appLayout,appProxies,basemapConfig:,coverPageEnabled,customInfoText,defaultAppLayout,defaultCenter,defaultGlobalId,defaultLayer,defaultLevel,defaultOid,defaultWebmap,enableAutoRefresh,enableBasemap,enableColumnReorder,enableCSV,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableShare,enableSnapping,enableZoom,honorMapFieldSettings,introductionWindowEnabled,mapInfos:,onlyShowUpdatableLayers,popupHeaderColor,popupHeaderHoverColor,popupHeaderHoverTextColor,popupHeaderTextColor,searchConfiguration:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,theme,zoomAndScrollToSelected,zoomToScale"],"crowdsource-reporter":[()=>import("./SXYVFJKU.js"),"center,commentButtonText,commentSubmittedMessage,defaultWebmap,description,enableAnonymousAccess,enableAnonymousComments,enableComments,enableHome,enableLogin,enableNewReports,enableSearch,enableSnapping,enableZoom,filterByMapExtent,floorLevel,isMobile,layerExpressions:,layerId,level,loginTitle,mapInfos:,mapView:,objectId,reportButtonText,reportingOptions:,reportsHeader,reportSubmittedMessage,searchConfiguration:,showComments,showFeatureSymbol,showFullCommentTitle,showMyReportsOnly,showUserImageInCommentsList,sortOption,submitNewReportsMessage,theme,zoomToScale;updateLayerExpressionsT9n"],"deduct-calculator":[()=>import("./YDQQI3ML.js")],"delete-button":[()=>import("./IFMZU3GF.js"),"buttonType,deleteDialog,disabled,icon,ids:,layer:"],"delete-dialog":[()=>import("./GTRMB3A4.js"),"ids:,layer:,open"],"edit-card":[()=>import("./WEKUO2VU.js"),"enableEditGeometry,enableSnapping,graphicIndex,graphics:,mapView:,open"],"feature-details":[()=>import("./6BIAHCPG.js"),"enableSnapping,graphics:,layerItemsHash:,mapView:,reportingOptions:,showFullCommentTitle,showUserImageInCommentsList;back,next,refresh,toggleListView"],"feature-list":[()=>import("./HJ5RNDHX.js"),"applyLayerViewFilter,filterByMapExtent,highlightOnHover,highlightOnMap,mapView:,noFeaturesFoundMsg,pageSize,reportingOptions:,selectedLayerId,showErrorWhenNoFeatures,showFeatureSymbol,showFullTitle,showInitialLoading,showUserImageInList,sortingInfo:,textSize,whereClause;refresh"],"field-selection":[()=>import("./MPVIIZEA.js"),"layer:,mapView:,table:"],"floor-filter":[()=>import("./UFY6HRGR.js"),"enabled,floorFilterWidget:,mapView:"],"info-card":[()=>import("./BWJJNSBT.js"),"allowEditing,enableEditGeometry,enableSnapping,graphics:,highlightEnabled,isLoading,isMobile,mapView:,paginationEnabled,position,showCloseBtn;back,getSelectedFeature,next,refresh,toggleListView,updateCurrentGraphic"],"json-editor":[()=>import("./Z5PZ6FMA.js"),"hasChanges,hasErrors,instanceid,value;getEditorContents,prepareForDeletion,replaceCurrentSelection,reset"],"layer-list":[()=>import("./2PYO5DQ6.js"),"applyLayerViewFilter,filterByMapExtent,layers:,mapView:,showFeatureCount,showNextIcon;refresh"],"layer-table":[()=>import("./LXNSX5GC.js"),"appLayout,createFilterModal,defaultGlobalId:,defaultLayerId,defaultOid:,enableAutoRefresh,enableColumnReorder,enableCSV,enableInlineEdit,enableShare,honorMapFieldSettings,isMobile,mapHidden,mapInfo:,mapView:,onlyShowUpdatableLayers,selectedIds:,shareIncludeEmbed,shareIncludeSocial,showNewestFirst,zoomAndScrollToSelected,zoomToScale;closeFilter,filterReset,filterUpdate,refresh,validateActiveEdits,validateTableUpdate"],"map-card":[()=>import("./DGMZ6QXM.js"),"appLayout,appProxies,basemapConfig:,defaultLayerId,defaultWebmapId,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableShare,enableSingleExpand,hide,homeZoomIndex,homeZoomPosition,homeZoomToolsSize,isMapLayout,isMobile,mapInfo:,mapInfos:,mapView:,mapWidgetsIndex,mapWidgetsPosition,mapWidgetsSize,onlyShowUpdatableLayers,selectedFeaturesIds:,selectedLayer:,shareIncludeEmbed,shareIncludeSocial,stackTools,theme,toolOrder:,zoomToScale;resetFilter,updateFilterState,updateLayer"],"map-draw-tools":[()=>import("./APJDAB5T.js"),"active,drawMode:,editGraphicsEnabled,graphics:,mapView:,pointSymbol:,polygonSymbol:,polylineSymbol:,redoEnabled,undoEnabled;clear,updateGraphics"],"map-fullscreen":[()=>import("./53FQYX5H.js"),"fullscreenWidget:,mapView:"],"map-layer-picker":[()=>import("./LOYETYKV.js"),"appearance,defaultLayerId,display,enabledLayerIds:,enabledTableIds:,height,isMobile,mapView:,onlyShowUpdatableLayers,placeholderIcon,scale,selectedIds:,showSingleLayerAsLabel,showTables,showTablesDisabled,type;setLayerById,setLayerByIds,updateLayer"],"map-legend":[()=>import("./R6YADSJG.js"),"legendWidget:,mapView:"],"map-picker":[()=>import("./IZUA3C3T.js"),"isMapLayout,mapInfos:;close,setMapByID,toggle"],"map-search":[()=>import("./3QRK5WNP.js"),"mapView:,popupEnabled,resultGraphicEnabled,searchConfiguration:,searchTerm,searchWidget:"],"map-select-tools":[()=>import("./2C57RBI5.js"),"bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,enabledLayerIds:,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,geometries:,isUpdate,layerViews:,mapView:,noResultText,searchConfiguration:,searchDistanceEnabled,selectionLayerIds:,selectionSet:,selectLayerView:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:,useLayerFeaturesEnabled;clearSelection,getSelection"],"map-tools":[()=>import("./LLIJ7Z4U.js"),"basemapConfig:,enableBasemap,enableFloorFilter,enableFullscreen,enableHome,enableLegend,enableSearch,enableSingleExpand,homeZoomToolsSize,layout,mapView:,mapWidgetsSize,position,searchConfiguration:,stackTools,toolOrder:"],"pci-calculator":[()=>import("./WGCV6GTL.js")],"pdf-download":[()=>import("./OY6GGSCZ.js"),"defaultNumLabelsPerPage,disabled;downloadCSV,downloadPDF"],"public-notification":[()=>import("./LOSFVM3J.js"),"addresseeLayerIds:,bufferColor,bufferOutlineColor,customLabelEnabled,defaultBufferDistance,defaultBufferUnit,defaultExportTitle,defaultNumLabelsPerPage,enableLayerFeatures,enableLayerFeaturesOnLoad,enableSearchDistance,enableSearchDistanceOnLoad,enableSketchTools,featureEffect:,featureHighlightEnabled,initialNotice,mapView:,noResultText,searchConfiguration:,selectionLayerIds:,showRefineSelection,showSearchSettings,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"refine-selection":[()=>import("./M73YHO37.js"),"addresseeLayer:,enabledLayerIds:,mapView:,selectionSets:,sketchLineSymbol:,sketchPointSymbol:,sketchPolygonSymbol:"],"solution-arcticle-card":[()=>import("./Q4366DLL.js")],"solution-card":[()=>import("./I2FHSU7W.js")],"solution-configuration":[()=>import("./RRIX5A5N.js"),"authentication:,serializedAuthentication,showLoading,solutionItemId;getSpatialReferenceInfo,saveSolution,unloadSolution"],"solution-contents":[()=>import("./NIPQB2A6.js"),"selectedItemId,templateHierarchy:"],"solution-delete-dialog":[()=>import("./2OJ7UM6M.js")],"solution-deploy-dialog":[()=>import("./W5LVWH37.js")],"solution-deploy-panel":[()=>import("./YAR2GV2A.js")],"solution-deployed-card":[()=>import("./M3LX3IKJ.js")],"solution-deployed-panel":[()=>import("./SLDVKLZQ.js")],"solution-deploying-panel":[()=>import("./54F6FEYA.js")],"solution-item":[()=>import("./BOTZPFN6.js"),"authentication:,itemId,organizationVariables,solutionVariables"],"solution-item-accordion":[()=>import("./WSBY7R3N.js"),"listSelectionMode,templateInfos:;collapseAll,deselectAll,selectItem"],"solution-item-details":[()=>import("./2RUSM53S.js"),"itemId"],"solution-item-icon":[()=>import("./55L42YVM.js"),"isPortal,type,typeKeywords:"],"solution-item-sharing":[()=>import("./2VZGDCVN.js"),"groupId;getShareInfo"],"solution-organization-variables":[()=>import("./ENUDMNIE.js"),"value"],"solution-resource-item":[()=>import("./ZOQYNMEP.js"),"authentication:,itemId"],"solution-spatial-ref":[()=>import("./3FZHZ2IN.js"),"enabled,enableDefault,featureServices:;_testAccess"],"solution-template-data":[()=>import("./OGB7O254.js"),"instanceid,itemId,organizationVariables,solutionVariables,varsOpen"],"solution-variables":[()=>import("./KRYPAQ3V.js"),"value"],"solutions-article-panel":[()=>import("./TFRZL4EC.js")],"solutions-articles":[()=>import("./WZ5FDMXT.js")],"solutions-articles-shell":[()=>import("./O2BCL7OO.js")],"solutions-deployed-panel":[()=>import("./MYKH54YC.js")],"solutions-deployed-shell":[()=>import("./DXQKJY5N.js")],"solutions-filter":[()=>import("./JBDRTLXO.js")],"solutions-panel":[()=>import("./R22Y543P.js")],"solutions-shell":[()=>import("./5Z4JBIKS.js")],"spatial-ref":[()=>import("./KTM3K5IU.js"),"defaultWkid,disabled,value;createSpatialRefDisplay,getSpatialRef,wkidToDisplay"],"store-manager":[()=>import("./TXHJL574.js"),"authentication:,templates:,value;getStoreInfo"]});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-solution-assistant,basemap-gallery,buffer-tools,card-manager,consent-manager,create-feature,create-related-feature,crowdsource-manager,crowdsource-reporter,deduct-calculator,delete-button,delete-dialog,edit-card,feature-details,feature-list,field-selection,floor-filter,info-card,json-editor,layer-list,layer-table,map-card,map-draw-tools,map-fullscreen,map-layer-picker,map-legend,map-picker,map-search,map-select-tools,map-tools,pci-calculator,pdf-download,public-notification,refine-selection,solution-arcticle-card,solution-card,solution-configuration,solution-contents,solution-delete-dialog,solution-deploy-dialog,solution-deploy-panel,solution-deployed-card,solution-deployed-panel,solution-deploying-panel,solution-item,solution-item-accordion,solution-item-details,solution-item-icon,solution-item-sharing,solution-organization-variables,solution-resource-item,solution-spatial-ref,solution-template-data,solution-variables,solutions-article-panel,solutions-articles,solutions-articles-shell,solutions-deployed-panel,solutions-deployed-shell,solutions-filter,solutions-panel,solutions-shell,spatial-ref,store-manager){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];a({resourcesUrl:import.meta.url});{window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{},});var a=$arcgis;a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c)}
|
@@ -2,6 +2,7 @@ import { c as r } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as d } from "lit-html/directives/ref.js";
|
3
3
|
import { html as c } from "lit-html";
|
4
4
|
import { u as h } from "../../chunks/useT9n.js";
|
5
|
+
import "@arcgis/map-config-components";
|
5
6
|
import { LitElement as m } from "@arcgis/lumina";
|
6
7
|
import { css as p } from "@lit/reactive-element/css-tag.js";
|
7
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/package.json
CHANGED
File without changes
|