@arcgis/map-components 5.2.0-next.7 → 5.2.0-next.9

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.
Files changed (87) hide show
  1. package/dist/cdn/{WA7JHFV4.js → 2LRS7XSQ.js} +1 -1
  2. package/dist/cdn/462X4ZCG.js +2 -0
  3. package/dist/cdn/{Y27ZQGV5.js → CW7J5L5W.js} +1 -1
  4. package/dist/cdn/D2JUQOOB.js +2 -0
  5. package/dist/cdn/{YABPKPDP.js → GX45UPO4.js} +1 -1
  6. package/dist/cdn/{JQVWY2TG.js → HXDS4O7D.js} +1 -1
  7. package/dist/cdn/HXHMU23F.js +2 -0
  8. package/dist/cdn/{XKPUIYHL.js → JAANZHBL.js} +1 -1
  9. package/dist/cdn/K5NKFHWA.js +2 -0
  10. package/dist/cdn/{GRF2FJN5.js → OO3T24WP.js} +1 -1
  11. package/dist/cdn/{P3TXSVMD.js → QZB3WXJH.js} +2 -2
  12. package/dist/cdn/ROQ6HC6T.js +2 -0
  13. package/dist/cdn/{QM2RBDFO.js → TQYGI7O4.js} +1 -1
  14. package/dist/cdn/U5FGCB62.js +2 -0
  15. package/dist/cdn/{FZNGDLO6.js → U6FG3DCW.js} +1 -1
  16. package/dist/cdn/{FT2LXOKH.js → UADZMW3G.js} +1 -1
  17. package/dist/cdn/{2THVOG4Y.js → WA7IUOYU.js} +1 -1
  18. package/dist/cdn/{CUMFJ3AY.js → XMYIWNY6.js} +1 -1
  19. package/dist/cdn/XUDFNAMR.js +2 -0
  20. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -1
  21. package/dist/cdn/index.js +1 -1
  22. package/dist/components/arcgis-feature-templates/customElement.d.ts +10 -8
  23. package/dist/components/arcgis-feature-templates/customElement.js +198 -247
  24. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +18 -15
  25. package/dist/components/arcgis-map/customElement.d.ts +21 -35
  26. package/dist/components/arcgis-measurement-content/customElement.js +5 -5
  27. package/dist/components/arcgis-paste/PasteViewModel.d.ts +2 -2
  28. package/dist/components/arcgis-template-image/customElement.d.ts +2 -2
  29. package/dist/components/arcgis-template-image/customElement.js +25 -22
  30. package/dist/components/arcgis-template-image/index.js +1 -0
  31. package/dist/components/arcgis-weather/customElement.js +108 -102
  32. package/dist/docs/api.json +1 -1
  33. package/dist/docs/docs.json +1 -1
  34. package/dist/docs/vscode.html-custom-data.json +1 -1
  35. package/dist/docs/web-types.json +1 -1
  36. package/package.json +5 -5
  37. package/dist/cdn/5T3MHTWU.js +0 -2
  38. package/dist/cdn/6N233F4I.js +0 -2
  39. package/dist/cdn/ABPHGXQN.js +0 -2
  40. package/dist/cdn/L34RL7Y3.js +0 -2
  41. package/dist/cdn/QY5F7WAO.js +0 -2
  42. package/dist/cdn/RJM52R4G.js +0 -2
  43. package/dist/cdn/UZWPHO3G.js +0 -2
  44. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +0 -33
  45. /package/dist/cdn/{Q5PJLESJ.js → 2IJFHZMD.js} +0 -0
  46. /package/dist/cdn/{TIRTPJYQ.js → 2KJOV5HK.js} +0 -0
  47. /package/dist/cdn/{2LKEXUGD.js → 2SUHVYCI.js} +0 -0
  48. /package/dist/cdn/{27HHZNMM.js → 2YXRZJMN.js} +0 -0
  49. /package/dist/cdn/{XPS7ZSFJ.js → 3JMCA4ZR.js} +0 -0
  50. /package/dist/cdn/{HQPBHWPK.js → 4GKDVLBA.js} +0 -0
  51. /package/dist/cdn/{AK2M26FE.js → 4XU4I5VY.js} +0 -0
  52. /package/dist/cdn/{KIZ3ARHJ.js → 5DCYVSSO.js} +0 -0
  53. /package/dist/cdn/{SOOQCCHH.js → 5UPND3OG.js} +0 -0
  54. /package/dist/cdn/{O2CLPWU5.js → 6CGHMQTL.js} +0 -0
  55. /package/dist/cdn/{Y3B5PQ5E.js → 6DVVJ6UQ.js} +0 -0
  56. /package/dist/cdn/{XVY5OKH2.js → AQB6HLVS.js} +0 -0
  57. /package/dist/cdn/{IA3NCWIB.js → B4A4RH4L.js} +0 -0
  58. /package/dist/cdn/{VHB2BYFO.js → B5D6OPEJ.js} +0 -0
  59. /package/dist/cdn/{HUYCG6D3.js → C3LA23CB.js} +0 -0
  60. /package/dist/cdn/{NYHNV75B.js → C436KPG7.js} +0 -0
  61. /package/dist/cdn/{YJPDBYVX.js → CGISH4NH.js} +0 -0
  62. /package/dist/cdn/{AT6DOX43.js → DF5Q25A7.js} +0 -0
  63. /package/dist/cdn/{ZX5J6SMV.js → DIZDIIUN.js} +0 -0
  64. /package/dist/cdn/{3YVA4NJL.js → DJ3VJDLN.js} +0 -0
  65. /package/dist/cdn/{GLRISNYR.js → DVZKG2WC.js} +0 -0
  66. /package/dist/cdn/{PMWIRBWT.js → EFUEICKE.js} +0 -0
  67. /package/dist/cdn/{WFJH7WES.js → ELJCC3WK.js} +0 -0
  68. /package/dist/cdn/{FYDZH6BL.js → EPLP4YMK.js} +0 -0
  69. /package/dist/cdn/{QI5WIEJM.js → F7DW6VHH.js} +0 -0
  70. /package/dist/cdn/{CDAV4NEB.js → FBXUEXNZ.js} +0 -0
  71. /package/dist/cdn/{KEGLDP4A.js → FZYHVESP.js} +0 -0
  72. /package/dist/cdn/{HH3DMGSF.js → HAADLXJX.js} +0 -0
  73. /package/dist/cdn/{744JVRBH.js → HQZQCK6J.js} +0 -0
  74. /package/dist/cdn/{A4S3GECZ.js → L3L24SIA.js} +0 -0
  75. /package/dist/cdn/{3JU2AHMP.js → LM6ZA4HA.js} +0 -0
  76. /package/dist/cdn/{CTMF7NFP.js → LXZ2GZTN.js} +0 -0
  77. /package/dist/cdn/{6FT2R5PB.js → O263Z4SH.js} +0 -0
  78. /package/dist/cdn/{2G4VQVBD.js → O4PQUMJR.js} +0 -0
  79. /package/dist/cdn/{ADD3R54T.js → PU6QKY7I.js} +0 -0
  80. /package/dist/cdn/{UUUPIG6P.js → TW24OEJB.js} +0 -0
  81. /package/dist/cdn/{IBGSVDSQ.js → UJA6BLTS.js} +0 -0
  82. /package/dist/cdn/{24HADOKV.js → UUCYWMS2.js} +0 -0
  83. /package/dist/cdn/{FUTB3TZA.js → VKIVTDAN.js} +0 -0
  84. /package/dist/cdn/{BRANLHXP.js → WBNMJ4VE.js} +0 -0
  85. /package/dist/cdn/{APMRTXPD.js → WGGJPXPR.js} +0 -0
  86. /package/dist/cdn/{MLV3GXE7.js → YJMFI5UV.js} +0 -0
  87. /package/dist/cdn/{SWYSBYOY.js → YLLLSHFK.js} +0 -0
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as E}from"./TAHZPDRF.js";import f from"./AC4VLUR7.js";import{a as L}from"./SWOFXLPC.js";import{a as _}from"./JD74LG7K.js";import e from"./UNGXK2Y7.js";import d from"./M3U7I4H6.js";import{f as F,h as B}from"./UC4ZZXFO.js";import"./JK33HXYG.js";import a from"./5J4YSRUG.js";import{d as O}from"./GFALET66.js";import{N as S,O as T,P as b,Q as M,R as m,U as A,a as C,b as c,x as $}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([H,{property:p,subclass:N},{watch:q},R,j,D,P,V,,,,W])=>{var Z=C`.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}:host{width:300px;min-width:180px}.root{position:relative;padding:var(--arcgis-internal-padding);container-type:inline-size;width:100%}.content{display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}.content.error{visibility:hidden;height:0;overflow:hidden;pointer-events:none}.weather-type-selector{--button-gap: var(--calcite-spacing-sm);--button-size-min: 24px;--button-size-s-max: 32px;--button-size-m-max: 64px;display:flex;flex-wrap:wrap;justify-content:center;width:100%;margin-inline:auto;gap:var(--button-gap);>calcite-button{display:block;position:relative;flex-shrink:0;flex-grow:0;aspect-ratio:1 / 1;height:fit-content;--total-gap: calc((var(--weather-type-count) - 1) * var(--button-gap));--basis: clamp( var(--button-size-min), calc((100% - var(--total-gap)) / var(--weather-type-count)), var(--button-size-m-max) );flex-basis:round(down,var(--basis),1px)}}@container (max-width: 280px){.weather-type-selector{--button-gap: var(--calcite-spacing-xs)}}@container (max-width: 220px){.weather-type-selector{--button-gap: var(--calcite-spacing-xxs)}}.options{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);calcite-label{--calcite-label-margin-bottom: 0}&.hidden{display:none}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`,I=Object.defineProperty,U=Object.getOwnPropertyDescriptor,d=(o,e,i,t)=>{for(var r=t>1?void 0:t?U(e,i):e,a=o.length-1,n;a>=0;a--)(n=o[a])&&(r=(t?n(e,i,r):n(r))||r);return t&&r&&I(e,i,r),r},G={sunny:V,cloudy:R,rainy:D,snowy:P,foggy:j},h=Object.keys(G),l=class extends H{constructor(o){super(o),this._settingWeather=!1,this._weatherByType={sunny:new V,cloudy:new R,rainy:new D,snowy:new P,foggy:new j}}initialize(){this.addHandles([q(()=>this.current,o=>{this._settingWeather||o==null||(this._weatherByType={...this._weatherByType,[o.type]:o})},{sync:!0,initial:!0})])}get state(){return this.view?.ready?this.error!=null?this.error==="not-visible"?"ready":"error":"ready":"disabled"}get disabled(){return this.state==="disabled"}get weatherByType(){return this._weatherByType}get error(){let o=this.view;return o?.ready?o.type!=="3d"?"unsupported-view":o.viewingMode==="local"?"local-scene":o.environment.atmosphereEnabled?o.environment.weatherAvailable?null:"not-visible":"no-atmosphere":null}get current(){return this._environment?.weather??this._weatherByType.sunny}set current(o){let e=this._environment;e&&(e.weather=o)}get _environment(){let o=this.view;return o?.type==="3d"?o.environment:null}setWeatherByType(o){let e=this._environment;e!=null&&(this._settingWeather=!0,e.weather=this._weatherByType[o],this._settingWeather=!1)}setSnowCoverEnabled(o){let e=this.current;"snowCover"in e&&(e.snowCover=o?"enabled":"disabled")}};d([p()],l.prototype,"view",2);d([p()],l.prototype,"state",1);d([p()],l.prototype,"disabled",1);d([p()],l.prototype,"weatherByType",1);d([p()],l.prototype,"error",1);d([p()],l.prototype,"current",1);d([p()],l.prototype,"_weatherByType",2);d([p()],l.prototype,"_environment",1);l=d([N("components.weather.WeatherViewModel")],l);function g({label:o,ariaLabel:e,value:i,disabled:t,onChange:r}){let a=n=>{let s=n.currentTarget.value;r?.(s??0)};return c`<calcite-label .scale=${"m"}><calcite-slider .disabled=${t} .ariaLabel=${e} .labelText=${o} .value=${i} min=0 max=1 step=0.01 .scale=${"m"} @calciteSliderChange=${a} @calciteSliderInput=${a}></calcite-slider></calcite-label>`}var K=W(l),Q={sunny:"brightness",cloudy:"partly-cloudy",rainy:"rain",snowy:"snow",foggy:"fog"},y=class extends T{constructor(){super(...arguments),this.viewModel=K(this),this.messages=L(),this.direction=F(),this._resizeAnimationFrame=void 0,this._weatherTypeSelector=void 0,this._resizeObserver=new ResizeObserver(e=>{for(let i of e)i.target instanceof HTMLElement&&this._updateButtonScale(i.target,i.contentRect.width)}),this._buttonScale="m",this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.headingLevel=4,this.hideHeader=!1,this.icon="partly-cloudy",this.label=this.messages.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=B()("state"),this.arcgisReady=$()}static{this.properties={_buttonScale:16,view:0,autoDestroyDisabled:5,headingLevel:9,hideHeader:5,icon:1,label:1,messageOverrides:0,referenceElement:1,state:32}}static{this.styles=Z}async destroy(){this._cleanupResizeObserver(),await this.manager.destroy()}_cleanupResizeObserver(){this._resizeObserver.disconnect(),this._weatherTypeSelector=void 0,this._resizeAnimationFrame&&(cancelAnimationFrame(this._resizeAnimationFrame),this._resizeAnimationFrame=void 0)}_makeWeatherTypeSelectorRef(){return e=>{e!==this._weatherTypeSelector&&(this._weatherTypeSelector&&this._resizeObserver.unobserve(this._weatherTypeSelector),this._weatherTypeSelector=e,e&&(this._resizeObserver.observe(e),this._updateButtonScale(e,e.clientWidth)))}}_updateButtonScale(e,i){this._resizeAnimationFrame&&cancelAnimationFrame(this._resizeAnimationFrame),this._resizeAnimationFrame=requestAnimationFrame(()=>{let t=getComputedStyle(e),r=Number.parseFloat(t.getPropertyValue("--button-gap")),a=Number.parseFloat(t.getPropertyValue("--button-size-min")),n=Number.parseFloat(t.getPropertyValue("--button-size-s-max")),s=Number.parseFloat(t.getPropertyValue("--button-size-m-max")),u=(h.length-1)*r,v=Math.max(a,Math.min((i-u)/h.length,s));this._buttonScale=v<n?"s":v<s?"m":"l",this._resizeAnimationFrame=void 0})}_getWarningMessage(){if(this.viewModel.error==="not-visible"){let{view:e}=this.viewModel;return e?.type==="3d"&&e.environment.atmosphereEnabled?this.messages.error?.notVisible:void 0}else return}_getErrorMessage(){let e=this.messages.error;if(e)switch(this.viewModel.error){case"local-scene":return e.localScene;case"no-atmosphere":return e.noAtmosphere;case"unsupported-view":return e.unsupported;default:return}}render(){return c`<div aria-label=${this.messages.componentLabelAccessible??m} class=${b({root:!0,[_.widget]:!0,[_.widgetDisabled]:this.viewModel.disabled})} role=region>${this._renderContent()}</div>`}_renderContent(){let{headingLevel:e,messages:i,viewModel:t}=this,r=this._getWarningMessage(),a=t.current,n=t.state==="error";return c`${this.hideHeader?void 0:E({level:e,children:i.componentLabel})}${n?c`<div>${this._getErrorMessage()}</div>`:void 0}<div class=${b(O({content:!0,error:n}))}><div .ariaLabel=${i.weatherType} class="weather-type-selector" role=radiogroup style=${M({"--weather-type-count":String(h.length)})} ${S(this._makeWeatherTypeSelectorRef())}>${h.map(this._renderWeatherTypeButton,this)}</div>${Object.values(t.weatherByType).map(s=>c`<div class=${b({options:!0,hidden:s.type!==a?.type})}>${this._renderOptions(s)}</div>`)}${r?this._renderWarning(r):void 0}</div>`}_renderWeatherTypeButton(e){let i=this.messages[e]?.label??"",{disabled:t}=this.viewModel,r=!t&&this.viewModel.current.type===e;return c`<calcite-button role=radio .label=${i} .name=${i} .appearance=${r?"solid":"outline"} .ariaChecked=${r?"true":"false"} tabindex=${(r?void 0:-1)??m} .disabled=${t} .iconStart=${Q[e]} .kind=${r?"brand":"neutral"} width=full .scale=${this._buttonScale} @keydown=${a=>{let n=a.key,s=["ArrowRight","ArrowDown"],u=["ArrowLeft","ArrowUp"];if(this.direction==="rtl"){let w=s;s=u,u=w}let v=s.includes(n),f=u.includes(n);if(v||f){a.preventDefault();let w=h.indexOf(e),x=h.length,z=(w+(f?-1:1)+x)%x;this.viewModel.setWeatherByType(h[z]);let k=a.currentTarget.parentElement?.parentElement;k&&Array.from(k.querySelectorAll("calcite-button")??[])[z]?.setFocus()}}} @click=${a=>{if(r)return;this.viewModel.setWeatherByType(e);let n=a.currentTarget;requestAnimationFrame(()=>{this.viewModel.current.type===e&&n.setFocus()})}} title=${i??m}></calcite-button>`}_renderOptions(e){switch(e.type){case"sunny":return this._renderSunnyOptions(e);case"cloudy":return this._renderCloudyOptions(e);case"rainy":return this._renderRainyOptions(e);case"snowy":return this._renderSnowyOptions(e);case"foggy":return this._renderFoggyOptions(e)}}_renderSunnyOptions(e){let i=this.messages.sunny;return g({disabled:this.viewModel.disabled,ariaLabel:i?.cloudCoverAria,label:i?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderCloudyOptions(e){let i=this.messages.cloudy;return g({disabled:this.viewModel.disabled,ariaLabel:i?.cloudCoverAria,label:i?.cloudCover,value:e.cloudCover,onChange:t=>{e.cloudCover=t}})}_renderRainyOptions(e){let{disabled:i}=this.viewModel,t=this.messages.rainy;return c`${g({disabled:i,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${g({disabled:i,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}`}_renderSnowyOptions(e){let{disabled:i}=this.viewModel,t=this.messages.snowy;return c`${g({disabled:i,ariaLabel:t?.cloudCoverAria,label:t?.cloudCover,value:e.cloudCover,onChange:r=>{e.cloudCover=r}})}${g({disabled:i,ariaLabel:t?.precipitationAria,label:t?.precipitation,value:e.precipitation,onChange:r=>{e.precipitation=r}})}<calcite-label layout=inline title=${t?.snowCoverTooltip??m}><calcite-checkbox .checked=${e.snowCover==="enabled"} .disabled=${i} @calciteCheckboxChange=${r=>{this.viewModel.setSnowCoverEnabled(r.currentTarget.checked)}}></calcite-checkbox>${t?.snowCover}</calcite-label>`}_renderFoggyOptions(e){let i=this.messages.foggy;return g({disabled:this.viewModel.disabled,ariaLabel:i?.fogStrengthAria,label:i?.fogStrength,value:e.fogStrength,onChange:t=>{e.fogStrength=t}})}_renderWarning(e){return c`<calcite-notice aria-live=polite open icon=exclamation-mark-triangle-f kind=warning><div slot=title class="warning-title">${this.messages.warningTitle}</div><div slot=message>${e}</div></calcite-notice>`}};A("arcgis-weather",y);return y},"core/Accessor","core/accessorSupport/decorators","core/reactiveUtils","views/3d/environment/CloudyWeather","views/3d/environment/FoggyWeather","views/3d/environment/RainyWeather","views/3d/environment/SnowyWeather","views/3d/environment/SunnyWeather",a,d,e,f)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{h as g}from"./G5VPRDMX.js";import{B as l,N as o,O as c,P as s,U as p,a as n,b as e}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([u])=>{var m=n`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:1fr max-content max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;word-break:break-word;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:nowrap;align-self:center;justify-self:flex-end;font-variant-numeric:tabular-nums;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`,r=class extends c{constructor(){super(...arguments),this._formatter=new u,this._baseId=l(),this._hasActionsContent=!1,this.layout="horizontal",this.items=[],this.state="disabled",this.unsupportedLabel=""}static{this.properties={_hasActionsContent:16,hintLabel:1,layout:1,items:0,state:1,unsupportedLabel:1}}static{this.styles=m}async load(){await this._formatter.when()}_actionsRef(a){this._updateHasActionsContent(a)}_updateHasActionsContent(a){this._hasActionsContent=a!=null&&a.assignedNodes({flatten:!0}).length>0}render(){switch(this.state){case"unsupported":return e`<section class="error"><p>${this.unsupportedLabel}</p></section>`;case"measuring":return e`<section class="hint"><p>${this.hintLabel}</p></section>`;case"ready":return this._renderActions();default:return e`<slot name=settings></slot>${d({idBase:this._baseId,formatter:this._formatter,items:this.items,layout:this.layout})}${this._renderActions()}`}}_renderActions(){return e`<div class="actions" .hidden=${!this._hasActionsContent}><slot name=actions @slotchange=${({currentTarget:a})=>{this._updateHasActionsContent(a)}} ${o(this._actionsRef)}></slot></div>`}};function d(t){return e`<section class=${s({"results-grid":!0,vertical:t.layout==="vertical"})}>${t.items.map((a,i)=>v({formatter:t.formatter,measurement:a.measurement,title:a.title,valueId:`${t.idBase}-item-${i}`}))}</section>`}function h(t){let[a="-",i=""]=t.value?.split(" ")??[];return e`<output aria-live=polite class="value">${a}</output><span class="unit">${i}</span>`}function v(t){let a=t.measurement.state==="available"?g(t.formatter,t.measurement.value):null;return e`<div class=${s({item:!0,disabled:t.measurement.state!=="available"})}><calcite-label layout=inline class="title" .for=${t.valueId}>${t.title??""}</calcite-label>${h({value:a})}</div>`}p("arcgis-measurement-content",r);return r},"applications/Components/QuantityFormatter")
@@ -1,33 +0,0 @@
1
- import type Accessor from "@arcgis/core/core/Accessor.js";
2
- import type SharedTemplateMetadata from "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
3
- import type FeatureTemplate from "@arcgis/core/layers/support/FeatureTemplate.js";
4
- import type { LayerWithFeatureTemplatesUnion } from "@arcgis/core/layers/types.js";
5
-
6
- export interface TemplateItemProperties extends Partial<Pick<TemplateItem, "layer" | "template" | "thumbnail">> {}
7
-
8
- /**
9
- * The item displayed within the FeatureTemplates component.
10
- *
11
- * @since 5.1
12
- */
13
- export default class TemplateItem extends Accessor {
14
- constructor(properties?: TemplateItemProperties);
15
- /**
16
- * The description that is displayed for the template item.
17
- * This is similar to the description provided in layers/support/FeatureTemplate#description.
18
- */
19
- get description(): string;
20
- get id(): string;
21
- /** The label that is displayed for the template item. */
22
- get label(): string;
23
- /** The layer associated with the template item. */
24
- accessor layer: LayerWithFeatureTemplatesUnion;
25
- get supportsUpload(): boolean;
26
- /** The associated FeatureTemplate for the item. */
27
- accessor template: FeatureTemplate | SharedTemplateMetadata;
28
- /**
29
- * An object used to create a thumbnail image that represents a feature type in the feature template.
30
- * This is similar to layers/support/FeatureTemplate#thumbnail.
31
- */
32
- accessor thumbnail: HTMLElement | undefined;
33
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes