@arcgis/portal-components 5.0.1 → 5.0.2
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/{VOUBWIAQ.js → 34WGEEAS.js} +1 -1
- package/dist/cdn/{A6IJP5DP.js → 56VHV6R5.js} +1 -1
- package/dist/cdn/{367KSSQF.js → 7CAHYPUJ.js} +1 -1
- package/dist/cdn/{FX45WTQX.js → DTWZKLDH.js} +1 -1
- package/dist/cdn/{WM6RUUAI.js → G5JXBYGK.js} +1 -1
- package/dist/cdn/{JGYD6V2M.js → GAYJFQQU.js} +1 -1
- package/dist/cdn/{5W7K5WRD.js → HDG4P5VG.js} +1 -1
- package/dist/cdn/{ASFZANMP.js → NG3HAE7G.js} +1 -1
- package/dist/cdn/{BTM7WBLX.js → TEQYJRLR.js} +1 -1
- package/dist/cdn/{YR55FH5L.js → UK6PMBI3.js} +1 -1
- package/dist/cdn/{PVLPB43B.js → VEB52T72.js} +1 -1
- package/dist/cdn/{UEC4T2ZL.js → XMGODSX4.js} +1 -1
- package/dist/cdn/{X2RWOZYZ.js → Z3XVX43V.js} +1 -1
- package/dist/cdn/{7QSKSJYR.js → ZATPDOIA.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import d from"./X2RWOZYZ.js";import c from"./GVJ4IVUG.js";import a from"./IVCIUBAP.js";import{a as E,b as I}from"./VOUBWIAQ.js";import{a as $}from"./YR55FH5L.js";import{b as x,e as P}from"./ASFZANMP.js";import{G as u,H as g,I as b,L as C,O as y,h as p,j as n}from"./367KSSQF.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},{a:d,b:c,c:m,d:R,e:O,f:_},{a:S,b:w}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await N(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function N(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function M({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var V=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):J(r,t)},J=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await L(r)).execute(e)}async function L(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var W=p`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,f=class extends b{constructor(){super(),this.classificationModel=S(this),this.messages=$(),this.formMainContentRef=u(),this._classificationDataTask=w(this),this._formCreationTask=new I(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await V(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this._itemClassificationWatchHandle&&(this._itemClassificationWatchHandle.remove(),this.portalItem.removeHandles("arcgis-classification-config"),this._itemClassificationWatchHandle=void 0),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this.portalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=m(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=P()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=W}async destroy(){await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await O(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=x(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=m(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await V(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await M({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,A=e[o]?.valueExpressionResult,D=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:A,attributeValidationResult:D})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===E.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${g(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",f);return f},"arcade","core/reactiveUtils",a,c,d)
|
|
2
|
+
import d from"./Z3XVX43V.js";import c from"./GVJ4IVUG.js";import a from"./IVCIUBAP.js";import{a as E,b as I}from"./34WGEEAS.js";import{a as $}from"./UK6PMBI3.js";import{b as x,e as P}from"./NG3HAE7G.js";import{G as u,H as g,I as b,L as C,O as y,h as p,j as n}from"./7CAHYPUJ.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},{a:d,b:c,c:m,d:R,e:O,f:_},{a:S,b:w}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await N(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function N(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function M({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var V=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):J(r,t)},J=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await L(r)).execute(e)}async function L(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var W=p`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,f=class extends b{constructor(){super(),this.classificationModel=S(this),this.messages=$(),this.formMainContentRef=u(),this._classificationDataTask=w(this),this._formCreationTask=new I(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await V(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this._itemClassificationWatchHandle&&(this._itemClassificationWatchHandle.remove(),this.portalItem.removeHandles("arcgis-classification-config"),this._itemClassificationWatchHandle=void 0),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this.portalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=m(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=P()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=W}async destroy(){await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await O(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=x(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=m(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await V(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await M({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,A=e[o]?.valueExpressionResult,D=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:A,attributeValidationResult:D})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===E.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${g(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",f);return f},"arcade","core/reactiveUtils",a,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import a from"./IJUVJHBW.js";import{a as T}from"./YR55FH5L.js";import"./ASFZANMP.js";import{A as I,G as f,H as w,I as v,L as k,O as R,P as $,h as u,j as l,k as g,l as m,u as h,y as b,z as y}from"./367KSSQF.js";export default $arcgis.t(([,S,{j:C}])=>{var p=class extends I{constructor(e){if(super(e),this.it=m,e.type!==b.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===g)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};p.directiveName="unsafeHTML",p.resultType=1;var M=y(p);var x=u`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,L=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],U=i=>{if(!i)return!1;let e=L.some(t=>{let r=t.includes(".html"),n=`/apps/${t}${r?"":"/"}`;return decodeURIComponent(i.url)?.includes(n)});return i.type==="Web Mapping Application"&&!!i.url&&e};function j(i){return i.type==="Web Mapping Application"&&P(["Story Map"],i)}function P(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function A(i){let e=_(i);return $(`assets/portal-item-thumbnail/${e}`)}function _(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.png";case"mobile application":return"mobileapp.png";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.png";case"notebook":return"notebook.png";case"style":return t.includes("Dictionary")?"dictionarystyle.png":"style.png";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.png":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.png":"default.png";case"pro presentation":return"pro-presentation.png";case"reality mapping project":return"realitymappingproject.png";case"raster function template":return"rasterfunctiontemplate.png";case"workforce project":return"workforceproject.png";case"hub initiative":return"hubinitiative.png";case"hub page":return"hubpage.png";case"hub site application":case"site application":return"hubsite.png";case"hub event":return"hubevent.png";case"hub project":return"hubproject.png";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.png":"opsdashboard.png";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.png":"webtool.png";case"web scene":case"scene service":return"scene.png";case"ortho mapping project":return"orthomappingproject.png";case"ortho mapping template":return"orthomappingtemplate.png";case"insights theme":return"insightstheme.png";case"insights workbook package":return"insightsworkbookpackage.png";case"solution":return"solution.png";case"mobile scene package":return"mobilescenepackage.png";case"deep learning package":return"deeplearningpackage.png";case"big data analytic":return"bigdataanalytic.png";case"real time analytic":return"realtimeanalytic.png";case"feed":return"feed.png";case"excalibur imagery project":return"excaliburimageryproject.png";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.png":"storymap.png";case"survey123 add in":return"survey123addin.png";case"mission":return"mission.png";case"mission template":return"missiontemplate.png";case"quickcapture project":return"quickcaptureproject.png";case"pro report":return"proreport.png";case"pro package":return"propackage.png";case"pro report template":return"proreporttemplate.png";case"urban model":return"urbanmodel.png";case"urban project":return"urbanproject.png";case"web experience":return"webexperience.png";case"web experience template":return"webexperiencetemplate.png";case"experience builder widget":return"experiencebuilderwidget.png";case"experience builder widget package":return"experiencebuilderwidgetpackage.png";case"workflow":return"workflow.png";case"insights script":return"insightsscript.png";case"kernel gateway connection":return"kernelgatewayconnection.png";case"hub initiative template":return"hubinitiativetemplate.png";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.png":"imagerylayer.png";case"mission report":return"missionreport.png";case"administrative report":return"administrativereport.png";case"storymap theme":return"storymaptheme.png";case"knowledge graph":return"knowledgegraph.png";case"knowledge graph layer":return"knowledgegraphlayer.png";case"knowledge studio project":return"knowledgestudio.png";case"earth configuration":return"earthconfiguration.png";case"link chart":return"linkchart.png";case"investigation":return"investigation.png";case"apache parquet":return"apacheparquet.png";case"curated collection":return"curatedcollection.png";case"video service":return"mediaservice.png";case"geodata service":return"geodataservice.png";case"suitability model":return"suitabilitymodel.png";case"esri classifier definition":return"classifierdefinition.png";case"esri spectral library":return"spectrallibrary.png";case"deep learning studio project":return"deeplearningstudioproject.png";case"esri classification schema":return"classificationschema.png";case"insights data engineering workbook":return"dataengineeringworkbook.png";case"insights data engineering model":return"dataengineeringmodel.png";case"discussion":return"discussion.png";case"api key":return"apikey.png";case"data pipeline":return"datapipeline.png";case"analysis model":return"analysismodel.png";case"service connection":return"serviceconnection.png";case"xr experience":return"xrexperience.png";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.png":"default.png";default:return"default.png"}}function F(i,e,t){let{restUrl:r}=i,n=V(i),a=n?`token=${n}`:"",c=`${r}/content/items/${e.id}`;if(e.thumbnail){let o=e.thumbnailUrl;if(o){let s=new URL(o);return s.searchParams.append("w","400"),s.href}return`${c}/info/${e.thumbnail}?w=400${n?"&":""}${a}`}else if(e.type==="Image")return`${c}/data?${a}`;return A(e)}function V(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}var D=5e3,d=class extends v{constructor(){super(...arguments),this.replacementId=null,this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.thumbnailUrl=null,this.timer=void 0,this.t9n=T({blocking:!0}),this.primaryActionRef=f(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:r})=>{let n=e.restUrl;return n?`${n.replace("sharing/rest","home")}/item.html?id=${t}${r?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.canRedirect?"_self":"_blank")},this.item=null,this.replacementItem=null,this.redirectAction=null,this.canRedirect=!1,this.redirectDisabled=!1,this.open=!1,this.redirectTimeRemaining=D/1e3,this.arcgisPortalReplacementItemFetch=h()}static{this.properties={item:16,replacementItem:16,redirectAction:16,canRedirect:16,redirectDisabled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=x}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&this.initItem()}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=D/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}disableRedirect(){this.cancelTimer(),this.redirectDisabled=this.canRedirect}isItemRetired(e){return U(e)||j(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:r}=this,n=new S({id:e,portal:t});this.item=await n?.load();let a=await C(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),c=a.data?.relatedItems?.[0];this.replacementItemInRecycleBin=c?.inRecycleBin;let o=c?.id,s=!this.replacementItemInRecycleBin&&o?new S({id:o,portal:t}):null;await s?.load(),this.replacementItem=s,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!s&&a.data?.aggregations?.total?.count>0&&a.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:s||null}),this.replacementItem=s,this.thumbnailUrl=F(t,s??this.item),this.canRedirect=!!s&&this.isItemRetired(n),this.replacementId=s?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>r()}),this.open=!0}getReplacementHeading(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.replacementUnavailable:r?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retiredTitle:e.replacementAvailable}getReplacementMessage(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.retiredReplacementUnavailable:r?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}renderCard(e){let{canRedirect:t,t9n:r}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??k} @error=${async()=>this.thumbnailUrl=A(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${r.ownedBy?.replace("${owner}",e.owner||"")||""}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${r.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,t9n:t,item:r,replacementItem:n,canRedirect:a,redirectDisabled:c,redirectTimeRemaining:o}=this;if(!(!r||!this.isItemRetired(r)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${M(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(a?n:r)}</div>${a&&!c&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.disableRedirect()}}>${t.cancel}</calcite-button>`||""}<calcite-button .disabled=${c} slot=footer-end @click=${()=>{this.cancelTimer(),a?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${a?void 0:"launch"} ${w(this.primaryActionRef)}>${a?t.redirect.replace("${seconds}",`${o}`):t.moreDetails}</calcite-button></calcite-dialog>`}};R("arcgis-portal-replacement-item-redirect",d);return d},"request","portal/PortalItem",a)
|
|
2
|
+
import a from"./IJUVJHBW.js";import{a as T}from"./UK6PMBI3.js";import"./NG3HAE7G.js";import{A as I,G as f,H as w,I as v,L as k,O as R,P as $,h as u,j as l,k as g,l as m,u as h,y as b,z as y}from"./7CAHYPUJ.js";export default $arcgis.t(([,S,{j:C}])=>{var p=class extends I{constructor(e){if(super(e),this.it=m,e.type!==b.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===g)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};p.directiveName="unsafeHTML",p.resultType=1;var M=y(p);var x=u`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,L=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],U=i=>{if(!i)return!1;let e=L.some(t=>{let r=t.includes(".html"),n=`/apps/${t}${r?"":"/"}`;return decodeURIComponent(i.url)?.includes(n)});return i.type==="Web Mapping Application"&&!!i.url&&e};function j(i){return i.type==="Web Mapping Application"&&P(["Story Map"],i)}function P(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function A(i){let e=_(i);return $(`assets/portal-item-thumbnail/${e}`)}function _(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.png";case"mobile application":return"mobileapp.png";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.png";case"notebook":return"notebook.png";case"style":return t.includes("Dictionary")?"dictionarystyle.png":"style.png";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.png":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.png":"default.png";case"pro presentation":return"pro-presentation.png";case"reality mapping project":return"realitymappingproject.png";case"raster function template":return"rasterfunctiontemplate.png";case"workforce project":return"workforceproject.png";case"hub initiative":return"hubinitiative.png";case"hub page":return"hubpage.png";case"hub site application":case"site application":return"hubsite.png";case"hub event":return"hubevent.png";case"hub project":return"hubproject.png";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.png":"opsdashboard.png";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.png":"webtool.png";case"web scene":case"scene service":return"scene.png";case"ortho mapping project":return"orthomappingproject.png";case"ortho mapping template":return"orthomappingtemplate.png";case"insights theme":return"insightstheme.png";case"insights workbook package":return"insightsworkbookpackage.png";case"solution":return"solution.png";case"mobile scene package":return"mobilescenepackage.png";case"deep learning package":return"deeplearningpackage.png";case"big data analytic":return"bigdataanalytic.png";case"real time analytic":return"realtimeanalytic.png";case"feed":return"feed.png";case"excalibur imagery project":return"excaliburimageryproject.png";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.png":"storymap.png";case"survey123 add in":return"survey123addin.png";case"mission":return"mission.png";case"mission template":return"missiontemplate.png";case"quickcapture project":return"quickcaptureproject.png";case"pro report":return"proreport.png";case"pro package":return"propackage.png";case"pro report template":return"proreporttemplate.png";case"urban model":return"urbanmodel.png";case"urban project":return"urbanproject.png";case"web experience":return"webexperience.png";case"web experience template":return"webexperiencetemplate.png";case"experience builder widget":return"experiencebuilderwidget.png";case"experience builder widget package":return"experiencebuilderwidgetpackage.png";case"workflow":return"workflow.png";case"insights script":return"insightsscript.png";case"kernel gateway connection":return"kernelgatewayconnection.png";case"hub initiative template":return"hubinitiativetemplate.png";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.png":"imagerylayer.png";case"mission report":return"missionreport.png";case"administrative report":return"administrativereport.png";case"storymap theme":return"storymaptheme.png";case"knowledge graph":return"knowledgegraph.png";case"knowledge graph layer":return"knowledgegraphlayer.png";case"knowledge studio project":return"knowledgestudio.png";case"earth configuration":return"earthconfiguration.png";case"link chart":return"linkchart.png";case"investigation":return"investigation.png";case"apache parquet":return"apacheparquet.png";case"curated collection":return"curatedcollection.png";case"video service":return"mediaservice.png";case"geodata service":return"geodataservice.png";case"suitability model":return"suitabilitymodel.png";case"esri classifier definition":return"classifierdefinition.png";case"esri spectral library":return"spectrallibrary.png";case"deep learning studio project":return"deeplearningstudioproject.png";case"esri classification schema":return"classificationschema.png";case"insights data engineering workbook":return"dataengineeringworkbook.png";case"insights data engineering model":return"dataengineeringmodel.png";case"discussion":return"discussion.png";case"api key":return"apikey.png";case"data pipeline":return"datapipeline.png";case"analysis model":return"analysismodel.png";case"service connection":return"serviceconnection.png";case"xr experience":return"xrexperience.png";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.png":"default.png";default:return"default.png"}}function F(i,e,t){let{restUrl:r}=i,n=V(i),a=n?`token=${n}`:"",c=`${r}/content/items/${e.id}`;if(e.thumbnail){let o=e.thumbnailUrl;if(o){let s=new URL(o);return s.searchParams.append("w","400"),s.href}return`${c}/info/${e.thumbnail}?w=400${n?"&":""}${a}`}else if(e.type==="Image")return`${c}/data?${a}`;return A(e)}function V(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}var D=5e3,d=class extends v{constructor(){super(...arguments),this.replacementId=null,this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.thumbnailUrl=null,this.timer=void 0,this.t9n=T({blocking:!0}),this.primaryActionRef=f(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:r})=>{let n=e.restUrl;return n?`${n.replace("sharing/rest","home")}/item.html?id=${t}${r?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.canRedirect?"_self":"_blank")},this.item=null,this.replacementItem=null,this.redirectAction=null,this.canRedirect=!1,this.redirectDisabled=!1,this.open=!1,this.redirectTimeRemaining=D/1e3,this.arcgisPortalReplacementItemFetch=h()}static{this.properties={item:16,replacementItem:16,redirectAction:16,canRedirect:16,redirectDisabled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=x}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&this.initItem()}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=D/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}disableRedirect(){this.cancelTimer(),this.redirectDisabled=this.canRedirect}isItemRetired(e){return U(e)||j(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:r}=this,n=new S({id:e,portal:t});this.item=await n?.load();let a=await C(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),c=a.data?.relatedItems?.[0];this.replacementItemInRecycleBin=c?.inRecycleBin;let o=c?.id,s=!this.replacementItemInRecycleBin&&o?new S({id:o,portal:t}):null;await s?.load(),this.replacementItem=s,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!s&&a.data?.aggregations?.total?.count>0&&a.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:s||null}),this.replacementItem=s,this.thumbnailUrl=F(t,s??this.item),this.canRedirect=!!s&&this.isItemRetired(n),this.replacementId=s?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>r()}),this.open=!0}getReplacementHeading(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.replacementUnavailable:r?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retiredTitle:e.replacementAvailable}getReplacementMessage(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.retiredReplacementUnavailable:r?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}renderCard(e){let{canRedirect:t,t9n:r}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??k} @error=${async()=>this.thumbnailUrl=A(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${r.ownedBy?.replace("${owner}",e.owner||"")||""}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${r.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,t9n:t,item:r,replacementItem:n,canRedirect:a,redirectDisabled:c,redirectTimeRemaining:o}=this;if(!(!r||!this.isItemRetired(r)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${M(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(a?n:r)}</div>${a&&!c&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.disableRedirect()}}>${t.cancel}</calcite-button>`||""}<calcite-button .disabled=${c} slot=footer-end @click=${()=>{this.cancelTimer(),a?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${a?void 0:"launch"} ${w(this.primaryActionRef)}>${a?t.redirect.replace("${seconds}",`${o}`):t.moreDetails}</calcite-button></calcite-dialog>`}};R("arcgis-portal-replacement-item-redirect",d);return d},"request","portal/PortalItem",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import a from"./IVCIUBAP.js";import{b as P}from"./
|
|
2
|
+
import a from"./IVCIUBAP.js";import{b as P}from"./34WGEEAS.js";import{a as b}from"./NG3HAE7G.js";import{m as v,r as g,s as C,w}from"./7CAHYPUJ.js";export default $arcgis.t(([j,{property:p,subclass:I},{on:Y,watch:M},{createObservable:D,trackAccess:O},{property:J,subclass:Q},z,{a:E,b:x}])=>{var A=(t,o)=>i=>U(i,t),u=class extends w{constructor(o,i){super(o),this.Y=new Map,this.A=void 0,this.#e=D();let e=this;e.#t=i,e.Z(),e.setProvisionalExports(S(o,new WeakRef(e),o.M.length-1,e.instance,e.Y),!1),g(o,r=>{if(r){let n=M(()=>o[r],s=>{if(s===e.instance)return;let c=e.instance;e.exports=s,e.instance=s,e.Y.forEach((d,m)=>o.requestUpdate(d,c[m])),e.#o&&c.destroy(),e.#o=!1},{sync:!0});e.onDestroy(n.remove)}},e.exports)}#o;#e;#t;get exports(){return O(this.#e),super.exports}set exports(o){super.exports=o,this.#e.notify()}Z(){let o=this;o.instance="prototype"in o.#t&&"declaredClass"in o.#t.prototype?new o.#t:o.#t(),o.#o=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#o&&this.instance.destroy?.()}},U=b(u),S=(t,o,i,e,r)=>new Proxy(e,{get:(n,s)=>{let c=n[s];if(typeof s=="symbol"||r.has(s))return c;let d=t.M[i];return d.A=s,C(t,m=>{if(d.A=void 0,m!==void 0){let f=m.key;r.set(s,f);let h=t.constructor.getPropertyOptions(f),y=s!==f&&f.toLowerCase().includes("disable");$(o,h,s,f,y),h.i===void 0&&N(h,i,s,y)}},c)}}),$=(t,o,i,e,r,n)=>n=M(()=>{let s=t.deref();return s===void 0||s.component.manager.destroyed?n=n.remove():s.exports[i]},(s,c)=>{if(!n)return;t.deref().component?.requestUpdate(e,r?!c:c),o.c=!1},{sync:!0}),N=(t,o,i,e)=>{t.d.get=function(){let r=this.M[o]?.exports[i];return e?!r:r},t.d.set=function(r){let n=this.M[o];n.A!==i&&(n.exports[i]=e?!r:r)}};var L=Object.defineProperty,V=Object.getOwnPropertyDescriptor,l=(t,o,i,e)=>{for(var r=e>1?void 0:e?V(o,i):o,n=t.length-1,s;n>=0;n--)(s=t[n])&&(r=(e?s(o,i,r):s(r))||r);return e&&r&&L(o,i,r),r},a=class extends j{constructor(){super(...arguments),this.fetching=!1,this.status="idle",this.error=void 0,this.portalUrl=void 0,this._itemClassificationValidationErrors=new Map,this.fetchingPromise=new v}get primaryAttribute(){return this.portalClassificationSchema?.classificationMetadata.primaryAttribute}setPortalClassificationData({portalUrl:t,schema:o}){this.portalUrl=t,this.portalClassificationSchema=o,this.status="loaded",this.fetchingPromise.resolve(!0)}setFetching(t){this.fetching=t}async loadPortalClassificationData(t,{signal:o}){this.status="loading";let{result:i,error:e}=await E(t,o);if(e){e.name==="AbortError"?console.log("Request aborted."):(this.error=e,this.status="error",this.fetchingPromise.reject(e));return}else this.setPortalClassificationData({schema:i,portalUrl:t})}async validateClassification(t,o,i,e){if(!o)return"";let r=t?this._itemClassificationValidationErrors.get(t):void 0;if(r)return await r;let n=(async()=>{let{error:s}=await x(i,o,e??{});return s?s?.details.raw.messages.join(", "):""})();return t&&this._itemClassificationValidationErrors.set(t,n),t?await this._itemClassificationValidationErrors.get(t):await n}};l([p()],a.prototype,"portalClassificationSchema",2);l([p()],a.prototype,"fetching",2);l([p()],a.prototype,"status",2);l([p()],a.prototype,"error",2);l([p()],a.prototype,"portalUrl",2);l([p()],a.prototype,"_itemClassificationValidationErrors",2);a=l([I("custom.ClassificationModel")],a);var k;function _(t){return k??=new a(t),k}var at=A(_),ct=t=>new P(t,{task:async([o],{signal:i})=>{if(!o)throw new Error("Portal item is required to load classification data");if(o.loaded||await o.load({signal:i}),t.itemClassification=o.classification,t.classificationModel.status==="loading"&&await t.classificationModel.fetchingPromise.promise,!t.portalItem?.portal.hasClassificationSchema){t.classificationModel.setPortalClassificationData({portalUrl:o.portal.restUrl,schema:void 0});return}(t.classificationModel.status==="idle"||t.classificationModel.status==="loaded"&&t.classificationModel.portalUrl!==o.portal.restUrl)&&await t.classificationModel.loadPortalClassificationData(o.portal.restUrl,{signal:i})},args:()=>[t.portalItem]});return{a:at,b:ct}},"core/Accessor","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{A as V,B as m,C as h,D as A,E as D,F as y,k as P,y as k,z as w}from"./
|
|
2
|
+
import{A as V,B as m,C as h,D as A,E as D,F as y,k as P,y as k,z as w}from"./7CAHYPUJ.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I as a};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{N as t,x as e}from"./
|
|
2
|
+
import{N as t,x as e}from"./7CAHYPUJ.js";var a=e(t,{"arcgis-portal-classification-banner":[()=>import("./GAYJFQQU.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./VEB52T72.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./TEQYJRLR.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./56VHV6R5.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./G5JXBYGK.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./HDG4P5VG.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./DTWZKLDH.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-replacement-item-redirect":[()=>import("./XMGODSX4.js"),"itemId,portal:,t9n:,user:;setFocus"]});a({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-replacement-item-redirect){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{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);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,t)
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../cdn/main.css";
|
|
3
3
|
import { makeRuntime as e } from "@arcgis/lumina";
|
|
4
4
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
5
|
-
const t = e({ defaultAssetPath: "https://js.arcgis.com/5.0.
|
|
5
|
+
const t = e({ defaultAssetPath: "https://js.arcgis.com/5.0.2/portal-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: d } = t;
|
|
6
6
|
t.t = s;
|
|
7
7
|
t.o = r;
|
|
8
8
|
t.c = a;
|
package/dist/docs/api.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"timestamp":"2026-02-23T20:40:52","compiler":{"name":"@arcgis/lumina-compiler","version":"5.0.1","typescriptVersion":"5.9.3"},"schemaVersion":"2.1.0","modules":[{"kind":"javascript-module","path":"index","sourcePath":"src/index.ts","declarations":[{"kind":"function","name":"getAssetPath","description":"Get a resolved path from where an asset can be loaded.","parameters":[{"name":"suffix","description":"The relative path for the asset.","type":{"text":"string"}}],"return":{"type":{"text":"string"}}},{"kind":"function","name":"setAssetPath","description":"Used to manually set the base path where package assets (like localization\nand icons) can be found.\n\nBy default, the package assets are loaded from\n`https://js.arcgis.com/<version>/<simplified-package-name>/`. We are hosting\nour assets on a CDN (Content Delivery Network) to ensure fast and reliable\naccess. It is CORS-enabled, so you can load the assets from any domain. This\nis the recommended way to load the assets and avoid bundling them with your\napplication.\n\nHowever, if you need to host the assets locally, you can copy them manually\nas part of your build process and use `setAssetPath` to customize where the\nbrowser will load the assets from.","parameters":[{"name":"path","description":"Relative or absolute path to the assets folder.","type":{"text":"URL | string","references":[{"name":"URL","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/API/URL","start":0,"end":3}]}}],"return":{"type":{"text":"void"}}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-banner","sourcePath":"src/components/portal-classification-banner/portal-classification-banner.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationBanner","customElement":true,"tagName":"arcgis-portal-classification-banner","pascalCaseName":"ArcgisPortalClassificationBanner","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"missingExistingClassification","description":"If the portal item has a classification previously","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"missing-existing-classification"},{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"validationErrors","description":"The classification validation error - validate the classification value against the classification schema.","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","attribute":"validation-errors"},{"kind":"field","name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":{"text":"\"full\" | \"preview\"","values":[{"type":"string","value":"full"},{"type":"string","value":"preview"}]},"default":"\"full\"","attribute":"variant"},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationBanner = document.querySelector(\"arcgis-portal-classification-banner\");\ndocument.body.append(arcgisPortalClassificationBanner);\nawait arcgisPortalClassificationBanner.componentOnReady();\nconsole.log(\"arcgis-portal-classification-banner is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"destroy","description":"Permanently destroy the component","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"missing-existing-classification","description":"If the portal item has a classification previously","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"missingExistingClassification"},{"name":"validation-errors","description":"The classification validation error - validate the classification value against the classification schema.","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","fieldName":"validationErrors"},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":{"text":"\"full\" | \"preview\"","values":[{"type":"string","value":"full"},{"type":"string","value":"preview"}]},"default":"\"full\"","fieldName":"variant"}],"importPath":"components/arcgis-portal-classification-banner"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-banner","declaration":{"name":"ArcgisPortalClassificationBanner"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-config","sourcePath":"src/components/portal-classification-config/portal-classification-config.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationConfig","customElement":true,"tagName":"arcgis-portal-classification-config","pascalCaseName":"ArcgisPortalClassificationConfig","description":"The `arcgis-portal-classification-config` component enables users to edit or provide a classification schema to a portal item through a user-friendly form. The schema is saved to the associated portal item.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","docsTags":[{"name":"required"}],"type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":{"text":"Status","references":[{"name":"Status","module":"models/classificationModel","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/models/classificationModel/#Status","start":0,"end":6}],"values":[{"type":"string","value":"loading"},{"type":"string","value":"loaded"},{"type":"string","value":"error"},{"type":"string","value":"idle"}]},"default":"\"idle\"","readonly":true,"attribute":"status","reflects":true},{"kind":"field","name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"valid","reflects":true},{"kind":"field","name":"values","description":"The edited classification values of the portal item.","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]},"attribute":"values"},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationConfig = document.querySelector(\"arcgis-portal-classification-config\");\ndocument.body.append(arcgisPortalClassificationConfig);\nawait arcgisPortalClassificationConfig.componentOnReady();\nconsole.log(\"arcgis-portal-classification-config is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"destroy","description":"Permanently destroy the component.","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"},{"kind":"method","name":"resetForm","description":"Reset the form to the initial classification values from the portalItem","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"},{"kind":"method","name":"validateForm","description":"Validates the form and sets the formValidationErrors state.","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":{"text":"\"loading\" | \"loaded\" | \"error\" | \"idle\"","values":[{"type":"string","value":"loading"},{"type":"string","value":"loaded"},{"type":"string","value":"error"},{"type":"string","value":"idle"}]},"default":"\"idle\"","fieldName":"status"},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"valid"},{"name":"values","description":"The edited classification values of the portal item.","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]},"fieldName":"values"}],"events":[{"name":"arcgisPropertyChange","description":"Event emitted when component property values status, values, or valid change.","type":{"text":"{ name: \"status\" | \"values\" | \"valid\"; }"}}],"importPath":"components/arcgis-portal-classification-config"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-config","declaration":{"name":"ArcgisPortalClassificationConfig"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-favorite","sourcePath":"src/components/portal-classification-favorite/portal-classification-favorite.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationFavorite","customElement":true,"tagName":"arcgis-portal-classification-favorite","pascalCaseName":"ArcgisPortalClassificationFavorite","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"attributeExpressionResults","type":{"text":"AttributeExpressionResults | undefined","references":[{"name":"AttributeExpressionResults","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#AttributeExpressionResults","start":0,"end":26}]}},{"kind":"field","name":"classificationValue","description":"Current classification value","type":{"text":"__esri.PortalItem[\"classification\"] | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"favoriteClassifications","description":"List of favorite classifications","type":{"text":"FavoriteClassification[]","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":0,"end":22}]}},{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"resetFavoriteClassification","type":{"text":"(favoriteClassifications: FavoriteClassification[]) => void","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":26,"end":48}]}},{"kind":"field","name":"selectedFavoriteClassificationName","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","attribute":"selected-favorite-classification-name"},{"kind":"field","name":"updateClassificationData","type":{"text":"(selectedClassification: FavoriteClassification) => void","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":25,"end":47}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationFavorite = document.querySelector(\"arcgis-portal-classification-favorite\");\ndocument.body.append(arcgisPortalClassificationFavorite);\nawait arcgisPortalClassificationFavorite.componentOnReady();\nconsole.log(\"arcgis-portal-classification-favorite is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"attributes":[{"name":"selected-favorite-classification-name","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","fieldName":"selectedFavoriteClassificationName"}],"importPath":"components/arcgis-portal-classification-favorite"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-favorite","declaration":{"name":"ArcgisPortalClassificationFavorite"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-form-element","sourcePath":"src/components/portal-classification-form-element/portal-classification-form-element.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationFormElement","customElement":true,"tagName":"arcgis-portal-classification-form-element","pascalCaseName":"ArcgisPortalClassificationFormElement","description":"A web component that renders form elements for a classification schema attribute.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"attribute","type":{"text":"ClassificationSchema[\"attributes\"][string]","references":[{"name":"ClassificationSchema","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationSchema","start":0,"end":20}]}},{"kind":"field","name":"attributeKey","type":{"text":"string","values":[{"type":"string"}]},"attribute":"attribute-key"},{"kind":"field","name":"isRequiredErrors","type":{"text":"Set<string>","references":[{"name":"Set","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set","start":0,"end":3}]}},{"kind":"field","name":"renderingInfo","type":{"text":"Pick<NonNullable<ReturnType<AttributeExpressionResults[\"get\"]>>, \"attributeValidationResult\" | \"valueExpressionResult\"> | undefined","references":[{"name":"Pick","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys","start":0,"end":4},{"name":"NonNullable","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union","start":5,"end":16},{"name":"ReturnType","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype","start":17,"end":27},{"name":"AttributeExpressionResults","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#AttributeExpressionResults","start":28,"end":54}]}},{"kind":"field","name":"value","type":{"text":"unknown"}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationFormElement = document.querySelector(\"arcgis-portal-classification-form-element\");\ndocument.body.append(arcgisPortalClassificationFormElement);\nawait arcgisPortalClassificationFormElement.componentOnReady();\nconsole.log(\"arcgis-portal-classification-form-element is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"attributes":[{"name":"attribute-key","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"attributeKey"}],"events":[{"name":"arcgisAttributeValueChange","description":"The attribute value has changed.","type":{"text":"Record<string, unknown>","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":0,"end":6}]}}],"importPath":"components/arcgis-portal-classification-form-element"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-form-element","declaration":{"name":"ArcgisPortalClassificationFormElement"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-extent-picker","sourcePath":"src/components/portal-extent-picker/portal-extent-picker.tsx","declarations":[{"kind":"class","name":"ArcgisPortalExtentPicker","customElement":true,"tagName":"arcgis-portal-extent-picker","pascalCaseName":"ArcgisPortalExtentPicker","description":"To select extent value from a map or by entering coordinates.","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"active","description":"if true, open the dialog","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"active"},{"kind":"field","name":"contentOnly","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"content-only"},{"kind":"field","name":"extentService","description":"Optional; URL of the extent service, used to initialize TileLayer","type":{"text":"string | undefined","values":[{"type":"string"}]},"attribute":"extent-service"},{"kind":"field","name":"extentValue","description":"current extent value","type":{"text":"ExtentValue | undefined","references":[{"name":"ExtentValue","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentValue","start":0,"end":11}]}},{"kind":"field","name":"isArea","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"is-area"},{"kind":"field","name":"itemId","description":"Optional; if passed, use the itemId to load the Portal item","type":{"text":"string | undefined","values":[{"type":"string"}]},"attribute":"item-id"},{"kind":"field","name":"portal","description":"Optional; Portal instance","type":{"text":"Portal | undefined","references":[{"name":"default","module":"portal/Portal.js","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/Portal/","start":0,"end":6}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalExtentPicker = document.querySelector(\"arcgis-portal-extent-picker\");\ndocument.body.append(arcgisPortalExtentPicker);\nawait arcgisPortalExtentPicker.componentOnReady();\nconsole.log(\"arcgis-portal-extent-picker is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"getExtent","description":"Returns the current extent value","return":{"type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}},"signature":"(): ExtentObj"}],"attributes":[{"name":"active","description":"if true, open the dialog","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"active"},{"name":"content-only","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"contentOnly"},{"name":"extent-service","description":"Optional; URL of the extent service, used to initialize TileLayer","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"extentService"},{"name":"is-area","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"isArea"},{"name":"item-id","description":"Optional; if passed, use the itemId to load the Portal item","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"itemId"}],"events":[{"name":"arcgisExtentPickerChange","description":"Emitted when the extent value changes","type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}},{"name":"arcgisExtentPickerClose","description":"Emitted when the dialog is closed","type":{"text":"void"}},{"name":"arcgisExtentPickerSave","description":"Emitted when the save button is clicked","type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}}],"importPath":"components/arcgis-portal-extent-picker"},{"kind":"interface","name":"ExtentValue","members":[{"kind":"field","name":"ymin","type":{"text":"string"}},{"kind":"field","name":"ymax","type":{"text":"string"}},{"kind":"field","name":"xmin","type":{"text":"string"}},{"kind":"field","name":"xmax","type":{"text":"string"}}]},{"kind":"interface","name":"ExtentObj","members":[{"kind":"field","name":"extent","type":{"text":"ExtentValue","references":[{"name":"ExtentValue","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentValue","start":0,"end":11}]}}]}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-extent-picker","declaration":{"name":"ArcgisPortalExtentPicker"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-field-delete","sourcePath":"src/components/portal-field-delete/portal-field-delete.tsx","declarations":[{"kind":"class","name":"ArcgisPortalFieldDelete","customElement":true,"tagName":"arcgis-portal-field-delete","pascalCaseName":"ArcgisPortalFieldDelete","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"config","description":"For documentation links.","type":{"text":"IConfig | undefined","references":[{"name":"IConfig","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#IConfig","start":0,"end":7}]}},{"kind":"field","name":"fieldNames","description":"The fields to delete.","type":{"text":"string[] | undefined"}},{"kind":"field","name":"layer","description":"The layer whose field is being deleted.","type":{"text":"__esri.FeatureLayer | __esri.OrientedImageryLayer | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7},{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":22,"end":29}]}},{"kind":"field","name":"mapView","description":"The MapView instance.","type":{"text":"__esri.MapView | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"options","description":"Properties that may need to be passed in case values differ from what is available on Map Viewer.","type":{"text":"FieldDeleteOptions | undefined","references":[{"name":"FieldDeleteOptions","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#FieldDeleteOptions","start":0,"end":18}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalFieldDelete = document.querySelector(\"arcgis-portal-field-delete\");\ndocument.body.append(arcgisPortalFieldDelete);\nawait arcgisPortalFieldDelete.componentOnReady();\nconsole.log(\"arcgis-portal-field-delete is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"events":[{"name":"arcgisBeforeDelete","description":"Emitted when the user initiates the delete process.","type":{"text":"void"}},{"name":"arcgisBeforeModalClose","description":"Emitted before the modal is closed if the alert is handled in consumer.","type":{"text":"string"}},{"name":"arcgisClose","description":"Emitted when the component is closed for any reason.","type":{"text":"void"}},{"name":"arcgisFieldsDeleted","description":"Emitted when the field is successfully deleted.","type":{"text":"void"}}],"importPath":"components/arcgis-portal-field-delete"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-field-delete","declaration":{"name":"ArcgisPortalFieldDelete"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-replacement-item-redirect","sourcePath":"src/components/portal-replacement-item-redirect/portal-replacement-item-redirect.tsx","declarations":[{"kind":"class","name":"ArcgisPortalReplacementItemRedirect","customElement":true,"tagName":"arcgis-portal-replacement-item-redirect","pascalCaseName":"ArcgisPortalReplacementItemRedirect","description":"The `arcgis-portal-replacement-item-redirect` component takes an item id on a given portal, and checks if there is a replacement item associated with it\nvia the `ReplacementItem2Item` relationship.\n\nIf so, it displays a dialog to the user notifying them of the replacement item, and redirects to the replacement item's default Open Action after a timeout.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"itemId","description":"The id of a deprecated/retired item to be checked for a replacement","type":{"text":"string","values":[{"type":"string"}]},"attribute":"item-id"},{"kind":"field","name":"portal","description":"The portal instance","type":{"text":"Portal","references":[{"name":"default","module":"portal/Portal","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/Portal/","start":0,"end":6}]}},{"kind":"field","name":"user","description":"The user. Defaults to `portal.user` if omitted","type":{"text":"PortalUser | undefined","references":[{"name":"default","module":"portal/PortalUser","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/PortalUser/","start":0,"end":10}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalReplacementItemRedirect = document.querySelector(\"arcgis-portal-replacement-item-redirect\");\ndocument.body.append(arcgisPortalReplacementItemRedirect);\nawait arcgisPortalReplacementItemRedirect.componentOnReady();\nconsole.log(\"arcgis-portal-replacement-item-redirect is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"setFocus","description":"Set focus on the component","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"item-id","description":"The id of a deprecated/retired item to be checked for a replacement","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"itemId"}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":{"text":"{ replacementItem: PortalItem | object | null; }","references":[{"name":"default","module":"portal/PortalItem.js","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/","start":19,"end":29}]}}],"importPath":"components/arcgis-portal-replacement-item-redirect"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-replacement-item-redirect","declaration":{"name":"ArcgisPortalReplacementItemRedirect"}}]},{"kind":"javascript-module","path":"models/classificationModel","sourcePath":"src/models/classificationModel.ts","declarations":[{"kind":"interface","name":"Status","type":{"text":"\"error\" | \"idle\" | \"loaded\" | \"loading\""}}]},{"kind":"javascript-module","path":"types/classification","sourcePath":"src/types/classification.ts","declarations":[{"kind":"interface","name":"ClassificationSchema","description":"The classification schema defined on the portal.","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n attributeCategories?: string[];\n attributes: Record<string, ClassificationAttributesValues>;\n bannerExpression?: string;\n classificationMetadata: ClassificationMetadata;\n grammarVersion: string;\n layouts: Record<string, DefaultLayout>;\n name: string;\n selectionTextExpression?: string;\n version: string;\n helpUrl?: string;\n helpTooltip?: string;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":54,"end":60},{"name":"ClassificationAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationAttributesValues","start":69,"end":99},{"name":"ClassificationMetadata","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationMetadata","start":161,"end":183},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":226,"end":232},{"name":"DefaultLayout","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#DefaultLayout","start":241,"end":254}]}]}]},{"kind":"interface","name":"FavoriteClassification","members":[{"kind":"field","name":"name","type":{"text":"string"}},{"kind":"field","name":"classification","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}}]},{"kind":"interface","name":"AttributeExpressionResults","description":"State object that is used to store arcade expression results from expressions\nthat are evaluated for each attribute in the classification schema.","supertypes":[{"name":"Map","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map","typeArguments":[{"text":"string"},{"text":"{\n enabled: boolean;\n valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;\n attributeValidationResult: string | null;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":51,"end":57},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":66,"end":77},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":83,"end":94}]}]}]},{"kind":"interface","name":"ClassificationMetadata","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n primaryAttribute: string;\n defaultValue: string;\n classificationValueProperties: ClassificationType[];\n}","references":[{"name":"ClassificationType","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationType","start":93,"end":111}]}]}]},{"kind":"interface","name":"ValueOption","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n label: string;\n value: string;\n}"}]}]},{"kind":"interface","name":"ClassificationAttributesValues","type":{"text":"CheckboxAttributesValues | DateAttributesValues | MultiGroupedSelectNestedAttributesValues | MultiSelectAttributesValues | SingleSelectAttributesValues | TextAttributesValues","references":[{"name":"CheckboxAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#CheckboxAttributesValues","start":0,"end":24},{"name":"DateAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#DateAttributesValues","start":27,"end":47},{"name":"MultiGroupedSelectNestedAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#MultiGroupedSelectNestedAttributesValues","start":50,"end":90},{"name":"MultiSelectAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#MultiSelectAttributesValues","start":93,"end":120},{"name":"SingleSelectAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#SingleSelectAttributesValues","start":123,"end":151},{"name":"TextAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#TextAttributesValues","start":154,"end":174}]}},{"kind":"interface","name":"DefaultLayout","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{ layoutElements: Record<string, ClassificationLayoutElements>; }","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":18,"end":24},{"name":"ClassificationLayoutElements","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationLayoutElements","start":33,"end":61}]}]}]},{"kind":"interface","name":"ClassificationType","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n [index: string]: string | undefined;\n value: string;\n acronym?: string;\n backgroundColor?: string;\n textColor?: string;\n}"}]}]},{"kind":"interface","name":"SingleSelectAttributesValues","description":"Create narrowed types for each of the possible UI elements.\nNever is used to inform users that the property will never be defined\nwhen uiElement is a specific value.","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"single-select\";\n validValues?: ValueOption[];\n validValuesMap?: never;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":52,"end":63}]}]}]},{"kind":"interface","name":"MultiSelectAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"multi-select\";\n validValues?: ValueOption[];\n validValuesMap?: never;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":51,"end":62}]}]}]},{"kind":"interface","name":"MultiGroupedSelectNestedAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"multi-grouped-select-nested\";\n validValuesMap: Record<string, ValueOption[]>;\n validValues?: never;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":68,"end":74},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":83,"end":94}]}]}]},{"kind":"interface","name":"CheckboxAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"checkbox\";\n type: \"boolean\";\n validValues?: never;\n validValuesMap?: never;\n defaultDateTimeline?: never;\n defaultDateTimelineUnits?: never;\n}"}]}]},{"kind":"interface","name":"DateAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"date\";\n type: \"date\";\n defaultDateTimeline: number;\n defaultDateTimelineUnits: string;\n validValues?: never;\n validValuesMap?: never;\n}"}]}]},{"kind":"interface","name":"TextAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"text\";\n type: \"string\";\n validValues?: never;\n validValuesMap?: never;\n defaultDateTimeline?: never;\n defaultDateTimelineUnits?: never;\n}"}]}]},{"kind":"interface","name":"ClassificationLayoutElements","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{ formDisplayOrder: number; }"}]}]},{"kind":"interface","name":"BaseAttributesValues","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n label: string;\n description?: string;\n type: string;\n uiElement: string;\n isRequired?: boolean;\n defaultValue?: string;\n defaultDateTimeline?: number;\n defaultDateTimelineUnits?: string;\n validValues?: ValueOption[];\n validValuesMap?: Record<string, ValueOption[]>;\n isAttributeEnabled?: string;\n valueExpression?: string;\n attributeValidation?: string;\n arcadeResultLookup?: Record<string, ValueOption[]>;\n attributeCategory?: string;\n selectionDisplayOrder?: number;\n selectionDisplayLabel?: string;\n bannerOrder?: number;\n bannerLabel?: string;\n labelDelimiter?: string;\n labelTooltip?: string;\n valueDelimiter?: string;\n attributeDelimiter?: string;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":232,"end":243},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":268,"end":274},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":283,"end":294},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":421,"end":427},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":436,"end":447}]}]}]}]},{"kind":"javascript-module","path":"utils/fieldAddDelete","sourcePath":"src/utils/fieldAddDelete.ts","declarations":[{"kind":"function","name":"canAddField","parameters":[{"name":"layer","type":{"text":"any"}}],"return":{"type":{"text":"Promise<boolean>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}}},{"kind":"function","name":"canDeleteField","parameters":[{"name":"mapView","type":{"text":"__esri.MapView | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"name":"layer","type":{"text":"any"}},{"name":"field","type":{"text":"__esri.Field","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"name":"options","optional":true,"type":{"text":"FieldDeleteOptions","references":[{"name":"FieldDeleteOptions","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#FieldDeleteOptions","start":0,"end":18}]}}],"return":{"type":{"text":"Promise<boolean>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}}}]},{"kind":"javascript-module","path":"utils/types","sourcePath":"src/utils/types.ts","declarations":[{"kind":"interface","name":"IConfig","description":"Configuration","members":[{"kind":"field","name":"arcadeEditor","type":{"text":"string | undefined"}},{"kind":"field","name":"jsapiUrl","type":{"text":"string | undefined"}},{"kind":"field","name":"helpMap","type":{"text":"Record<string, string> | undefined","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":0,"end":6}]}},{"kind":"field","name":"helpBase","type":{"text":"string | undefined"}}]},{"kind":"interface","name":"FieldDeleteOptions","members":[{"kind":"field","name":"item","type":{"text":"__esri.PortalItem","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"portal","type":{"text":"__esri.Portal","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"handleCloseOnConsumer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignorePopupTemplate","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerRenderer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerFeatureReduction","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerLabelingInfo","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerDefinitionExpression","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreItemRenderer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreItemFeatureReduction","type":{"text":"boolean | undefined"}},{"kind":"field","name":"userItemInfo","type":{"text":"UserItemInfo | undefined","references":[{"name":"UserItemInfo","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#UserItemInfo","start":0,"end":12}]}}]},{"kind":"interface","name":"UserItemInfo","members":[{"kind":"field","name":"itemData","type":{"text":"any"}},{"kind":"field","name":"userGroups","type":{"text":"any[]"}},{"kind":"field","name":"itemGroups","type":{"text":"any[]"}},{"kind":"field","name":"relatedItems","type":{"text":"any[]"}},{"kind":"field","name":"fieldGroups","type":{"text":"any[]"}}]}]}]}
|
|
1
|
+
{"timestamp":"2026-02-24T02:40:01","compiler":{"name":"@arcgis/lumina-compiler","version":"5.0.2","typescriptVersion":"5.9.3"},"schemaVersion":"2.1.0","modules":[{"kind":"javascript-module","path":"index","sourcePath":"src/index.ts","declarations":[{"kind":"function","name":"getAssetPath","description":"Get a resolved path from where an asset can be loaded.","parameters":[{"name":"suffix","description":"The relative path for the asset.","type":{"text":"string"}}],"return":{"type":{"text":"string"}}},{"kind":"function","name":"setAssetPath","description":"Used to manually set the base path where package assets (like localization\nand icons) can be found.\n\nBy default, the package assets are loaded from\n`https://js.arcgis.com/<version>/<simplified-package-name>/`. We are hosting\nour assets on a CDN (Content Delivery Network) to ensure fast and reliable\naccess. It is CORS-enabled, so you can load the assets from any domain. This\nis the recommended way to load the assets and avoid bundling them with your\napplication.\n\nHowever, if you need to host the assets locally, you can copy them manually\nas part of your build process and use `setAssetPath` to customize where the\nbrowser will load the assets from.","parameters":[{"name":"path","description":"Relative or absolute path to the assets folder.","type":{"text":"URL | string","references":[{"name":"URL","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/API/URL","start":0,"end":3}]}}],"return":{"type":{"text":"void"}}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-banner","sourcePath":"src/components/portal-classification-banner/portal-classification-banner.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationBanner","customElement":true,"tagName":"arcgis-portal-classification-banner","pascalCaseName":"ArcgisPortalClassificationBanner","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"missingExistingClassification","description":"If the portal item has a classification previously","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"missing-existing-classification"},{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"validationErrors","description":"The classification validation error - validate the classification value against the classification schema.","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","attribute":"validation-errors"},{"kind":"field","name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":{"text":"\"full\" | \"preview\"","values":[{"type":"string","value":"full"},{"type":"string","value":"preview"}]},"default":"\"full\"","attribute":"variant"},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationBanner = document.querySelector(\"arcgis-portal-classification-banner\");\ndocument.body.append(arcgisPortalClassificationBanner);\nawait arcgisPortalClassificationBanner.componentOnReady();\nconsole.log(\"arcgis-portal-classification-banner is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"destroy","description":"Permanently destroy the component","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"missing-existing-classification","description":"If the portal item has a classification previously","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"missingExistingClassification"},{"name":"validation-errors","description":"The classification validation error - validate the classification value against the classification schema.","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","fieldName":"validationErrors"},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":{"text":"\"full\" | \"preview\"","values":[{"type":"string","value":"full"},{"type":"string","value":"preview"}]},"default":"\"full\"","fieldName":"variant"}],"importPath":"components/arcgis-portal-classification-banner"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-banner","declaration":{"name":"ArcgisPortalClassificationBanner"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-config","sourcePath":"src/components/portal-classification-config/portal-classification-config.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationConfig","customElement":true,"tagName":"arcgis-portal-classification-config","pascalCaseName":"ArcgisPortalClassificationConfig","description":"The `arcgis-portal-classification-config` component enables users to edit or provide a classification schema to a portal item through a user-friendly form. The schema is saved to the associated portal item.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","docsTags":[{"name":"required"}],"type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":{"text":"Status","references":[{"name":"Status","module":"models/classificationModel","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/models/classificationModel/#Status","start":0,"end":6}],"values":[{"type":"string","value":"loading"},{"type":"string","value":"loaded"},{"type":"string","value":"error"},{"type":"string","value":"idle"}]},"default":"\"idle\"","readonly":true,"attribute":"status","reflects":true},{"kind":"field","name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"valid","reflects":true},{"kind":"field","name":"values","description":"The edited classification values of the portal item.","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]},"attribute":"values"},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationConfig = document.querySelector(\"arcgis-portal-classification-config\");\ndocument.body.append(arcgisPortalClassificationConfig);\nawait arcgisPortalClassificationConfig.componentOnReady();\nconsole.log(\"arcgis-portal-classification-config is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"destroy","description":"Permanently destroy the component.","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"},{"kind":"method","name":"resetForm","description":"Reset the form to the initial classification values from the portalItem","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"},{"kind":"method","name":"validateForm","description":"Validates the form and sets the formValidationErrors state.","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":{"text":"\"loading\" | \"loaded\" | \"error\" | \"idle\"","values":[{"type":"string","value":"loading"},{"type":"string","value":"loaded"},{"type":"string","value":"error"},{"type":"string","value":"idle"}]},"default":"\"idle\"","fieldName":"status"},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"valid"},{"name":"values","description":"The edited classification values of the portal item.","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]},"fieldName":"values"}],"events":[{"name":"arcgisPropertyChange","description":"Event emitted when component property values status, values, or valid change.","type":{"text":"{ name: \"status\" | \"values\" | \"valid\"; }"}}],"importPath":"components/arcgis-portal-classification-config"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-config","declaration":{"name":"ArcgisPortalClassificationConfig"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-favorite","sourcePath":"src/components/portal-classification-favorite/portal-classification-favorite.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationFavorite","customElement":true,"tagName":"arcgis-portal-classification-favorite","pascalCaseName":"ArcgisPortalClassificationFavorite","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"attributeExpressionResults","type":{"text":"AttributeExpressionResults | undefined","references":[{"name":"AttributeExpressionResults","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#AttributeExpressionResults","start":0,"end":26}]}},{"kind":"field","name":"classificationValue","description":"Current classification value","type":{"text":"__esri.PortalItem[\"classification\"] | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"favoriteClassifications","description":"List of favorite classifications","type":{"text":"FavoriteClassification[]","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":0,"end":22}]}},{"kind":"field","name":"portalItem","description":"The portal item to display the classification banner for.","type":{"text":"__esri.PortalItem | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"resetFavoriteClassification","type":{"text":"(favoriteClassifications: FavoriteClassification[]) => void","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":26,"end":48}]}},{"kind":"field","name":"selectedFavoriteClassificationName","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","attribute":"selected-favorite-classification-name"},{"kind":"field","name":"updateClassificationData","type":{"text":"(selectedClassification: FavoriteClassification) => void","references":[{"name":"FavoriteClassification","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#FavoriteClassification","start":25,"end":47}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationFavorite = document.querySelector(\"arcgis-portal-classification-favorite\");\ndocument.body.append(arcgisPortalClassificationFavorite);\nawait arcgisPortalClassificationFavorite.componentOnReady();\nconsole.log(\"arcgis-portal-classification-favorite is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"attributes":[{"name":"selected-favorite-classification-name","type":{"text":"string","values":[{"type":"string"}]},"default":"\"\"","fieldName":"selectedFavoriteClassificationName"}],"importPath":"components/arcgis-portal-classification-favorite"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-favorite","declaration":{"name":"ArcgisPortalClassificationFavorite"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-classification-form-element","sourcePath":"src/components/portal-classification-form-element/portal-classification-form-element.tsx","declarations":[{"kind":"class","name":"ArcgisPortalClassificationFormElement","customElement":true,"tagName":"arcgis-portal-classification-form-element","pascalCaseName":"ArcgisPortalClassificationFormElement","description":"A web component that renders form elements for a classification schema attribute.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"attribute","type":{"text":"ClassificationSchema[\"attributes\"][string]","references":[{"name":"ClassificationSchema","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationSchema","start":0,"end":20}]}},{"kind":"field","name":"attributeKey","type":{"text":"string","values":[{"type":"string"}]},"attribute":"attribute-key"},{"kind":"field","name":"isRequiredErrors","type":{"text":"Set<string>","references":[{"name":"Set","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set","start":0,"end":3}]}},{"kind":"field","name":"renderingInfo","type":{"text":"Pick<NonNullable<ReturnType<AttributeExpressionResults[\"get\"]>>, \"attributeValidationResult\" | \"valueExpressionResult\"> | undefined","references":[{"name":"Pick","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys","start":0,"end":4},{"name":"NonNullable","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union","start":5,"end":16},{"name":"ReturnType","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype","start":17,"end":27},{"name":"AttributeExpressionResults","module":"types/classification","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#AttributeExpressionResults","start":28,"end":54}]}},{"kind":"field","name":"value","type":{"text":"unknown"}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalClassificationFormElement = document.querySelector(\"arcgis-portal-classification-form-element\");\ndocument.body.append(arcgisPortalClassificationFormElement);\nawait arcgisPortalClassificationFormElement.componentOnReady();\nconsole.log(\"arcgis-portal-classification-form-element is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"attributes":[{"name":"attribute-key","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"attributeKey"}],"events":[{"name":"arcgisAttributeValueChange","description":"The attribute value has changed.","type":{"text":"Record<string, unknown>","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":0,"end":6}]}}],"importPath":"components/arcgis-portal-classification-form-element"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-classification-form-element","declaration":{"name":"ArcgisPortalClassificationFormElement"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-extent-picker","sourcePath":"src/components/portal-extent-picker/portal-extent-picker.tsx","declarations":[{"kind":"class","name":"ArcgisPortalExtentPicker","customElement":true,"tagName":"arcgis-portal-extent-picker","pascalCaseName":"ArcgisPortalExtentPicker","description":"To select extent value from a map or by entering coordinates.","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"active","description":"if true, open the dialog","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"active"},{"kind":"field","name":"contentOnly","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"content-only"},{"kind":"field","name":"extentService","description":"Optional; URL of the extent service, used to initialize TileLayer","type":{"text":"string | undefined","values":[{"type":"string"}]},"attribute":"extent-service"},{"kind":"field","name":"extentValue","description":"current extent value","type":{"text":"ExtentValue | undefined","references":[{"name":"ExtentValue","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentValue","start":0,"end":11}]}},{"kind":"field","name":"isArea","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","attribute":"is-area"},{"kind":"field","name":"itemId","description":"Optional; if passed, use the itemId to load the Portal item","type":{"text":"string | undefined","values":[{"type":"string"}]},"attribute":"item-id"},{"kind":"field","name":"portal","description":"Optional; Portal instance","type":{"text":"Portal | undefined","references":[{"name":"default","module":"portal/Portal.js","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/Portal/","start":0,"end":6}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalExtentPicker = document.querySelector(\"arcgis-portal-extent-picker\");\ndocument.body.append(arcgisPortalExtentPicker);\nawait arcgisPortalExtentPicker.componentOnReady();\nconsole.log(\"arcgis-portal-extent-picker is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"getExtent","description":"Returns the current extent value","return":{"type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}},"signature":"(): ExtentObj"}],"attributes":[{"name":"active","description":"if true, open the dialog","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"active"},{"name":"content-only","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"contentOnly"},{"name":"extent-service","description":"Optional; URL of the extent service, used to initialize TileLayer","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"extentService"},{"name":"is-area","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":{"text":"boolean","values":[{"type":"boolean"}]},"default":"false","fieldName":"isArea"},{"name":"item-id","description":"Optional; if passed, use the itemId to load the Portal item","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"itemId"}],"events":[{"name":"arcgisExtentPickerChange","description":"Emitted when the extent value changes","type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}},{"name":"arcgisExtentPickerClose","description":"Emitted when the dialog is closed","type":{"text":"void"}},{"name":"arcgisExtentPickerSave","description":"Emitted when the save button is clicked","type":{"text":"ExtentObj","references":[{"name":"ExtentObj","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentObj","start":0,"end":9}]}}],"importPath":"components/arcgis-portal-extent-picker"},{"kind":"interface","name":"ExtentValue","members":[{"kind":"field","name":"ymin","type":{"text":"string"}},{"kind":"field","name":"ymax","type":{"text":"string"}},{"kind":"field","name":"xmin","type":{"text":"string"}},{"kind":"field","name":"xmax","type":{"text":"string"}}]},{"kind":"interface","name":"ExtentObj","members":[{"kind":"field","name":"extent","type":{"text":"ExtentValue","references":[{"name":"ExtentValue","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/components/arcgis-portal-extent-picker/#ExtentValue","start":0,"end":11}]}}]}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-extent-picker","declaration":{"name":"ArcgisPortalExtentPicker"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-field-delete","sourcePath":"src/components/portal-field-delete/portal-field-delete.tsx","declarations":[{"kind":"class","name":"ArcgisPortalFieldDelete","customElement":true,"tagName":"arcgis-portal-field-delete","pascalCaseName":"ArcgisPortalFieldDelete","superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"config","description":"For documentation links.","type":{"text":"IConfig | undefined","references":[{"name":"IConfig","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#IConfig","start":0,"end":7}]}},{"kind":"field","name":"fieldNames","description":"The fields to delete.","type":{"text":"string[] | undefined"}},{"kind":"field","name":"layer","description":"The layer whose field is being deleted.","type":{"text":"__esri.FeatureLayer | __esri.OrientedImageryLayer | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7},{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":22,"end":29}]}},{"kind":"field","name":"mapView","description":"The MapView instance.","type":{"text":"__esri.MapView | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"options","description":"Properties that may need to be passed in case values differ from what is available on Map Viewer.","type":{"text":"FieldDeleteOptions | undefined","references":[{"name":"FieldDeleteOptions","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#FieldDeleteOptions","start":0,"end":18}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalFieldDelete = document.querySelector(\"arcgis-portal-field-delete\");\ndocument.body.append(arcgisPortalFieldDelete);\nawait arcgisPortalFieldDelete.componentOnReady();\nconsole.log(\"arcgis-portal-field-delete is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"}],"events":[{"name":"arcgisBeforeDelete","description":"Emitted when the user initiates the delete process.","type":{"text":"void"}},{"name":"arcgisBeforeModalClose","description":"Emitted before the modal is closed if the alert is handled in consumer.","type":{"text":"string"}},{"name":"arcgisClose","description":"Emitted when the component is closed for any reason.","type":{"text":"void"}},{"name":"arcgisFieldsDeleted","description":"Emitted when the field is successfully deleted.","type":{"text":"void"}}],"importPath":"components/arcgis-portal-field-delete"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-field-delete","declaration":{"name":"ArcgisPortalFieldDelete"}}]},{"kind":"javascript-module","path":"components/arcgis-portal-replacement-item-redirect","sourcePath":"src/components/portal-replacement-item-redirect/portal-replacement-item-redirect.tsx","declarations":[{"kind":"class","name":"ArcgisPortalReplacementItemRedirect","customElement":true,"tagName":"arcgis-portal-replacement-item-redirect","pascalCaseName":"ArcgisPortalReplacementItemRedirect","description":"The `arcgis-portal-replacement-item-redirect` component takes an item id on a given portal, and checks if there is a replacement item associated with it\nvia the `ReplacementItem2Item` relationship.\n\nIf so, it displays a dialog to the user notifying them of the replacement item, and redirects to the replacement item's default Open Action after a timeout.","docsTags":[{"name":"internal"}],"superclass":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"members":[{"kind":"field","name":"itemId","description":"The id of a deprecated/retired item to be checked for a replacement","type":{"text":"string","values":[{"type":"string"}]},"attribute":"item-id"},{"kind":"field","name":"portal","description":"The portal instance","type":{"text":"Portal","references":[{"name":"default","module":"portal/Portal","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/Portal/","start":0,"end":6}]}},{"kind":"field","name":"user","description":"The user. Defaults to `portal.user` if omitted","type":{"text":"PortalUser | undefined","references":[{"name":"default","module":"portal/PortalUser","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/PortalUser/","start":0,"end":10}]}},{"kind":"method","name":"componentOnReady","description":"Creates a promise that resolves once the component is fully loaded.","docsTags":[{"name":"example","text":"```js\nconst arcgisPortalReplacementItemRedirect = document.querySelector(\"arcgis-portal-replacement-item-redirect\");\ndocument.body.append(arcgisPortalReplacementItemRedirect);\nawait arcgisPortalReplacementItemRedirect.componentOnReady();\nconsole.log(\"arcgis-portal-replacement-item-redirect is ready to go!\");\n```"}],"return":{"type":{"text":"Promise<this>","references":[{"name":"Promise","module":"lib/lib.es5.d.ts","package":"typescript","start":0,"end":7}]}},"inheritedFrom":{"name":"PublicLitElement","module":"PublicLitElement","package":"@arcgis/lumina"},"signature":"(): Promise<this>"},{"kind":"method","name":"setFocus","description":"Set focus on the component","return":{"type":{"text":"Promise<void>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}},"signature":"(): Promise<void>"}],"attributes":[{"name":"item-id","description":"The id of a deprecated/retired item to be checked for a replacement","type":{"text":"string","values":[{"type":"string"}]},"fieldName":"itemId"}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":{"text":"{ replacementItem: PortalItem | object | null; }","references":[{"name":"default","module":"portal/PortalItem.js","package":"@arcgis/core","viewUrl":"https://developers.arcgis.com/javascript/latest/references/core/portal/PortalItem/","start":19,"end":29}]}}],"importPath":"components/arcgis-portal-replacement-item-redirect"}],"exports":[{"kind":"custom-element-definition","name":"arcgis-portal-replacement-item-redirect","declaration":{"name":"ArcgisPortalReplacementItemRedirect"}}]},{"kind":"javascript-module","path":"models/classificationModel","sourcePath":"src/models/classificationModel.ts","declarations":[{"kind":"interface","name":"Status","type":{"text":"\"error\" | \"idle\" | \"loaded\" | \"loading\""}}]},{"kind":"javascript-module","path":"types/classification","sourcePath":"src/types/classification.ts","declarations":[{"kind":"interface","name":"ClassificationSchema","description":"The classification schema defined on the portal.","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n attributeCategories?: string[];\n attributes: Record<string, ClassificationAttributesValues>;\n bannerExpression?: string;\n classificationMetadata: ClassificationMetadata;\n grammarVersion: string;\n layouts: Record<string, DefaultLayout>;\n name: string;\n selectionTextExpression?: string;\n version: string;\n helpUrl?: string;\n helpTooltip?: string;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":54,"end":60},{"name":"ClassificationAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationAttributesValues","start":69,"end":99},{"name":"ClassificationMetadata","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationMetadata","start":161,"end":183},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":226,"end":232},{"name":"DefaultLayout","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#DefaultLayout","start":241,"end":254}]}]}]},{"kind":"interface","name":"FavoriteClassification","members":[{"kind":"field","name":"name","type":{"text":"string"}},{"kind":"field","name":"classification","type":{"text":"__esri.PortalItem[\"classification\"]","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}}]},{"kind":"interface","name":"AttributeExpressionResults","description":"State object that is used to store arcade expression results from expressions\nthat are evaluated for each attribute in the classification schema.","supertypes":[{"name":"Map","package":"global:","viewUrl":"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map","typeArguments":[{"text":"string"},{"text":"{\n enabled: boolean;\n valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;\n attributeValidationResult: string | null;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":51,"end":57},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":66,"end":77},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":83,"end":94}]}]}]},{"kind":"interface","name":"ClassificationMetadata","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n primaryAttribute: string;\n defaultValue: string;\n classificationValueProperties: ClassificationType[];\n}","references":[{"name":"ClassificationType","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationType","start":93,"end":111}]}]}]},{"kind":"interface","name":"ValueOption","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n label: string;\n value: string;\n}"}]}]},{"kind":"interface","name":"ClassificationAttributesValues","type":{"text":"CheckboxAttributesValues | DateAttributesValues | MultiGroupedSelectNestedAttributesValues | MultiSelectAttributesValues | SingleSelectAttributesValues | TextAttributesValues","references":[{"name":"CheckboxAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#CheckboxAttributesValues","start":0,"end":24},{"name":"DateAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#DateAttributesValues","start":27,"end":47},{"name":"MultiGroupedSelectNestedAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#MultiGroupedSelectNestedAttributesValues","start":50,"end":90},{"name":"MultiSelectAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#MultiSelectAttributesValues","start":93,"end":120},{"name":"SingleSelectAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#SingleSelectAttributesValues","start":123,"end":151},{"name":"TextAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#TextAttributesValues","start":154,"end":174}]}},{"kind":"interface","name":"DefaultLayout","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{ layoutElements: Record<string, ClassificationLayoutElements>; }","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":18,"end":24},{"name":"ClassificationLayoutElements","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ClassificationLayoutElements","start":33,"end":61}]}]}]},{"kind":"interface","name":"ClassificationType","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n [index: string]: string | undefined;\n value: string;\n acronym?: string;\n backgroundColor?: string;\n textColor?: string;\n}"}]}]},{"kind":"interface","name":"SingleSelectAttributesValues","description":"Create narrowed types for each of the possible UI elements.\nNever is used to inform users that the property will never be defined\nwhen uiElement is a specific value.","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"single-select\";\n validValues?: ValueOption[];\n validValuesMap?: never;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":52,"end":63}]}]}]},{"kind":"interface","name":"MultiSelectAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"multi-select\";\n validValues?: ValueOption[];\n validValuesMap?: never;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":51,"end":62}]}]}]},{"kind":"interface","name":"MultiGroupedSelectNestedAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"multi-grouped-select-nested\";\n validValuesMap: Record<string, ValueOption[]>;\n validValues?: never;\n}","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":68,"end":74},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":83,"end":94}]}]}]},{"kind":"interface","name":"CheckboxAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"checkbox\";\n type: \"boolean\";\n validValues?: never;\n validValuesMap?: never;\n defaultDateTimeline?: never;\n defaultDateTimelineUnits?: never;\n}"}]}]},{"kind":"interface","name":"DateAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"date\";\n type: \"date\";\n defaultDateTimeline: number;\n defaultDateTimelineUnits: string;\n validValues?: never;\n validValuesMap?: never;\n}"}]}]},{"kind":"interface","name":"TextAttributesValues","supertypes":[{"name":"BaseAttributesValues","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#BaseAttributesValues"},{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n uiElement: \"text\";\n type: \"string\";\n validValues?: never;\n validValuesMap?: never;\n defaultDateTimeline?: never;\n defaultDateTimelineUnits?: never;\n}"}]}]},{"kind":"interface","name":"ClassificationLayoutElements","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{ formDisplayOrder: number; }"}]}]},{"kind":"interface","name":"BaseAttributesValues","supertypes":[{"name":"Readonly","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype","typeArguments":[{"text":"{\n label: string;\n description?: string;\n type: string;\n uiElement: string;\n isRequired?: boolean;\n defaultValue?: string;\n defaultDateTimeline?: number;\n defaultDateTimelineUnits?: string;\n validValues?: ValueOption[];\n validValuesMap?: Record<string, ValueOption[]>;\n isAttributeEnabled?: string;\n valueExpression?: string;\n attributeValidation?: string;\n arcadeResultLookup?: Record<string, ValueOption[]>;\n attributeCategory?: string;\n selectionDisplayOrder?: number;\n selectionDisplayLabel?: string;\n bannerOrder?: number;\n bannerLabel?: string;\n labelDelimiter?: string;\n labelTooltip?: string;\n valueDelimiter?: string;\n attributeDelimiter?: string;\n}","references":[{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":232,"end":243},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":268,"end":274},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":283,"end":294},{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":421,"end":427},{"name":"ValueOption","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/types/classification/#ValueOption","start":436,"end":447}]}]}]}]},{"kind":"javascript-module","path":"utils/fieldAddDelete","sourcePath":"src/utils/fieldAddDelete.ts","declarations":[{"kind":"function","name":"canAddField","parameters":[{"name":"layer","type":{"text":"any"}}],"return":{"type":{"text":"Promise<boolean>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}}},{"kind":"function","name":"canDeleteField","parameters":[{"name":"mapView","type":{"text":"__esri.MapView | undefined","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"name":"layer","type":{"text":"any"}},{"name":"field","type":{"text":"__esri.Field","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"name":"options","optional":true,"type":{"text":"FieldDeleteOptions","references":[{"name":"FieldDeleteOptions","module":"utils/types","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#FieldDeleteOptions","start":0,"end":18}]}}],"return":{"type":{"text":"Promise<boolean>","references":[{"name":"Promise","package":"global:","viewUrl":"https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/","start":0,"end":7}]}}}]},{"kind":"javascript-module","path":"utils/types","sourcePath":"src/utils/types.ts","declarations":[{"kind":"interface","name":"IConfig","description":"Configuration","members":[{"kind":"field","name":"arcadeEditor","type":{"text":"string | undefined"}},{"kind":"field","name":"jsapiUrl","type":{"text":"string | undefined"}},{"kind":"field","name":"helpMap","type":{"text":"Record<string, string> | undefined","references":[{"name":"Record","package":"global:","viewUrl":"https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type","start":0,"end":6}]}},{"kind":"field","name":"helpBase","type":{"text":"string | undefined"}}]},{"kind":"interface","name":"FieldDeleteOptions","members":[{"kind":"field","name":"item","type":{"text":"__esri.PortalItem","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"portal","type":{"text":"__esri.Portal","references":[{"name":"__esri","module":"interfaces.js","package":"@arcgis/core","start":0,"end":7}]}},{"kind":"field","name":"handleCloseOnConsumer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignorePopupTemplate","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerRenderer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerFeatureReduction","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerLabelingInfo","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreLayerDefinitionExpression","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreItemRenderer","type":{"text":"boolean | undefined"}},{"kind":"field","name":"ignoreItemFeatureReduction","type":{"text":"boolean | undefined"}},{"kind":"field","name":"userItemInfo","type":{"text":"UserItemInfo | undefined","references":[{"name":"UserItemInfo","viewUrl":"https://developers.arcgis.com/javascript/latest/references/portal-components/utils/types/#UserItemInfo","start":0,"end":12}]}}]},{"kind":"interface","name":"UserItemInfo","members":[{"kind":"field","name":"itemData","type":{"text":"any"}},{"kind":"field","name":"userGroups","type":{"text":"any[]"}},{"kind":"field","name":"itemGroups","type":{"text":"any[]"}},{"kind":"field","name":"relatedItems","type":{"text":"any[]"}},{"kind":"field","name":"fieldGroups","type":{"text":"any[]"}}]}]}]}
|