@arcgis/map-components 6.0.0-next.33 → 6.0.0-next.35
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/2TTSZF7O.js +2 -0
- package/dist/cdn/4UCQJWD2.js +2 -0
- package/dist/cdn/6UMEQS35.js +2 -0
- package/dist/cdn/7OLHJCFT.js +2 -0
- package/dist/cdn/AMRSK274.js +2 -0
- package/dist/cdn/{VXPGE37T.js → BABV4TXK.js} +1 -1
- package/dist/cdn/{2JXK3AW7.js → BCHHB4QH.js} +1 -1
- package/dist/cdn/D4UNIFIZ.js +2 -0
- package/dist/cdn/{LC2ZSIJY.js → DARVFHQE.js} +1 -1
- package/dist/cdn/{YME6EWHF.js → DNZXXP5C.js} +1 -1
- package/dist/cdn/{KWIZ45T7.js → F5N3YH5Z.js} +1 -1
- package/dist/cdn/{L3MJ5NAZ.js → GMN6YYZU.js} +1 -1
- package/dist/cdn/I6DE3NLP.js +2 -0
- package/dist/cdn/JKE3FA4Q.js +2 -0
- package/dist/cdn/JZTCF52M.js +2 -0
- package/dist/cdn/LZN3NDWX.js +2 -0
- package/dist/cdn/NZK2LVFA.js +2 -0
- package/dist/cdn/{2AMSAAH4.js → ODCD75PC.js} +1 -1
- package/dist/cdn/PTHNXKEA.js +2 -0
- package/dist/cdn/QVIQ66LA.js +2 -0
- package/dist/cdn/TRN35DVC.js +2 -0
- package/dist/cdn/{TEDWUEQ4.js → VTYQHAZN.js} +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-next.js +49 -4
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-3d/customElement.js +2 -2
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +102 -101
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
- package/dist/components/arcgis-elevation-profile/customElement.js +2 -2
- package/dist/components/arcgis-expand/customElement.js +13 -13
- package/dist/components/arcgis-exploratory-analysis/customElement.js +41 -38
- package/dist/components/arcgis-feature-expression/customElement.js +47 -47
- package/dist/components/arcgis-feature-next/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +72 -71
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +14 -2
- package/dist/components/arcgis-shadow-cast/customElement.js +53 -34
- package/dist/components/arcgis-shadow-cast/index.js +1 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +6 -4
- package/dist/components/arcgis-sketch/customElement.js +177 -167
- package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-table-list-next/customElement.js +44 -43
- package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
- package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
- package/dist/components/arcgis-view-popover/customElement.js +196 -108
- package/dist/components/arcgis-view-popover/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +7 -7
- package/dist/types/preact.d.ts +7 -7
- package/dist/types/react.d.ts +7 -7
- package/dist/types/stencil.d.ts +7 -7
- package/package.json +8 -8
- package/dist/cdn/3NUN6DK3.js +0 -2
- package/dist/cdn/6FJUKYNB.js +0 -2
- package/dist/cdn/7Y6PADB5.js +0 -2
- package/dist/cdn/I5F7MVDT.js +0 -2
- package/dist/cdn/LNTE4FDB.js +0 -2
- package/dist/cdn/P5U37XIA.js +0 -2
- package/dist/cdn/PD4ELTMF.js +0 -2
- package/dist/cdn/RAADOJWX.js +0 -2
- package/dist/cdn/TEPHXOQ2.js +0 -2
- package/dist/cdn/TY4XRXLB.js +0 -2
- package/dist/cdn/UZ4VANCL.js +0 -2
- package/dist/cdn/W4BA3ECA.js +0 -2
- package/dist/cdn/XCDMOCWN.js +0 -2
- package/dist/cdn/ZEQHIKTN.js +0 -2
- /package/dist/cdn/{WFTJ4E4F.js → A6ANFEOT.js} +0 -0
package/dist/cdn/LNTE4FDB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as S}from"./TMTFZSJS.js";import{a as f,d as h,i as z}from"./IM6IDWYR.js";import{a as $}from"./FH3WFF5O.js";import k from"./UYAOMCP7.js";import{a as m}from"./6J3KSMFG.js";import j from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as p}from"./VKO3CVBS.js";import i from"./EJVFK7JX.js";import{a as C}from"./REB4CHAK.js";import{a as g}from"./L5IRXOCJ.js";import e from"./7JPHMESH.js";import c from"./OLY5EME5.js";import{h as M}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{R as _,T as u,X as x,_ as b,a as y,b as d,x as D}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([A,{property:r,subclass:H},{watch:k,whenOnce:j},{forceInteractive:U},,,,O,,T])=>{var B=y`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-space-md);display:flex;flex-direction:column;gap:var(--calcite-space-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-space-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-space-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-heading{display:flex;align-items:center;gap:var(--calcite-space-sm);margin-block-end:var(--calcite-space-sm);.esri-widget__heading{margin-block-end:0}arcgis-time-zone-chip{margin-inline-start:auto}}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,F=Object.defineProperty,K=Object.getOwnPropertyDescriptor,a=(e,i,t,n)=>{for(var s=n>1?void 0:n?K(i,t):i,l=e.length-1,c;l>=0;l--)(c=e[l])&&(s=(n?c(i,t,s):c(s))||s);return n&&s&&F(i,t,s),s},Z=Symbol("interactiveHandle"),o=class extends T{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.timeZoneMode="offset",this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new A}initialize(){this.addHandles([k(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:e,tooltipVisible:i})=>{this.removeHandles(Z),e&&(e.interactive=i,i&&this.addHandles(U(e),Z))},{sync:!0,initial:!0}),k(()=>({analysis:this.analysis,analysisTimeZone:this.analysis.timeZone,timeZone:this.view?.timeZone??f,timeZoneMode:this.timeZoneMode}),({analysis:e,analysisTimeZone:i,timeZone:t,timeZoneMode:n})=>{let s=this._viewTimeZoneSync;if(s&&(n!=="region"||s.analysis!==e)&&this._clearViewTimeZoneSync(),n!=="region")return;let l=this._viewTimeZoneSync;l&&(i!==l.timeZone?this._clearViewTimeZoneSync():t!==l.timeZone&&(l.timeZone=t,e.timeZone=t)),!this._viewTimeZoneSync&&e.timeZone==null&&(this._viewTimeZoneSync={analysis:e,originalTimeZone:i,timeZone:t},e.timeZone=t)},{sync:!0,initial:!0}),$(()=>this._clearViewTimeZoneSync())])}_clearViewTimeZoneSync(){let e=this._viewTimeZoneSync;this._viewTimeZoneSync=void 0,e&&e.analysis.timeZone===e.timeZone&&(e.analysis.timeZone=e.originalTimeZone)}get date(){return this.analysis.date}set date(e){this.analysis.date=e}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(e){this.analysis.discreteOptions.color=e}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(e){this.analysis.discreteOptions.interval=e}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(e){this.analysis.totalDurationOptions.color=e}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(e){this.analysis.totalDurationOptions.mode=e}get localDate(){return z(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(e){this.analysis.mode=e}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(e){this.analysis.visualizeSunlight=e}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(e){this.analysis.startTimeOfDay=e}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(e){this.analysis.endTimeOfDay=e}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get timeZone(){return this.analysis.timeZone??(this.timeZoneMode==="region"?this.view?.timeZone??f:null)}set timeZone(e){this.analysis.timeZone=e}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(e){this.analysis.minDurationOptions.color=e}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(e){this.analysis.minDurationOptions.minDuration=e}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(e){this.analysis.minDurationOptions.contextEnabled=e}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(e){this.analysis.minDurationOptions.contextOptions.color=e}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(e){this.analysis.minDurationOptions.contextOptions.interval=e}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(e){this.analysis.utcOffset=e}get effectiveUtcOffset(){let{utcOffset:e}=this.analysis;if(e!=null)return e;let i=this.view?.camera?.position;return i?S(i):0}async getDurationAtScreen(e){return await(await j(()=>this.analysisView)).getDurationAtScreen(e)}};a([r()],o.prototype,"date",1);a([r()],o.prototype,"discreteColor",1);a([r()],o.prototype,"discreteInterval",1);a([r()],o.prototype,"totalDurationColor",1);a([r()],o.prototype,"totalDurationMode",1);a([r()],o.prototype,"localDate",1);a([r()],o.prototype,"mode",1);a([r()],o.prototype,"visualizeSunlight",1);a([r()],o.prototype,"startTimeOfDay",1);a([r()],o.prototype,"endTimeOfDay",1);a([r()],o.prototype,"state",1);a([r()],o.prototype,"timeZoneMode",2);a([r()],o.prototype,"timeZone",1);a([r()],o.prototype,"minDurationColor",1);a([r()],o.prototype,"minMinDuration",2);a([r()],o.prototype,"maxMinDuration",2);a([r()],o.prototype,"minDuration",1);a([r()],o.prototype,"minDurationContextEnabled",1);a([r()],o.prototype,"minDurationContextColor",1);a([r()],o.prototype,"minDurationContextInterval",1);a([r()],o.prototype,"utcOffset",1);a([r()],o.prototype,"effectiveUtcOffset",1);a([r()],o.prototype,"hideShadowDurationTooltip",2);o=a([H("components.shadow-cast.ShadowCastViewModel")],o);var G=O(o),w=class extends _{constructor(){super(...arguments),this.viewModel=G(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.timeZoneMode=this.viewModel.timeZoneMode,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=M()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,timeZoneMode:1,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=B}get _effectiveMessages(){let{messages:i,visualizeSunlight:t}=this,{sunlight:n}=i;return{...i,discrete:t?n?.discrete:i.discrete,minDuration:t?n?.minDuration:i.minDuration,totalDuration:t?n?.totalDuration:i.totalDuration,timeInShadow:t?i.timeInSunlight:i.timeInShadow,timeRangeSliderLabel:i.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(i){this.viewModel.date=i}async destroy(){await this.manager.destroy()}async getDurationAtScreen(i){return await this.viewModel.getDurationAtScreen(i)}render(){let{_effectiveMessages:i}=this;return d`<div aria-label=${i.componentLabel??x} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${m({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:i,viewModel:t}=this,n=this.visualScale,s=t.timeZone;return d`<section class="time-range-section">${s&&!this.hideTimezone?d`<div class="time-range-heading">${p({level:this.headingLevel,children:i.timeRangeHeading})}<arcgis-time-zone-chip .disabled=${t.state==="disabled"} .timeZone=${s} .visualScale=${n} @arcgisInternalTimeZoneChange=${l=>{t.timeZone=l.detail}}></arcgis-time-zone-chip></div>`:p({level:this.headingLevel,children:i.timeRangeHeading})}${m({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${s==null?m({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${i.timezoneLabel}<calcite-input-time-zone data-testid=shadow-cast-time-zone-input mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${h(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{t.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`}):null}${m({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${l=>{let c=l.currentTarget.valueAsDate;t.date=Array.isArray(c)?c[0]:c}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:i,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${I(this.startTimeOfDay)} .endTime=${I(this.endTimeOfDay)} .label=${i.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=h(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=h(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:i,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!i)return;let{discreteOptions:l,totalDurationOptions:c,minDurationOptions:P}=i,v=(E,R)=>s.mode===E&&!R?void 0:"hidden-config",V=this.hideMinDurationContextOptions||this.visualizeSunlight,L=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${p({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(v("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${V} .hideContextToggle=${L} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${P} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(v("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${c} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(v("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:i,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${i.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:i.minDuration?.optionLabel},{mode:"total-duration",label:i.totalDuration?.optionLabel},{mode:"discrete",label:i.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function I(e){return Math.round(h(e,"milliseconds","minutes"))}b("arcgis-shadow-cast",w);return w},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,e,i,j,k)
|
package/dist/cdn/P5U37XIA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import s from"./3NUN6DK3.js";import"./EVWWTIEQ.js";import{a as g}from"./4L43F7HU.js";import r from"./3KAC2MKA.js";import o from"./BFYJTV6Q.js";import{a as j,b as q,c as z,g as A,h as J,j as K,k as Q,m,n as F}from"./ZCFWKPXL.js";import{a as H}from"./WVKMYNN7.js";import{a as _}from"./5GFPOTOB.js";import n from"./GEOME3IC.js";import l from"./HU57LQOA.js";import i from"./BOPNSNUT.js";import"./WJQUE4DR.js";import h from"./EJVFK7JX.js";import{a as k}from"./REB4CHAK.js";import{a as b}from"./L5IRXOCJ.js";import{a as G}from"./7Y4SF2NT.js";import f from"./7ILT5PDJ.js";import e from"./7JPHMESH.js";import d from"./OLY5EME5.js";import{h as N}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as B}from"./LXME6MU5.js";import{B as P,P as v,Q as L,R as D,T as w,X as M,Y as C,_ as x,b as c,x as p}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([le,u,{on:T,watch:te},,,,U,S,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",re=S(le),O=class extends D{constructor(){super(...arguments),this.#i=null,this._rootListRef=v(),this._layerFlowItemRef=v(),this._panelFlowItemRef=v(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this.#s=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=m(e,this.operationalItems);if(!l?.sortable)return!1;let r=this.#e(t),o=this.#e(i),n=this.#t(r),d=F(r),f=this.#t(o),y=F(o),$=!!d&&!!y&&d===y,I={selected:l,from:n,to:f},E=r?.group,h=o?.group,se=n?.layer?.type??"",ae=f?.layer?.type??"",R=new Set(["map-image","catalog","knowledge-graph"]);return E&&h&&typeof s=="function"?s(I):$&&!R.has(se)&&!R.has(ae)&&l?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=re(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=U(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}#i;#s;get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this.#b(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this.#h(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[T(()=>this.openedLayers,"change",()=>{this.#n()},{initial:!0}),T(()=>this.viewModel.operationalItems,"change",()=>A(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{A(this.selectedItems),this.requestUpdate()},{initial:!0}),T(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}#e(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}#t(e){let t=e?.getAttribute("data-item");return t?this.#r(t):null}#r(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async#o(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this.#c(e):await this.#m(e);return t.aborted||i.set(e,s),s}async#n(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this.#s?.abort();let a=new AbortController,{signal:s}=a;this.#s=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let l=await Promise.all(t.map(o=>this.#o(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(l);let r=i.at(-1);r?"catalogLayer"in r?(this._catalogLayerList=r,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=r):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}#h(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async#c(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:l,selectionMode:r,visibilityAppearance:o}=this;return C(c`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??l} .selectionMode=${i?.selectionMode??r} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}#d(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async#m(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this.#d(e);return C(c`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list-next>`)}#p(e){e.open=!1}#g({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this.#e(e),l=this.#e(t),r=m(i,this.operationalItems),o=this.#t(s),n=this.#t(l);a==null||!r||(this.viewModel.moveItem(r,n,o,a),X(this,r.uid,d=>d!==i&&this.#e(d.parentElement)===s))}#u(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}#f(e){let t=this.#i,{dragEl:i,newIndex:a}=e,s=this.#e(e.fromEl),l=this.#e(e.toEl),r=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===l&&t?.fromEl===s;if(!(!s||!l||r)){if(this.#i={...e,fromEl:s,toEl:l},this._selectedDragItemLayerUid=i.value,s===l){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this.#y(s,o);return}this.#g({toEl:l,fromEl:s,dragEl:i,newIndex:a})}}#y(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}#I(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[b.hidden]:e==="loading",[b.disabled]:e==="disabled"};return c`<div class=${w(B(b.widget,t))}>${this._visibleItems?.length?this.#L():null}${this.#$()}</div>`}#v(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?c`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}#a(e){if(e.incompatible)return this.#v(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this.#a(i))??[];return t.length?t:null}#L(){return this._visibleItems?.toArray().map(e=>this.#a(e))}#l(){return c`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#w(){return this.hideNoItemsNotice?null:c`<div class=${w(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#l()}</calcite-notice></div>`}#b(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return _(e?.uid??s,c`<calcite-flow-item data-layer-uid=${e?.uid??""??M} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${l=>{l.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${L(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}#_(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:l}=i,r=()=>this.#p(s);return c`<calcite-flow-item .description=${l} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),r()}} ${L(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${r} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#$(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:l,showCollapseButton:r,showHeading:o,_dragEnabled:n,selectionMode:d,filterText:f,openedLayers:y,filterPlaceholder:$,messages:I}=this,E=[c`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${r} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!y.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?c`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??M} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?f:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this.#I} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this.#f(h.detail)} @calciteListDragEnd=${h=>this.#u(h.detail)} ${L(this._rootListRef)}>${t.toArray().map(h=>this.#E(h))}${a&&!this.hideNoFilterResultsNotice?c`<div class=${w(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#l()}</calcite-notice></div>`:null}</calcite-list>`:this.#w()}</calcite-flow-item>`,this.#_(),this._renderedOpenLayerFlowItems];return this.closed?null:_("root-flow",c`<calcite-flow>${E}</calcite-flow>`)}#E(e,t,i){return _(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,d,e,f,h,i,l,n,o,r,s)
|
package/dist/cdn/PD4ELTMF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as g}from"./REB4CHAK.js";import{h as m}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as d,_ as n,a as c,b as r,p as o,x as h}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([k,{watch:y},{a:a}])=>{var u=c`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`,l=class extends d{constructor(){super(...arguments),this._messages=g({blocking:!0}),this.hideErrors=!1,this.hideLoader=!1,this.state="loading",this.arcgisPropertyChange=m()("selectedUtilityNetwork","state"),this.arcgisError=h()}static{this.properties={_utilityNetworks:16,view:0,messageOverrides:0,hideErrors:5,hideLoader:5,state:1,error:1,selectedUtilityNetwork:0,heading:1}}static{this.styles=u}load(){this.#e(),this.manager.onLifecycle(()=>[y(()=>this.view?.map,()=>this.#e())])}willUpdate(t){t.has("_utilityNetworks")&&this.#r(),t.has("selectedUtilityNetwork")&&this.#o()}#t(t){this.error=t,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#e(){if(this.error=void 0,this.state="loading",!this.view?.map){o("error",this,this._messages.errors.noView),this._utilityNetworks=void 0,this.#t(this._messages.errors.noView);return}let t=this.view.map;this.#s(t)}async#s(t){try{t.loaded||await t.load()}catch(e){this.#t(this._messages.errors.mapLoadFailed),a(e,this,this._messages.errors.mapLoadFailed)}finally{this._utilityNetworks=t.utilityNetworks||new k}}#r(){let{selectedUtilityNetwork:t,_utilityNetworks:e}=this;e?.length?(!t||!e.includes(t))&&(this.selectedUtilityNetwork=e.at(0),this.arcgisPropertyChange.emit({name:"selectedUtilityNetwork"})):(this.#t(this._messages.errors.noUtilityNetwork),o("error",this,this._messages.errors.noUtilityNetwork),this.selectedUtilityNetwork=void 0)}async#o(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&(this.state="loading",await t.load()),this.#i()}catch(e){a(e,this,this._messages.errors.utilityNetworkLoadFailed),this.#t(this._messages.errors.utilityNetworkLoadFailed)}}#a(){return this.hideLoader?null:r`<calcite-loader label=loading></calcite-loader>`}#l(t,e=!1,i){return this.hideErrors?null:r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#c(){let t=this._messages.labels.utilityNetwork,e=this._utilityNetworks?.map(i=>r`<calcite-combobox-item .value=${i.id} .heading=${i.title||i.id} .selected=${i.id===this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);return r`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let s=i.selectedItems[0]?.value;this.selectedUtilityNetwork?.id!==s&&(this.selectedUtilityNetwork=this._utilityNetworks?.find(w=>w.id===s))}}>${e}</calcite-combobox>`}#h(){let{selectedUtilityNetwork:t}=this;return r`<calcite-label>${t?.title}</calcite-label>`}#d(t){let e=this._messages.labels.utilityNetwork,i=this.heading||e,s=this._utilityNetworks?.length?this._utilityNetworks?.length===1?this.#h():this.#c():void 0;return r`<calcite-block .heading=${i} .label=${e} expanded>${s}${t}</calcite-block>`}render(){let{error:t,state:e,selectedUtilityNetwork:i}=this,s=e==="error"&&t?this.#l(t,!1,"exclamation-mark-triangle"):void 0;return!s&&!i?.loaded&&!i?.loadError?this.#a():e==="error"&&s&&!this._utilityNetworks?.length?s:this.#d(s)}};n("arcgis-utility-network-picker",l);return l},"core/Collection","core/reactiveUtils",a)
|
package/dist/cdn/RAADOJWX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"./EJVFK7JX.js";import{a as k}from"./REB4CHAK.js";import{a as T}from"./L5IRXOCJ.js";import d from"./7JPHMESH.js";import c from"./OLY5EME5.js";import{h as $}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as u}from"./LXME6MU5.js";import{P as p,Q as g,R as b,T as h,X as y,_,a as w,b as s,x as f}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{on:O,when:C,watch:H},P,{property:d,subclass:S},,,,D])=>{var L=Object.defineProperty,z=Object.getOwnPropertyDescriptor,l=(a,e,t,i)=>{for(var o=i>1?void 0:i?z(e,t):e,n=a.length-1,c;n>=0;n--)(c=a[n])&&(o=(i?c(e,t,o):c(o))||o);return i&&o&&L(e,t,o),o},E=new EventTarget;function B(a,e,t){let i=!1,o=H(a,(n,c)=>{i||e(n,c)},t);return{remove(){o.remove()},pause(){i=!0},resume(){i=!1}}}var r=class extends P{constructor(a){super(a),this._viewpointHandle=null,this.addHandles(O(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(a){this._set("autoCollapse",a),this._watchViewpoint()}set expanded(a){this._set("expanded",a),this.group&&a&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(a)}get state(){return this.view?.ready?"ready":"disabled"}set view(a){this._get("view")!==a&&(this._set("view",a),a&&C(()=>a.ready,()=>{this.view===a&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(a){this._viewpointHandle&&(a?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let a="viewpoint";this.removeHandles(a),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let i=B(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(i,a),this._viewpointHandle=i}_collapse(){this.expanded=!1}};l([d({value:!1})],r.prototype,"autoCollapse",1);l([d({value:!1})],r.prototype,"expanded",1);l([d()],r.prototype,"group",2);l([d({readOnly:!0})],r.prototype,"state",1);l([d({value:null})],r.prototype,"view",1);r=l([S("map-components.expand.ExpandViewModel")],r);var j=w`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none;--arcgis-internal-expand-action-background-color: var( --calcite-action-background-color, var(--calcite-color-foreground-1) );--arcgis-internal-expand-action-background-color-hover: var( --calcite-action-background-color-hover, var(--calcite-color-surface-3) );--arcgis-internal-expand-action-background-color-press: var( --calcite-action-background-color-press, var(--calcite-color-foreground-3) )}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{--calcite-action-background-color: var(--arcgis-internal-expand-action-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-expand-action-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-expand-action-background-color-press);cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}::slotted(arcgis-exploratory-analysis){width:var(--arcgis-internal-exploratory-analysis-width, fit-content);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-space-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,I="chevrons-left",M="chevrons-right",N=D(r),m=class extends b{constructor(){super(...arguments),this.popoverEl=p(),this.messages=k({}),this.viewModel=N(this),this.toggleActionEl=p(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.focusTrapInitialFocusDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.modalDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=$()("expanded"),this.arcgisReady=f()}static{this.properties={_slottedIcon:16,expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,autoModeBreakpoint:9,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,focusTrapInitialFocusDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,modalDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:i,expandTooltip:o}=this;return(e?i||t.collapse:o||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return!!this.viewModel.view&&this.viewModel.view.width<=(this.autoModeBreakpoint??544);default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;if(this._slottedIcon)return this._slottedIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??I}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??M}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}_handleSlotChange({currentTarget:e}){let t=e.assignedElements().find(i=>"icon"in i);this._slottedIcon=t?.icon}render(){let{_displaySheet:e,toggleActionEl:t,expanded:i,focusTrapInitialFocusDisabled:o,label:n,modalDisabled:c,topLayerDisabled:v}=this,x=o?{initialFocus:!1}:void 0;return s`<div class=${h(u("root",T.widget))}>${this._renderToggle()}${e?s`<calcite-sheet class="sheet" .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${x} height=l .label=${n??""} .modalDisabled=${c} .topLayerDisabled=${v} @keydown=${this._handleKeyDown} .open=${i} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!i} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?s`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${x} .label=${n??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${i} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${v} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?s`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:i,collapseIcon:o}=this,n=e?o:i;return s`<calcite-action class=${h(u("action","icon",{"icon-flip":n===I||n===M}))} @click=${this.toggle} .text=${t} title=${t??y} .icon=${n} .scale=${this.visualScale} ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return s`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return s`<div class="content-container"><slot @slotchange=${this._handleSlotChange}></slot></div>`}};_("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,d,e)
|
package/dist/cdn/TEPHXOQ2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{c as b}from"./Y6WTYXVP.js";import{b as m}from"./WJQUE4DR.js";import{a as A}from"./REB4CHAK.js";import{h as p}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as g,X as d,_ as v,a as y,b as r,x as h}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:f}])=>{var w=y`:host{--arcgis-internal-exploratory-analysis-width: fit-content;display:flex;justify-content:flex-end;width:var(--arcgis-internal-exploratory-analysis-width)}:host(:is([data-content-open],[show-heading])){--arcgis-internal-exploratory-analysis-width: var(--arcgis-internal-panel-width, 300px);calcite-panel{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}}calcite-panel{flex:none}calcite-action-bar{width:fit-content}.selection-notice-container{padding:var(--calcite-space-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-space-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-space-md);width:100%}`,_=["arcgis-area-measurement-2d","arcgis-area-measurement-3d","arcgis-direct-line-measurement-3d","arcgis-distance-measurement-2d","arcgis-elevation-profile","arcgis-volume-measurement"];function C(o){return o?.state==="measuring"||o?.state==="creating"||o?.state==="selecting"}var $=_.join(","),u=class extends g{constructor(){super(),this._messages=A({blocking:!0}),this.#s=!1,this.#t=new WeakMap,this._activeAnalysisHasInput=!1,this._measurements=[],this.autoDestroyDisabled=!1,this.autoStartDisabled=!1,this.closed=!1,this.icon="measure",this.preserveAnalysisOnChange=!1,this.requireActiveAnalysis=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showHeading=!1,this.arcgisClose=h(),this.arcgisPropertyChange=p()("activeAnalysis"),this.arcgisReady=h(),this.listen("arcgisPropertyChange",this.#r.bind(this)),this.listen("arcgisReady",this.#r.bind(this))}static{this.properties={_activeAnalysisHasInput:16,_activeAnalysisState:16,_measurements:16,activeAnalysis:1,autoDestroyDisabled:5,autoStartDisabled:5,closed:5,icon:1,messageOverrides:0,preserveAnalysisOnChange:5,requireActiveAnalysis:5,showCloseButton:5,showCollapseButton:5,showHeading:7}}static{this.styles=w}#a;#s;#t;#e;#n;#i;get activeAnalysis(){return this.#a}set activeAnalysis(e){this.#e=typeof e=="string"?e:void 0,this.#c(typeof e=="string"?this._measurements.find(i=>i.localName===e):e??void 0)}async destroy(){await this.manager.destroy()}load(){this.manager.onLifecycle(()=>(this.#o(),()=>{this.#i=m(this.#i),this.#n=void 0}))}async#l(){await this.activeAnalysis?.clear()}#m(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}async#u({target:e}){let i=Number(e.selectedActions.at(0)?.dataset.measurementIndex),s=this._measurements[i],a=this.activeAnalysis;if(s){if(s!==a&&(!this.preserveAnalysisOnChange||C(a))&&await this.#l(),this.#h(s),this.autoStartDisabled||s.interactionDisabled||this.preserveAnalysisOnChange&&s.analysis?.valid)return;await s.start()}else await this.#l(),this.#h(void 0)}#r(){this._activeAnalysisState=this.activeAnalysis?this.activeAnalysis.state??"disabled":void 0,this.#o(),this.#d(),this.requestUpdate()}#y({currentTarget:e}){let i=b(e,$),s=this._measurements.filter(t=>!i.includes(t));for(let t of s){let l=this.#t.get(t);t.hidden=l?.hidden??!1,t.hideStartButton=l?.hideStartButton??!1,"hideClearButton"in t&&(t.hideClearButton=l?.hideClearButton??!1),"hideHeader"in t&&(t.hideHeader=l?.hideHeader??!1),this.#t.delete(t)}for(let t of i)this.#t.has(t)||(this.#t.set(t,{hidden:t.hidden,hideClearButton:"hideClearButton"in t?t.hideClearButton:void 0,hideStartButton:t.hideStartButton,hideHeader:"hideHeader"in t?t.hideHeader:void 0}),t.componentOnReady().then(()=>{this.isConnected&&t.isConnected&&this._measurements.includes(t)&&this.requestUpdate()})),t.hideStartButton=!0,"hideClearButton"in t&&(t.hideClearButton=!0),"hideHeader"in t&&(t.hideHeader=!0);this._measurements=i;let a;this.#e&&(a=i.find(t=>t.localName===this.#e));let c;!this.#e&&i.length===1&&(c=i[0]);let n;this.#e?n=a:this.#s&&i.length>1?n=void 0:this.activeAnalysis&&i.includes(this.activeAnalysis)?n=this.activeAnalysis:n=c,this.#c(n),this.#s=!!c}#h(e){this.#e=void 0,this.#s=!1,this.#c(e)}#c(e){let i=this.#a;this.#a=e,this.el.toggleAttribute("data-content-open",!!e),this.requestUpdate("activeAnalysis",i),this.#g()}#g(){this._activeAnalysisState=this.activeAnalysis?this.activeAnalysis.state??"disabled":void 0,this.#o(),this.#d()}#d(){for(let e of this._measurements)e.hidden=e!==this.activeAnalysis||(this.#t.get(e)?.hidden??!1)||e===this.activeAnalysis&&this._activeAnalysisState==="ready"}async#v(){await this.activeAnalysis?.start()}#o(){let e=this.activeAnalysis?.analysis;if(!(e===this.#n&&(e==null||this.#i))){if(this.#i=m(this.#i),this.#n=e,!e){this._activeAnalysisHasInput=!1;return}this.#i=f(()=>e.valid,i=>this._activeAnalysisHasInput=i,{initial:!0,sync:!0})}}render(){let{showCloseButton:e,showCollapseButton:i,showHeading:s}=this,a=this._activeAnalysisState==="disabled",c=this._measurements.length>1,n=this.activeAnalysis?.label||this._messages.componentLabel;return r`<calcite-panel .closed=${this.closed} .heading=${s?this._messages.componentLabel:void 0} .collapsible=${i} .closable=${e} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal .overflowMode=${!s&&!this.activeAnalysis?"none":"collapse"}><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} .selectionMode=${this.requireActiveAnalysis?"single-persist":"single"}>${this._measurements.map((t,l)=>r`<calcite-action .active=${t===this.activeAnalysis} data-measurement-index=${l??d} .icon=${t.icon} .label=${t.label} .text=${t.label??""} title=${t.label??d}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis||a}><calcite-block class="measurement-content" .expanded=${this.isConnected&&!!this.activeAnalysis&&!a} .heading=${n}><slot @slotchange=${this.#y.bind(this)}></slot></calcite-block></div>${this.activeAnalysis?r`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#l} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled||this._activeAnalysisState!=="ready"&&!this._activeAnalysisHasInput} @click=${this.#v} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile")?this._messages.newProfile:this._messages.newMeasurement}</calcite-button></div>`:null}</calcite-panel>`}};v("arcgis-exploratory-analysis",u);return u},"core/reactiveUtils")
|
package/dist/cdn/TY4XRXLB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import b from"./HU57LQOA.js";import{a as f}from"./REB4CHAK.js";import{h as g}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{R as h,_ as d,a as u,b as a,p as n,x as m}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([k,{d:b}])=>{var w=u`:host{height:100%;flex-grow:1}.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-space-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-input,calcite-label,calcite-notice){margin:0 var(--calcite-space-md)}calcite-block>:is(calcite-combobox,calcite-input,calcite-notice):not(:last-child){margin-bottom:var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}#subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}`,C=20,N=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),c=class extends h{constructor(){super(...arguments),this._messages=f({blocking:!0}),this._subnetworkNamesState="ready",this._compatibleSubnetworkNames=[],this.traceConfigurations=[],this.hideSubnetworkInfo=!1,this.hideErrors=!1,this.state="ready",this.arcgisPropertyChange=g()("selectedNamedTraceConfiguration","traceConfiguration"),this.arcgisError=m()}static{this.properties={_subnetworksTable:16,_subnetworkNamesState:16,_compatibleSubnetworkNames:16,messageOverrides:0,selectedNamedTraceConfiguration:0,traceConfigurations:0,utilityNetwork:0,heading:1,traceConfiguration:0,isSubnetworkNameTraceSelected:32,hideSubnetworkInfo:5,hideErrors:5,error:1,state:1}}static{this.styles=w}get#e(){return this.traceConfiguration?.subnetworkName??void 0}set#e(e){this.traceConfiguration&&(this.traceConfiguration.subnetworkName=e)}get isSubnetworkNameTraceSelected(){let{selectedNamedTraceConfiguration:e}=this;return!!e?.traceConfiguration?.subnetworkName&&e?.traceType==="subnetwork"}willUpdate(e){e.has("utilityNetwork")&&this.#u(),e.has("traceConfigurations")&&this.#m(),e.has("selectedNamedTraceConfiguration")&&this.#s()}async#s(){let{selectedNamedTraceConfiguration:e}=this;if(!e||!(e.traceConfiguration instanceof k)){this.#t(e?this._messages.errors.noTraceConfiguration:this._messages.errors.traceConfigurationNotFound),this.traceConfiguration=void 0,this.arcgisPropertyChange.emit({name:"traceConfiguration"});return}this.#i(),this.traceConfiguration=e.traceConfiguration.clone(),this.arcgisPropertyChange.emit({name:"selectedNamedTraceConfiguration"}),this.arcgisPropertyChange.emit({name:"traceConfiguration"}),this.isSubnetworkNameTraceSelected&&(this._subnetworkNamesState="loading",this.state="loading",await this.#o(this.traceConfiguration),this._subnetworkNamesState="ready",this.state="ready")}async#o(e){await this.#n(),await this.#c(),e.subnetworkName&&!this._compatibleSubnetworkNames.some(t=>t===e.subnetworkName)&&(this.#e=this._compatibleSubnetworkNames.at(0))}async#n(){this._subnetworksTable||(this._subnetworksTable=await this.utilityNetwork?.loadSubnetworksTable())}async#c(){let{_subnetworksTable:e}=this;if(!e)return;let t=e.fieldsIndex.get("SUBNETWORKNAME"),i=(o,l,p)=>l===0||o.getAttribute(t.name)!==p[l-1].getAttribute(t.name),r=e.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.where=this.#l(),r.outFields=[t.name],r.orderByFields=[t.name];let{features:s}=await b(e,r,void 0,!1);this._compatibleSubnetworkNames=s.filter(i).map(o=>o.getAttribute(t.name))}#l(){let e=this.traceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}#u(){this.#e=void 0,this._subnetworksTable=void 0,this._compatibleSubnetworkNames=[]}#m(){this.traceConfiguration=void 0,this.selectedNamedTraceConfiguration=void 0,this.traceConfigurations.length?(this.#i(),this.selectedNamedTraceConfiguration=this.traceConfigurations.find(e=>e.traceConfiguration instanceof k)??this.traceConfigurations.at(0)):this.#t(this._messages.errors.noTraceConfigurations)}#t(e){n("error",this,e),this.error=e,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#a(e,t){return a`<div class="key-value-pair"><div class="key-value-pair__key">${e}</div><div class="key-value-pair__value">${t}</div></div>`}#r(e,t=!1,i="exclamation-mark-triangle"){return this.hideErrors?null:a`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}#h(){let e=this.selectedNamedTraceConfiguration?.title;return e?a`<calcite-label>${e}</calcite-label>`:null}#d(){let e=this.traceConfigurations.map(i=>a`<calcite-combobox-item .value=${i.globalId} .heading=${i.title} .selected=${i.globalId===this.selectedNamedTraceConfiguration?.globalId}></calcite-combobox-item>`),t=this._messages.labels.traceConfiguration;return a`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let r=i.selectedItems[0]?.value;this.selectedNamedTraceConfiguration=this.traceConfigurations.find(s=>s.globalId===r)}}>${e}</calcite-combobox>`}#g(){let{_messages:e}=this;if(this.error===e.errors.noTraceConfigurations)return this.#r(e.errors.noTraceConfigurations);let t=this.error?this.#r(this.error):null,i=this.traceConfigurations.length>1?this.#d():this.#h(),r=this._messages.labels.traceConfiguration,s=this.heading??r;return a`<calcite-block .heading=${s} .label=${r} expanded>${i}${t}</calcite-block>`}#b(){if(this.hideSubnetworkInfo)return null;let{_messages:e,selectedNamedTraceConfiguration:t}=this;if(!t?.traceConfiguration)return this.traceConfiguration=void 0,this.#t(this._messages.errors.noTraceConfiguration),null;this.#i();let{domainNetworkName:i,tierName:r,targetTierName:s}=t.traceConfiguration;return!i&&!r&&!s?(n("warn",this,"`namedTraceConfig.traceConfiguration` has no `domainNetworkName`, `tierName`, or `targetTierName`."),null):a`<calcite-block id=subnetwork-info-block expanded .label=${this._messages.labels.subnetworkInfo}><div class="subnetwork-details">${i?this.#a(e.headings.domainNetwork,i):null}${r?this.#a(e.headings.tier,r):null}${s?this.#a(e.headings.targetTier,s):null}</div></calcite-block>`}#f(){let{_messages:e}=this,t=e.labels.subnetworkName;return this.isSubnetworkNameTraceSelected?this._subnetworkNamesState==="loading"?a`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:this._compatibleSubnetworkNames.length?a`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length>C?this.#k():this.#p()}</calcite-block>`:this.#r(e.errors.noCompatibleSubnetworks):null}#k(){let{_messages:e}=this;return a`<calcite-input clearable type=text .placeholder=${e.instructions.enterSubnetworkName} max-length=64 .status=${this.#e?"valid":"invalid"} .value=${this.#e} @calciteInputInput=${t=>this.#e=t.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${e.labels.tooManySubnetworks}</calcite-input-message>`}#p(){return a`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:e})=>{let t=e.selectedItems[0]?.value;this.#e=t}}>${this._compatibleSubnetworkNames.map(e=>a`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e===this.#e}></calcite-combobox-item>`)}</calcite-combobox>`}render(){let{selectedNamedTraceConfiguration:e}=this,t=e?.traceType&&N.has(e.traceType)?a`${this.#b()}${this.#f()}`:null;return a`${this.#g()}${t}`}};d("arcgis-utility-network-trace-configuration-picker",c);return c},"networks/support/UNTraceConfiguration",b)
|
package/dist/cdn/UZ4VANCL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import u from"./3NUN6DK3.js";import"./EVWWTIEQ.js";import{a as Q}from"./4L43F7HU.js";import t from"./RXKIZFNQ.js";import s from"./3KAC2MKA.js";import o from"./BFYJTV6Q.js";import{a as S,b as U,g as G,h as L,j as H,k as q,m as c,n as $}from"./ZCFWKPXL.js";import{a as N}from"./WVKMYNN7.js";import{a as m}from"./5GFPOTOB.js";import n from"./GEOME3IC.js";import l from"./HU57LQOA.js";import j from"./BOPNSNUT.js";import"./WJQUE4DR.js";import i from"./EJVFK7JX.js";import{a as B}from"./REB4CHAK.js";import{a as _}from"./L5IRXOCJ.js";import{a as k}from"./7Y4SF2NT.js";import h from"./7ILT5PDJ.js";import f from"./7JPHMESH.js";import e from"./OLY5EME5.js";import{h as x}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as P}from"./LXME6MU5.js";import{B as R,P as d,Q as p,R as C,T as g,X as y,Y as v,_ as A,a as M,b as r,x as b}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([se,w,{on:ae,watch:le},,,,D,O,,,,,{k:j},,{a:z,b:J,c:K}])=>{var u={...Q,section:"section",editing:"editing",editingForm:"editing-form"},re=M`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-space-sm);padding-inline:var(--calcite-space-sm)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=O(se),F=class extends C{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this.#t=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${R()}`,this.#i=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=B(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let l=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:l,to:h},Z=t.group,ee=i.group,te=l?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(i=>i.classList?.contains(u.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new w,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesEnabled=new w(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new w,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new w,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisBaseFilterChange=b(),this.arcgisOpenedLayersChange=b(),this.arcgisPropertyChange=x()("state"),this.arcgisReady=b(),this.arcgisReferenceFilterChange=b(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItemCreatedFunction:0,baseItems:32,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideReferenceLayers:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listModeDisabled:5,mapImageOptions:0,messageOverrides:0,minFilterItems:9,openedLayers:32,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction:0,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,showFilter:5,showTemporaryLayerIndicators:5,state:32,tableList:32,tileOptions:0,view:0,visibilityAppearance:1}}static{this.styles=[K,re,J]}#t;#i;get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this.#L(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this.#n(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[ae(()=>this.openedLayers,"change",()=>{this.#o()},{initial:!0}),le(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){L(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),L(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async#r(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this.#h(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async#o(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this.#i?.abort();let s=new AbortController,{signal:a}=s;this.#i=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this.#r(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}#n(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async#h(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:s,minFilterItems:a,selectionMode:o,visibilityAppearance:l,layerTablesEnabled:n}=this;return v(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??l} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}#c(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let t=this.#c(e);return v(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list-next>`)}#d(e){e.open=!1,this._focusRootFlowItem=!0}#m({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,l=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:l,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}#p(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let t=this.#t,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,l=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||l)return;this.#t=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this.#m({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}#g(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}#e(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[_.hidden]:this.state==="loading",[_.disabled]:this.state==="disabled"};return r`<div class=${g(P(_.widget,_.panel,e))}>${this.#w()}${this.#f()}</div>`}#u(e){return e?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>`:null}#s(e){if(e.incompatible)return this.#u(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this.#s(i));return t?.length?t:null}#f(){return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this.#s(e))}#a(e){return r`<div slot=message>${e}</div>`}#y(e,t){return this.hideNoItemsNotice?null:r`<div class=${g(u.itemMessage)}>${m(t,r`<calcite-notice icon=information kind=info open width=full>${this.#a(e)}</calcite-notice>`)}</div>`}#I(){return r`<div class=${g(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??y} type=text .value=${this.viewModel.basemapTitle??void 0} ${p(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}#b(){return this.editingTitle?r`<calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${p(this._editingFlowItemRef)}>${this.#I()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>`:null}#_(){return this.showEditTitleButton&&!this.editingTitle?r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??y}></calcite-action>`:null}#w(){let e=[m("root-flow-item",r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${p(this._rootFlowItemRef)}>${this.#_()}${this.#F()}${this.#$()}</calcite-flow-item>`),this.#b(),this.#v(),this._renderedOpenLayerFlowItems];this._focusRootFlowItem=this.#e(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this.#e(this._editingFlowItemRef.value,this._focusEditingFlowItem);let t=m("root-flow",r`<calcite-flow>${e}</calcite-flow>`);return this.closed?null:this.editingTitle?r`<form class=${g(u.editingForm)} @submit=${this._formSubmit}>${t}</form>`:t}#v(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this.#d(i);return this._focusPanelFlowItem=this.#e(this._panelFlowItemRef.value,this._focusPanelFlowItem),r`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${p(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#L(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this.#e(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??y} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${p(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}#l(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,r`<calcite-block class=${g(u.section)} expandable expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this.#y(o,t)}${m(`list-${t}`,r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${l=>this._canMove(l,"pull")} .canPut=${l=>this._canMove(l,"put")} data-basemap-layer-type=${t??y} data-layer-type=${this._rootGroupUid??y} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this.#g} @calciteListDragEnd=${l=>this.#p(l.detail)} @calciteListFilter=${l=>{let n=l.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${l=>this._onCalciteListOrderChange(l.detail)} ${p(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(l=>this.#E(l,i))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${g(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#a(o)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}#$(){return this.hideBaseLayers?null:this.#l(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}#F(){return this.hideReferenceLayers?null:this.#l(this._visibleReferenceItems,"reference",!1)}#E(e,t,i,s){return m(e.uid,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layerList/BasemapLayerListModel","core/Collection","core/reactiveUtils",a,e,f,h,i,j,l,n,o,s,t,u)
|
package/dist/cdn/W4BA3ECA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import c from"./QBVHLHRR.js";import b from"./HU57LQOA.js";import a from"./BOPNSNUT.js";import"./WJQUE4DR.js";import{a as v}from"./REB4CHAK.js";import{h as w}from"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import{Q as h,R as m,_ as f,a as g,b as r,x as l}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([o,{watch:k},{substitute:$},T,{a:u},{d:y,h:b},d])=>{var _=g`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-space-md);background-color:var(--calcite-color-surface-2)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}.subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.results-limited-message{padding:var(--calcite-space-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-space-md);margin:var(--calcite-space-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-space-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`,p=class extends m{constructor(){super(...arguments),this._messages=v({blocking:!0}),this.#n=!0,this.#d=new Map,this.#t=new o,this.#i=new o,this.#e=new o,this.#a=null,this.#r=20,this._candidateFeatures=[],this._compatibleSubnetworkNames=[],this._namedTraceConfigurations=[],this._subnetworkNamesState="ready",this._exceedDisplayLimit=!1,this.autoDestroyDisabled=!1,this.hideActionBar=!1,this.includeDefaultActionsDisabled=!1,this.mode="default",this.arcgisPropertyChange=w()("mode","selectedNamedTraceConfiguration","selectedUtilityNetwork","traceLocations"),this.arcgisTraceLocationSelectEnd=l(),this.arcgisTraceLocationSelectStart=l(),this.arcgisTriggerAction=l()}static{this.properties={_selectedFeature:16,_candidateFeatures:16,_compatibleSubnetworkNames:16,_subnetworksTable:16,_namedTraceConfigurations:16,_traceConfiguration:16,_error:16,_subnetworkNamesState:16,_activeTraceLocationType:16,_exceedDisplayLimit:16,actions:0,beforeMapInteraction:0,view:0,selectedUtilityNetwork:0,selectedNamedTraceConfiguration:0,autoDestroyDisabled:5,hideActionBar:5,includeDefaultActionsDisabled:5,traceConfiguration:32,isSubnetworkNameTraceSelected:32,messageOverrides:0,referenceElement:1,mode:3,traceLocationDetails:32,traceLocations:32}}static{this.styles=_}#n;get#T(){let{view:t}=this;return t?.map?t.map.allLayers.toArray().concat(t.map.allTables.toArray()):[]}#l;#d;#t;#i;#e;#a;#s;#f;#w;#y;#r;get#h(){return!this.isSubnetworkNameTraceSelected}get#u(){let t=this.selectedNamedTraceConfiguration?.traceType;return t==="path"||t==="circuit"}get#b(){return this._namedTraceConfigurations.length>0&&!!this.traceConfiguration}get#_(){let t=this.selectedUtilityNetwork?.dataElement?.domainNetworks;return t?t.map(e=>e.subnetworkLayerId).filter(e=>e!=null&&e>-1):[]}get traceConfiguration(){return this._traceConfiguration}get isSubnetworkNameTraceSelected(){let{selectedNamedTraceConfiguration:t}=this;return!!t?.traceConfiguration?.subnetworkName&&t?.traceType==="subnetwork"}get traceLocationDetails(){return new o([...this.#t,...this.#i,...this.#e])}get traceLocations(){let t=[];return this.#h&&this.#t.forEach(e=>t.push(...this.#p(e))),this.#u&&this.#e.forEach(e=>t.push(...this.#p(e))),this.#i.forEach(e=>t.push(...this.#p(e))),t}async destroy(){this.#k(),d.getSketchViewModel(this.view)?.cancel(),d.removeSketchGraphicsLayer(this.view);let t=await Promise.allSettled([this.#s?.destroy(),this.#f?.destroy(),this.#w?.destroy(),this.#y?.destroy()]);for(let e of t)e.status==="rejected"&&u(e.reason,this,"Error while destroying trace inputs");await this.manager.destroy()}load(){this.#v(),this.manager.onLifecycle(()=>[k(()=>this.view?.map,()=>this.#v())])}willUpdate(t){t.has("selectedUtilityNetwork")&&this.#P()}disconnectedCallback(){super.disconnectedCallback(),this.#d.clear()}#N(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#L({detail:t,target:e}){(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(this._selectedFeature=e.selectedDrillInFeature??e.selectedFeature??void 0)}#v(){if(this._error=void 0,!this.view?.map){this._error=this._messages.errors.noView;return}}#C(t){t&&(this.#f=t)}#S(t){t&&(this.#w=t)}#D(t){t&&(this.#y=t)}#F(t){t&&(this.#s=t)}#p(t){let e=t.flagProperties.selectedTerminals;return t.flagProperties.terminalConfiguration&&e?.size?Array.from(e,i=>new T({type:t.traceLocation.type,isFilterBarrier:t.traceLocation.isFilterBarrier,globalId:t.traceLocation.globalId,percentAlong:t.traceLocation.percentAlong,terminalId:i})):[t.traceLocation]}#k(){this.#o(new o([...this.#t,...this.#i,...this.#e])),this.#t.removeAll(),this.#i.removeAll(),this.#e.removeAll()}async#P(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&await t.load()}catch(e){u(e,this,"Error while loading the selected utility network")}this.#U(),this.#E(),this.#k()}#A(){if(!this.#b){this.#o(new o([...this.#t,...this.#i,...this.#e]));return}this.#g(this.#i),this.#h?this.#g(this.#t):this.#o(this.#t),this.#u?this.#g(this.#e):this.#o(this.#e)}#U(){this._traceConfiguration=void 0,this.selectedNamedTraceConfiguration=void 0,this._namedTraceConfigurations=this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter(t=>t.traceType!=="circuit").sort((t,e)=>t.title.localeCompare(e.title))||[]}#E(){let{selectedUtilityNetwork:t}=this;this.#l=new o(this.#T.filter(e=>t?.isUtilityLayer(e)&&!this.#_.includes(e.layerId)))}#I(t){if(t.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(t.detail).defaultPrevented){t.preventDefault();return}this._activeTraceLocationType=t?.target?.traceLocationType,this.mode="add-spatial-instructions"}#x(t){if(t==null)return;let e=this.#d,i=this.#l,a=e.get(t);if(a)return a;if(!i)return;let s=i.find(c=>"layerId"in c&&c.layerId===t);return s&&e.set(t,s),s}async#M(t,e){let i=t.createQuery();i.gdbVersion=this.selectedUtilityNetwork?.gdbVersion,i.objectIds=e.map(s=>s.getObjectId()),i.outFields=["*"];let{features:a}=await y(t,i);return a.forEach(s=>{if(!s.getEffectivePopupTemplate(this.#n)){let c=s.layer;s.popupTemplate=c.createPopupTemplate()}}),a}async#O(t){let e=new Map,i=[];return t.forEach(a=>{let s=b(a.layer)?a.layer.parent:a.layer;if(s){let c=this.#x(s.layerId);if(c){let n=e.get(c)||[];n.push(a),e.set(c,n)}}}),await Promise.all(Array.from(e.keys()).map(async a=>{let s=e.get(a)??[],c=await this.#M(a,s);i.push(...c)})),i}async#B(t){return this._exceedDisplayLimit=t.length>this.#r,this._candidateFeatures=await this.#O(t.slice(0,this.#r)),this._candidateFeatures.length===0?(this.#c(),await Promise.reject(Error("No features found"))):(this._candidateFeatures.length===1&&(this._selectedFeature=this._candidateFeatures.at(0)),this.mode="add-spatial-feature",this.#a?.reject(),this.#a=Promise.withResolvers(),await this.#a.promise)}#j(t){t.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit(),this._activeTraceLocationType=void 0,this.mode="default",this.#c()}#c(t){t?.stopPropagation(),this.#s?.clear(),this.#$(),(this.view?d.getSketchViewModel(this.view):null)?.cancel()}#$(){this.mode="default",this._candidateFeatures=[],this._selectedFeature=void 0,this.#a?.reject(),this.#a=null}#V(){let t=this.#a,e=this.#s,{_selectedFeature:i}=this;if(t&&e){if(!i)return;t.resolve(i),this.#a=null}}#g(t){let e=t.map(({spatialProperties:i})=>i.flagGraphic).filter(i=>i!==void 0&&!this.view?.graphics.includes(i));this.view?.graphics.addMany(e)}#o(t){let e=t.map(({spatialProperties:i})=>i.flagGraphic).filter(i=>i!==void 0);this.view?.graphics.removeMany(e)}#z(t,e=!1,i){return r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#G(){let{_namedTraceConfigurations:t,selectedUtilityNetwork:e}=this;return r`<arcgis-utility-network-trace-configuration-picker .messageOverrides=${this.messageOverrides} .traceConfigurations=${t} .utilityNetwork=${e} @arcgisPropertyChange=${i=>{i.stopPropagation(),i.detail.name==="selectedNamedTraceConfiguration"?(this.selectedNamedTraceConfiguration=i.target.selectedNamedTraceConfiguration,this.#A()):i.detail.name==="traceConfiguration"&&(this._traceConfiguration=i.target.traceConfiguration)}}></arcgis-utility-network-trace-configuration-picker>`}#q(){let{selectedUtilityNetwork:t,view:e}=this;return r`<arcgis-utility-network-picker .messageOverrides=${this.messageOverrides} .selectedUtilityNetwork=${t} .view=${e} @arcgisPropertyChange=${i=>{i.detail.name==="selectedUtilityNetwork"&&(this.selectedUtilityNetwork=i.target.selectedUtilityNetwork)}}></arcgis-utility-network-picker>`}#Q(){let{_error:t}=this,{noView:e}=this._messages.errors,i;return t===e?i=this.#z(t,!1,"exclamation-mark-triangle"):i=this.#W(),r`<calcite-flow-item .selected=${this.mode==="default"}>${i}</calcite-flow-item>`}#R(){let{_messages:t,mode:e}=this,i=this._activeTraceLocationType==="starting-point"?t.labels.addSpatial.startingPoint:this._activeTraceLocationType==="barrier"?t.labels.addSpatial.barrier:t.labels.addSpatial.stoppingPoint;return r`<calcite-flow-item .selected=${e==="add-spatial-instructions"} .heading=${i} @calciteFlowItemBack=${a=>this.#c(a)}><div class="add-spatial-mode"><div><h5 class="heading">${t.instructions.addSpatial.selectFeature.heading}</h5>${t.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${t.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${t.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`}#H(){let{_activeTraceLocationType:t,_candidateFeatures:e,_messages:i}=this;if(!e.length)return this.mode="default",null;let a=t==="starting-point"?i.labels.addSpatial.startingPoint:t==="barrier"?i.labels.addSpatial.barrier:i.labels.addSpatial.stoppingPoint,s=e.length===1?"feature":"list";return r`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#n} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .initialDisplayMode=${s} .messageOverrides=${this.messageOverrides} @arcgisClose=${()=>this.#$()} @arcgisPropertyChange=${this.#L} @arcgisTriggerAction=${this.#N} open .referenceElement=${this.referenceElement} .view=${this.view} ${h(this.#F)}></arcgis-features-next>`}#J(){let{mode:t,_messages:e,_selectedFeature:i,selectedUtilityNetwork:a}=this,s=t==="add-spatial-feature"&&this._exceedDisplayLimit&&!i,c=$(e.warnings.exceededDisplayLimit,{limit:this.#r.toString()}),n=i?!(a?.isUtilityLayer(i.layer)??!0):!0;return r`${s&&r`<calcite-input-message class="results-limited-message" icon=exclamation-mark-circle status=idle>${c}</calcite-input-message>`||""}<calcite-button appearance=outline width=full @click=${()=>this.#c()} slot=footer>${e.buttons.cancel}</calcite-button>${t==="add-spatial-feature"&&r`<calcite-button width=full slot=footer appearance=solid @click=${()=>this.#V()} .disabled=${n}>${e.buttons.add}</calcite-button>`||""}`}#m(t,e,i){return r`<arcgis-utility-network-trace-locations .messageOverrides=${this.messageOverrides} .view=${this.view} .traceLocationType=${t} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisTraceLocationSelectStart=${this.#I} @arcgisTraceLocationSelectEnd=${this.#j} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#l} .traceLocations=${e} .afterMapInteraction=${this.#B.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(i)}></arcgis-utility-network-trace-locations>`}#W(){let{_messages:t}=this,e=this.#q(),i=this.#G(),a=this.#b?r`${this.#h?this.#m("starting-point",this.#t,this.#C):null}${this.#u?this.#m("stopping-point",this.#e,this.#D):null}${this.#m("barrier",this.#i,this.#S)}`:null,s=this.selectedUtilityNetwork?.loaded?r`${i}${a}`:null;return r`<calcite-block-group .label=${t.labels.traceInputs}>${e}${s}</calcite-block-group>`}render(){let{mode:t}=this;return r`<calcite-panel>${t==="add-spatial-feature"?this.#H():null}<calcite-flow .hidden=${t==="add-spatial-feature"}>${this.#Q()}${this.#R()}</calcite-flow>${t!=="default"?this.#J():null}</calcite-panel>`}};f("arcgis-utility-network-trace-inputs",p);return p},"core/Collection","core/reactiveUtils","intl","rest/networks/support/TraceLocation",a,b,c)
|
package/dist/cdn/XCDMOCWN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as $}from"./WFTJ4E4F.js";import c from"./GEOME3IC.js";import b from"./HU57LQOA.js";import a from"./BOPNSNUT.js";import{a as m}from"./WJQUE4DR.js";import{R as x,_ as T,a as y,b as l}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:I,when:L},b,A,E,{compileExpression:R},{b:f,d:g},,{q:w}])=>{function h(u,t,{signal:r,edges:e=["leading","trailing"]}={}){let i=null,s=$(function(...o){i=Date.now(),u.apply(this,o)},t,{signal:r,edges:e}),a=function(...o){if(i==null&&(i=Date.now()),Date.now()-i>=t){i=Date.now(),u.apply(this,o),s.cancel(),s.schedule();return}s.apply(this,o)};return a.cancel=s.cancel,a.flush=s.flush,a}var J=y`.loading-container{display:flex;justify-content:center;padding:var(--calcite-space-md) 0;width:100%}`,k=1,v=class extends x{constructor(){super(...arguments),this._compileThrottled=h(this._startCompile,k),this._evaluateThrottled=h(this._startEvaluate,k),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,expressionInfos:0,layer:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=J}loaded(){this.manager.onLifecycle(()=>[I(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),L(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,r=t?.dependencies,{view:e}=this;return[t,this.spatialReference,this.map,e,r?.has("view-scale")&&e&&"scale"in e?e.scale:null,r?.has("view-time-extent")?e?.timeExtent?.start:null,r?.has("view-time-extent")?e?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=m(this._evaluateTask),this._compileTask=m(this._compileTask),this._compileTask=g(async t=>{let{expressionInfo:r,graphic:e}=this,i=r?.expression;if(!i||!e)return null;let s=await R({expression:i,graphic:e});return f(t),s})}_startEvaluate(t){this._evaluateTask=m(this._evaluateTask),this._evaluateTask=g(async r=>{let{graphic:e}=this;if(!t||!e)return null;let{interceptor:i,spatialReference:s,map:a,location:o,view:n}=this,c=await t.evaluate({graphic:e,interceptor:i,location:o,map:a,options:{signal:r},spatialReference:s,view:n});f(r);let _=c&&"castAsJsonAsync"in c&&typeof c.castAsJsonAsync=="function"?c:null;if(!_)return null;let p=await _.castAsJsonAsync(r);f(r);let d=p?.type;return d==="media"?b.fromJSON(p):d==="text"?E.fromJSON(p):d==="fields"?A.fromJSON(p):null})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return l`<div class="root">${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:r}=this,e=this._evaluateTask?.value,i=e?.type,s={...t,...e?.attributes};if(!i)return null;if(i==="text"){let{text:a}=e;if(!a)return null;let o=w({values:s,fieldInfoMap:r??new Map,globalValues:s,layer:void 0,text:a});return l`<arcgis-feature-content .creator=${o} .graphic=${this.graphic}></arcgis-feature-content>`}else if(i==="media"){let{title:a,description:o,mediaInfos:n}=e;return!n?.length&&!a&&!o?null:l`<arcgis-feature-media .heading=${a??""} .values=${s} .formattedValues=${s} .description=${o??""} .mediaInfos=${n??[]} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`}else if(i==="fields"){let{title:a,description:o,fieldInfos:n}=e;return!n?.length&&!a&&!o?null:l`<arcgis-feature-fields .fieldInfos=${n??[]} .heading=${a??""} .values=${s} .graphic=${this.graphic} .layer=${this.layer} .isContentFieldInfos=${!!n} .description=${o??""} .headingLevel=${this.headingLevel} .messages=${this.messages} .expressionInfos=${this.expressionInfos}></arcgis-feature-fields>`}return null}_renderLoading(){return l`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`}};T("arcgis-feature-expression",v);return v},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b,c)
|
package/dist/cdn/ZEQHIKTN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import n from"./3NUN6DK3.js";import{a as k}from"./4L43F7HU.js";import l from"./3KAC2MKA.js";import j from"./BFYJTV6Q.js";import{a as x,b as N,c as R,g as B}from"./ZCFWKPXL.js";import{a as U}from"./WVKMYNN7.js";import{a as I}from"./5GFPOTOB.js";import i from"./GEOME3IC.js";import h from"./HU57LQOA.js";import g from"./BOPNSNUT.js";import"./WJQUE4DR.js";import f from"./EJVFK7JX.js";import{a as T}from"./REB4CHAK.js";import{a as m}from"./L5IRXOCJ.js";import e from"./7ILT5PDJ.js";import c from"./7JPHMESH.js";import b from"./OLY5EME5.js";import{h as D}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as F}from"./LXME6MU5.js";import{B as y,P as M,Q as E,R as _,T as p,X as C,_ as L,b as o,x as d}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([j,{watch:w,on:q},V,,,,A,P,,,,,,{a:S,b:G,c:O}])=>{var v=k,H="nested",J=P(V),$=class extends _{constructor(){super(...arguments),this.#t=null,this._rootGroupUid=`table-${y()}`,this._rootListRef=M(),this._selectedDragItemLayerUid=null,this.messages=T(),this.viewModel=J(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let l=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,a=this.#e(e);if(!a||!("sortable"in a)||!a.sortable)return!1;let c=this.#e(t),h=this.#i(t),n=this.#e(i),g=this.#i(i),f=!!h&&!!g&&h===g,u={selected:a,from:c,to:n},b=t?.group,r=i?.group;return b&&r&&typeof l=="function"?l(u):f},this._onPanelOpen=()=>{this.requestUpdate()},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="table",this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.map=this.viewModel.map,this.minDragEnabledItems=R,this.minFilterItems=N,this.selectedItems=new j,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryTableIndicators=!1,this.tables=this.viewModel.tables,this.arcgisClose=d(),this.arcgisFilterChange=d(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=d(),this.arcgisSelectedItemsChange=d(),this.arcgisTableItemsChanged=d(),this.arcgisTriggerAction=A(()=>this.viewModel,"trigger-action")}static{this.properties={_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,autoDestroyDisabled:5,closed:5,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,label:1,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,map:0,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryTableIndicators:5,state:32,tableItems:32,tables:0,view:0}}static{this.styles=[O,G]}#t;get _visibleItems(){return this.tableItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this.viewModel.totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.showFilter}get state(){return this.viewModel.state}get tableItems(){return this.viewModel.tableItems}async destroy(){await this.manager.destroy()}willUpdate(e){e.has("map")&&(this.viewModel.map=this.map),e.has("tables")&&(this.viewModel.tables=this.tables),e.has("listItemCreatedFunction")&&(this.viewModel.listItemCreatedFunction=this.listItemCreatedFunction)}loaded(){this.manager.onLifecycle(()=>[w(()=>this.view?.map,e=>{this.map||(this.viewModel.map=e)},{initial:!0}),q(()=>this.viewModel.tableItems,"change",()=>{B(this.selectedItems),this.arcgisTableItemsChanged.emit(),this.requestUpdate()},{initial:!0}),q(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),w(()=>[this.viewModel.state,this.viewModel.totalItems],()=>this.requestUpdate(),{initial:!0}),w(()=>[this.filterPredicate,this._rootListRef.value],()=>this.#a())])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}#e(e){if(e?.tagName.toLowerCase()==="calcite-list-item")return e.value;let t=e?.getAttribute("data-item");return t?this.#l(t):null}#l(e){let t=this.tableItems?.toArray()??[];for(;t.length;){let i=t.shift();if(i){if(i.uid===e)return i;t.push(...i.children?.toArray()??[])}}return null}#i(e){return e?.getAttribute("data-layer-type")??null}#a(){let e=this._rootListRef.value;e&&(e.filterPredicate=this.filterPredicate?t=>{let i=this.#e(t);return i?this.filterPredicate(i):!1}:void 0)}#r(e){e.open=!1}#o(e,t){e?.sort((i,s)=>{let l=i.uid!=null?t.indexOf(i.uid):-1,a=s.uid!=null?t.indexOf(s.uid):-1;return l>a?-1:l<a?1:0})}#n(e){let{fromEl:t,dragEl:i,oldIndex:s}=e;s==null||!t||!i||t.insertBefore(i,t.children[s])}#h(e){let t=this.#t,{toEl:i,fromEl:s,dragEl:l,newIndex:a}=e,c=t?.newIndex===a&&t?.dragEl===l&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||c)return;this.#t=e,this._selectedDragItemLayerUid=l.value;let h=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this.#o(this.map?.tables,h)}#d(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let s=e.target.selectedItems.map(l=>this.#e(l)).filter(Boolean);i.removeAll(),i.addMany(s)}#c(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}render(){let{state:e}=this,t={[m.hidden]:e==="loading",[m.disabled]:e==="disabled"};return o`<div class=${p(F(m.widget,m.panel,t))}>${this.#u()}</div>`}#s(){return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#m(){return this.hideNoItemsNotice?null:o`<div class=${p(v.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#s()}</calcite-notice></div>`}#g(){return U(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,l=()=>this.#r(i);return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t===this._openedPanelItems.length-1} @calciteFlowItemBack=${a=>{a.preventDefault(),l()}}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#u(){let{collapsed:e,_visibleItems:t,_filterEnabled:i,_rootGroupUid:s,showCloseButton:l,showCollapseButton:a,showHeading:c,_dragEnabled:h,selectionMode:n,filterText:g,filterPlaceholder:f,messages:u}=this,b=[o`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${a} .heading=${c?this.label??u.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${()=>this.#c()}>${t?.length?o`<calcite-list .canPull=${r=>this._canMove(r,"pull")} .canPut=${r=>this._canMove(r,"put")} data-layer-type=${s??C} .displayMode=${H} .dragEnabled=${h} .filterEnabled=${i} .filterPlaceholder=${f} .filterProps=${x} .filterText=${i?g:""} .group=${s} .label=${this.label??u.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this.#d} @calciteListDragEnd=${r=>this.#n(r.detail)} @calciteListFilter=${r=>{this.filterText=r.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${r=>this.#h(r.detail)} ${E(this._rootListRef)}>${t.toArray().map(r=>this.#p(r))}${i&&!this.hideNoFilterResultsNotice?o`<div class=${p(v.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#s()}</calcite-notice></div>`:null}</calcite-list>`:this.#m()}</calcite-flow-item>`,this.#g()];return this.closed?null:I("root-flow",o`<calcite-flow>${b}</calcite-flow>`)}#p(e){return I(e.uid,S({canMove:this._canMove,css:v,displayMode:H,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,item:e,itemType:"table",listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,showErrors:this.showErrors,showFilter:this.showFilter,showTemporaryTableIndicators:this.showTemporaryTableIndicators,handleAction:(t,i)=>this._onTriggerAction(t,i),handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,view:this.view}))}};L("arcgis-table-list-next",$);return $},"core/Collection","core/reactiveUtils","layerList/TableListModel",a,b,c,e,f,g,h,i,j,l,n)
|
|
File without changes
|