@arcgis/portal-components 5.0.0-next.105 → 5.0.0-next.107
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/{FEFRQQSC.js → 5K6KO5O3.js} +1 -1
- package/dist/cdn/{H7PX7JZD.js → 6NBOIHGS.js} +2 -2
- package/dist/cdn/{PKBQNOKP.js → AQAANB67.js} +2 -2
- package/dist/cdn/{6M3HGXOK.js → ATFEHDQ4.js} +2 -2
- package/dist/cdn/{PEJ663W5.js → EAP7V67S.js} +2 -2
- package/dist/cdn/{5MPHS5PC.js → EHPSAQFU.js} +2 -2
- package/dist/cdn/{2QN5LE72.js → G7USLHIW.js} +2 -2
- package/dist/cdn/{JHKNXV7H.js → HPMBBI2X.js} +2 -2
- package/dist/cdn/{JX7XPRQH.js → IPQIAO3R.js} +1 -1
- package/dist/cdn/{MBIW75PT.js → JKDS6ATN.js} +2 -2
- package/dist/cdn/{DDSNXJD7.js → M7UFHO5X.js} +1 -1
- package/dist/cdn/{HBY6C53S.js → NOVHAR4U.js} +2 -2
- package/dist/cdn/{2A46PW2W.js → RFMQ6XB3.js} +2 -2
- package/dist/cdn/{O4EJ2QFB.js → YNPP67XN.js} +2 -2
- package/dist/cdn/{MMTMGCYF.js → ZAY3SSH3.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/requests.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +5 -0
- package/dist/components/arcgis-portal-extent-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.d.ts +3 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +30 -67
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -3
- package/dist/types/preact10.d.ts +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import a from"./M7UFHO5X.js";import{b as P}from"./RFMQ6XB3.js";import{a as b}from"./EAP7V67S.js";import{l as v,q as g,r as C,v as w}from"./5K6KO5O3.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,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
4
|
export default $arcgis.t(([n,{once:c}])=>{async function u(r,e){let s=`${r}/portals/self/classification/classificationSchema`,t={};try{let a=(await n(s,{query:{f:"json"},signal:e})).data;if(typeof a=="object"&&a!==null&&"classificationSchema"in a)t.result=a.classificationSchema;else throw new Error("Invalid response format received from the classification schema endpoint")}catch(a){t.error=a}return t}async function d(r,e,s){let t=`${r}/portals/self/classification/validateClassification`,a={classificationValue:JSON.stringify(e),f:"json"},i={};try{let o=await n(t,{query:a,method:"post",signal:s.signal});i.result=o.data}catch(o){console.error(o),i.error=o}return i}async function y(r){if(!r)return;r.loaded||await r.load();let e=r.portal.user??await c(()=>r?.portal.user);if(!e)return;let s=`${r.portal.restUrl}/community/users/${e.username}/resources/classification_favorites`,t={};try{let a=await n(s,{query:{f:"json"}});t.result=a.data}catch(a){console.error(a),t.error=a}return t}async function m(r,e){if(!r)return;r.loaded||await r.load();let s=r.portal.user??await c(()=>r?.portal.user);if(!s)return;let t=`${r.portal.restUrl}/community/users/${s.username}/addResource`,a={},i={f:"json",key:"classification_favorites",text:JSON.stringify({favorites:e}),access:"UserPrivateAllApps"};try{let o=await n(t,{query:i,method:"post"});a.result=o.data.success}catch(o){console.error(o),a.error=o}return a}return{a:u,b:d,c:y,d:m}},"request","core/reactiveUtils")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{d as r}from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import{d as r}from"./EAP7V67S.js";import{O as o}from"./5K6KO5O3.js";var s=r(o);export{s as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{i as o}from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import{i as o}from"./5K6KO5O3.js";var c={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},n=Symbol(),e=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,s)=>{this.o=t,this.h=s})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,s,r){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof s=="object"?s:{task:s,args:r};this.v=i.task,this.j=i.args,this.m=i.argsEqual??u,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),s=this.O;this.O=t,t===s||t===void 0||s!==void 0&&this.m(s,t)||await this.run(t)}async run(t){let s,r;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let a=!1;try{s=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,r=l}if(this.p===i){if(s===n)this.i=0;else{if(a===!1){try{this.k?.(s)}catch{}this.i=2,this.o?.(s)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=s,this.l=r}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(h,t)=>h===t||h.length===t.length&&h.every(((s,r)=>!o(s,t[r])));export{c as a,e as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{A as m,B as h,C as A,D,E as y,k as P,x as k,y as w,z as V}from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import{A as m,B as h,C as A,D,E as y,k as P,x as k,y as w,z as V}from"./5K6KO5O3.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{c as m}from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import{c as m}from"./EAP7V67S.js";import{F as d,G as p,H as u,I as s,K as o,N as h,h as n,j as a,t as c}from"./5K6KO5O3.js";var v=n`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`,l=class extends u{constructor(){super(...arguments),this._direction=m(),this.inputEl=d(),this.isInvalid=!1,this.currentError="",this.inputValue="",this.label="",this.value="",this.errorMessage="",this.min=-180,this.max=180,this.validateRelated=()=>!0,this.relatedErrorMessage="",this.inputId="",this.arcgisCoordChange=c()}static{this.properties={isInvalid:16,currentError:16,inputValue:16,label:1,value:1,errorMessage:1,min:9,max:9,validateRelated:0,relatedErrorMessage:1,inputId:1}}static{this.styles=v}checkRelatedField(){return!this.inputValue||!this.isInvalid||!this.validate(this.inputValue)?"":this.inputValue}isValid(){return!this.isInvalid}setFocus(){this.inputEl.value?.focus()}willUpdate(t){t.has("value")&&this.validate(t.get("value"))}isValidCoord(t,r,i){if(!t?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))return!1;let e=this.parseNumber(t);return e>=r&&e<=i}validate(t){if(this.isInvalid=!this.isValidCoord(t,this.min,this.max),this.isInvalid)return this.currentError=this.errorMessage,!1;let r=this.parseNumber(t);return this.isInvalid=!this.validateRelated(r),this.isInvalid?(this.currentError=this.relatedErrorMessage,!1):!0}parseNumber(t){let r=`-${Array.from({length:10},(e,g)=>g.toString()).join("")}`,i=t.replace(",",".");return i=Array.from(i).filter(e=>r.includes(e)||e===".").join(""),parseFloat(i)}render(){return a`<div class=${s({"coord-field":!0,"is-rtl":this._direction==="rtl"})}><label class="coord-label" for=${this.inputId??o}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId??o} class=${s({"coordinate-input":!0})} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${t=>{this.inputValue=t.target.value,this.validate(this.inputValue)&&this.arcgisCoordChange.emit(this.inputValue)}} .status=${this.isInvalid?"invalid":"valid"} ${p(this.inputEl)}></calcite-input-number>${this.isInvalid&&a`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>`||""}</div>`}};h("arcgis-portal-extent-picker-coord-field",l);export{l as ArcgisPortalExtentPickerCoordField};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{M as t,w as e}from"./
|
|
3
|
+
v5.0.0-next.107 */
|
|
4
|
+
import{M as t,w as e}from"./5K6KO5O3.js";var i=e(t,{"arcgis-portal-classification-banner":[()=>import("./AQAANB67.js"),"autoDestroyDisabled,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./HPMBBI2X.js"),"autoDestroyDisabled,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./ATFEHDQ4.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./G7USLHIW.js"),"attribute:,attributeKey,isRequiredErrors:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./6NBOIHGS.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./ZAY3SSH3.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./EHPSAQFU.js"),"config:,fieldNames:,layer:,mapView:,options:"]});i({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.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){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];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/common.js
CHANGED
|
@@ -2,7 +2,7 @@ import i from "@arcgis/core/request.js";
|
|
|
2
2
|
import { once as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.107 */
|
|
6
6
|
const U = (t, e, s) => {
|
|
7
7
|
let r = d(
|
|
8
8
|
t,
|
|
@@ -6,7 +6,7 @@ import L from "@arcgis/core/request.js";
|
|
|
6
6
|
import * as v from "@arcgis/core/core/sql.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.107 */
|
|
10
10
|
var b = /* @__PURE__ */ ((e) => (e.expression = "expression/", e.raster = "Raster.", e.relationship = "relationships/", e))(b || {});
|
|
11
11
|
const H = ["feature"];
|
|
12
12
|
function z(e) {
|
|
@@ -6,7 +6,7 @@ import { makeAccessorController as C } from "@arcgis/lumina/controllers/accessor
|
|
|
6
6
|
import { Task as v } from "@lit/task";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.107 */
|
|
10
10
|
var w = Object.defineProperty, g = Object.getOwnPropertyDescriptor, e = (i, a, s, t) => {
|
|
11
11
|
for (var r = t > 1 ? void 0 : t ? g(a, s) : a, l = i.length - 1, c; l >= 0; l--)
|
|
12
12
|
(c = i[l]) && (r = (t ? c(a, s, r) : c(r)) || r);
|
package/dist/chunks/requests.js
CHANGED
|
@@ -2,7 +2,7 @@ import n from "@arcgis/core/request.js";
|
|
|
2
2
|
import { once as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.107 */
|
|
6
6
|
async function f(s, t) {
|
|
7
7
|
const i = `${s}/portals/self/classification/classificationSchema`, e = {};
|
|
8
8
|
try {
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
3
3
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.107 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/portal-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { g as t } from "./runtime.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.107 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -6,7 +6,7 @@ import { css as h, html as s } from "lit";
|
|
|
6
6
|
import { rethrowError as o } from "@arcgis/toolkit/log";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.107 */
|
|
10
10
|
const m = h`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`;
|
|
11
11
|
class p extends l {
|
|
12
12
|
constructor() {
|
|
@@ -42,4 +42,7 @@ export declare class ArcgisPortalClassificationConfig extends LitElement {
|
|
|
42
42
|
readonly arcgisPropertyChange: TargetedEvent<this, {
|
|
43
43
|
name: "values" | "valid" | "status";
|
|
44
44
|
}>;
|
|
45
|
+
"@eventTypes": {
|
|
46
|
+
"arcgisPropertyChange": ArcgisPortalClassificationConfig["arcgisPropertyChange"]["detail"];
|
|
47
|
+
};
|
|
45
48
|
}
|
|
@@ -13,7 +13,7 @@ import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
13
13
|
import { r as D } from "../../chunks/requests.js";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
16
|
-
v5.0.0-next.
|
|
16
|
+
v5.0.0-next.107 */
|
|
17
17
|
async function T({
|
|
18
18
|
portalClassificationSchema: a,
|
|
19
19
|
itemClassification: t
|
|
@@ -7,7 +7,7 @@ import { u as d, r as v } from "../../chunks/requests.js";
|
|
|
7
7
|
import { g as h } from "../../chunks/common.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
10
|
-
v5.0.0-next.
|
|
10
|
+
v5.0.0-next.107 */
|
|
11
11
|
const m = r`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: "var(--calcite-color-foreground-2)"}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`;
|
|
12
12
|
class C extends n {
|
|
13
13
|
constructor() {
|
|
@@ -16,4 +16,7 @@ export declare class ArcgisPortalClassificationFormElement extends LitElement {
|
|
|
16
16
|
isRequiredErrors: Set<string>;
|
|
17
17
|
/** The attribute value has changed. */
|
|
18
18
|
readonly arcgisAttributeValueChange: TargetedEvent<this, Record<string, unknown>>;
|
|
19
|
+
"@eventTypes": {
|
|
20
|
+
"arcgisAttributeValueChange": ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]["detail"];
|
|
21
|
+
};
|
|
19
22
|
}
|
|
@@ -5,7 +5,7 @@ import { css as d, html as i } from "lit";
|
|
|
5
5
|
import { u as h } from "../../chunks/useT9n.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
8
|
-
v5.0.0-next.
|
|
8
|
+
v5.0.0-next.107 */
|
|
9
9
|
const m = d`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;
|
|
10
10
|
function l(n, e) {
|
|
11
11
|
return n.uiElement === e;
|
|
@@ -48,4 +48,9 @@ export declare class ArcgisPortalExtentPicker extends LitElement {
|
|
|
48
48
|
readonly arcgisExtentPickerClose: TargetedEvent<this, void>;
|
|
49
49
|
/** Emitted when the save button is clicked */
|
|
50
50
|
readonly arcgisExtentPickerSave: TargetedEvent<this, ExtentObj>;
|
|
51
|
+
"@eventTypes": {
|
|
52
|
+
"arcgisExtentPickerChange": ArcgisPortalExtentPicker["arcgisExtentPickerChange"]["detail"];
|
|
53
|
+
"arcgisExtentPickerClose": ArcgisPortalExtentPicker["arcgisExtentPickerClose"]["detail"];
|
|
54
|
+
"arcgisExtentPickerSave": ArcgisPortalExtentPicker["arcgisExtentPickerSave"]["detail"];
|
|
55
|
+
};
|
|
51
56
|
}
|
|
@@ -26,7 +26,7 @@ import { createRef as d, ref as x } from "lit/directives/ref.js";
|
|
|
26
26
|
import { u as B } from "../../chunks/useT9n.js";
|
|
27
27
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
28
28
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
29
|
-
v5.0.0-next.
|
|
29
|
+
v5.0.0-next.107 */
|
|
30
30
|
const W = F`.extent-picker-modal{z-index:1001}.extent-picker-content{display:flex;min-height:100%;height:100%}.side-panel{padding:var(--calcite-spacing-lg);display:flex;flex-direction:column;overflow-y:auto;max-height:100%;width:420px}.extent-button{margin-top:var(--calcite-spacing-lg)}.use-location-header{margin-top:var(--calcite-spacing-xxxl);margin-bottom:var(--calcite-spacing-lg)}.search-container,.search-container .esri-search{width:100%}.search-container calcite-autocomplete{width:100%}.map-panel{flex:1 1 0%;position:relative;display:flex}.map-loader{position:absolute;z-index:var(--calcite-z-index-1);top:50%;left:50%;transform:translate(-50%,-50%)}.map-container{flex:1 1 0%;opacity:0;transition:opacity .3s ease}.loader-container{flex:1 1 0%}.map-container--loaded{opacity:1}.coordinates-section{margin-top:var(--calcite-spacing-lg)}`;
|
|
31
31
|
class J {
|
|
32
32
|
constructor(t) {
|
|
@@ -23,4 +23,7 @@ export declare class ArcgisPortalExtentPickerCoordField extends LitElement {
|
|
|
23
23
|
isValid(): boolean;
|
|
24
24
|
setFocus(): void;
|
|
25
25
|
readonly arcgisCoordChange: TargetedEvent<this, string>;
|
|
26
|
+
"@eventTypes": {
|
|
27
|
+
"arcgisCoordChange": ArcgisPortalExtentPickerCoordField["arcgisCoordChange"]["detail"];
|
|
28
|
+
};
|
|
26
29
|
}
|
|
@@ -5,7 +5,7 @@ import { css as h, html as o } from "lit";
|
|
|
5
5
|
import { useDirection as m } from "@arcgis/lumina/controllers";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
8
|
-
v5.0.0-next.
|
|
8
|
+
v5.0.0-next.107 */
|
|
9
9
|
const g = h`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`;
|
|
10
10
|
class v extends u {
|
|
11
11
|
constructor() {
|
|
@@ -22,4 +22,10 @@ export declare class ArcgisPortalFieldDelete extends LitElement {
|
|
|
22
22
|
readonly arcgisBeforeDelete: TargetedEvent<this, void>;
|
|
23
23
|
/** Emitted when the field is successfully deleted. */
|
|
24
24
|
readonly arcgisFieldsDeleted: TargetedEvent<this, void>;
|
|
25
|
+
"@eventTypes": {
|
|
26
|
+
"arcgisBeforeDelete": ArcgisPortalFieldDelete["arcgisBeforeDelete"]["detail"];
|
|
27
|
+
"arcgisBeforeModalClose": ArcgisPortalFieldDelete["arcgisBeforeModalClose"]["detail"];
|
|
28
|
+
"arcgisClose": ArcgisPortalFieldDelete["arcgisClose"]["detail"];
|
|
29
|
+
"arcgisFieldsDeleted": ArcgisPortalFieldDelete["arcgisFieldsDeleted"]["detail"];
|
|
30
|
+
};
|
|
25
31
|
}
|
|
@@ -13,7 +13,7 @@ import { u as V } from "../../chunks/useT9n.js";
|
|
|
13
13
|
import { log as b, composeMissingPropertyMessage as C, composeEmptyPropertyMessage as G } from "@arcgis/toolkit/log";
|
|
14
14
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
15
15
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
16
|
-
v5.0.0-next.
|
|
16
|
+
v5.0.0-next.107 */
|
|
17
17
|
const n = /* @__PURE__ */ new Map();
|
|
18
18
|
n.set("oid", "key");
|
|
19
19
|
n.set("guid", "key");
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/portal-components",
|
|
4
|
-
"version": "5.0.0-next.
|
|
4
|
+
"version": "5.0.0-next.107",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.d.ts
CHANGED
|
@@ -16,94 +16,57 @@ export type { FieldDeleteOptions, UserItemInfo } from './utils/types';
|
|
|
16
16
|
|
|
17
17
|
export interface ArcgisPortalClassificationConfigCustomEvent<T> extends CustomEvent<T> {
|
|
18
18
|
detail: T;
|
|
19
|
-
target:
|
|
20
|
-
currentTarget:
|
|
19
|
+
target: ArcgisPortalClassificationConfig;
|
|
20
|
+
currentTarget: ArcgisPortalClassificationConfig;
|
|
21
21
|
}
|
|
22
22
|
export interface ArcgisPortalClassificationFormElementCustomEvent<T> extends CustomEvent<T> {
|
|
23
23
|
detail: T;
|
|
24
|
-
target:
|
|
25
|
-
currentTarget:
|
|
24
|
+
target: ArcgisPortalClassificationFormElement;
|
|
25
|
+
currentTarget: ArcgisPortalClassificationFormElement;
|
|
26
26
|
}
|
|
27
27
|
export interface ArcgisPortalExtentPickerCustomEvent<T> extends CustomEvent<T> {
|
|
28
28
|
detail: T;
|
|
29
|
-
target:
|
|
30
|
-
currentTarget:
|
|
29
|
+
target: ArcgisPortalExtentPicker;
|
|
30
|
+
currentTarget: ArcgisPortalExtentPicker;
|
|
31
31
|
}
|
|
32
32
|
export interface ArcgisPortalFieldDeleteCustomEvent<T> extends CustomEvent<T> {
|
|
33
33
|
detail: T;
|
|
34
|
-
target:
|
|
35
|
-
currentTarget:
|
|
34
|
+
target: ArcgisPortalFieldDelete;
|
|
35
|
+
currentTarget: ArcgisPortalFieldDelete;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export { ToEvents, TargetedEvent } from "@arcgis/lumina";
|
|
39
39
|
|
|
40
40
|
declare global {
|
|
41
41
|
interface HTMLElementTagNameMap {
|
|
42
|
-
"arcgis-portal-classification-banner":
|
|
43
|
-
"arcgis-portal-classification-config":
|
|
44
|
-
"arcgis-portal-classification-favorite":
|
|
45
|
-
"arcgis-portal-classification-form-element":
|
|
46
|
-
"arcgis-portal-extent-picker":
|
|
47
|
-
"arcgis-portal-field-delete":
|
|
42
|
+
"arcgis-portal-classification-banner": ArcgisPortalClassificationBanner;
|
|
43
|
+
"arcgis-portal-classification-config": ArcgisPortalClassificationConfig;
|
|
44
|
+
"arcgis-portal-classification-favorite": ArcgisPortalClassificationFavorite;
|
|
45
|
+
"arcgis-portal-classification-form-element": ArcgisPortalClassificationFormElement;
|
|
46
|
+
"arcgis-portal-extent-picker": ArcgisPortalExtentPicker;
|
|
47
|
+
"arcgis-portal-field-delete": ArcgisPortalFieldDelete;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
type HTMLArcgisPortalClassificationBannerElement = ArcgisPortalClassificationBanner;
|
|
51
51
|
|
|
52
|
-
}
|
|
53
|
-
interface HTMLArcgisPortalClassificationConfigElementEventMap {
|
|
54
|
-
"arcgisPropertyChange": ArcgisPortalClassificationConfig["arcgisPropertyChange"]["detail"];
|
|
55
|
-
}
|
|
56
52
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
60
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
61
|
-
removeEventListener<K extends keyof HTMLArcgisPortalClassificationConfigElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationConfigElement, ev: ArcgisPortalClassificationConfigCustomEvent<HTMLArcgisPortalClassificationConfigElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
62
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
63
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
64
|
-
}
|
|
65
|
-
interface HTMLArcgisPortalClassificationFavoriteElement extends ArcgisPortalClassificationFavorite {
|
|
53
|
+
type HTMLArcgisPortalClassificationConfigElementEventMap = ArcgisPortalClassificationConfig["@eventTypes"];
|
|
54
|
+
type HTMLArcgisPortalClassificationConfigElement = ArcgisPortalClassificationConfig;
|
|
66
55
|
|
|
67
|
-
}
|
|
68
|
-
interface HTMLArcgisPortalClassificationFormElementElementEventMap {
|
|
69
|
-
"arcgisAttributeValueChange": ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]["detail"];
|
|
70
|
-
}
|
|
71
56
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
57
|
+
type HTMLArcgisPortalClassificationFavoriteElement = ArcgisPortalClassificationFavorite;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
type HTMLArcgisPortalClassificationFormElementElementEventMap = ArcgisPortalClassificationFormElement["@eventTypes"];
|
|
61
|
+
type HTMLArcgisPortalClassificationFormElementElement = ArcgisPortalClassificationFormElement;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
type HTMLArcgisPortalExtentPickerElementEventMap = ArcgisPortalExtentPicker["@eventTypes"];
|
|
65
|
+
type HTMLArcgisPortalExtentPickerElement = ArcgisPortalExtentPicker;
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
type HTMLArcgisPortalFieldDeleteElementEventMap = ArcgisPortalFieldDelete["@eventTypes"];
|
|
69
|
+
type HTMLArcgisPortalFieldDeleteElement = ArcgisPortalFieldDelete;
|
|
85
70
|
|
|
86
|
-
interface HTMLArcgisPortalExtentPickerElement extends ArcgisPortalExtentPicker {
|
|
87
|
-
addEventListener<K extends keyof HTMLArcgisPortalExtentPickerElementEventMap>(type: K, listener: (this: HTMLArcgisPortalExtentPickerElement, ev: ArcgisPortalExtentPickerCustomEvent<HTMLArcgisPortalExtentPickerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
88
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
89
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
90
|
-
removeEventListener<K extends keyof HTMLArcgisPortalExtentPickerElementEventMap>(type: K, listener: (this: HTMLArcgisPortalExtentPickerElement, ev: ArcgisPortalExtentPickerCustomEvent<HTMLArcgisPortalExtentPickerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
91
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
92
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
93
|
-
}
|
|
94
|
-
interface HTMLArcgisPortalFieldDeleteElementEventMap {
|
|
95
|
-
"arcgisBeforeDelete": ArcgisPortalFieldDelete["arcgisBeforeDelete"]["detail"];
|
|
96
|
-
"arcgisBeforeModalClose": ArcgisPortalFieldDelete["arcgisBeforeModalClose"]["detail"];
|
|
97
|
-
"arcgisClose": ArcgisPortalFieldDelete["arcgisClose"]["detail"];
|
|
98
|
-
"arcgisFieldsDeleted": ArcgisPortalFieldDelete["arcgisFieldsDeleted"]["detail"];
|
|
99
|
-
}
|
|
100
71
|
|
|
101
|
-
interface HTMLArcgisPortalFieldDeleteElement extends ArcgisPortalFieldDelete {
|
|
102
|
-
addEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
103
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
104
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
105
|
-
removeEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
106
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
107
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
108
|
-
}
|
|
109
72
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { g as a, s as t } from "./chunks/runtime.js";
|
|
|
2
2
|
import { c as o, a as r } from "./chunks/fieldAddDelete.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.107 */
|
|
6
6
|
export {
|
|
7
7
|
o as canAddField,
|
|
8
8
|
r as canDeleteField,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.107 */
|
|
6
6
|
const r = t(e, {
|
|
7
7
|
"arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
|
|
8
8
|
"arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.107",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/lumina": "5.0.0-next.
|
|
42
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
41
|
+
"@arcgis/lumina": "5.0.0-next.107",
|
|
42
|
+
"@arcgis/toolkit": "5.0.0-next.107",
|
|
43
43
|
"@lit/task": "^1.0.3",
|
|
44
44
|
"lit": "^3.3.0",
|
|
45
45
|
"tslib": "^2.8.1"
|
package/dist/types/preact10.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/// <reference types="../index.d.ts" />
|
|
2
|
-
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/index.js";
|
|
3
|
-
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/index.js";
|
|
4
|
-
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/index.js";
|
|
5
|
-
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/index.js";
|
|
6
|
-
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/index.js";
|
|
7
|
-
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/index.js";
|
|
8
|
-
import { JSX as PreactJsx } from "preact";
|
|
9
|
-
import type { EventHandler } from "@arcgis/lumina";
|
|
10
|
-
|
|
11
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
12
|
-
interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, 'missingExistingClassification' | 'portalItem' | 'validationErrors' | 'variant'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationBannerElement> {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
16
|
-
interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, 'portalItem'>>, Partial<Pick<ArcgisPortalClassificationConfig, 'valid' | 'values'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationConfigElement> {
|
|
17
|
-
onarcgisPropertyChange?: EventHandler<HTMLArcgisPortalClassificationConfigElement["arcgisPropertyChange"]>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
21
|
-
interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, 'attributeExpressionResults' | 'classificationValue' | 'favoriteClassifications' | 'portalItem' | 'resetFavoriteClassification' | 'selectedFavoriteClassificationName' | 'updateClassificationData'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationFavoriteElement> {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
25
|
-
interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, 'attribute' | 'attributeKey' | 'isRequiredErrors' | 'renderingInfo' | 'value'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalClassificationFormElementElement> {
|
|
26
|
-
onarcgisAttributeValueChange?: EventHandler<HTMLArcgisPortalClassificationFormElementElement["arcgisAttributeValueChange"]>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
30
|
-
interface PreactArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker, 'active' | 'contentOnly' | 'extentService' | 'extentValue' | 'isArea' | 'itemId' | 'portal'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalExtentPickerElement> {
|
|
31
|
-
onarcgisExtentPickerChange?: EventHandler<HTMLArcgisPortalExtentPickerElement["arcgisExtentPickerChange"]>;
|
|
32
|
-
onarcgisExtentPickerClose?: EventHandler<HTMLArcgisPortalExtentPickerElement["arcgisExtentPickerClose"]>;
|
|
33
|
-
onarcgisExtentPickerSave?: EventHandler<HTMLArcgisPortalExtentPickerElement["arcgisExtentPickerSave"]>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** @deprecated Update to Preact 10.27.2+ or 11+ and consume types/preact file over types/preact10 */
|
|
37
|
-
interface PreactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, 'config' | 'fieldNames' | 'layer' | 'mapView' | 'options'>>, PreactJsx.HTMLAttributes<HTMLArcgisPortalFieldDeleteElement> {
|
|
38
|
-
onarcgisBeforeDelete?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeDelete"]>;
|
|
39
|
-
onarcgisBeforeModalClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisBeforeModalClose"]>;
|
|
40
|
-
onarcgisClose?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisClose"]>;
|
|
41
|
-
onarcgisFieldsDeleted?: EventHandler<HTMLArcgisPortalFieldDeleteElement["arcgisFieldsDeleted"]>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare module 'preact' {
|
|
45
|
-
namespace createElement.JSX {
|
|
46
|
-
interface IntrinsicElements {
|
|
47
|
-
"arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
|
|
48
|
-
"arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
|
|
49
|
-
"arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
|
|
50
|
-
"arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
|
|
51
|
-
"arcgis-portal-extent-picker": PreactArcgisPortalExtentPicker;
|
|
52
|
-
"arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
namespace h.JSX {
|
|
56
|
-
interface IntrinsicElements {
|
|
57
|
-
"arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
|
|
58
|
-
"arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
|
|
59
|
-
"arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
|
|
60
|
-
"arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
|
|
61
|
-
"arcgis-portal-extent-picker": PreactArcgisPortalExtentPicker;
|
|
62
|
-
"arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|