@arcgis/common-components 6.0.0-next.4 → 6.0.0-next.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{B33S3YBM.js → 24FE5GMT.js} +1 -1
- package/dist/cdn/2XTXXTEZ.js +2 -0
- package/dist/cdn/3QTMLOOM.js +2 -0
- package/dist/cdn/4X2SOHYB.js +2 -0
- package/dist/cdn/{OTWADB4M.js → 4ZVHN3V7.js} +1 -1
- package/dist/cdn/55VDXBLV.js +2 -0
- package/dist/cdn/5YQK5TCH.js +2 -0
- package/dist/cdn/{EB5MDEWF.js → 7S4ZZPSA.js} +1 -1
- package/dist/cdn/7VGSZDT7.js +2 -0
- package/dist/cdn/ABDFJWQO.js +2 -0
- package/dist/cdn/BAMK6STW.js +2 -0
- package/dist/cdn/CC74AHNF.js +2 -0
- package/dist/cdn/CCJ7MF3B.js +2 -0
- package/dist/cdn/{TO3YFXVJ.js → EYOJNGUG.js} +1 -1
- package/dist/cdn/{MFGUTQRR.js → F5IBLVYU.js} +1 -1
- package/dist/cdn/HMGFS4YI.js +2 -0
- package/dist/cdn/HYR5WUUX.js +2 -0
- package/dist/cdn/JAMYEW7N.js +2 -0
- package/dist/cdn/JCWKK6FB.js +2 -0
- package/dist/cdn/LIFJOO55.js +2 -0
- package/dist/cdn/{LNXO5YIS.js → LPKRIISW.js} +1 -1
- package/dist/cdn/LRP7XW5X.js +2 -0
- package/dist/cdn/{KDCSDIUQ.js → LZPZYGFW.js} +1 -1
- package/dist/cdn/{JTQN5KMG.js → MWQVR7SB.js} +1 -1
- package/dist/cdn/N5YNSPMD.js +2 -0
- package/dist/cdn/NEJQBOXB.js +8207 -0
- package/dist/cdn/NSTQTWS5.js +2 -0
- package/dist/cdn/ONYZMGVN.js +2 -0
- package/dist/cdn/OQRMI3K5.js +2 -0
- package/dist/cdn/{34AP2EEB.js → OVW45JGX.js} +1 -1
- package/dist/cdn/Q73UFMJY.js +4 -0
- package/dist/cdn/{BZFAYVKR.js → RBTFN5SR.js} +1 -1
- package/dist/cdn/RU4PILTH.js +2 -0
- package/dist/cdn/RU722XDV.js +2 -0
- package/dist/cdn/S2EORL4N.js +2 -0
- package/dist/cdn/S3GK6UB7.js +2 -0
- package/dist/cdn/T7LZIFNY.js +2 -0
- package/dist/cdn/TZBDDGN3.js +2 -0
- package/dist/cdn/UOXUUCE7.js +3 -0
- package/dist/cdn/VLVINHT3.js +2 -0
- package/dist/cdn/WDQV5Y4K.js +2 -0
- package/dist/cdn/{OMROUY3L.js → X44CHGA6.js} +1 -1
- package/dist/cdn/XMMFL5H3.js +2 -0
- package/dist/cdn/{IECXEZNI.js → Y72KV72H.js} +1 -1
- package/dist/cdn/{D4UHHQ35.js → YOPZGJMF.js} +1 -1
- package/dist/cdn/ZJMMAZFG.js +2 -0
- package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/sharedCacheDirective.js +74 -0
- package/dist/chunks/utils.js +75 -37
- package/dist/chunks/utils2.js +9 -14
- package/dist/chunks/well-known-sizes-controller.js +42 -0
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +0 -9
- package/dist/components/arcgis-ckeditor5/customElement.js +1336 -1339
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +0 -6
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +14 -17
- package/dist/components/arcgis-color-input/customElement.d.ts +0 -20
- package/dist/components/arcgis-color-input/customElement.js +33 -33
- package/dist/components/arcgis-color-input/index.js +2 -1
- package/dist/components/arcgis-field-info/customElement.d.ts +0 -3
- package/dist/components/arcgis-field-info/customElement.js +41 -41
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +0 -28
- package/dist/components/arcgis-field-pick-list/customElement.js +114 -127
- package/dist/components/arcgis-field-pick-list/index.js +1 -1
- package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
- package/dist/components/arcgis-html-content/customElement.js +71 -0
- package/dist/components/arcgis-html-content/index.d.ts +1 -0
- package/dist/components/arcgis-html-content/index.js +1 -0
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
- package/dist/components/arcgis-layer-replace/customElement.js +376 -0
- package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
- package/dist/components/arcgis-layer-replace/index.js +7 -0
- package/dist/components/arcgis-slider/customElement.js +546 -451
- package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
- package/dist/components/arcgis-slider-field/customElement.js +45 -39
- package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
- package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
- package/dist/components/arcgis-slider-input/customElement.d.ts +0 -3
- package/dist/components/arcgis-slider-input/customElement.js +13 -13
- package/dist/components/arcgis-ticks/customElement.js +8 -8
- package/dist/components/arcgis-toolbar/customElement.d.ts +25 -2
- package/dist/components/arcgis-toolbar/customElement.js +55 -46
- package/dist/components/arcgis-toolbar/types.d.ts +21 -1
- package/dist/components/arcgis-toolbar-action/customElement.js +17 -18
- package/dist/components/arcgis-toolbar-group/customElement.js +20 -17
- package/dist/components/arcgis-toolbar-item/customElement.d.ts +2 -2
- package/dist/components/arcgis-toolbar-item/customElement.js +14 -14
- package/dist/components/arcgis-toolbar-more-button/customElement.js +28 -26
- package/dist/components/arcgis-toolbar-split-button/customElement.js +34 -34
- package/dist/components/arcgis-toolbar-stack/customElement.d.ts +9 -2
- package/dist/components/arcgis-toolbar-stack/customElement.js +63 -125
- package/dist/components/arcgis-unique-values-list/customElement.js +11 -11
- package/dist/components/arcgis-unique-values-list/index.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +22 -26
- package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
- package/dist/components/arcgis-value-picker-label/customElement.js +5 -5
- package/dist/components/arcgis-value-picker-slider/customElement.d.ts +12 -19
- package/dist/components/arcgis-value-picker-slider/customElement.js +17 -17
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +15 -20
- package/dist/index.js +8 -5
- package/dist/loader.js +10 -8
- package/dist/types/lumina.d.ts +17 -19
- package/dist/types/preact.d.ts +19 -19
- package/dist/types/react.d.ts +21 -19
- package/dist/types/stencil.d.ts +17 -19
- package/dist/utils/sharedCacheDirective.d.ts +68 -0
- package/dist/utils/types.d.ts +0 -12
- package/package.json +7 -7
- package/dist/cdn/32MHBJSZ.js +0 -2
- package/dist/cdn/3AFEXHZ5.js +0 -2
- package/dist/cdn/5EA7SGHX.js +0 -2
- package/dist/cdn/5XRYXPOX.js +0 -2
- package/dist/cdn/735FTIBP.js +0 -2
- package/dist/cdn/ATLXGXTH.js +0 -2
- package/dist/cdn/BCN6LPOG.js +0 -4
- package/dist/cdn/CKGWDI7B.js +0 -2
- package/dist/cdn/DPJGC3YQ.js +0 -2
- package/dist/cdn/DR2THZQU.js +0 -8208
- package/dist/cdn/EM4OQXFS.js +0 -2
- package/dist/cdn/GDRW3MIZ.js +0 -2
- package/dist/cdn/HJ3EJZFF.js +0 -2
- package/dist/cdn/HYFFUYAU.js +0 -2
- package/dist/cdn/LLATF73T.js +0 -2
- package/dist/cdn/M2J3GPM4.js +0 -2
- package/dist/cdn/M3SFEFPX.js +0 -2
- package/dist/cdn/OIGA7XBZ.js +0 -2
- package/dist/cdn/QCUF7B3I.js +0 -2
- package/dist/cdn/S4XOD4YS.js +0 -2
- package/dist/cdn/TXQKK4DJ.js +0 -2
- package/dist/cdn/UIBTY5FF.js +0 -2
- package/dist/cdn/X6DNIKWY.js +0 -2
- package/dist/cdn/XUPA27AW.js +0 -2
- package/dist/cdn/XX2ZCFWI.js +0 -2
- package/dist/cdn/YEFEVEP6.js +0 -2
- package/dist/cdn/ZCVP2N2O.js +0 -2
- package/dist/cdn/ZGYD3GAS.js +0 -2
- package/dist/chunks/toolbar.js +0 -9
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as h}from"./SANPZYEG.js";import"./5KBPWYPL.js";import{a as d}from"./EYOJNGUG.js";import"./T7LZIFNY.js";import"./XMMFL5H3.js";import{J as u,K as p,L as v,S as c,h as m,j as g,t as r}from"./Q73UFMJY.js";var y=m`:host{display:block;width:100%;height:100%}`,b="double",o=class extends v{constructor(){super(...arguments),this.#t=u(),this.#s=void 0,this.messages=d({}),this._strategy=h(b),this.disabled=!1,this.fieldType=b,this.fillPlacement="start",this.layout="horizontal",this.max="",this.min="",this.mirrored=!1,this.popoverLabel="",this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.showRangeLabels=!1,this.value="",this.valueLabelsEditingEnabled=!1,this.valueLabelsDisplay="always",this.valueLabelsPlacement="start",this.arcgisActiveValueChange=r({cancelable:!1}),this.arcgisChange=r({cancelable:!1}),this.arcgisInput=r({cancelable:!1}),this.arcgisRangeChange=r({cancelable:!1})}static{this.properties={_strategy:16,activeValue:32,disabled:5,fieldType:1,fillPlacement:1,label:1,labelFormatter:0,layout:1,max:1,messageOverrides:0,min:1,mirrored:5,popoverLabel:1,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:1,showRangeLabels:5,value:1,values:1,valueLabelsEditingEnabled:5,valueLabelsDisplay:1,valueLabelsPlacement:1,valueAsNumbers:32,valueAsDateOnly:32,valueAsTimeOnly:32,valueAsTimestampOffset:32,valueAsFieldType:32}}static{this.styles=y}#t;#s;get activeValue(){let e=this.#t.value?.activeValue;return typeof e=="number"?this._strategy.serialize(e):e}get values(){return this.value}set values(e){this.value=e}get valueAsNumbers(){return this.#e(this.value).map(e=>e??NaN)}get valueAsDateOnly(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toDateOnly(e))}get valueAsTimeOnly(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toTimeOnly(e))}get valueAsTimestampOffset(){return this.#e(this.value).map(e=>e===void 0?null:this._strategy.toTimestampOffset(e))}get valueAsFieldType(){return this.#e(this.value).map(e=>e===void 0?NaN:this._strategy.toFieldType(e))}willUpdate(e){super.willUpdate(e),e.has("fieldType")&&(this._strategy=h(this.fieldType)),(e.has("messages")||e.has("fieldType")||e.has("labelFormatter"))&&(this.#s=this.#m(this.messages._lang)),(e.has("value")||e.has("min")||e.has("max")||e.has("fieldType"))&&this.#u()}#r(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisInput.emit()}#n(e){e.stopPropagation(),this.#a(e.currentTarget.values),this.arcgisChange.emit()}#h(e){e.stopPropagation(),this.arcgisActiveValueChange.emit()}#o(e){e.stopPropagation();let t=e.currentTarget;this.min=this._strategy.serialize(t.min),this.max=this._strategy.serialize(t.max),this.#a(t.values),this.arcgisRangeChange.emit()}#m(e){return(t,a,s)=>{let i=l=>this._strategy.format(e,l,a,s)??s(l);return this.labelFormatter?.(t,a,i)??i(t)}}#a(e){this.value=e.map(t=>this._strategy.serialize(t)).join(",")}#e(e){return e.split(",").map(t=>t.trim()).filter(t=>t.length>0).map(t=>this._strategy.parse(t))}#i(e){return this.#e(e).filter(t=>Number.isFinite(t))}#l(e){let t=this._strategy,a=t.parse(this.min),s=t.parse(this.max),i=Number.isFinite(a)?a:void 0,l=Number.isFinite(s)?s:void 0;i!=null&&l!=null&&i>=l&&(i=void 0,l=void 0);let n=t.resolveRange(e,i,l);return n.min>=n.max?t.resolveRange(e,void 0,void 0):n}#g(e,t,a){return e.map(s=>Math.min(a,Math.max(t,s))).sort((s,i)=>s-i)}#u(){let e=this.#i(this.value),t=this.#l(e),a=this._strategy.serialize(t.min),s=this._strategy.serialize(t.max);a!==this.min&&(this.min=a),s!==this.max&&(this.max=s);let i=this.#g(e,t.min,t.max).map(l=>this._strategy.serialize(l)).join(",");i!==this.value&&(this.value=i)}render(){let e=this.#i(this.value),t=this.#l(e),a=this._strategy.editable,s=this._strategy.steps;return g`<arcgis-slider .ariaLabel=${this.label} .disabled=${this.disabled} .labelFormatter=${this.#s} .layout=${this.layout} .max=${t.max} .min=${t.min} .mirrored=${this.mirrored} .popoverLabel=${this.popoverLabel} .precision=${this._strategy.precision} .fillPlacement=${this.fillPlacement} .steps=${s} .rangeLabelsEditingEnabled=${a&&this.rangeLabelsEditingEnabled} .rangeLabelsPlacement=${this.rangeLabelsPlacement} .showRangeLabels=${this.showRangeLabels} .valueLabelsDisplay=${this.valueLabelsDisplay} .valueLabelsEditingEnabled=${a&&this.valueLabelsEditingEnabled} .valueLabelsPlacement=${this.valueLabelsPlacement} .values=${e} @arcgisChange=${this.#n} @arcgisInput=${this.#r} @arcgisActiveValueChange=${this.#h} @arcgisRangeChange=${this.#o} ${p(this.#t)}><slot name=content-start slot=content-start></slot><slot name=content-end slot=content-end></slot><slot name=popover slot=popover></slot></arcgis-slider>`}};c("arcgis-slider-field",o);export{o as ArcgisSliderField};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as b}from"./3QTMLOOM.js";import{a as g}from"./7S4ZZPSA.js";import{K as h,L as m,M as p,P as s,S as u,h as r,j as o,t as l}from"./Q73UFMJY.js";var v=r`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`,d=class extends m{constructor(){super(...arguments),this.#e=t=>{t!==this._element&&(this.#t?.disconnect(),this._element=t,this._hydratedElement=void 0,this.isConnected&&this.arcgisRenderedActionChanged.emit({element:t}),t&&(this._measureAction(),this.#t??=new ResizeObserver(e=>{!this.textEnabled||!this._element||this._measureAction(e)}),this.#t.observe(t),t.componentOnReady().then(()=>{!this.isConnected||this._element!==t||(this._hydratedElement=t,t.shadowRoot?.adoptedStyleSheets.push(v.styleSheet))})))},this._measuredWidth=0,this._measuredHeight=0,this.active=!1,this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.indicator=!1,this.textEnabled=!1,this.appearance="transparent",this.iconFlipRtl=!1,this.arcgisRenderedActionChanged=l(),this.arcgisToolbarItemSelected=l()}static{this.properties={_element:16,_hydratedElement:16,_measuredWidth:16,_measuredHeight:16,icon:1,active:7,tooltipText:1,labelText:1,disabled:5,loading:5,indicator:5,textEnabled:5,kind:3,appearance:3,iconFlipRtl:5,actionElement:32}}#t;#e;get actionElement(){return this._element}measure({layout:t,scale:e,sizes:i}){let a=i.actionPadding[e],n=i.action[t][e],c=t==="horizontal"?this._measuredWidth:this._measuredHeight;return[Math.max(n,c)+a]}proxiedRender(t){let{tooltipAppearance:e,scale:i}=t,a=this.tooltipText||this.labelText,n=this._hydratedElement,c=e!=="native"&&!!this.tooltipText&&n,_=e==="calcite-dark"?"calcite-mode-dark":void 0,$=b(t);return o`${g(this,o`<calcite-action .active=${this.active} data-appearance=${this.appearance??s} data-kind=${this.kind??s} data-layout=${t.layout??s} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${a} .loading=${this.loading} @click=${x=>this._handleActionClick(x)} .scale=${i} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e==="native"?a:void 0)??s} ${h(this.#e)}></calcite-action>`)}${c?o`<calcite-tooltip class=${p(_)} overlay-positioning=fixed .placement=${$} .referenceElement=${n} .scale=${i}><span>${a}</span></calcite-tooltip>`:void 0}`}disconnectedCallback(){this.#t?.disconnect(),super.disconnectedCallback()}_handleActionClick(t){this.arcgisToolbarItemSelected?.emit({element:t.currentTarget})}_measureAction(t){let e=t?.at(0)?.contentRect??this._element?.getBoundingClientRect();e&&(this._measuredWidth=Math.round(e.width),this._measuredHeight=Math.round(e.height))}};u("arcgis-toolbar-action",d);export{d as ArcgisToolbarAction};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as F}from"./5KBPWYPL.js";import{a as C}from"./EYOJNGUG.js";import"./T7LZIFNY.js";import"./XMMFL5H3.js";import{L as _,M as o,N as k,P as g,S as M,h as w,j as h,t as $}from"./Q73UFMJY.js";var l={container:"container",ticksContainer:"ticks-container",labelsContainer:"labels-container",tick:"tick",tickMin:"tick--min",tickMax:"tick--max",tickLabel:"tick-label",tickLabelFocused:"tick-label--focused",tickLabelText:"tick-label-text",baseline:"baseline"},D=w`:host{display:flex;--arcgis-internal-ticks-color: var(--calcite-color-text-2);--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--arcgis-internal-ticks-color);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}.tick-label-text{display:inline-block;line-height:1}.tick-label--focused .tick-label-text{outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label-text:hover{text-decoration:underline}.tick:focus{background-color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}`,b=class extends _{constructor(){super(...arguments),this._messages=C({name:null}),this.#t=t=>F(this._messages._lang,this._formatOptions).format(t),this._activeTick=null,this._formatOptions={style:"decimal",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:2},this.autoDestroyDisabled=!1,this.interactive=!1,this.interpolationExponent=0,this.labelPlacement="end",this.layout="horizontal",this.max=100,this.min=0,this.mirrored=!1,this.mode="count",this.showLabels=!1,this.showBaseline=!1,this.values=[],this.arcgisTickClick=$({cancelable:!1})}static{this.properties={_activeTick:16,_formatOptions:16,autoDestroyDisabled:5,interactive:7,interpolationExponent:9,labelFormatter:0,labelPlacement:3,layout:3,max:9,min:9,mirrored:7,mode:1,showLabels:5,showBaseline:5,values:[9,{converter:{fromAttribute(t){if(t.includes(","))return t.split(",").filter(e=>e.trim()!=="").map(parseFloat).filter(e=>Number.isFinite(e));{let e=parseFloat(t);return Number.isFinite(e)?[e]:[]}}}}]}}static{this.styles=D}#t;async destroy(){await this.manager.destroy()}updated(){let t=this.renderRoot.querySelector(`.${l.labelsContainer}`);if(t){t.style.removeProperty("--labels-container-width"),t.style.removeProperty("--labels-container-height");let e=0,i=0;for(let a of this.renderRoot.querySelectorAll(`.${l.tickLabel}`)){let r=a.getBoundingClientRect();e=Math.max(e,r.width),i=Math.max(i,r.height)}e=Math.ceil(e),i=Math.ceil(i),e&&i&&(t.style.setProperty("--labels-container-width",`${e}px`),t.style.setProperty("--labels-container-height",`${i}px`))}}_handleBlur(){this._activeTick=null}_handleClick(t){if(!this.interactive)return;let e=t.currentTarget.dataset.value;e&&this.arcgisTickClick.emit({value:Number(e)})}_handleFocus(t){this._activeTick=t.currentTarget.dataset.value??null}_handleKeyDown(t){t.key==="Enter"&&this._handleClick(t)}_handleMouseDown(t){this.interactive&&t.preventDefault()}_internalLabelFormatter(t){let e=this.labelFormatter;return e?e(t,this.#t)??this.#t(t):this.#t(t)}render(){return h`<div class=${o(l.container)} touch-action=none>${this._renderContent()}${this._renderBaseline()}</div>`}_renderContent(){let{interpolationExponent:t,max:e,min:i,mode:a,values:r,layout:c,mirrored:s,showLabels:z,interactive:m}=this,p=[],x=[];for(let[f,d]of B(a,i,e,t,r)){let y={[c==="horizontal"?s?"right":"left":s?"top":"bottom"]:`${f}%`},T={[l.tick]:!0,[l.tickMin]:f===0,[l.tickMax]:f===100};if(p.push(h`<div class=${o(T)} .role=${m?"button":void 0} .ariaLabel=${m?this._internalLabelFormatter(d):void 0} style=${k(y)} data-value=${d??g} .tabIndex=${m?0:-1} @blur=${this._handleBlur} @click=${this._handleClick} @focus=${this._handleFocus} @keydown=${this._handleKeyDown} @mousedown=${this._handleMouseDown}></div>`),z){let A={[l.tickLabel]:!0,[l.tickLabelFocused]:this._activeTick===String(d)};x.push(h`<div class=${o(A)} style=${k(y)} data-value=${d??g} @click=${this._handleClick}><span class=${o(l.tickLabelText)}>${this._internalLabelFormatter(d)}</span></div>`)}}return[h`<div class=${o(l.labelsContainer)}>${x}</div>`,h`<div class=${o(l.ticksContainer)}>${p}</div>`]}_renderBaseline(){let{showBaseline:t,layout:e}=this;return t&&h`<div class=${o(l.baseline)} style=${k({[e==="horizontal"?"width":"height"]:"100%",[e==="horizontal"?"height":"width"]:"0.125rem"})}></div>`||""}};function*B(n,t,e,i,a){switch(n){case"value":{let r=Array.isArray(a)?a:[a];for(let c of r){let s=P(t,e,c,i)*100;s>=0&&s<=100&&(yield[s,c])}break}case"percent":{if(Array.isArray(a))for(let r of a)r>=0&&r<=100&&(yield[r,u(t,e,r/100,i)]);else if(a>0)for(let r=0;r<=100;r+=a)yield[r,u(t,e,r/100,i)];break}case"count":{let r=Array.isArray(a)?a[0]:a;if(r<=1)yield[50,u(t,e,.5,i)];else for(let c=0;c<r;c++){let s=c*100/(r-1);yield[s,u(t,e,s/100,i)]}break}}}function v(n,t,e){return e<n?n:e>t?t:e}function L(n,t,e){return n+(t-n)*e}function P(n,t,e,i=0){let a=(e-n)/(t-n);if(a=v(0,1,a),Math.abs(i)<1e-9)return a;let r=1+Math.expm1(i)*a;return a=Math.log(r)/i,v(0,1,a)}function u(n,t,e,i=0){if(e=v(0,1,e),Math.abs(i)<1e-9)return L(n,t,e);let a=Math.expm1(i*e)/Math.expm1(i);return L(n,t,a)}M("arcgis-ticks",b);export{b as ArcgisTicks};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as f}from"./UOXUUCE7.js";import{A as m,B as p,L as h,S as u,h as g,l as c,m as s,z as d}from"./Q73UFMJY.js";var r=class extends p{constructor(t){if(super(t),this.it=s,t.type!==d.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===s||t==null)return this._t=void 0,this.it=t;if(t===c)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};r.directiveName="unsafeHTML",r.resultType=1;var b=m(r);var x=g`:host{--arcgis-internal-content-image-spacing: 1.5em;--arcgis-internal-content-inline-image-spacing: calc(var(--arcgis-internal-content-image-spacing) / 2);width:100%;*{overflow-wrap:anywhere}}ol,ul{margin:1.12em 0;padding-block:0;padding-inline-start:var(--calcite-spacing-10)}ol li,ul li{border:none;height:initial}h1,h2,h3,h4,h5,h6,p{margin:0}a{color:var(--calcite-color-text-link);text-decoration:none;&:hover{text-decoration:underline}}video,img{max-width:100%;height:auto}table .ck-table-resized{table-layout:fixed}.table table{overflow:hidden}.table td,.table th{position:relative}.table{margin:.9em auto;display:table}.table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double hsl(0,0%,70%)}.table table td,.table table th{min-width:2em;padding:.4em;border:1px solid hsl(0,0%,75%)}.table th{font-weight:700;background:#0000000d}.table>figcaption{display:table-caption;caption-side:top;word-break:break-word;text-align:center;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}ol{list-style-type:decimal}ol ol{list-style-type:lower-latin}ol ol ol{list-style-type:lower-roman}ol ol ol ol{list-style-type:upper-latin}ol ol ol ol ol{list-style-type:upper-roman}ul{list-style-type:disc}ul ul{list-style-type:circle}ul ul ul,ul ul ul ul{list-style-type:square}.image{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.image img{display:block;margin:0 auto;max-width:100%;min-width:100%;height:auto}.image-inline{display:inline-flex;max-width:100%;align-items:flex-start}.image-inline picture{display:flex}.image-inline picture,.image-inline img{flex-grow:1;flex-shrink:1;max-width:100%}.image_resized{height:auto}.image_resized{max-width:100%;display:block;box-sizing:border-box}.image_resized img{width:100%}.image_resized>figcaption{display:block}.image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}.image-style-block-align-left,.image-style-block-align-right{max-width:calc(100% - var(--arcgis-user-content-image-style-spacing))}.image-style-align-left,.image-style-align-right{clear:none}.image-style-align-left{float:left;margin-right:var(--arcgis-user-content-image-style-spacing)}.image-style-align-center{margin-left:auto;margin-right:auto}.image-style-align-right{float:right;margin-left:var(--arcgis-user-content-image-style-spacing)}.image-style-block-align-right{margin-right:0;margin-left:auto}.image-style-block-align-left{margin-left:0;margin-right:auto}p+.image-style-align-left,p+.image-style-align-right{margin-top:0}.image-inline.image-style-align-left,.image-inline.image-style-align-right{margin-top:var(--arcgis-user-content-inline-image-style-spacing);margin-bottom:var(--arcgis-user-content-inline-image-style-spacing)}.image-inline.image-style-align-left{margin-right:var(--arcgis-user-content-inline-image-style-spacing)}.image-inline.image-style-align-right{margin-left:var(--arcgis-user-content-inline-image-style-spacing)}blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:solid 5px hsl(0,0%,80%)}[dir=rtl] blockquote{border-left:0;border-right:solid 5px hsl(0,0%,80%)}code{background-color:#c7c7c74d;padding:.15em;border-radius:2px}hr{margin:15px 0;height:4px;background:#dedede;border:0}pre{padding:1em;color:#353535;background:#c7c7c74d;border:1px solid hsl(0,0%,77%);border-radius:2px;text-align:left;direction:ltr;tab-size:4;white-space:pre-wrap;font-style:normal;min-width:200px}pre code{background:unset;padding:0;border-radius:0}`,v=/^(?:table|image|image-inline|image_resized|image-style(?:-block)?-align-(?:left|right)|image-style-align-center)$/u;function y(a){return a.split(" ").every(t=>v.test(t))}function k(a){return a.startsWith("//")}var o=class extends h{constructor(){super(...arguments),this.sanitizer=this.#t(),this.content=""}static{this.properties={sanitizer:16,content:1,sanitizerOptions:0}}static{this.styles=x}willUpdate(t){t.has("sanitizerOptions")&&(this.sanitizer=this.#t())}#t(){let t={allowedProtocols:[],customOnTagAttr:this.sanitizerOptions?.onTagAttr},e=new f({stripIgnoreTag:!0,stripIgnoreTagBody:["script"],whiteList:{},...this.sanitizerOptions??{},onTagAttr:this.onTagAttr.bind(t)},!0);return t.allowedProtocols=e.allowedProtocols??[],e}onTagAttr(t,e,i,n){if(e.startsWith("on"))return"";let l=`${e}="${i}"`;switch(i=i.trim().toLowerCase(),t){case"img":return e==="class"&&y(i)?l:this.customOnTagAttr?.(t,e,i,n);case"figure":return e==="class"&&y(i)?l:this.customOnTagAttr?.(t,e,i,n);case"video":case"audio":case"source":case"iframe":{if(i==="/"||i==="#"||i.startsWith("#"))return e;let w=i.substring(0,i.indexOf(":"));return k(i)||this.allowedProtocols.includes(w)?l:e}default:return this.customOnTagAttr?.(t,e,i,n)}}render(){return b(this.sanitizer.sanitize(this.content))}};u("arcgis-html-content",o);export{o as ArcgisHtmlContent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{b as m,e as g}from"./XMMFL5H3.js";import{a as w,b as A,c as N,d as v,e as b,f as $,g as _,o as f,r as E,s as j,u as y}from"./Q73UFMJY.js";var D=t=>(...s)=>{let e=b(),o=new t(...s),r=o.exports;v(e.at(-1));let n=o.component.manager;n.W(o,r),o.watchExports(n.W.bind(n,o)),$(o);let a=[o.component,...e].reverse();return E(a,i=>i===void 0?void 0:F(o,i,r),r)},F=(t,{host:s,key:e,isReactive:o},r)=>{let n=s,a=n[e]!==t.exports,i=n[e]!==r,c=r!==t.exports;if(a&&!i&&c&&(n[e]=t.exports),s===t.component){if(o){let l=t.component.manager;i&&l.W(t,n[e]),t.onUpdate(h=>{if(h.has(e)){let O=n[e];O!==t.exports&&l.W(t,O)}})}t.O=o?void 0:e}let d=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{n[e]!==t.exports&&(d?_(()=>{n[e]=t.exports}):n[e]=t.exports)})};var W="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),K=new Set(W),u="en",q={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},k=async(t,s,e="")=>{let o=`${s}/${e}`,r=`${o}${t}.json`;return V[r]??=z(t,o),await V[r]},V={},z=async(t,s)=>{let e=`${s}${t}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:o}}),{}}return t===u?{}:await z(u,s)},x=t=>{let[s,e]=t.split("-"),o=s.toLowerCase(),r=o;return e&&(r=`${o}-${e.toUpperCase()}`),r=q[r]??r,K.has(r)?r:e?x(o):u};var C=t=>{let s=g(t,"lang",globalThis.navigator?.language||u);return{lang:s,t9nLocale:x(s)}},S=(t,s,e,o)=>{let r,n=()=>R(t,s(),o).then(a=>{(r?.lang!==a.lang||r.t9nLocale!==a.t9nLocale||r.t9nStrings!==a.t9nStrings)&&e(a),r=a}).catch(a=>{f("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),m(t,["lang"],n)},R=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:r}=C(t),n=`${s}/${e}/t9n`,i=e===null?{}:await k(r,n,"messages.");return{lang:o,t9nLocale:r,t9nStrings:i}};var M=t=>B(void 0,t);var L=class extends y{constructor(s,e){super(s);let o=this.exports;try{A(this.component);let r=e(this.component,this),n=this.exports!==o;if(w(r)){n||this.setProvisionalExports(r);let a=r.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r)}}catchUpLifecycle(){}},B=D(L),dt=(t,s)=>new P(t,s),P=class extends y{#t;#e;#o;constructor(s,e){super(),!!1&&(this.#e=s,this.#o=e,this.#t=new MutationObserver(o=>{o.forEach(r=>{s.includes(r.attributeName)&&e.call(this.component,this.component.el.getAttribute(r.attributeName),r.oldValue,r.attributeName)})}))}hostConnected(){this.#e.forEach(s=>{this.component.el.hasAttribute(s)&&this.#o.call(this.component,this.component.el.getAttribute(s),null,s)}),this.#t.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#e})}hostDisconnected(){this.#t.disconnect()}};var T="ltr",ut=()=>M((t,s)=>{s.exports=T,s.onLifecycle(()=>{let e=()=>{let o=g(t.el,"dir",T);s.exports=o==="rtl"?"rtl":"ltr"};return e(),m(t.el,["dir"],e)})}),ht=t=>(s={})=>M((e,o)=>{let r=C(e.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},a=e;o.onLifecycle(()=>S(e.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:p,lang:d})=>{let l={...p,_lang:d,_t9nLocale:c,_loading:!1};o.exports=l;let h=p.componentLabel;typeof h=="string"&&"label"in e&&e.label==null&&(e.label??=h),i(a.messageOverrides)},s.name));let i=c=>{let p=o.exports,d=p._original??p,l=U(d,c);c&&(l._original=d),o.exports=l};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),U=(t,s)=>{if(!s)return t;let e={...t};return Object.entries(s).forEach(([o,r])=>{t[o]!==void 0&&(typeof r=="object"?e[o]=U(t[o],r):e[o]=r??t[o])}),e},ft=t=>H,G="arcgisPropertyChange",H=(...t)=>{let s=N(),e=j(G,void 0,s),o=!0;return s.manager.onUpdated(r=>{if(o||!s.el.isConnected){o=!1;return}for(let n of t)r.has(n)&&e.emit({name:n})}),e};export{D as a,dt as b,ut as c,ht as d,ft as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as g}from"./LZPZYGFW.js";import{c as $}from"./4X2SOHYB.js";import{a as v}from"./3QTMLOOM.js";import"./T7LZIFNY.js";import"./XMMFL5H3.js";import{K as d,L as h,M as m,P as c,S as p,j as l,t as r}from"./Q73UFMJY.js";var s=class extends h{constructor(){super(...arguments),this._active=!1,this._elementReferenceController=new g(this),this.icon="question-mark",this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.iconFlipRtl=!1,this.arcgisItemSelected=r()}static{this.properties={icon:3,lastActivated:0,active:7,tooltipText:1,labelText:3,disabled:7,loading:7,iconFlipRtl:7,actionElement:32}}get active(){return this._active}set active(e){e!==this._active&&(this._active=e,e&&(this.lastActivated=new Date))}get actionElement(){return this._elementReferenceController.element}measure(e){return[$(e)]}proxiedRender(e,t,b){let a=e.tooltipAppearance,n=this._elementReferenceController.element,f=a!=="native"&&t==="collapsed-action",x=a==="native"&&t==="collapsed-action",u=a==="calcite-dark"?"calcite-mode-dark":void 0,_=v(e),i=this.tooltipText||this.labelText;return t==="dropdown-item"?l`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon??c} .iconFlipRtl=${this.iconFlipRtl?"both":void 0} .label=${i} @calciteDropdownItemSelect=${o=>this._handleDropdownItemClick(o)} .selected=${this.active||b}>${this.labelText}</calcite-dropdown-item>`:l`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${o=>this._handleActionClick(o)} .scale=${e.scale} .text=${this.labelText} .textEnabled=${t==="expanded-action"} title=${(x?i:void 0)??c} ${d(this._elementReferenceController.ref)}></calcite-action>${f&&n?l`<calcite-tooltip class=${m(u)} close-on-click overlay-positioning=fixed .placement=${_} .referenceElement=${n}><span>${i}</span></calcite-tooltip>`:void 0}`}_handleActionClick(e){this.isConnected&&(this.lastActivated=new Date,this.arcgisItemSelected?.emit({element:e.currentTarget}))}_handleDropdownItemClick(e){this.isConnected&&(this.lastActivated=new Date,this.arcgisItemSelected?.emit({element:e.currentTarget}))}};p("arcgis-toolbar-item",s);export{s as ArcgisToolbarItem};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
var P=function(){return P=Object.assign||function(r){for(var t,a=1,s=arguments.length;a<s;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},P.apply(this,arguments)},G={exports:{}},g={},W={exports:{}},x={};function M(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function ce(e,r,t){}function ge(e,r,t){}var pe=/javascript\s*\:/img;function de(e,r){return pe.test(r)?"":r}x.whiteList=M();x.getDefaultWhiteList=M;x.onAttr=ce;x.onIgnoreAttr=ge;x.safeAttrValue=de;var he={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},E=he;function ve(e,r){e=E.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,s=0,i=0,l="";function n(){if(!a){var u=E.trim(e.slice(s,i)),f=u.indexOf(":");if(f!==-1){var p=E.trim(u.slice(0,f)),d=E.trim(u.slice(f+1));if(p){var h=r(s,l.length,p,d,u);h&&(l+=h+"; ")}}}s=i+1}for(;i<t;i++){var o=e[i];if(o==="/"&&e[i+1]==="*"){var c=e.indexOf("*/",i+2);if(c===-1)break;i=c+1,s=i+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
|
|
3
|
+
`&&n()}return E.trim(l)}var me=ve,_=x,ye=me;function D(e){return e==null}function be(e){var r={};for(var t in e)r[t]=e[t];return r}function Z(e){e=be(e||{}),e.whiteList=e.whiteList||_.whiteList,e.onAttr=e.onAttr||_.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||_.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||_.safeAttrValue,this.options=e}Z.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onAttr,i=t.onIgnoreAttr,l=t.safeAttrValue,n=ye(e,function(o,c,u,f,p){var d=a[u],h=!1;if(d===!0?h=d:typeof d=="function"?h=d(f):d instanceof RegExp&&(h=d.test(f)),h!==!0&&(h=!1),f=l(u,f),!!f){var m={position:c,sourcePosition:o,source:p,isWhite:h};if(h){var v=s(u,f,m);return D(v)?u+":"+f:v}else{var v=i(u,f,m);if(!D(v))return v}}});return n};var we=Z;(function(e,r){var t=x,a=we;function s(l,n){var o=new a(n);return o.process(l)}r=e.exports=s,r.FilterCSS=a;for(var i in t)r[i]=t[i]})(W,W.exports);var $=W.exports,N={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},Ae=$.FilterCSS,xe=$.getDefaultWhiteList,F=N;function J(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var K=new Ae;function Se(e,r,t){}function Te(e,r,t){}function ke(e,r,t){}function Le(e,r,t){}function Y(e){return e.replace(Oe,"<").replace(_e,">")}function Ee(e,r,t,a){if(t=se(t),r==="href"||r==="src"){if(t=F.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(C.lastIndex=0,C.test(t))return""}else if(r==="style"){if(j.lastIndex=0,j.test(t)||(H.lastIndex=0,H.test(t)&&(C.lastIndex=0,C.test(t))))return"";a!==!1&&(a=a||K,t=a.process(t))}return t=ne(t),t}var Oe=/</g,_e=/>/g,Ce=/"/g,Ie=/"/g,Ve=/&#([a-zA-Z0-9]*);?/gim,Pe=/:?/gim,Fe=/&newline;?/gim,C=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,j=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,H=/u\s*r\s*l\s*\(.*/gi;function ee(e){return e.replace(Ce,""")}function te(e){return e.replace(Ie,'"')}function re(e){return e.replace(Ve,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function ae(e){return e.replace(Pe,":").replace(Fe," ")}function ie(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return F.trim(r)}function se(e){return e=te(e),e=re(e),e=ae(e),e=ie(e),e}function ne(e){return e=ee(e),e=Y(e),e}function Re(){return""}function ze(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:F.indexOf(e,l)!==-1}var s=[],i=!1;return{onIgnoreTag:function(l,n,o){if(a(l))if(o.isClosing){var c="[/removed]",u=o.position+c.length;return s.push([i!==!1?i:o.position,u]),i=!1,c}else return i||(i=o.position),"[removed]";else return r(l,n,o)},remove:function(l){var n="",o=0;return F.forEach(s,function(c){n+=l.slice(o,c[0]),o=c[1]}),n+=l.slice(o),n}}}function Ge(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var s=e.indexOf("-->",a);if(s===-1)break;t=s+3}return r}function We(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}g.whiteList=J();g.getDefaultWhiteList=J;g.onTag=Se;g.onIgnoreTag=Te;g.onTagAttr=ke;g.onIgnoreTagAttr=Le;g.safeAttrValue=Ee;g.escapeHtml=Y;g.escapeQuote=ee;g.unescapeQuote=te;g.escapeHtmlEntities=re;g.escapeDangerHtml5Entities=ae;g.clearNonPrintableCharacter=ie;g.friendlyAttrValue=se;g.escapeAttrValue=ne;g.onIgnoreTagStripAll=Re;g.StripTagBody=ze;g.stripCommentTag=Ge;g.stripBlankChar=We;g.cssFilter=K;g.getDefaultCSSWhiteList=xe;var R={},A=N;function $e(e){var r=A.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=A.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function Ne(e){return e.slice(0,2)==="</"}function Ue(e,r,t){var a="",s=0,i=!1,l=!1,n=0,o=e.length,c="",u="";e:for(n=0;n<o;n++){var f=e.charAt(n);if(i===!1){if(f==="<"){i=n;continue}}else if(l===!1){if(f==="<"){a+=t(e.slice(s,n)),i=n,s=n;continue}if(f===">"){a+=t(e.slice(s,i)),u=e.slice(i,n+1),c=$e(u),a+=r(i,a.length,c,u,Ne(u)),s=n+1,i=!1;continue}if(f==='"'||f==="'")for(var p=1,d=e.charAt(n-p);d.trim()===""||d==="=";){if(d==="="){l=f;continue e}d=e.charAt(n-++p)}}else if(f===l){l=!1;continue}}return s<e.length&&(a+=t(e.substr(s))),a}var Xe=/[^a-zA-Z0-9\\_:.-]/gim;function De(e,r){var t=0,a=0,s=[],i=!1,l=e.length;function n(p,d){if(p=A.trim(p),p=p.replace(Xe,"").toLowerCase(),!(p.length<1)){var h=r(p,d||"");h&&s.push(h)}}for(var o=0;o<l;o++){var c=e.charAt(o),u,f;if(i===!1&&c==="="){i=e.slice(t,o),t=o+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:He(e,o+1);continue}if(i!==!1&&o===a){if(f=e.indexOf(c,o+1),f===-1)break;u=A.trim(e.slice(a+1,f)),n(i,u),i=!1,o=f,t=o+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(f=je(e,o),f===-1){u=A.trim(e.slice(t,o)),n(u),i=!1,t=o+1;continue}else{o=f-1;continue}else if(f=Be(e,o-1),f===-1){u=A.trim(e.slice(t,o)),u=B(u),n(i,u),i=!1,t=o+1;continue}else continue}return t<e.length&&(i===!1?n(e.slice(t)):n(i,B(A.trim(e.slice(t))))),A.trim(s.join(" "))}function je(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function He(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function Be(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function qe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function B(e){return qe(e)?e.substr(1,e.length-2):e}R.parseTag=Ue;R.parseAttr=De;var Qe=$.FilterCSS,b=g,oe=R,Me=oe.parseTag,Ze=oe.parseAttr,V=N;function I(e){return e==null}function Je(e){var r=V.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=V.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=V.trim(e.slice(0,-1))),{html:e,closing:t}}function Ke(e){var r={};for(var t in e)r[t]=e[t];return r}function Ye(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function le(e){e=Ke(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=b.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Ye(e.whiteList||e.allowList):e.whiteList=b.whiteList,e.onTag=e.onTag||b.onTag,e.onTagAttr=e.onTagAttr||b.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||b.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||b.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||b.safeAttrValue,e.escapeHtml=e.escapeHtml||b.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Qe(e.css))}le.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,n=t.onIgnoreTagAttr,o=t.safeAttrValue,c=t.escapeHtml,u=r.cssFilter;t.stripBlankChar&&(e=b.stripBlankChar(e)),t.allowCommentTag||(e=b.stripCommentTag(e));var f=!1;t.stripIgnoreTagBody&&(f=b.StripTagBody(t.stripIgnoreTagBody,i),i=f.onIgnoreTag);var p=Me(e,function(d,h,m,v,fe){var O={sourcePosition:d,position:h,isClosing:fe,isWhite:Object.prototype.hasOwnProperty.call(a,m)},k=s(m,v,O);if(!I(k))return k;if(O.isWhite){if(O.isClosing)return"</"+m+">";var U=Je(v),ue=a[m],X=Ze(U.html,function(S,T){var z=V.indexOf(ue,S)!==-1,L=l(m,S,T,z);return I(L)?z?(T=o(m,S,T,u),T?S+'="'+T+'"':S):(L=n(m,S,T,z),I(L)?void 0:L):L});return v="<"+m,X&&(v+=" "+X),U.closing&&(v+=" /"),v+=">",v}else return k=i(m,v,O),I(k)?c(v):k},c);return f&&(p=f.remove(p)),p};var et=le;(function(e,r){var t=g,a=R,s=et;function i(n,o){var c=new s(o);return c.process(n)}r=e.exports=i,r.filterXSS=i,r.FilterXSS=s,(function(){for(var n in t)r[n]=t[n];for(var o in a)r[o]=a[o]})();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(G,G.exports);var w=G.exports,tt=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},rt=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y=["color","display","fill-opacity","font-family","font-size","font-style","font-weight","opacity","shape-rendering","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-rendering","transform","visibility"],at=["cx","cy","r"],it=["cx","cy","rx","ry"],st=["x1","x2","y1","y2"],q=["points"],nt=["rx","ry","x","y"],Q=["dx","dy","x","y"],ot=(function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],animate:[],animatetransform:[],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],circle:at.concat(y),clippath:[],code:["style"],dd:["style"],defs:[],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],ellipse:it.concat(y),em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],g:y.slice(),h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],image:[],img:["alt","border","height","src","style","width"],li:[],line:st.concat(y),lineargradient:[],main:["style"],mark:["style"],marker:[],mask:[],nav:["style"],ol:[],p:["style"],path:["d"].concat(y),pattern:[],polygon:q.concat(y),polyline:q.concat(y),pre:["style"],radialgradient:[],rect:nt.concat(y),section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],stop:["offset","stop-color","stop-opacity"],strong:[],sub:["style"],summary:["style"],sup:["style"],svg:["height","preserveaspectratio","viewbox","width","xmlns"].concat(y),switch:[],symbol:[],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],text:Q.concat(y),textpath:[],time:["style"],tspan:Q.concat(y),u:[],ul:[],use:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=P(P({},w.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0,"row-gap":!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope","clickmobile","com.salesforce.fieldservice"],this.arcgisFilterOptions={allowCommentTag:!0,onTagAttr:function(i,l,n){if(i==="svg"){if(l==="viewbox")return'viewBox="'.concat(w.escapeAttrValue(n),'"');if(l==="preserveaspectratio")return'preserveAspectRatio="'.concat(w.escapeAttrValue(n),'"')}if(rt.indexOf(l)>-1)return"".concat(l,'="').concat(w.escapeAttrValue(n),'"')},safeAttrValue:function(i,l,n,o){return i==="a"&&l==="href"||(i==="img"||i==="source")&&l==="src"?a.sanitizeUrl(n):w.safeAttrValue(i,l,n,o)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var s;r&&!t?s=r:r&&t?(s=Object.create(this.arcgisFilterOptions),s.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(i){if(i==="whiteList")s.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(i==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(n){return s.css.whiteList[n]=l[n]})}else s[i]=r[i]})):(s=Object.create(this.arcgisFilterOptions),s.whiteList=this.arcgisWhiteList,s.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=s,this._xssFilter=new w.FilterXSS(s)}return e.prototype.sanitize=function(r,t){switch(t===void 0&&(t={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,t);default:return t.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,t){var a=(t??{}).isProtocolRequired,s=a===void 0?!0:a,i=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",n=/^#/.test(r),o=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return l||n||o?w.escapeAttrValue(r):!i&&!s?w.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,s){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,s):w.safeAttrValue(r,t,a,s)},e.prototype.validate=function(r,t){t===void 0&&(t={});var a=this.sanitize(r,t);return{isValid:r===a,sanitized:a}},e.prototype.encodeHTML=function(r){var t=this;return String(r).replace(/[&<>"'\/]/g,function(a){return t._entityMap[a]})},e.prototype.encodeAttrValue=function(r){var t=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(a,s){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(s)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(s){Array.isArray(a[s])&&Array.isArray(t[s])?t[s]=t[s].concat(a[s]):t[s]=a[s]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var s=!1,i=void 0;if(Array.isArray(r))i=r.reduce(function(n,o){var c=a.validate(o,t);return c.isValid?n.concat([o]):(s=!0,n.concat([c.sanitized]))},[]);else if(tt(r)){var l=Object.keys(r);i=l.reduce(function(n,o){var c=r[o],u=a.validate(c,t);return u.isValid?n[o]=c:(s=!0,n[o]=u.sanitized),n},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return s?i:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e})();export{ot as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as u,b as m,f as g}from"./4X2SOHYB.js";import{b}from"./3QTMLOOM.js";import{L as d,P as p,S as h,j as l}from"./Q73UFMJY.js";var c=class extends d{constructor(){super(...arguments),this.#t=new MutationObserver(()=>this.#e()),this.preferEndSlot=!1,this.priority=u.Default}static{this.properties={_children:16,preferEndSlot:5,priority:9}}#r;#t;measure(t){let r=this._children;if(!r?.length)return[0];let e=this.#o(t)+t.sizes.groupPadding[t.scale],i=r.map(o=>o.measure(t)).reduce((o,s)=>o.flatMap(a=>s.map(n=>a+n)),[0]);return b(i.map(o=>e+o))}proxiedRender(t,r){let e=this._children;if(!e)return;let i=this.preferEndSlot&&(t.toolbarKind==="docked"||t.layout==="vertical")?"actions-end":void 0,o=r-t.sizes.groupPadding[t.scale]-this.#o(t),s=g(e,t,o);return l`<calcite-action-group .scale=${t.scale} .layout=${t.layout} slot=${i??p}>${s.map(({group:a,budget:n})=>a.proxiedRender(t,n))}</calcite-action-group>`}connectedCallback(){super.connectedCallback(),this.#t.observe(this.el,{childList:!0}),this.#e()}disconnectedCallback(){this.#t.disconnect(),super.disconnectedCallback()}#o(t){return this.preferEndSlot&&t.layout==="horizontal"&&t.toolbarKind==="docked"?0:t.sizes.groupSeparator}#e(){this.#r?.abort();let t=Array.from(this.el.children).filter(m),r=new AbortController;this.#r=r,Promise.all(t.map(e=>e.componentOnReady())).then(()=>{!this.isConnected||r.signal.aborted||(this._children=t)})}};h("arcgis-toolbar-group",c);export{c as ArcgisToolbarGroup};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as b}from"./GUL7EIJ4.js";import{L as o,S as m,h as u,j as h,t as d}from"./Q73UFMJY.js";var g=u`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`,p=class extends o{constructor(){super(...arguments),this.debouncedApplyValueOnChange=b(e=>this.applyValueOnChange(e),800),this.disabled=!1,this.flipLabels=!1,this.scale="s",this.min=0,this.max=100,this.value=50,this.step=1,this.withSteppers=!1,this.arcgisValueChange=d()}static{this.properties={disabled:5,label:1,flipLabels:5,scale:1,min:9,max:9,value:9,step:9,unitsLabel:1,withSteppers:5}}static{this.styles=g}applyValueOnChange(e){let{min:t,max:i,value:n}=this,a=Number(e.value),s=t!==void 0&&i!==void 0?Math.min(i,Math.max(t,a)):a;a!==n&&(e.value=`${s}`,this.arcgisValueChange.emit(s),this.value=s)}render(){let{disabled:e,min:t,max:i,value:n,step:a,withSteppers:s,flipLabels:r,unitsLabel:c,label:$,scale:v}=this;return h`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${t} .max=${i} .value=${n} .step=${a} @calciteSliderInput=${l=>this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${t} .max=${i} .numberButtonType=${s?"vertical":"none"} .prefixText=${r?c:""} @calciteInputInput=${l=>this.debouncedApplyValueOnChange(l.target)} @click=${l=>l.stopPropagation()} .scale=${v} step=any .suffixText=${r?"":c} type=number .value=${`${n}`} .label=${$}></calcite-input></div>`}};m("arcgis-slider-input",p);export{p as ArcgisSliderInput};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{L as p,
|
|
2
|
+
import{L as p,S as m,h as l,j as e}from"./Q73UFMJY.js";export default $arcgis.t(([t])=>{var h=l`:host{display:block;block-size:30px;inline-size:100%}:host([layout="vertical"]){writing-mode:vertical-lr}arcgis-ramp-color{block-size:inherit;inline-size:inherit}`,c=new t([0,121,193]),o=class extends p{constructor(){super(...arguments),this._rampStops=[],this.fillColor=c.clone(),this.layout="horizontal",this.min=0,this.max=1,this.stops=[]}static{this.properties={fillColor:1,layout:1,min:9,max:9,stops:0}}static{this.styles=h}willUpdate(s){if(super.willUpdate(s),s.has("fillColor")||s.has("stops")){let{stops:n,fillColor:i}=this,r=(i instanceof t?i:t.fromString(i)??c).toRgb();this._rampStops=n.map(a=>({color:new t(r&&[...r,a.opacity]),value:a.value}))}}render(){return e`<arcgis-ramp-color .layout=${this.layout} .stops=${this._rampStops} .min=${this.min} .max=${this.max}></arcgis-ramp-color>`}};m("arcgis-ramp-opacity",o);return o},"Color")
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
var m=(...s)=>{let t=[];for(let n=0;n<s.length;++n){let o=s[n];if(typeof o=="string")t.push(o);else if(Array.isArray(o))t.push.apply(t,o);else if(typeof o=="object")for(let r in o)o[r]&&t.push(r)}let e=t.join(" ");return t.length=0,e},a=(s,t)=>{let e=s;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},h=(s,t,e)=>{let n=l(t).subscribe;return n(o=>{o.some(c=>a(s,c.target))&&e()})},i={},l=s=>{let t=s.join(","),e=i[t];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(c=>n.forEach(u=>u(c)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:s,subtree:!0});let r={subscribe:c=>(n.add(c),()=>{n.delete(c),n.size===0&&(o.disconnect(),i[t]=void 0)})};return i[t]=r,r},d=(s,t)=>{let e=s;for(;e;){let n=e.closest?.(t);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var b=s=>f(s,"dir","ltr"),f=(s,t,e)=>d(s,`[${t}]`)?.getAttribute(t)??e;export{m as a,h as b,d as c,b as d,f as e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{e as w,g as x,o as E,p as D}from"./TTFTN2LD.js";import{a as B,b as f,c as T}from"./LNXO5YIS.js";import{a as A}from"./TO3YFXVJ.js";import"./LLATF73T.js";import"./XX2ZCFWI.js";import{a as C}from"./EB5MDEWF.js";import{J as R,K as U,L as H,R as _,h as O,j as Z,o as $,p as F,t as I}from"./BCN6LPOG.js";export default $arcgis.t(([{formatDate:N,convertDateFormatToIntlOptions:y,formatDateOnly:ie,formatTimeOnly:se,formatTimestamp:M,formatNumber:ae},ne,K,{clone:S}])=>{function W(i){return new Date(`1970-01-01T${i}Z`).getTime()}function P(i){return new Date(`${i} 00:00:00`).getTime()}function oe(i,e,s){let t;return e==="unknown"?t=N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=N(i,{...y("short-date-short-time"),timeZone:e}),t}function le(i){return i?ie(i,y("short-date")):""}function re(i){let e;return typeof i=="string"?e=se(i,y("short-date-long-time")):e=N(i,{...y("long-time"),timeZone:"utc"}),e}function ue(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?M(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):M(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):N(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!w(i)&&!D(i)&&!E(i)&&!x(i))return;let t;return T(i,s).fields.forEach(l=>{let a=l.name,c="domain"in l?l.domain:void 0;if(!x(i)&&i.subtypeField===a){let m;E(i)||w(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{D(i)&&i.subtypeCode!==r.code||(e.name===a&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(n=>{if(e.name===n){let o=r.domains[n];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push({code:u.code,name:u.name})})}}))})}if(e.name===a&&(w(i)||x(i))){let m=w(i)?i.typeIdField:void 0,r=w(i)?i.types:void 0;w(i)&&m&&r?(m===a?t=r.map(n=>({code:n.id,name:n.name})):(t=t||[],r.forEach(n=>{if(!n.domains?.[a]||n.domains[a].type==="inherited"){let o=c;o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push(S(u))})}else n.domains?.[a]?.codedValues&&n.domains[a].codedValues.forEach(o=>{let u=!1;t.forEach(d=>{d.code===o.code&&(u=!0,`| ${d.name} |`.includes(`| ${o.name} |`)||(d.name+=` | ${o.name}`))}),u||t.push(S(o))})})),!t?.length&&c?.codedValues&&(t=S(c.codedValues))):c?.codedValues&&(t=c.codedValues)}}),t}function L(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let a=s[l];a.code==i&&(t+=(t.length?" | ":"")+a.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var de=O`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends H{constructor(){super(...arguments),this.dropdownNode=R(),this.initialized=!1,this._messages=A({blocking:!0}),this._propWatcherTask=new B(this,{task:async([e,s,t])=>{let l=f(e)&&f(s)||f(t);if(!f(t)&&!f(e)&&!f(s)?$("error",this,F("uniqueValues")):f(t)||(f(e)||$("error",this,F("layer")),f(s)||$("error",this,F("fieldName"))),f(e)&&f(s)){let{visualizationSource:a}=this;if(!T(e,a).fields?.filter(c=>c.name===s))throw $("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=de}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(f(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}willUpdate(e){this.initialized&&(e.has("layer")||e.has("visualizationSource")||e.has("fieldName")||e.has("uniqueValues"))&&this.processProps().then(()=>this.requestUpdate()),e.has("maxHeight")&&this.maxHeight&&this.listNode?.setAttribute("style",`max-height: ${this.maxHeight||400}px`)}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,a=(e?T(e,l):void 0)?.fields?.filter(c=>c.name===s)?.[0];if(!a){$("error",this,`Field '${s}' not found in layer`),this.fieldInfo={layerField:a,fieldDomains:void 0,simpleType:void 0,partialUniqueValues:!1,uniqueValueInfos:[]};return}if(f(this.uniqueValues))this.fieldInfo={layerField:a,fieldDomains:e&&a?j(e,a,l):void 0,simpleType:e&&a?J(a):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&a){this.fieldInfo={layerField:a,fieldDomains:j(e,a,l),simpleType:J(a),partialUniqueValues:!1};let{fieldInfo:c}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:l==="feature-reduction"}),r=G(a),n=m.uniqueValueInfos.filter(o=>f(o.value)?a.type==="string"&&!r||a.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(a)||a.type,o.value!=="<Null>"&&o.value!==""):!1);n.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),c.fieldDomains?.length&&c.fieldDomains.forEach(o=>{n.find(u=>u.value===o.code)||n.push({value:o.code,count:0})}),c.uniqueValueInfos=n,c.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.initialized||this.arcgisLoad.emit(),this.setUpTimeZoneHandle(),this.initialized=!0}catch(m){if($("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(c)){let r=[];c.fieldDomains.forEach(n=>{r.find(o=>o.value===n.code)||r.push({value:n.code,count:void 0})})}this.initialized=!0}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{view:e,fieldInfo:s}=this;s.simpleType&&["date","timestamp-offset"].includes(s.simpleType)&&(this.timeZoneHandle=K.watch(()=>e?.timeZone,()=>this.requestUpdate()))}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:a,showFilterLength:c,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:n,partialUniqueValues:o,layerField:u}=e,d=u?.type;if(!n?.length)return"";let g=d?["small-integer","big-integer","integer","single","double","long","oid"].includes(d):!1,Q=d?["date","date-only","time-only"].includes(d):!1,X=v=>{v.sort((h,p)=>h.count<=p.count?1:-1)},Y=v=>{let h=r?.length;v.sort((p,V)=>{if(!h&&g)return(typeof p.value=="string"?Number.parseFloat(p.value):p.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let q=h?L(p.value,r):p.label??p.value,b=h?L(V.value,r):V.label??V.value;return`${q}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${q}`.localeCompare(`${b}`)}})},ee=(v,h)=>{v.sort((p,V)=>{let q=h?.indexOf(p.value)??-1,b=h?.indexOf(V.value)??-1;return q===b||q>-1&&b>-1?0:q>b?-1:1})};Y(n),!t||t==="count"?X(n):t==="selected"&&ee(n,s);let te=n.map(v=>this.renderUniqueValue(v)),z;return o&&!a&&(z=Z`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),Z`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${n.length>=c} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.currentTarget.selectedItems.map(p=>p.value);!r&&d==="date-only"?h=h?.map(p=>P(p)):!r&&d==="time-only"?h=h?.map(p=>W(p)):d&&["date","oid","small-integer","big-integer","integer","long"].includes(d)?h=h?.map(p=>Number.parseInt(p)):d&&["single","double"].includes(d)&&(h=h?.map(p=>Number.parseFloat(p))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${U(this.setListRef)}>${n.length>=c&&!a?this.renderSort(g,Q):null}${te}</calcite-list>${z}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return Z`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${U(this.dropdownNode)}><calcite-action slot=trigger .label=${l.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!f(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:a,numberFormatOptions:c}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:n}=a,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?L(e.value,m):n==="date"?oe(e.value,o):n==="date-only"?le(e.value):n==="time-only"?re(e.value):n==="timestamp-offset"?ue(e.value,l):typeof e.value=="number"?ae(e.value,c):e.label??e.value,d=s?n==="date-only"?s.includes(m?.length?e.value:P(e.value)):n==="time-only"?s.includes(m?.length?e.value:W(e.value)):s.includes(e.value):!1;return C(`list-item_${e.value}`,Z`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${d}>${f(e.count)&&(r.length>200&&!t||r.length<=200)?Z`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/reactiveUtils","core/lang")
|
|
2
|
+
import{e as w,g as x,o as E,p as D}from"./TTFTN2LD.js";import{a as B,b as p,c as T}from"./LPKRIISW.js";import{a as A}from"./EYOJNGUG.js";import"./T7LZIFNY.js";import"./XMMFL5H3.js";import{a as C}from"./7S4ZZPSA.js";import{J as R,K as U,L as H,S as _,h as O,j as Z,o as $,p as F,t as I}from"./Q73UFMJY.js";export default $arcgis.t(([{formatDate:N,convertDateFormatToIntlOptions:y,formatDateOnly:ie,formatTimeOnly:se,formatTimestamp:M,formatNumber:ae},ne,K,{clone:S}])=>{function W(i){return new Date(`1970-01-01T${i}Z`).getTime()}function P(i){return new Date(`${i} 00:00:00`).getTime()}function oe(i,e,s){let t;return e==="unknown"?t=N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=N(i,{...y("short-date-short-time"),timeZone:e}),t}function le(i){return i?ie(i,y("short-date")):""}function re(i){let e;return typeof i=="string"?e=se(i,y("short-date-long-time")):e=N(i,{...y("long-time"),timeZone:"utc"}),e}function ue(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?M(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):M(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):N(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!w(i)&&!D(i)&&!E(i)&&!x(i))return;let t;return T(i,s).fields.forEach(l=>{let a=l.name,c="domain"in l?l.domain:void 0;if(!x(i)&&i.subtypeField===a){let m;E(i)||w(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{D(i)&&i.subtypeCode!==r.code||(e.name===a&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(n=>{if(e.name===n){let o=r.domains[n];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push({code:u.code,name:u.name})})}}))})}if(e.name===a&&(w(i)||x(i))){let m=w(i)?i.typeIdField:void 0,r=w(i)?i.types:void 0;w(i)&&m&&r?(m===a?t=r.map(n=>({code:n.id,name:n.name})):(t=t||[],r.forEach(n=>{if(!n.domains?.[a]||n.domains[a].type==="inherited"){let o=c;o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push(S(u))})}else n.domains?.[a]?.codedValues&&n.domains[a].codedValues.forEach(o=>{let u=!1;t.forEach(d=>{d.code===o.code&&(u=!0,`| ${d.name} |`.includes(`| ${o.name} |`)||(d.name+=` | ${o.name}`))}),u||t.push(S(o))})})),!t?.length&&c?.codedValues&&(t=S(c.codedValues))):c?.codedValues&&(t=c.codedValues)}}),t}function L(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let a=s[l];a.code==i&&(t+=(t.length?" | ":"")+a.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var de=O`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends H{constructor(){super(...arguments),this.dropdownNode=R(),this.initialized=!1,this._messages=A({blocking:!0}),this._propWatcherTask=new B(this,{task:async([e,s,t])=>{let l=p(e)&&p(s)||p(t);if(!p(t)&&!p(e)&&!p(s)?$("error",this,F("uniqueValues")):p(t)||(p(e)||$("error",this,F("layer")),p(s)||$("error",this,F("fieldName"))),p(e)&&p(s)){let{visualizationSource:a}=this;if(!T(e,a).fields?.filter(c=>c.name===s))throw $("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=de}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(p(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}willUpdate(e){this.initialized&&(e.has("layer")||e.has("visualizationSource")||e.has("fieldName")||e.has("uniqueValues"))&&this.processProps().then(()=>this.requestUpdate()),e.has("maxHeight")&&this.maxHeight&&this.listNode?.setAttribute("style",`max-height: ${this.maxHeight||400}px`)}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,a=(e?T(e,l):void 0)?.fields?.filter(c=>c.name===s)?.[0];if(!a){$("error",this,`Field '${s}' not found in layer`),this.fieldInfo={layerField:a,fieldDomains:void 0,simpleType:void 0,partialUniqueValues:!1,uniqueValueInfos:[]};return}if(p(this.uniqueValues))this.fieldInfo={layerField:a,fieldDomains:e&&a?j(e,a,l):void 0,simpleType:e&&a?J(a):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&a){this.fieldInfo={layerField:a,fieldDomains:j(e,a,l),simpleType:J(a),partialUniqueValues:!1};let{fieldInfo:c}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:l==="feature-reduction"}),r=G(a),n=m.uniqueValueInfos.filter(o=>p(o.value)?a.type==="string"&&!r||a.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(a)||a.type,o.value!=="<Null>"&&o.value!==""):!1);n.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),c.fieldDomains?.length&&c.fieldDomains.forEach(o=>{n.find(u=>u.value===o.code)||n.push({value:o.code,count:0})}),c.uniqueValueInfos=n,c.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.initialized||this.arcgisLoad.emit(),this.setUpTimeZoneHandle(),this.initialized=!0}catch(m){if($("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(c)){let r=[];c.fieldDomains.forEach(n=>{r.find(o=>o.value===n.code)||r.push({value:n.code,count:void 0})})}this.initialized=!0}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{view:e,fieldInfo:s}=this;s.simpleType&&["date","timestamp-offset"].includes(s.simpleType)&&(this.timeZoneHandle=K.watch(()=>e?.timeZone,()=>this.requestUpdate()))}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:a,showFilterLength:c,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:n,partialUniqueValues:o,layerField:u}=e,d=u?.type;if(!n?.length)return"";let g=d?["small-integer","big-integer","integer","single","double","long","oid"].includes(d):!1,Q=d?["date","date-only","time-only"].includes(d):!1,X=v=>{v.sort((h,f)=>h.count<=f.count?1:-1)},Y=v=>{let h=r?.length;v.sort((f,V)=>{if(!h&&g)return(typeof f.value=="string"?Number.parseFloat(f.value):f.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let q=h?L(f.value,r):f.label??f.value,b=h?L(V.value,r):V.label??V.value;return`${q}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${q}`.localeCompare(`${b}`)}})},ee=(v,h)=>{v.sort((f,V)=>{let q=h?.indexOf(f.value)??-1,b=h?.indexOf(V.value)??-1;return q===b||q>-1&&b>-1?0:q>b?-1:1})};Y(n),!t||t==="count"?X(n):t==="selected"&&ee(n,s);let te=n.map(v=>this.renderUniqueValue(v)),z;return o&&!a&&(z=Z`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),Z`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${n.length>=c} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.currentTarget.selectedItems.map(f=>f.value);!r&&d==="date-only"?h=h?.map(f=>P(f)):!r&&d==="time-only"?h=h?.map(f=>W(f)):d&&["date","oid","small-integer","big-integer","integer","long"].includes(d)?h=h?.map(f=>Number.parseInt(f)):d&&["single","double"].includes(d)&&(h=h?.map(f=>Number.parseFloat(f))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${U(this.setListRef)}>${n.length>=c&&!a?this.renderSort(g,Q):null}${te}</calcite-list>${z}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return Z`<calcite-action id=sort-action slot=filter-actions-end .label=${l.sortValues} text><calcite-icon scale=s icon=sort-descending flip-rtl></calcite-icon></calcite-action><calcite-dropdown placement=bottom-end overlay-positioning=fixed reference-element=sort-action @calciteDropdownSelect=${this.onSortMenuSelect} ${U(this.dropdownNode)}><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!p(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:a,numberFormatOptions:c}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:n}=a,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?L(e.value,m):n==="date"?oe(e.value,o):n==="date-only"?le(e.value):n==="time-only"?re(e.value):n==="timestamp-offset"?ue(e.value,l):typeof e.value=="number"?ae(e.value,c):e.label??e.value,d=s?n==="date-only"?s.includes(m?.length?e.value:P(e.value)):n==="time-only"?s.includes(m?.length?e.value:W(e.value)):s.includes(e.value):!1;return C(`list-item_${e.value}`,Z`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${d}>${p(e.count)&&(r.length>200&&!t||r.length<=200)?Z`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/reactiveUtils","core/lang")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./
|
|
2
|
+
import{a as o}from"./7S4ZZPSA.js";import{L as l,P as m,S as p,h as d,j as i,t as c}from"./Q73UFMJY.js";var b=d`:host{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;height:100%;width:100%}`,n=class extends l{constructor(){super(...arguments),this.treeItemsOpen=new Set,this.handleMutations=e=>{e.forEach(t=>{if(t.type==="attributes"&&t.attributeName==="expanded"){let s=t.target;"key"in s.dataset&&s.dataset.key!==void 0&&this.treeItemsOpen.has(s.dataset.key)!==s.expanded&&this.toggleTreeItem(s.dataset.key)}})},this.renderedTree=[],this.data={},this.arcgisChange=c()}static{this.properties={renderedTree:16,data:0,value:1}}static{this.styles=b}load(){this.setupComponent()}willUpdate(e){e.has("data")&&(this.hasUpdated||Object.keys(this.data??{}).length>0)&&this.setupComponent()}loaded(){this.manager.onLifecycle(()=>{this.observer=new MutationObserver(this.handleMutations);let e=this.el.shadowRoot??this.el;return this.observer.observe(e,{attributes:!0,subtree:!0,attributeFilter:["expanded"]}),()=>{this.observer?.disconnect(),this.observer=void 0}})}setupComponent(){this.treeItemsOpen.clear(),this.buildJSXTree()}buildJSXTree(){let e=t=>{let s=[];for(let r of Object.keys(t)){let a=t[r],h;typeof a=="object"&&(h=this.treeItemsOpen.has(r)?e(a):[]);let u=typeof a=="object"?r:a;s.push(this.createTreeItem(r,u,h))}return s};this.renderedTree=e(this.data)}toggleTreeItem(e){this.treeItemsOpen.has(e)?this.treeItemsOpen.delete(e):this.treeItemsOpen.add(e),this.buildJSXTree()}createTreeItem(e,t,s){return i`<calcite-tree-item data-key=${e??m} .selected=${this.value===e} .expanded=${this.treeItemsOpen.has(e)}>${t}${s!==void 0&&o(`${e}-child-tree`,i`<calcite-tree slot=children>${s}</calcite-tree>`)||""}</calcite-tree-item>`}handleTreeSelect(e){let t=e.currentTarget?.selectedItems[0]?.dataset.key;t!==void 0&&(this.value=t,this.arcgisChange.emit())}render(){return o("base-tree",i`<calcite-tree scale=s @calciteTreeSelect=${this.handleTreeSelect}>${this.renderedTree}</calcite-tree>`)}};p("arcgis-coordinate-system-picker-tree",n);export{n as ArcgisCoordinateSystemPickerTree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fieldsCount":"Fields ({count})","fields":"Fields","fieldMappingFor":"Field mapping for {field}","layerReplacement":"Layer replacement","noReplacementFields":"No replacement fields are available.","noReplacementLayers":"No replacement layers are available.","replacementField":"Replacement field","replacementFieldFor":"Replacement field for {field}","replacementLayer":"Replacement layer","selectField":"Select a field","selectLayer":"Select a layer","selectLayerFirst":"Select a layer first","selectReplacementLayer":"Provide a replacement layer to configure field mappings.","selectSourceLayer":"Select a source layer to configure its replacement.","sourceLayer":"Source layer: {layer}"}
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{R as a,y as e}from"./Q73UFMJY.js";var i=e(a,{"arcgis-ckeditor5":[()=>import("./NEJQBOXB.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./ABDFJWQO.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./NSTQTWS5.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],"arcgis-coordinate-system-picker":[()=>import("./RBTFN5SR.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./YOPZGJMF.js"),"data:,value"],"arcgis-field-info":[()=>import("./HMGFS4YI.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./ONYZMGVN.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,heading,hideCancel,hideSort,layer:,listOnly,multiple,okBtnText,popoverProps:,selectedFields:,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./24FE5GMT.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,mirrored,standardDeviation,standardDeviationCount"],"arcgis-html-content":[()=>import("./S3GK6UB7.js"),"content,sanitizerOptions:"],"arcgis-label-input":[()=>import("./LRP7XW5X.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-layer-replace":[()=>import("./55VDXBLV.js"),"additionalSourceFields:,allowDuplicateReplacementFields,fieldMatcher:,getFieldDisplayInfo:,getLayerDisplayInfo:,mapping:,messageOverrides:,messages:,mode,replacement:,replacementCandidates:,replacementFieldFilter:,showFieldAliases,source:,sourceFieldFilter:;matchFields"],"arcgis-picker-input":[()=>import("./MWQVR7SB.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./4ZVHN3V7.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./OVW45JGX.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./X44CHGA6.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./7VGSZDT7.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverDisplay,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values,valuesDraggingDisabled;destroy"],"arcgis-slider-field":[()=>import("./RU4PILTH.js"),"activeValue:,disabled,fieldType,fillPlacement,label,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,value,valueAsDateOnly:,valueAsFieldType:,valueAsNumbers:,valueAsTimeOnly:,valueAsTimestampOffset:,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values"],"arcgis-slider-histogram-range":[()=>import("./LIFJOO55.js"),"activeValue:,average,bins:,dataLines:,excludedBarColor:,fieldType,fillPlacement,includedBarColor:,label,labelFormatter:,layout,max,min,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,standardDeviation,standardDeviationCount,value,valueLabelsDisplay,valueLabelsEditingEnabled,values;destroy,generateWhereClause,updateFromHistogramResult"],"arcgis-slider-input":[()=>import("./WDQV5Y4K.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./S2EORL4N.js"),"_messages:,autoDestroyDisabled,interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values;destroy"],"arcgis-toolbar":[()=>import("./CC74AHNF.js"),"allocatedLength,barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance;;allocate,measure,measureIntrinsicSize,proxiedRender"],"arcgis-toolbar-action":[()=>import("./RU722XDV.js"),"actionElement:,active,appearance,disabled,icon,iconFlipRtl,indicator,kind,labelText,loading,textEnabled,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-group":[()=>import("./VLVINHT3.js"),"preferEndSlot,priority;;measure,proxiedRender"],"arcgis-toolbar-item":[()=>import("./TZBDDGN3.js"),"actionElement:,active,disabled,icon,iconFlipRtl,labelText,lastActivated:,loading,tooltipText;;measure,proxiedRender"],"arcgis-toolbar-more-button":[()=>import("./CCJ7MF3B.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-split-button":[()=>import("./JAMYEW7N.js"),"menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],"arcgis-toolbar-stack":[()=>import("./2XTXXTEZ.js"),"allocatedLength,layout,relativePosition,scale,toolbarKind,tooltipAppearance"],"arcgis-unique-values-list":[()=>import("./Y72KV72H.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"],"arcgis-value-picker":[()=>import("./BAMK6STW.js"),"autoDestroyDisabled,disabled,floating,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],"arcgis-value-picker-collection":[()=>import("./F5IBLVYU.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],"arcgis-value-picker-combobox":[()=>import("./5YQK5TCH.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],"arcgis-value-picker-label":[()=>import("./OQRMI3K5.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:;destroy;reset,step"],"arcgis-value-picker-slider":[()=>import("./N5YNSPMD.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-html-content,arcgis-label-input,arcgis-layer-replace,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-field,arcgis-slider-histogram-range,arcgis-slider-input,arcgis-ticks,arcgis-toolbar,arcgis-toolbar-action,arcgis-toolbar-group,arcgis-toolbar-item,arcgis-toolbar-more-button,arcgis-toolbar-split-button,arcgis-toolbar-stack,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,a)
|
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-field,arcgis-slider-histogram-range,arcgis-slider-input,arcgis-ticks,arcgis-toolbar,arcgis-toolbar-action,arcgis-toolbar-group,arcgis-toolbar-item,arcgis-toolbar-more-button,arcgis-toolbar-split-button,arcgis-toolbar-stack,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-html-content,arcgis-label-input,arcgis-layer-replace,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-field,arcgis-slider-histogram-range,arcgis-slider-input,arcgis-ticks,arcgis-toolbar,arcgis-toolbar-action,arcgis-toolbar-group,arcgis-toolbar-item,arcgis-toolbar-more-button,arcgis-toolbar-split-button,arcgis-toolbar-stack,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { render as m, nothing as u } from "lit";
|
|
3
|
+
import { AsyncDirective as l } from "lit/async-directive.js";
|
|
4
|
+
import { PartType as p } from "lit/directive.js";
|
|
5
|
+
import { getCommittedValue as a, clearPart as v, insertPart as o, setCommittedValue as h } from "lit/directive-helpers.js";
|
|
6
|
+
import { directive as f } from "@arcgis/lumina";
|
|
7
|
+
class S {
|
|
8
|
+
constructor(e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set()) {
|
|
9
|
+
this.cachedParts = e, this.directives = t;
|
|
10
|
+
}
|
|
11
|
+
moveAllToCache() {
|
|
12
|
+
for (const e of this.directives)
|
|
13
|
+
e.moveToCache();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class C extends l {
|
|
17
|
+
#r;
|
|
18
|
+
#t;
|
|
19
|
+
#e;
|
|
20
|
+
constructor(e) {
|
|
21
|
+
if (super(e), e.type !== p.CHILD)
|
|
22
|
+
throw new Error("sharedCache() can only be used in child expressions");
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @param _store Shared store backing this and other caching directives with the shared cache
|
|
26
|
+
* @param _key Uniquely identifies the element being rendered
|
|
27
|
+
* @param value The content to render
|
|
28
|
+
*/
|
|
29
|
+
render(e, t, i) {
|
|
30
|
+
return [i];
|
|
31
|
+
}
|
|
32
|
+
update(e, [t, i, s]) {
|
|
33
|
+
this.#e !== t && (this.#e && this.#e.directives.delete(this), t.directives.add(this), this.#e = t), this.#r = e, this.#t = i;
|
|
34
|
+
const r = t.cachedParts.get(i), c = r ? a(r).pop() : void 0;
|
|
35
|
+
return c && (v(e), o(e, void 0, c), h(e, [c])), this.render(t, i, s);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* During the update phase, a toolbar may need to be pulled from the cache in a situation
|
|
39
|
+
* where it was still on the page from the previous render.
|
|
40
|
+
*
|
|
41
|
+
* To work around this problem, during parent component render phase a pre-caching
|
|
42
|
+
* step moves all cacheable elements into the cache. This is the method called by
|
|
43
|
+
* that pre-caching step.
|
|
44
|
+
*
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
moveToCache() {
|
|
48
|
+
const e = this.#r, t = this.#e;
|
|
49
|
+
if (!e || !t)
|
|
50
|
+
return;
|
|
51
|
+
const s = a(e).pop();
|
|
52
|
+
if (!s)
|
|
53
|
+
return;
|
|
54
|
+
let r = t.cachedParts.get(this.#t);
|
|
55
|
+
if (!r) {
|
|
56
|
+
const n = document.createDocumentFragment();
|
|
57
|
+
r = m(u, n), t.cachedParts.set(this.#t, r);
|
|
58
|
+
}
|
|
59
|
+
if (a(r).length > 0)
|
|
60
|
+
throw new Error("sharedCache() keys must be unique");
|
|
61
|
+
h(r, [s]), o(r, void 0, s);
|
|
62
|
+
}
|
|
63
|
+
disconnected() {
|
|
64
|
+
this.#e?.directives.delete(this);
|
|
65
|
+
}
|
|
66
|
+
reconnected() {
|
|
67
|
+
this.#e?.directives.add(this);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const D = f(C);
|
|
71
|
+
export {
|
|
72
|
+
S,
|
|
73
|
+
D as s
|
|
74
|
+
};
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,59 +1,97 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { L as
|
|
3
|
-
const
|
|
4
|
-
|
|
2
|
+
import { L as p } from "./types.js";
|
|
3
|
+
const c = 1e-3;
|
|
4
|
+
function x({ layout: o, scale: i, sizes: t }) {
|
|
5
|
+
return t.action[o][i] + t.actionPadding[i];
|
|
6
|
+
}
|
|
7
|
+
const a = {
|
|
8
|
+
groupSeparator: { pixels: 1, rem: 0 },
|
|
5
9
|
groupPadding: {
|
|
6
|
-
s:
|
|
7
|
-
m:
|
|
8
|
-
l:
|
|
10
|
+
s: { pixels: 0, rem: 0.25 },
|
|
11
|
+
m: { pixels: 0, rem: 0.5 },
|
|
12
|
+
l: { pixels: 0, rem: 0.625 }
|
|
9
13
|
},
|
|
10
14
|
actionPadding: {
|
|
11
|
-
s:
|
|
12
|
-
m:
|
|
13
|
-
l:
|
|
15
|
+
s: { pixels: 0, rem: 0.25 },
|
|
16
|
+
m: { pixels: 0, rem: 0.5 },
|
|
17
|
+
l: { pixels: 0, rem: 0.625 }
|
|
14
18
|
},
|
|
15
19
|
action: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
horizontal: {
|
|
21
|
+
s: { pixels: 16, rem: 0.5 },
|
|
22
|
+
m: { pixels: 16, rem: 1 },
|
|
23
|
+
l: { pixels: 24, rem: 1.25 }
|
|
24
|
+
},
|
|
25
|
+
vertical: {
|
|
26
|
+
// Calcite's block-axis minimum can exceed the fixed icon plus padding.
|
|
27
|
+
s: { pixels: 16, rem: 0.5, minimumRem: 1.5 },
|
|
28
|
+
m: { pixels: 16, rem: 1, minimumRem: 2 },
|
|
29
|
+
l: { pixels: 24, rem: 1.25, minimumRem: 2.75 }
|
|
30
|
+
}
|
|
19
31
|
},
|
|
20
32
|
splitButtonPart: {
|
|
21
33
|
horizontal: {
|
|
22
|
-
s:
|
|
23
|
-
m:
|
|
24
|
-
l: 24
|
|
34
|
+
s: { pixels: 16, rem: 0.5 },
|
|
35
|
+
m: { pixels: 16, rem: 0.5 },
|
|
36
|
+
l: { pixels: 24, rem: 0 }
|
|
25
37
|
},
|
|
26
38
|
vertical: {
|
|
27
|
-
s
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
// The hidden text's line height can exceed the icon height; both include block padding.
|
|
40
|
+
s: { pixels: 16, rem: 0.5, minimumRem: 1.5 },
|
|
41
|
+
m: { pixels: 16, rem: 1, minimumRem: 2 },
|
|
42
|
+
l: { pixels: 24, rem: 1.25, minimumRem: 2.5 }
|
|
30
43
|
}
|
|
31
44
|
}
|
|
32
45
|
};
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
function f(o = 16) {
|
|
47
|
+
const i = ({ pixels: n, rem: l, minimumRem: s = 0 }) => Math.max(n + l * o, s * o), t = (n) => ({
|
|
48
|
+
s: i(n.s),
|
|
49
|
+
m: i(n.m),
|
|
50
|
+
l: i(n.l)
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
groupSeparator: i(a.groupSeparator),
|
|
54
|
+
groupPadding: t(a.groupPadding),
|
|
55
|
+
actionPadding: t(a.actionPadding),
|
|
56
|
+
action: {
|
|
57
|
+
horizontal: t(a.action.horizontal),
|
|
58
|
+
vertical: t(a.action.vertical)
|
|
59
|
+
},
|
|
60
|
+
splitButtonPart: {
|
|
61
|
+
horizontal: t(a.splitButtonPart.horizontal),
|
|
62
|
+
vertical: t(a.splitButtonPart.vertical)
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function d(o, i) {
|
|
67
|
+
return o - i <= c;
|
|
68
|
+
}
|
|
69
|
+
function h(o, i, t) {
|
|
70
|
+
const n = o.map((e, r) => ({ group: e, index: r })).sort(
|
|
71
|
+
(e, r) => (r.group.priority ?? p.Default) - (e.group.priority ?? p.Default) || e.index - r.index
|
|
72
|
+
).map(({ group: e }) => ({ group: e, lengthOptions: e.measure(i).values() })), l = /* @__PURE__ */ new Map();
|
|
73
|
+
let s = 0;
|
|
74
|
+
for (const e of n) {
|
|
75
|
+
const r = e.lengthOptions.next().value ?? 0;
|
|
76
|
+
l.set(e.group, r), s += r;
|
|
41
77
|
}
|
|
42
|
-
for (const e of
|
|
43
|
-
for (;
|
|
44
|
-
const
|
|
45
|
-
if (!
|
|
78
|
+
for (const e of n)
|
|
79
|
+
for (; s < t; ) {
|
|
80
|
+
const r = l.get(e.group);
|
|
81
|
+
if (!r || e.group.priority === p.ForceCollapse)
|
|
46
82
|
break;
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
83
|
+
const m = e.lengthOptions.next();
|
|
84
|
+
if (m.value === void 0)
|
|
49
85
|
break;
|
|
50
|
-
const u =
|
|
51
|
-
if (u
|
|
86
|
+
const u = s - r + m.value;
|
|
87
|
+
if (!d(u, t) || (l.set(e.group, m.value), s = u, m.done))
|
|
52
88
|
break;
|
|
53
89
|
}
|
|
54
|
-
return
|
|
90
|
+
return o.map((e) => ({ group: e, budget: l.get(e) ?? 0 }));
|
|
55
91
|
}
|
|
56
92
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
93
|
+
h as a,
|
|
94
|
+
f as c,
|
|
95
|
+
d as f,
|
|
96
|
+
x as g
|
|
59
97
|
};
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
function a({
|
|
7
|
-
layout: t,
|
|
8
|
-
relativePosition: n
|
|
2
|
+
function r({
|
|
3
|
+
layout: n,
|
|
4
|
+
relativePosition: t
|
|
9
5
|
}) {
|
|
10
|
-
return
|
|
6
|
+
return n === "horizontal" ? t.startsWith("top") ? "bottom" : "top" : t.endsWith("left") ? "right" : "left";
|
|
11
7
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
return
|
|
8
|
+
function i(n) {
|
|
9
|
+
const t = [...n].sort((o, e) => o - e);
|
|
10
|
+
return t.filter((o, e) => e === 0 || o !== t[e - 1]);
|
|
15
11
|
}
|
|
16
12
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
u
|
|
13
|
+
r as g,
|
|
14
|
+
i as u
|
|
20
15
|
};
|