@arcgis/core 5.0.0-next.129 → 5.0.0-next.130
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/assets/components/assets/carousel/t9n/messages.ar.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.bg.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.bs.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ca.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.cs.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.da.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.de.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.el.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.es.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.et.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.fi.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.fr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.he.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.hr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.hu.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.id.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.it.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ja.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ko.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.lt.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.lv.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.nl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.no.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pt-BR.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.pt-PT.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ro.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.ru.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sk.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sl.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.sv.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.th.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.tr.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.uk.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.vi.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-CN.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-HK.json +1 -1
- package/assets/components/assets/carousel/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/13246d76b7b4a88190b7.js +1 -0
- package/assets/esri/core/workers/chunks/{bc2dcbdc414d157ab727.js → 1c653937ae592a3c4d1a.js} +1 -1
- package/assets/esri/core/workers/chunks/298d7ab4ef027aa80322.js +2 -0
- package/assets/esri/core/workers/chunks/{e97b29b026a734bbcff8.js → 37e816869816683dce81.js} +1 -1
- package/assets/esri/core/workers/chunks/{bcfa9f2e54f6777d0855.js → 3a65ef151a594bef66eb.js} +16 -16
- package/assets/esri/core/workers/chunks/{8cade3af17a8bb6d4e37.js → 428d28373d154fbf2567.js} +1 -1
- package/assets/esri/core/workers/chunks/{415957a42e45eb21aa84.js → 43afb1ea1da338807d09.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f337c3ccd84d90a35e5.js → 4631b24b37dbdc0c2c05.js} +1 -1
- package/assets/esri/core/workers/chunks/510b75afe19324d26665.js +2 -0
- package/assets/esri/core/workers/chunks/{e2e03622936d2b35afc0.js → 5419eb0efaade6b27c0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{ec63c0fa21cd3c872633.js → 54794b18edc584fd7515.js} +1 -1
- package/assets/esri/core/workers/chunks/5746140c33cb206ad4b8.js +1 -0
- package/assets/esri/core/workers/chunks/{6c85396c90941a042c33.js → 5b3a67cce57e49c68e60.js} +1 -1
- package/assets/esri/core/workers/chunks/6b56c8ba978ec6edd6b8.js +1 -0
- package/assets/esri/core/workers/chunks/70263c2182dc43046742.js +1 -0
- package/assets/esri/core/workers/chunks/8fb2981151d20c4de88d.js +1 -0
- package/assets/esri/core/workers/chunks/90401fa13412e93bae38.js +2 -0
- package/assets/esri/core/workers/chunks/{cb5f4820277f3fc7ff2f.js → 995b215b164650e54788.js} +1 -1
- package/assets/esri/core/workers/chunks/{e52793690dff1a199647.js → a4c190dd57458860ee12.js} +1 -1
- package/assets/esri/core/workers/chunks/b916f7acf129d9546a99.js +1 -0
- package/assets/esri/core/workers/chunks/c80a2a95bb6fe10b5efd.js +1 -0
- package/assets/esri/core/workers/chunks/{77fc225259f1c5800095.js → e2661d39c48376163adf.js} +1 -1
- package/assets/esri/core/workers/chunks/e7bee85f28d7ec03825a.js +1 -0
- package/assets/esri/core/workers/chunks/e8f3594b90cef4b598bc.js +2 -0
- package/assets/esri/core/workers/chunks/ec3c3fbcd3a00f24bee7.js +2 -0
- package/config.d.ts +94 -34
- package/config.js +1 -1
- package/geometry/support/curves/curveUtils.js +1 -1
- package/identity/IdentityManager.d.ts +11 -7
- package/identity/IdentityManagerBase.d.ts +13 -9
- package/kernel.js +1 -1
- package/layers/support/EditingCapabilities.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/package.json +4 -4
- package/renderers/support/DictionaryControlString.js +1 -1
- package/renderers/support/DictionaryLoader.js +1 -1
- package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
- package/smartMapping/raster/renderers/classBreaks.d.ts +1 -1
- package/smartMapping/raster/renderers/flow.d.ts +2 -1
- package/smartMapping/renderers/color.d.ts +19 -3
- package/smartMapping/renderers/dotDensity.d.ts +6 -1
- package/smartMapping/renderers/heatmap.d.ts +4 -1
- package/smartMapping/renderers/location.d.ts +2 -2
- package/smartMapping/renderers/opacity.d.ts +2 -2
- package/smartMapping/renderers/pieChart.d.ts +2 -2
- package/smartMapping/renderers/predominance.d.ts +2 -2
- package/smartMapping/renderers/relationship.d.ts +2 -2
- package/smartMapping/renderers/size.d.ts +7 -6
- package/smartMapping/renderers/support/rendererUtils.d.ts +2 -2
- package/smartMapping/renderers/type.d.ts +4 -3
- package/smartMapping/renderers/univariateColorSize.d.ts +2 -2
- package/smartMapping/statistics/support/ageUtils.d.ts +3 -2
- package/smartMapping/statistics/types.d.ts +8 -7
- package/smartMapping/support/adapters/types.d.ts +6 -0
- package/smartMapping/symbology/color.d.ts +1 -1
- package/smartMapping/symbology/support/colorRamps.d.ts +2 -2
- package/smartMapping/symbology/support/colorRamps.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/cim/effects/EffectDashes.js +1 -1
- package/symbols/cim/effects/EffectDonut.js +1 -1
- package/symbols/cim/effects/EffectOffset.js +1 -1
- package/symbols/cim/effects/EffectWave.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
- package/symbols/cim/placements/PlacementOnLine.js +1 -1
- package/symbols/cim/types.d.ts +220 -117
- package/symbols/support/OccludedVisibility.d.ts +1 -1
- package/symbols/support/OccludedVisibility.js +1 -1
- package/symbols/support/Symbol3DEmissive.d.ts +33 -17
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/interactive/SnappingVisualizer2D.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/utils.js +1 -1
- package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/GraphicStateTracking.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
- package/views/View.d.ts +8 -0
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/plugins/PolygonPlugin.js +1 -1
- package/views/draw/support/InteractiveHandle.js +1 -1
- package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/draw/support/types.d.ts +8 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/SnappingVisualizer.js +1 -1
- package/views/interactive/snapping/candidates/EdgeSnappingCandidate.js +1 -1
- package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
- package/views/interactive/snapping/hints/CurveSnappingHint.js +2 -0
- package/views/interactive/snapping/hints/LineSnappingHint.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/webscene/Glow.d.ts +19 -14
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/EditorViewModel.d.ts +15 -4
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflowData.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/Workflow.js +1 -1
- package/widgets/Editor/components/Notices.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/support/EditorItem.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.d.ts +17 -5
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +17 -5
- package/widgets/FeatureTable.d.ts +16 -4
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +9 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.d.ts +9 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/assets/esri/core/workers/chunks/112227b862b935123ddf.js +0 -2
- package/assets/esri/core/workers/chunks/1cfa8d404d42b9eccf78.js +0 -1
- package/assets/esri/core/workers/chunks/2e50b7651f8c037bb3b0.js +0 -1
- package/assets/esri/core/workers/chunks/3d3b1ce112be6ea31d93.js +0 -1
- package/assets/esri/core/workers/chunks/53e348f5585fa8c53fe8.js +0 -2
- package/assets/esri/core/workers/chunks/72c31f3313dfe87dd1aa.js +0 -1
- package/assets/esri/core/workers/chunks/79c69ae86a1f4a56f7c7.js +0 -1
- package/assets/esri/core/workers/chunks/8eb535b43e1220cf0d75.js +0 -1
- package/assets/esri/core/workers/chunks/b397a9f87082705301a4.js +0 -2
- package/assets/esri/core/workers/chunks/baad696d84ab78b3d00e.js +0 -2
- package/assets/esri/core/workers/chunks/c6e0ada6f2ad74fddfec.js +0 -1
- package/assets/esri/core/workers/chunks/d39f5d57f7e35c00ca16.js +0 -1
- package/assets/esri/core/workers/chunks/edaae0fc63d16b0f675d.js +0 -2
- /package/assets/esri/core/workers/chunks/{53e348f5585fa8c53fe8.js.LICENSE.txt → 298d7ab4ef027aa80322.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{edaae0fc63d16b0f675d.js.LICENSE.txt → 510b75afe19324d26665.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{b397a9f87082705301a4.js.LICENSE.txt → 90401fa13412e93bae38.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{112227b862b935123ddf.js.LICENSE.txt → e8f3594b90cef4b598bc.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{baad696d84ab78b3d00e.js.LICENSE.txt → ec3c3fbcd3a00f24bee7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see ec3c3fbcd3a00f24bee7.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6364],{16364(e,t,i){i.r(t),i.d(t,{Input:()=>de}),i(7659);var n=i(50917),a=i(34857),r=i(32293),s=i(27617);const l={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},o=a.AH`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-block-start:var(--calcite-input-message-spacing, var(--calcite-input-message-spacing-value, var(--calcite-spacing-xxs)))}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:var(--calcite-spacing-sm)}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-danger))))}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-status-success))))}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-input-message-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-brand))))}:host([scale=s]){font-size:var(--calcite-font-size-relative-xs);line-height:var(--calcite-font-line-height-xs)}:host([scale=m]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=l]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([hidden]){display:none}[hidden]{display:none}`;class c extends r.WF{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:r.pf,type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),this.requestedIcon=(0,s.d)(l,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||"idle"!==this.status)||e.has("icon"))&&(this.requestedIcon=(0,s.d)(l,this.icon,this.status))}render(){const e=this.el.hidden;return(0,r.Bq)(this.el,"calcite-hydrated-hidden",e),a.qy`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return a.qy`<calcite-icon class=${(0,r.CP)("calcite-input-message-icon")} .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}}(0,n.c)("calcite-input-message",c);const u=a.AH`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media(forced-colors:active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,d="bar";class p extends r.WF{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:[7,{},{reflect:!0,type:Boolean}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=u}render(){const e="determinate"===this.type,t=e?{width:`${this.value}%`}:{},i=(0,s.g)(this.el);return a.qy`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class=${(0,r.CP)("track")}><div class=${(0,r.CP)({[d]:!0,indeterminate:"indeterminate"===this.type,[n.C.rtl]:"rtl"===i,reversed:this.reversed})} style=${(0,r.zl)(t)}></div></div>${this.text?a.qy`<div class=${(0,r.CP)("text")}>${this.text}</div>`:null}</div>`}}(0,n.c)("calcite-progress",p);var h=i(14490),m=i(56590),b=i(11758),g=i(53660),v=i(81506),f=i(32491),y=i(26442),x=i(91071),k=i(91706);const $=new RegExp("\\.(0+)?$"),w=new RegExp("0+$");class z{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof z)return e;const[t,i]=function(e){const t=e.split(/[eE]/);if(1===t.length)return e;const i=+e;if(Number.isSafeInteger(i))return`${i}`;const n="-"===e.charAt(0),a=+t[1],r=t[0].split("."),s=(n?r[0].substring(1):r[0])||"",l=r[1]||"",o=a>0?`${s}${((e,t)=>{const i=t>e.length?`${e}${"0".repeat(t-e.length)}`:e;return`${i.slice(0,t)}.${i.slice(t)}`})(l,a)}`:`${((e,t)=>{const i=Math.abs(t)-e.length,n=i>0?`${"0".repeat(i)}${e}`:e;return`${n.slice(0,t)}.${n.slice(t)}`})(s,a)}${l}`;return`${n?"-":""}${"."===o.charAt(0)?"0":""}${o.replace($,"").replace(E,"")}`}(e).split(".").concat("");this.value=BigInt(t+i.padEnd(z.DECIMALS,"0").slice(0,z.DECIMALS))+BigInt(z.ROUNDED&&i[z.DECIMALS]>="5"),this.isNegative="-"===e.charAt(0)}static{this._divRound=(e,t)=>z.fromBigInt(e/t+(z.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(z.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){const e=this.value.toString().replace("-","").padStart(z.DECIMALS+1,"0");return{integers:e.slice(0,-z.DECIMALS),decimals:e.slice(-z.DECIMALS).replace(w,"")}}toString(){const{integers:e,decimals:t}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${t.length?"."+t:""}`}formatToParts(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals(),n=e.numberFormatter.formatToParts(BigInt(t));return this.isNegative&&n.unshift({type:"minusSign",value:e.minusSign}),i.length&&(n.push({type:"decimal",value:e.decimal}),i.split("").forEach(e=>n.push({type:"fraction",value:e}))),n}format(e){const{integers:t,decimals:i}=this.getIntegersAndDecimals();return`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(t))}${i.length?`${e.decimal}${i.split("").map(t=>e.numberFormatter.format(Number(t))).join("")}`:""}`}add(e){return z.fromBigInt(this.value+new z(e).value)}subtract(e){return z.fromBigInt(this.value-new z(e).value)}multiply(e){return z._divRound(this.value*new z(e).value,z.SHIFT)}divide(e){return z._divRound(this.value*z.SHIFT,new z(e).value)}}function I(e){return!(!e||isNaN(Number(e)))}const E=/^([-0])0+(?=\d)/,V=/(?!^\.)\.$/,S=/(?!^-)-/g,C=/^-\b0\b\.?0*$/,N=/0*$/,O=new Set(["e","E","-",",",".",...y.n]);function F(e,t){if(!e)return e;const i=e.toLowerCase().indexOf("e")+1;return i?e.replace(/[eE]*$/g,"").substring(0,i).concat(e.slice(i).replace(/[eE]/g,"")).split(/[eE]/).map((e,i)=>t(1===i?e.replace(/\./g,""):e)).join("e").replace(/^e/,"1e"):t(e)}new Map(Object.entries({bg:{am:"пр.об.",pm:"сл.об."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a. m.",pm:"p. m."},cs:{am:"dop.",pm:"odp."},es:{am:"a. m.",pm:"p. m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"לפנה״צ",pm:"אחה״צ"},hu:{am:"de. ",pm:"du."},lt:{am:"priešpiet",pm:"popiet"},lv:{am:"priekšpusdienā",pm:"pēcpusdienā"},mk:{am:"претпл.",pm:"попл."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manhã",pm:"da tarde"},"pt-PT":{am:"da manhã",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง"},tr:{am:"ÖÖ",pm:"ÖS"},uk:{am:"дп",pm:"пп"},vi:{am:"SA",pm:"CH"}}));const D=["arab","arabext","latn"],_=e=>D.includes(e),R=(new Intl.NumberFormat).resolvedOptions().numberingSystem,B="arab"!==R&&_(R)?R:"latn",P=new class{constructor(){this.delocalize=e=>this._numberFormatOptions?F(e,e=>e.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):e,this.localize=e=>this._numberFormatOptions?F(e,e=>I(e.trim())?new z(e.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):e):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){var t;if(e.numberingSystem=(t=e?.numberingSystem,_(t)?t:B),e.locale=e?.locale||k.q,!this._numberFormatOptions&&e.locale===k.q&&e.numberingSystem===B&&2===Object.keys(e).length||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();const i=new Map(this._digits.map((e,t)=>[e,t])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-12345678.9);this._actualGroup=n.find(e=>"group"===e.type).value,this._group=0===this._actualGroup.trim().length||" "==this._actualGroup?" ":this._actualGroup,this._decimal="bs"===e.locale||"mk"===e.locale?",":n.find(e=>"decimal"===e.type).value,this._minusSign=n.find(e=>"minusSign"===e.type).value,this._getDigitIndex=e=>i.get(e)}};var q=i(53250);const L="internal-label-alignment--center",H="internal-label-alignment--end",A="internal-label--container",T="internal-label-spacing--bottom",M="internal-label-spacing-inline--end",j="internal-label-spacing-inline--start",U=({alignmentCenter:e,bottomSpacingDisabled:t,labelText:i,onClick:n,required:s,spacingInlineEnd:l,spacingInlineStart:o,tooltipText:c})=>a.qy`<div class=${(0,r.CP)({[L]:e,[H]:!e,[A]:!0,[T]:!t,[M]:l,[j]:o})} @click=${n}><div class=${(0,r.CP)("internal-label--text")}>${i}${s&&a.qy`<span aria-hidden=true class=${(0,r.CP)("internal-label-required--indicator")} title=${c??a.s6}>*</span>`||""}</div><slot name=label-content></slot></div>`,K=()=>{},W=({scale:e,status:t,id:i,icon:n,message:s,ref:l})=>a.qy`<div class=${(0,r.CP)("validation-container")} ${(0,b.K)(l||K)}><calcite-input-message aria-live=polite .icon=${n} id=${i??a.s6} .scale=${e} .status=${t}>${s}</calcite-input-message></div>`;var G=i(9223),J=i(5918),X=i(3032);const Y=["date","datetime-local","month","number","range","time","week"],Q=["email","password","search","tel","text","url"],Z=["email","password","search","tel","text","textarea","url"];function ee(e,t,i,n){const a=i.toLowerCase(),r=e[i];n&&null!=r?t.setAttribute(a,`${r}`):t.removeAttribute(a)}const te="editing-enabled",ie="inline-child",ne="number-button-item--horizontal",ae="wrapper",re="number-button-item",se="has-suffix",le="has-prefix",oe="inputValidationMessage",ce={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},ue=a.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) input{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=s]) .prefix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .suffix{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s]) input[type=file]{min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) input{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .has-prefix input{padding-inline-start:var(--calcite-spacing-xs)}:host([scale=m]) .prefix{padding-inline:var(--calcite-spacing-md) var(--calcite-spacing-xs)}:host([scale=m]) .has-suffix input{padding-inline-end:var(--calcite-spacing-xs)}:host([scale=m]) .suffix{padding-inline:var(--calcite-spacing-xs) var(--calcite-spacing-md)}:host([scale=m]) input[type=file]{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) input{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .has-prefix input{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .prefix{padding-inline:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=l]) .has-suffix input{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .suffix{padding-inline:var(--calcite-spacing-sm) var(--calcite-spacing-lg)}:host([scale=l]) input[type=file]{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}input:placeholder-shown{text-overflow:ellipsis}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}:host(:not([status=invalid])) .has-prefix input{border-inline-start-width:0}:host(:not([status=invalid])) .has-suffix input{border-inline-end-width:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}:host([read-only]) .prefix,:host([read-only]) .suffix{background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input{outline-color:transparent}input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center;isolation:isolate}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.has-suffix .clear-button{border-inline-end-width:0}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;line-height:1;font-weight:var(--calcite-font-weight-regular);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));block-size:initial}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}:host([type=datetime-local]) .element-wrapper{inline-size:100%}:host([type=datetime-local]) .element-wrapper input{display:inline-block;min-inline-size:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;class de extends r.WF{constructor(){super(),this.actionWrapperRef=(0,b._)(),this.attributeWatch=(0,v.oW)(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childRef=(0,b._)(),this.childNumberRef=(0,b._)(),this.inputWrapperRef=(0,b._)(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.messages=(0,G.u)(),this.focusSetter=(0,J.u)()(this),this.interactiveContainer=(0,X.u)(this),this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=(0,g.c)({cancelable:!1}),this.calciteInputInput=(0,g.c)(),this.calciteInternalInputBlur=(0,g.c)({cancelable:!1}),this.calciteInternalInputFocus=(0,g.c)({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:[16,{},{state:!0}],slottedActionElDisabledInternally:[16,{},{state:!0}],accept:1,alignment:[3,{},{reflect:!0}],autocomplete:1,clearable:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],editingEnabled:[7,{},{reflect:!0,type:Boolean}],files:[0,{},{attribute:!1}],form:[3,{},{reflect:!0}],groupSeparator:[7,{},{reflect:!0,type:Boolean}],icon:[3,{converter:r.pf,type:String},{reflect:!0}],iconFlipRtl:[7,{},{reflect:!0,type:Boolean}],label:1,labelText:1,loading:[7,{},{reflect:!0,type:Boolean}],localeFormat:[5,{},{type:Boolean}],max:[11,{},{reflect:!0,type:Number}],maxLength:[11,{},{reflect:!0,type:Number}],messageOverrides:[0,{},{attribute:!1}],min:[11,{},{reflect:!0,type:Number}],minLength:[11,{},{reflect:!0,type:Number}],multiple:[5,{},{type:Boolean}],name:[3,{},{reflect:!0}],numberButtonType:[3,{},{reflect:!0}],numberingSystem:[3,{},{reflect:!0}],pattern:1,placeholder:1,prefixText:1,readOnly:[7,{},{reflect:!0,type:Boolean}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],step:[3,{},{reflect:!0}],suffixText:1,type:[3,{},{reflect:!0}],validationIcon:[3,{converter:r.pf,type:String},{reflect:!0}],validationMessage:1,validity:[0,{},{attribute:!1}],value:1}}static{this.styles=ue}get isClearable(){return(this.clearable||"search"===this.type)&&this.value?.length>0}get value(){return this._value}set value(e){const t=this._value;e!==t&&(this._value=e,this.valueWatcher(e,t),e&&""===this._value&&this.setValue({origin:"reset",value:t}))}async selectText(){const e="number"===this.type?this.childNumberRef:this.childRef;e.value?.select()}async setFocus(e){return this.focusSetter(()=>"number"===this.type?this.childNumberRef.value:this.childRef.value,e)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),(0,x.c)(this),(0,f.c)(this),this.el.addEventListener(f.i,this.onHiddenFormInputInput)}async load(){this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=(0,s.d)(ce,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),"number"===this.type&&("Infinity"===this.value||"-Infinity"===this.value?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:I(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||"text"!==this.type))&&(this.requestedIcon=(0,s.d)(ce,this.icon,this.type)),e.has("readOnly")&&this.stopNudging()}disconnectedCallback(){super.disconnectedCallback(),(0,x.d)(this),(0,f.d)(this),this.stopNudging(),this.el.removeEventListener(f.i,this.onHiddenFormInputInput)}stopNudging(){window.clearInterval(this.nudgeNumberValueIntervalId)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,t){if(!this.userChangedValue){if("number"===this.type&&("Infinity"===e||"-Infinity"===e))return this.displayedValue=e,void(this.previousEmittedValue=e);this.setValue({origin:"direct",previousValue:t,value:null==e||""==e?"":"number"===this.type?I(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&"Escape"===e.key&&(this.clearInputValue(e),e.preventDefault()),"Enter"===e.key&&(0,f.s)(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,n){const{value:a}=this;if("Infinity"===a||"-Infinity"===a)return;const r="up"===e?1:-1,s="any"===this.step?1:Math.abs(this.step||1),l=new z(""!==a?a:"0").add(""+s*r),o="number"==typeof i&&!isNaN(i)&&l.subtract(`${i}`).isNegative?`${i}`:"number"!=typeof t||isNaN(t)||l.subtract(`${t}`).isNegative?l.toString():`${t}`;this.setValue({committing:!0,nativeEvent:n,origin:"user",value:o})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){this.stopNudging(),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;const t=e.composedPath();t.includes(this.inputWrapperRef.value)&&!t.includes(this.actionWrapperRef.value)&&this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(e){this.disabled||this.readOnly||("file"===this.type&&(this.files=this.childRef.value.files),this.setValue({nativeEvent:e,origin:"user",value:e.target.value}))}inputKeyDownHandler(e){this.disabled||this.readOnly||"Enter"===e.key&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return;const t=e.target.value;P.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const i=P.delocalize(t);var n,a;"insertFromPaste"===e.inputType?(I(i)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:(n=i,n&&(a=n,y.n.some(e=>a.includes(e)))?F(n,e=>{let t=!1;const i=e.split("").filter((e,i)=>e.match(/\./g)&&!t?(t=!0,!0):!(!e.match(/-/g)||0!==i)||y.n.includes(e)).join("");return I(i)?new z(i).toString():""}):"")}),this.childNumberRef.value.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:i})}inputNumberKeyDownHandler(e){if("number"!==this.type||this.disabled||this.readOnly)return;if("Infinity"===this.value||"-Infinity"===this.value)return e.preventDefault(),void("Backspace"!==e.key&&"Delete"!==e.key||this.clearInputValue(e));if("ArrowUp"===e.key)return e.preventDefault(),void this.nudgeNumberValue("up",e);if("ArrowDown"===e.key)return void this.nudgeNumberValue("down",e);const t=[...y.n,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&"Tab"===e.key;if(t.includes(e.key)||i)"Enter"===e.key&&this.emitChangeIfUserModified();else{if(P.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},e.key===P.decimal){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&-1===this.childNumberRef.value.value.indexOf(P.decimal))return}if(/[eE]/.test(e.key)){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&!/[eE]/.test(this.childNumberRef.value.value))return}if("-"===e.key){if(!this.value&&!this.childNumberRef.value.value)return;if(this.value&&this.childNumberRef.value.value.split("-").length<=2)return}e.preventDefault()}}nudgeNumberValue(e,t){if(t instanceof KeyboardEvent&&t.repeat||"number"!==this.type)return;const i=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(e,i,n,t),this.nudgeNumberValueIntervalId&&this.stopNudging();let a=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{a?a=!1:this.incrementOrDecrementNumberValue(e,i,n,t)},150)}numberButtonPointerUpAndOutHandler(){this.stopNudging()}numberButtonPointerDownHandler(e){if(!(0,s.k)(e))return;e.preventDefault();const t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)}syncHiddenFormInput(e){!function(e,t,i){i.type="textarea"===e?"text":e;const n=Y.includes(e),a=t;ee(a,i,"min",n),ee(a,i,"max",n),ee(a,i,"step",n);const r=Z.includes(e),s=t;ee(s,i,"minLength",r),ee(s,i,"maxLength",r),ee(s,i,"pattern",Q.includes(e))}(this.type,this,e)}setInputValue(e){const t="number"===this.type?this.childNumberRef:this.childRef;t.value&&(t.value.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return"number"===this.type?I(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:t,origin:i,previousValue:n,value:a}){if(this.setPreviousValue(n??this.value),this.previousValueOrigin=i,"number"===this.type){P.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};const e=this.previousValue?.length>a.length||this.value?.length>a.length,t="."===a.charAt(a.length-1),n=t&&e?a:(r=a,F(Array.from(r).filter(e=>O.has(e)).join(""),e=>{const t=e.replace(S,"").replace(V,"").replace(E,"$1");return I(t)?C.test(t)?t:function(e){const t=e.split(".")[1],i=new z(e).toString(),[n,a]=i.split(".");return t&&a!==t?`${n}.${t}`:i}(t):e})),s=a&&!n?I(this.previousValue)?this.previousValue:"":n;let l=P.localize(s);"connected"===i||t||(l=function(e,t,i){const n=t.split(".")[1];if(n){const a=n.match(N)[0];if(a&&i.delocalize(e).length!==t.length&&-1===n.indexOf("e")){const t=i.decimal;return(e=e.includes(t)?e:`${e}${t}`).padEnd(e.length+a.length,i.localize("0"))}}return e}(l,s,P)),this.displayedValue=t&&e?`${l}${P.decimal}`:l,this.userChangedValue="user"===i&&this.value!==s,this.value=["-","."].includes(s)?"":s}else this.userChangedValue="user"===i&&this.value!==a,this.value=a;var r;"direct"===i&&(this.setInputValue(a),this.previousEmittedValue=a),t&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue="number"===this.type?P.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){this.stopNudging()}warnAboutInvalidNumberValue(e){"number"===this.type&&e&&!I(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){const e=(0,s.g)(this.el),t=a.qy`<div class=${(0,r.CP)("loader")}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,i=a.qy`<button .ariaLabel=${this.messages.clear} class=${(0,r.CP)("clear-button")} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 title=${this.messages.clear??a.s6} type=button><calcite-icon .icon=${"x"} .scale=${(0,q.g)(this.scale)}></calcite-icon></button>`,l=a.qy`<calcite-icon class=${(0,r.CP)("icon")} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${(0,q.g)(this.scale)}></calcite-icon>`,o="horizontal"===this.numberButtonType,c=a.qy`<button aria-hidden=true class=${(0,r.CP)({[re]:!0,[ne]:o})} data-adjustment=${"up"} data-testid=number-button-up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon .icon=${"chevron-up"} .scale=${(0,q.g)(this.scale)}></calcite-icon></button>`,u=a.qy`<button aria-hidden=true class=${(0,r.CP)({[re]:!0,[ne]:o})} data-adjustment=${"down"} data-testid=number-button-down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon .icon=${"chevron-down"} .scale=${(0,q.g)(this.scale)}></calcite-icon></button>`,d=a.qy`<div class=${(0,r.CP)("number-button-wrapper")}>${c}${u}</div>`,p=a.qy`<div class=${(0,r.CP)("prefix")}>${this.prefixText}</div>`,g=a.qy`<div class=${(0,r.CP)("suffix")}>${this.suffixText}</div>`,v=this.el.autofocus,y=this.el.enterKeyHint,k=this.el.inputMode,$="number"===this.type?(0,m.D)("localized-input",a.qy`<input accept=${this.accept??a.s6} aria-errormessage=${oe} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,x.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${v} value=${this.defaultValue??a.s6} .disabled=${!!this.disabled||null} enterkeyhint=${y??a.s6} inputmode=${k??a.s6} maxlength=${this.maxLength??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${a.s6} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} .required=${this.required} type=text .value=${(0,h.V)(this.displayedValue??"")} ${(0,b.K)(this.childNumberRef)}>`):null,w="number"!==this.type?a.qy`<input accept=${this.accept??a.s6} aria-errormessage=${oe} .ariaInvalid=${"invalid"===this.status} .ariaLabel=${(0,x.g)(this)} autocomplete=${this.autocomplete??a.s6} .autofocus=${v} class=${(0,r.CP)({[te]:this.editingEnabled,[ie]:!!this.inlineEditableEl})} value=${this.defaultValue??a.s6} .disabled=${!!this.disabled||null} enterkeyhint=${y??a.s6} inputmode=${k??a.s6} max=${this.maxString??a.s6} maxlength=${this.maxLength??a.s6} min=${this.minString??a.s6} minlength=${this.minLength??a.s6} .multiple=${this.multiple} name=${this.name??a.s6} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??a.s6} placeholder=${(this.placeholder||"")??a.s6} .readOnly=${this.readOnly} .required=${!!this.required||null} spellcheck=${this.el.spellcheck??a.s6} step=${this.step??a.s6} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??a.s6} type=${this.type??a.s6} .value=${(0,h.V)(this.value??"")} ${(0,b.K)(this.childRef)}>`:null;return this.interactiveContainer({disabled:this.disabled,children:a.qy`${this.labelText&&U({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<div class=${(0,r.CP)({[ae]:!0,[n.C.rtl]:"rtl"===e,[se]:this.suffixText,[le]:this.prefixText})} ${(0,b.K)(this.inputWrapperRef)}>${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:u}${this.prefixText?p:null}<div class=${(0,r.CP)("element-wrapper")}>${$}${w}${this.isClearable?i:null}${this.requestedIcon?l:null}${this.loading?t:null}</div><div class=${(0,r.CP)("action-wrapper")} ${(0,b.K)(this.actionWrapperRef)}><slot name=${"action"}></slot></div>${"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:d}${this.suffixText?g:null}${"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:c}${(0,f.H)({component:this})}</div>${this.validationMessage&&"invalid"===this.status?W({icon:this.validationIcon,id:oe,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}}(0,n.c)("calcite-input",de)},26442(e,t,i){function n(e){return"Enter"===e||" "===e}i.d(t,{i:()=>n,n:()=>a});const a=["0","1","2","3","4","5","6","7","8","9"]},56590(e,t,i){i.d(t,{D:()=>s});var n=i(95862),a=i(57106),r=i(27654);const s=(0,a.u$)(class extends a.WL{constructor(){super(...arguments),this.key=n.s6}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&((0,r.mY)(e),this.key=t),i}})},91071(e,t,i){i.d(t,{a:()=>x,b:()=>s,c:()=>h,d:()=>m,g:()=>g,l:()=>r});var n=i(27617);const a="calciteInternalLabelClick",r="calciteInternalLabelConnected",s="calciteInternalLabelDisconnected",l="calcite-label",o=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new Set;function h(e){if(!e)return;const t=(e=>{const{id:t}=e,i=t&&(0,n.q)(e,{selector:`${l}[for="${t}"]`});if(i)return i;const a=(0,n.c)(e,l);return!a||function(e,t){let i;const n="custom-element-ancestor-check",a=n=>{n.stopImmediatePropagation();const a=n.composedPath();i=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(n,a,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,a),i.filter(i=>i!==t&&i!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(c.has(t)&&t===e.labelEl||!t&&p.has(e))return;const i=y.bind(e);if(t){e.labelEl=t;const n=o.get(t)||[];n.push(e),o.set(t,n.sort(b)),c.has(e.labelEl)||(c.set(e.labelEl,v),e.labelEl.addEventListener(a,v)),p.delete(e),document.removeEventListener(r,u.get(e)),d.set(e,i),document.addEventListener(s,i)}else p.has(e)||(i(),document.removeEventListener(s,d.get(e)))}function m(e){if(!e)return;if(p.delete(e),document.removeEventListener(r,u.get(e)),document.removeEventListener(s,d.get(e)),u.delete(e),d.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,c.get(e.labelEl)),c.delete(e.labelEl)),o.set(e.labelEl,t.filter(t=>t!==e).sort(b)),e.labelEl=null}function b(e,t){return(0,n.r)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function v(e){const t=e.detail.sourceEvent.target,i=o.get(this),n=i.find(e=>e.el===t);if(i.includes(n))return;const a=i[0];a.disabled||a.onLabelClick(e)}function f(){p.has(this)&&h(this)}function y(){p.add(this);const e=u.get(this)||f.bind(this);u.set(this,e),document.addEventListener(r,e)}async function x(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of p)if(e.el===t){h(e);break}})}}}]);
|
package/config.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Configure global properties of the library.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* > [!WARNING]
|
|
5
|
+
* >
|
|
6
|
+
* > **Note**
|
|
7
|
+
* >
|
|
8
|
+
* > It is recommended that properties of the `config` module be set on a global `esriConfig` variable before the API is loaded. Setting properties on the `config` module after the API is loaded may not have the intended effect, as some properties need to be set by the time the first request is made that needs that value. For example, the `apiKey` property needs to be set before the first request is made to a secure service that requires an API key. If the `apiKey` is set after that, the request will fail with an authentication error and prompt for credentials instead of using the API key.
|
|
6
9
|
*
|
|
7
10
|
* @since 4.0
|
|
8
11
|
* @example
|
|
9
|
-
*
|
|
10
|
-
*
|
|
12
|
+
* // Load the config module and set the portalUrl property
|
|
13
|
+
* const config = await $arcgis.import("@arcgis/core/config.js");
|
|
14
|
+
* config.portalUrl = "https://myHostName.esri.com/arcgis";
|
|
11
15
|
* @example
|
|
12
16
|
* <script>
|
|
13
|
-
* //
|
|
17
|
+
* // Use the global esriConfig variable to initialize properties
|
|
14
18
|
* var esriConfig = {
|
|
15
19
|
* portalUrl: "https://myHostName.esri.com/arcgis"
|
|
16
20
|
* };
|
|
@@ -34,7 +38,7 @@ export interface Config {
|
|
|
34
38
|
* >
|
|
35
39
|
* > **Note**
|
|
36
40
|
* >
|
|
37
|
-
* > To configure a global API key for ArcGIS Enterprise items/services, use the [
|
|
41
|
+
* > To configure a global API key for ArcGIS Enterprise items/services, use the [`apiKeys`](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKeys) property.
|
|
38
42
|
*
|
|
39
43
|
* @since 4.18
|
|
40
44
|
* @see [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/)
|
|
@@ -53,7 +57,7 @@ export interface Config {
|
|
|
53
57
|
* >
|
|
54
58
|
* > **Note**
|
|
55
59
|
* >
|
|
56
|
-
* > To configure a global API key for ArcGIS Online or ArcGIS Location Platform items/services, use the [
|
|
60
|
+
* > To configure a global API key for ArcGIS Online or ArcGIS Location Platform items/services, use the [`apiKey`](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey) property.
|
|
57
61
|
*
|
|
58
62
|
* @since 4.33
|
|
59
63
|
* @see [API keys](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/)
|
|
@@ -62,7 +66,7 @@ export interface Config {
|
|
|
62
66
|
* @see [BasemapStyle](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/)
|
|
63
67
|
* @example
|
|
64
68
|
* // Set an API key for multiple services.
|
|
65
|
-
*
|
|
69
|
+
* config.apiKeys.scopes = [
|
|
66
70
|
* {
|
|
67
71
|
* // The API key value.
|
|
68
72
|
* token: "API_KEY_FOR_SERVICE",
|
|
@@ -73,7 +77,7 @@ export interface Config {
|
|
|
73
77
|
* ];
|
|
74
78
|
* @example
|
|
75
79
|
* // Set an API key for the basemap styles service
|
|
76
|
-
*
|
|
80
|
+
* config.apiKeys.basemapStyles = "API_KEY_FOR_BASEMAP_STYLES";
|
|
77
81
|
*/
|
|
78
82
|
apiKeys: ApiKeysConfig;
|
|
79
83
|
/**
|
|
@@ -82,7 +86,7 @@ export interface Config {
|
|
|
82
86
|
*
|
|
83
87
|
* @default ""
|
|
84
88
|
* @since 4.27
|
|
85
|
-
* @example
|
|
89
|
+
* @example config.applicationName = "Sample Application";
|
|
86
90
|
*/
|
|
87
91
|
applicationName: string;
|
|
88
92
|
/**
|
|
@@ -96,8 +100,8 @@ export interface Config {
|
|
|
96
100
|
* @since 4.18
|
|
97
101
|
* @see [Working with assets](https://developers.arcgis.com/javascript/latest/working-with-assets/)
|
|
98
102
|
* @example
|
|
99
|
-
* import
|
|
100
|
-
*
|
|
103
|
+
* import config from "@arcgis/core/config";
|
|
104
|
+
* config.assetsPath = "./assets";
|
|
101
105
|
*/
|
|
102
106
|
assetsPath: string;
|
|
103
107
|
/**
|
|
@@ -114,14 +118,14 @@ export interface Config {
|
|
|
114
118
|
* @default "https://static.arcgis.com/fonts"
|
|
115
119
|
* @since 4.8
|
|
116
120
|
* @see [Labeling guide](https://developers.arcgis.com/javascript/latest/labeling/#fonts)
|
|
117
|
-
* @example
|
|
121
|
+
* @example config.fontsUrl = "https://myserver.com/fonts";
|
|
118
122
|
*/
|
|
119
123
|
fontsUrl: string;
|
|
120
124
|
/**
|
|
121
125
|
* The URL for the utility service used by [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoRSSLayer/) to convert GeoRSS documents.
|
|
122
126
|
*
|
|
123
127
|
* @default "https://utility.arcgis.com/sharing/rss"
|
|
124
|
-
* @example
|
|
128
|
+
* @example config.geoRSSServiceUrl = "https://servername.domain.suffix/arcgis/sharing/rss";
|
|
125
129
|
*/
|
|
126
130
|
geoRSSServiceUrl: string;
|
|
127
131
|
/**
|
|
@@ -129,7 +133,7 @@ export interface Config {
|
|
|
129
133
|
* operations, such as on-the-fly projections.
|
|
130
134
|
*
|
|
131
135
|
* @default "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
|
|
132
|
-
* @example
|
|
136
|
+
* @example config.geometryServiceUrl = "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer";
|
|
133
137
|
*/
|
|
134
138
|
geometryServiceUrl: string;
|
|
135
139
|
/**
|
|
@@ -137,7 +141,7 @@ export interface Config {
|
|
|
137
141
|
*
|
|
138
142
|
* @default "https://utility.arcgis.com/sharing/kml"
|
|
139
143
|
* @since 4.5
|
|
140
|
-
* @example
|
|
144
|
+
* @example config.kmlServiceUrl = "https://servername.domain.suffix/arcgis/sharing/kml";
|
|
141
145
|
*/
|
|
142
146
|
kmlServiceUrl: string;
|
|
143
147
|
/**
|
|
@@ -158,7 +162,7 @@ export interface Config {
|
|
|
158
162
|
* @see [Portal.url](https://developers.arcgis.com/javascript/latest/references/core/portal/Portal/#url)
|
|
159
163
|
* @example
|
|
160
164
|
* // Set the hostname to the on-premise portal
|
|
161
|
-
*
|
|
165
|
+
* config.portalUrl = "https://myHostName.esri.com/arcgis"
|
|
162
166
|
*/
|
|
163
167
|
portalUrl: string;
|
|
164
168
|
/**
|
|
@@ -189,7 +193,7 @@ export interface Config {
|
|
|
189
193
|
* @since 4.30
|
|
190
194
|
* @example
|
|
191
195
|
* // Ignore prefers-reduced-motion flag for all animations
|
|
192
|
-
*
|
|
196
|
+
* config.respectPrefersReducedMotion = false;
|
|
193
197
|
*/
|
|
194
198
|
respectPrefersReducedMotion: boolean;
|
|
195
199
|
/**
|
|
@@ -199,10 +203,20 @@ export interface Config {
|
|
|
199
203
|
*
|
|
200
204
|
* @default "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"
|
|
201
205
|
* @since 4.23
|
|
202
|
-
* @example
|
|
206
|
+
* @example config.routeServiceUrl = "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World";
|
|
203
207
|
*/
|
|
204
208
|
routeServiceUrl: string;
|
|
205
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* The configuration for sessions, which are used with an API key to manage user authentication and authorization with the API.
|
|
211
|
+
* When a session is created, it provides a short-lived session token that can be used to access ArcGIS services for the duration of the session.
|
|
212
|
+
* The API key can be set using the [apiKey](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey) property or the [apiKeys.basemapStyles](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKeys) property.
|
|
213
|
+
*
|
|
214
|
+
* > [!WARNING]
|
|
215
|
+
* >
|
|
216
|
+
* > Sessions are only used with API keys that are generated from an ArcGIS Location Platform account.
|
|
217
|
+
*
|
|
218
|
+
* @since 5.0
|
|
219
|
+
*/
|
|
206
220
|
sessions?: SessionsConfig;
|
|
207
221
|
/**
|
|
208
222
|
* Indicates whether layers should apply privileges of the authenticated user to their capabilities.
|
|
@@ -217,7 +231,7 @@ export interface Config {
|
|
|
217
231
|
* @example
|
|
218
232
|
* // Set the path for the worker's AMD loader configuration
|
|
219
233
|
* // to a folder called workersFolder.
|
|
220
|
-
*
|
|
234
|
+
* config.workers.loaderConfig = {
|
|
221
235
|
* paths: {
|
|
222
236
|
* myWorkers: new URL("./workersFolder", document.baseURI).href
|
|
223
237
|
* }
|
|
@@ -253,7 +267,7 @@ export interface ApiKeysConfig {
|
|
|
253
267
|
* The API key for the [basemap styles service](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/).
|
|
254
268
|
* This should be set if loading a web map that uses a basemap style service.
|
|
255
269
|
* Otherwise, set a fine-grained API key on the [BasemapStyle.apiKey](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/#apiKey) class.
|
|
256
|
-
* If user authentication is not required in the application, the [
|
|
270
|
+
* If user authentication is not required in the application, the [`apiKey`](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey) property can be set instead.
|
|
257
271
|
*/
|
|
258
272
|
basemapStyles?: string;
|
|
259
273
|
/** An array of objects that define ArcGIS Enterprise API keys and their respective portal URLs. */
|
|
@@ -322,14 +336,14 @@ export interface RequestConfig {
|
|
|
322
336
|
* ```js
|
|
323
337
|
* const featureLayerUrl = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0";
|
|
324
338
|
*
|
|
325
|
-
*
|
|
339
|
+
* config.request.interceptors.push({
|
|
326
340
|
* // set the `urls` property to the URL of the FeatureLayer so that this
|
|
327
341
|
* // interceptor only applies to requests made to the FeatureLayer URL
|
|
328
342
|
* urls: featureLayerUrl,
|
|
329
343
|
* // use the BeforeInterceptorCallback to check if the query of the
|
|
330
344
|
* // FeatureLayer has a maxAllowableOffset property set.
|
|
331
345
|
* // if so, then set the maxAllowableOffset to 0
|
|
332
|
-
* before:
|
|
346
|
+
* before: (params) => {
|
|
333
347
|
* if (params.requestOptions.query.maxAllowableOffset) {
|
|
334
348
|
* params.requestOptions.query.maxAllowableOffset = 0;
|
|
335
349
|
* }
|
|
@@ -337,7 +351,7 @@ export interface RequestConfig {
|
|
|
337
351
|
* // use the AfterInterceptorCallback to check if `ssl` is set to 'true'
|
|
338
352
|
* // on the response to the request, if it's set to 'false', change
|
|
339
353
|
* // the value to 'true' before returning the response
|
|
340
|
-
* after:
|
|
354
|
+
* after: (response) => {
|
|
341
355
|
* if (!response.ssl) {
|
|
342
356
|
* response.ssl = true;
|
|
343
357
|
* }
|
|
@@ -385,8 +399,8 @@ export interface RequestConfig {
|
|
|
385
399
|
* run on older versions of browsers etc.
|
|
386
400
|
*
|
|
387
401
|
* ```js
|
|
388
|
-
* const
|
|
389
|
-
*
|
|
402
|
+
* const config = await $arcgis.import("@arcgis/core/config.js");
|
|
403
|
+
* config.request.proxyUrl = "/proxy/Java/proxy.jsp";
|
|
390
404
|
* ```
|
|
391
405
|
*/
|
|
392
406
|
proxyUrl?: string | null;
|
|
@@ -404,8 +418,8 @@ export interface RequestConfig {
|
|
|
404
418
|
* should include credentials such as cookies and authorization headers.
|
|
405
419
|
*
|
|
406
420
|
* ```js
|
|
407
|
-
* const
|
|
408
|
-
*
|
|
421
|
+
* const config = await $arcgis.import("@arcgis/core/config.js");
|
|
422
|
+
* config.request.trustedServers.push("[<protocol>//]<hostname>.<domain>[:<port>]");
|
|
409
423
|
* ```
|
|
410
424
|
*
|
|
411
425
|
* @since 4.9
|
|
@@ -420,18 +434,64 @@ export interface RequestConfig {
|
|
|
420
434
|
useIdentity: boolean;
|
|
421
435
|
}
|
|
422
436
|
|
|
437
|
+
/**
|
|
438
|
+
* The configuration for sessions, which are used with an API key to manage user authentication and authorization with the API. The API key can be set using the [apiKey](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKey) property or the [apiKeys.basemapStyles](https://developers.arcgis.com/javascript/latest/references/core/config/#Config-apiKeys) property.
|
|
439
|
+
*
|
|
440
|
+
* > [!WARNING]
|
|
441
|
+
* >
|
|
442
|
+
* > Sessions are only used with API keys that are generated from an ArcGIS Location Platform account.
|
|
443
|
+
*
|
|
444
|
+
* @since 5.0
|
|
445
|
+
*/
|
|
423
446
|
export interface SessionsConfig {
|
|
424
|
-
|
|
447
|
+
/**
|
|
448
|
+
* Configuration for a basemap session for use with the [basemap styles service](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/).
|
|
449
|
+
*
|
|
450
|
+
* @since 5.0
|
|
451
|
+
*/
|
|
452
|
+
basemap?: BasemapSessionConfig;
|
|
425
453
|
}
|
|
426
454
|
|
|
427
|
-
|
|
428
|
-
|
|
455
|
+
/**
|
|
456
|
+
* Configuration for a basemap session for use with the [basemap styles service](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/). The basemap session is a timeframe during which a single user of a single application can use a session token to access unlimited basemap tiles from the Basemap Styles service.
|
|
457
|
+
*
|
|
458
|
+
* When a basemap session is created, it provides a short-lived session token that can be used to access basemap styles and tiles from the basemap service for the duration of the session. The maximum duration a basemap session and session token are valid for is up to 12 hours.
|
|
459
|
+
*
|
|
460
|
+
* > [!WARNING]
|
|
461
|
+
* >
|
|
462
|
+
* > Basemap sessions are only used with API keys that are generated from an ArcGIS Location Platform account.
|
|
463
|
+
*
|
|
464
|
+
* @since 5.0
|
|
465
|
+
*/
|
|
466
|
+
export interface BasemapSessionConfig {
|
|
467
|
+
/**
|
|
468
|
+
* Indicates whether the basemap session is enabled.
|
|
469
|
+
*
|
|
470
|
+
* @default false
|
|
471
|
+
*/
|
|
429
472
|
enabled?: boolean;
|
|
430
|
-
/**
|
|
473
|
+
/**
|
|
474
|
+
* The style family used by the basemap session.
|
|
475
|
+
*
|
|
476
|
+
* A basemap session is valid only for a single style family.
|
|
477
|
+
* This setting determines which basemap styles and tiles can be accessed with the session token.
|
|
478
|
+
* If you switch to a basemap from a different style family, update this property.
|
|
479
|
+
* A new session (and session token) is created only if one does not already exist for the selected style family.
|
|
480
|
+
*
|
|
481
|
+
* @default "arcgis"
|
|
482
|
+
*/
|
|
431
483
|
styleFamily?: "arcgis" | "open";
|
|
432
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Indicates whether the basemap session should automatically refresh the session token when it expires.
|
|
486
|
+
*
|
|
487
|
+
* @default false
|
|
488
|
+
*/
|
|
433
489
|
autoRefresh?: boolean;
|
|
434
490
|
/**
|
|
491
|
+
* The duration of the basemap session in seconds.
|
|
492
|
+
* When the session expires, a new session token will need to be generated to access basemap styles and tiles from the basemap service.
|
|
493
|
+
* If `autoRefresh` is set to `true`, the session will automatically refresh the next time the session token is needed after the session expires.
|
|
494
|
+
*
|
|
435
495
|
* If not provided, the session will default to 43200 seconds (12 hours). Valid range is from 10 to 43200 seconds.
|
|
436
496
|
*
|
|
437
497
|
* @default 43200
|
package/config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.0.0-next.
|
|
2
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.0.0-next.130";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{equals as n,sliceEquals as r}from"../../../core/arrayUtils.js";function t(n){return"curveRings"in n&&!!n.curveRings?.length||"curvePaths"in n&&!!n.curvePaths?.length}function u(n){return"curveRings"in n?n.curveRings:n.curvePaths}function
|
|
2
|
+
import{equals as n,sliceEquals as r}from"../../../core/arrayUtils.js";function t(n){return"curveRings"in n&&!!n.curveRings?.length||"curvePaths"in n&&!!n.curvePaths?.length}function u(n){return"curveRings"in n?n.curveRings:n.curvePaths}function e(n){return"b"in n}function c(n){return"c"in n}function i(n){return Array.isArray(n)}function o(n){return"a"in n}function s(n){return"a"in n&&4===n.a.length}function a(n){return"a"in n&&7===n.a.length}function f(n){return!(!n||!t(n))&&u(n).some(n=>n.some(n=>c(n)))}function g(n,r){return i(n)?i(r):e(n)?e(r):c(n)?c(r):s(n)?s(r):!!a(n)&&a(r)}function h(n){return i(n)?n:e(n)?n.b[0]:c(n)?n.c[0]:n.a[0]}function b(n){if(e(n)){const[r,t,u]=n.b;return{b:[[...r],[...t],[...u]]}}if(c(n)){const[r,t]=n.c;return{c:[[...r],[...t]]}}if(i(n))return[...n];if(s(n)){const[r,t,u,e]=n.a;return{a:[[...r],[...t],u,e]}}if(a(n)){const[r,t,u,e,c,i,o]=n.a;return{a:[[...r],[...t],u,e,c,i,o]}}return n}function l(n){return t(n)?"curveRings"in n?n.curveRings:n.curvePaths:"rings"in n?n.rings:n.paths}function v(n){return n.some(n=>!i(n))}function R(n,r=0,t=1){let u=0;const e=n.length;let c=h(n[0]);for(let i=1;i<e;i++){const e=h(n[i]);u+=(e[r]-c[r])*(e[t]+c[t]),c=e}if(m(n)){const e=h(n[0]);u+=(e[r]-c[r])*(e[t]+c[t])}return u>=0}function m(r){const t=r.length;return t>0&&!n(h(r[0]),h(r[t-1]))}function P(t,u){return i(t)&&i(u)?n(t,u):c(t)&&c(u)?n(t.c[0],u.c[0])&&n(t.c[1],u.c[1]):e(t)&&e(u)?n(t.b[0],u.b[0])&&n(t.b[1],u.b[1])&&n(t.b[2],u.b[2]):!(!o(t)||!o(u))&&(n(t.a[0],u.a[0])&&n(t.a[1],u.a[1])&&r(t.a,2,-1,u.a,2,-1))}export{b as cloneCurve,P as curveEquals,g as curvesAreSameType,u as getCurves,h as getEndpoint,l as getPaths,f as hasCircularArc,e as isBezierCurve,c as isCircularArc,R as isClockwise,i as isCoordinate,t as isCurvedGeometry,o as isEllipticArc,s as isEllipticArc4,a as isEllipticArc7,v as pathHasCurves};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type { IdentityManagerBase } from "./IdentityManagerBase.js";
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* This object provides the framework and helper methods used in managing user credentials for the following resources:
|
|
5
3
|
*
|
|
6
|
-
* * Secured [ArcGIS.com](https://arcgis.com)
|
|
7
|
-
* [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-portal-for-arcgis-.htm) resources (e.g. web maps).
|
|
8
|
-
*
|
|
4
|
+
* * Secured [ArcGIS.com](https://arcgis.com),
|
|
5
|
+
* [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-portal-for-arcgis-.htm), or [ArcGIS Location Platform](https://location.arcgis.com/) resources (e.g. web maps).
|
|
9
6
|
* * ArcGIS Server resources secured using token-based authentication. Note that only ArcGIS Server versions 10 SP 1
|
|
10
7
|
* and greater are supported.
|
|
11
8
|
* If your application accesses services from different domains, it is deemed a cross-domain request and you need to setup
|
|
@@ -27,5 +24,12 @@ import type { IdentityManagerBase } from "./IdentityManagerBase.js";
|
|
|
27
24
|
* @see [ArcGIS Organization portals](https://developers.arcgis.com/javascript/latest/arcgis-organization-portals/)
|
|
28
25
|
* @see [Sample - Access ArcGIS Online items using OAuth 2.0](https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/)
|
|
29
26
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
import type { IdentityManagerBase } from "./IdentityManagerBase.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The IdentityMananger instance. See the [IdentityManagerBase](https://developers.arcgis.com/javascript/latest/references/core/identity/IdentityManagerBase/) module for more details on the methods and properties of the Identity Manager.
|
|
31
|
+
*
|
|
32
|
+
* @since 4.0
|
|
33
|
+
*/
|
|
34
|
+
declare const identityManager: IdentityManagerBase;
|
|
35
|
+
export default identityManager;
|
|
@@ -162,7 +162,11 @@ export interface IdentityManagerCredentialCreateEvent {
|
|
|
162
162
|
credential: Credential;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* The IdentityManagerBase class provides the framework and helper methods used in managing user credentials. It is the type for the [IdentityManager](https://developers.arcgis.com/javascript/latest/references/core/identity/IdentityManager/) and is not intended to be used directly.
|
|
167
|
+
*
|
|
168
|
+
* @since 5.0
|
|
169
|
+
*/
|
|
166
170
|
export abstract class IdentityManagerBase extends Evented {
|
|
167
171
|
/** @since 5.0 */
|
|
168
172
|
"@eventTypes": IdentityManagerBaseEvents;
|
|
@@ -271,10 +275,10 @@ export abstract class IdentityManagerBase extends Evented {
|
|
|
271
275
|
* @returns The OAuthInfo configuration for the passed in Portal server URL.
|
|
272
276
|
* @since 5.0
|
|
273
277
|
* @example
|
|
274
|
-
* const
|
|
278
|
+
* const identityManager = await $arcgis.import("@arcgis/core/identity/IdentityManager.js");
|
|
275
279
|
* let portalURL = "https://host.arcgis.com";
|
|
276
280
|
* findOAuthInfo = function (){
|
|
277
|
-
* let oAuthInfo =
|
|
281
|
+
* let oAuthInfo = identityManager.findOAuthInfo(portalURL)
|
|
278
282
|
* console.log(oAuthInfo.toJSON())
|
|
279
283
|
* }
|
|
280
284
|
*/
|
|
@@ -331,14 +335,14 @@ export abstract class IdentityManagerBase extends Evented {
|
|
|
331
335
|
* @param oAuthInfos - An array of OAuthInfo objects that defines the OAuth configurations.
|
|
332
336
|
* @since 5.0
|
|
333
337
|
* @example
|
|
334
|
-
* const [OAuthInfo,
|
|
338
|
+
* const [OAuthInfo, identityManager] = await $arcgis.import([
|
|
335
339
|
* "@arcgis/core/identity/OAuthInfo.js",
|
|
336
340
|
* "@arcgis/core/identity/IdentityManager.js"
|
|
337
341
|
* ]);
|
|
338
342
|
* let oAuthInfo = new OAuthInfo({
|
|
339
343
|
* appId: "<registered client id>"
|
|
340
344
|
* }); // required parameter
|
|
341
|
-
*
|
|
345
|
+
* identityManager.registerOAuthInfos([oAuthInfo]);
|
|
342
346
|
*/
|
|
343
347
|
registerOAuthInfos(oAuthInfos: OAuthInfo[]): void;
|
|
344
348
|
/**
|
|
@@ -347,12 +351,12 @@ export abstract class IdentityManagerBase extends Evented {
|
|
|
347
351
|
* @param serverInfos - An array of ServerInfos objects that defines the secure service and token endpoint. The IdentityManager makes its best guess to determine the location of the secure server and token endpoint. Therefore, in most cases calling this method is not necessary. However, if the location of your server or token endpoint is not standard, use this method to register the location.
|
|
348
352
|
* @since 5.0
|
|
349
353
|
* @example
|
|
350
|
-
* const [ServerInfo,
|
|
354
|
+
* const [ServerInfo, identityManager] = await $arcgis.import(["@arcgis/core/identity/ServerInfo.js", "@arcgis/core/identity/IdentityManager.js"]);
|
|
351
355
|
* let serverInfo = new ServerInfo();
|
|
352
356
|
* serverInfo.server = "https://sampleserver6.arcgisonline.com";
|
|
353
357
|
* serverInfo.tokenServiceUrl = "https://sampleserver6.arcgisonline.com/arcgis/tokens/generateToken";
|
|
354
358
|
* serverInfo.hasServer = true;
|
|
355
|
-
*
|
|
359
|
+
* identityManager.registerServers([serverInfo]);
|
|
356
360
|
*/
|
|
357
361
|
registerServers(serverInfos: ServerInfo[]): void;
|
|
358
362
|
/**
|
|
@@ -378,8 +382,8 @@ export abstract class IdentityManagerBase extends Evented {
|
|
|
378
382
|
* properties.
|
|
379
383
|
* @since 5.0
|
|
380
384
|
* @example
|
|
381
|
-
* const
|
|
382
|
-
*
|
|
385
|
+
* const identityManager = await $arcgis.import("@arcgis/core/identity/IdentityManager.js");
|
|
386
|
+
* identityManager.setOAuthRedirectionHandler(function(info)
|
|
383
387
|
* {
|
|
384
388
|
* // Execute custom logic then perform redirect
|
|
385
389
|
* window.location = info.authorizeUrl + "?" + new URLSearchParams(info.authorizeParams).toString();
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.
|
|
2
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.130",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{property as
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../core/Accessor.js";import{property as r,subclass as i}from"../../core/accessorSupport/decorators.js";import{getEffectiveEditingEnabled as s,getEffectiveLayerCapabilities as a}from"./layerUtils.js";let p=class extends t{constructor(e){super(e),this.layer=null}get attachments(){return{enabled:this._effectiveEnabled&&!!this._effectiveCapabilities?.data.supportsAttachment}}get create(){const{_effectiveCapabilities:e,layer:t}=this,r=this._createEnabled,i=r,s=t.capabilities?.operations.supportsAdd,a=!!e?.operations.supportsAdd;return{attachments:{enabled:r&&this.attachments.enabled},attributes:r,enabled:r,geometry:i,reliesOnOwnerAdminPrivileges:!s&&a}}get delete(){const{_effectiveCapabilities:e,layer:t}=this,r=t.capabilities?.operations.supportsDelete,i=!!e?.operations.supportsDelete;return{enabled:this._effectiveEnabled&&!!e?.operations.supportsDelete,reliesOnOwnerAdminPrivileges:!r&&i}}get reliesOnOwnerAdminPrivileges(){return this._effectiveEnabled&&!this.layer.editingEnabled||this.create.reliesOnOwnerAdminPrivileges||this.update.reliesOnOwnerAdminPrivileges||this.delete.reliesOnOwnerAdminPrivileges}get supportedCurveTypes(){const e=this._effectiveCapabilities;return e&&"supportedCurveTypes"in e.data?e.data.supportedCurveTypes:[]}get supportsTrueCurve(){const e=this._effectiveCapabilities;return!!(e&&"supportsTrueCurve"in e.data&&e.data.supportsTrueCurve)}get supportsTrueCurveUpdate(){const e=this._effectiveCapabilities;return!!(e&&"supportsTrueCurveUpdate"in e.editing&&e.editing.supportsTrueCurveUpdate)}get update(){const{_effectiveCapabilities:e,layer:t}=this,r=this._updateEnabled,i=!(!r||!e?.editing.supportsGeometryUpdate),s=t.capabilities?.operations.supportsUpdate,a=!!e?.operations.supportsUpdate,p=this.attachments.enabled,n=p&&this._canCreateOrUpdate;return{attachments:{enabled:p,create:n,update:n},attributes:r,enabled:r,geometry:i,reliesOnOwnerAdminPrivileges:!s&&a}}get _createEnabled(){return this._effectiveEnabled&&!!this._effectiveCapabilities?.operations.supportsAdd}get _updateEnabled(){return this._effectiveEnabled&&!!this._effectiveCapabilities?.operations.supportsUpdate}get _canCreateOrUpdate(){return!(!this._createEnabled&&!this._updateEnabled)}get _effectiveEnabled(){return s(this.layer)}get _effectiveCapabilities(){return a(this.layer)}};e([r()],p.prototype,"attachments",null),e([r()],p.prototype,"create",null),e([r()],p.prototype,"delete",null),e([r()],p.prototype,"layer",void 0),e([r()],p.prototype,"reliesOnOwnerAdminPrivileges",null),e([r()],p.prototype,"supportedCurveTypes",null),e([r()],p.prototype,"supportsTrueCurve",null),e([r()],p.prototype,"supportsTrueCurveUpdate",null),e([r()],p.prototype,"update",null),e([r()],p.prototype,"_createEnabled",null),e([r()],p.prototype,"_updateEnabled",null),e([r()],p.prototype,"_canCreateOrUpdate",null),e([r()],p.prototype,"_effectiveEnabled",null),e([r()],p.prototype,"_effectiveCapabilities",null),p=e([i("esri.layers.support.EditingCapabilities")],p);const n=p;export{n as default};
|