@arcgis/map-components 5.2.0-next.129 → 5.2.0-next.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/cdn/{XHF3WRCS.js → 4IQGYUKD.js} +1 -1
  2. package/dist/cdn/{EFTRT3PC.js → 4J5X3RUS.js} +1 -1
  3. package/dist/cdn/{ZNFXHSNB.js → 4XLFPSJA.js} +1 -1
  4. package/dist/cdn/{2FXJBJQN.js → 5F5KCXDO.js} +1 -1
  5. package/dist/cdn/5S4BCDOW.js +2 -0
  6. package/dist/cdn/{4Q5CHT35.js → 5W3B6N7U.js} +1 -1
  7. package/dist/cdn/{YXFHYEU3.js → 7EJR45XN.js} +1 -1
  8. package/dist/cdn/{Q6QM5JFF.js → 7YFZUDWN.js} +1 -1
  9. package/dist/cdn/{S5NMZQ7S.js → AB5ED2JR.js} +1 -1
  10. package/dist/cdn/{XIU3BXC4.js → BAHKHMBR.js} +1 -1
  11. package/dist/cdn/BAOWXZTE.js +2 -0
  12. package/dist/cdn/BEAV4EJ5.js +2 -0
  13. package/dist/cdn/{SI275RZJ.js → BMMTFWDL.js} +1 -1
  14. package/dist/cdn/{YPW4CF4Y.js → BQ7NE3DK.js} +1 -1
  15. package/dist/cdn/{B62BAX3X.js → CWCTE5IC.js} +1 -1
  16. package/dist/cdn/{3AHZESDA.js → EF7GIYDU.js} +1 -1
  17. package/dist/cdn/EL7UV72L.js +2 -0
  18. package/dist/cdn/{FJREYXK7.js → ERHYWMHC.js} +1 -1
  19. package/dist/cdn/{XPIYOTEC.js → EV3HM55D.js} +1 -1
  20. package/dist/cdn/{5S3AIVW2.js → F3I3X5LJ.js} +1 -1
  21. package/dist/cdn/{JALZMYVE.js → F6AE2AOX.js} +1 -1
  22. package/dist/cdn/{WWASAY4M.js → I2ADFUKC.js} +1 -1
  23. package/dist/cdn/{UCX6CLDZ.js → JDF3QJHI.js} +1 -1
  24. package/dist/cdn/{ML3CEDNN.js → JMKQ5ZE3.js} +1 -1
  25. package/dist/cdn/{DFPVC4EG.js → JNNG6SGW.js} +1 -1
  26. package/dist/cdn/{HOBKD5P4.js → JXXITWQ3.js} +1 -1
  27. package/dist/cdn/JYFFD5QA.js +2 -0
  28. package/dist/cdn/{XFD7GEAG.js → K3TUMGVI.js} +1 -1
  29. package/dist/cdn/{GK6NLJ6Q.js → MCU53PRF.js} +1 -1
  30. package/dist/cdn/{Q2MFXSAM.js → N6IIYBKZ.js} +1 -1
  31. package/dist/cdn/{L5FBV74B.js → NST47N4L.js} +1 -1
  32. package/dist/cdn/{7XKNWVD4.js → ORZZVKYZ.js} +1 -1
  33. package/dist/cdn/OSMCEUNX.js +2 -0
  34. package/dist/cdn/{3FO2I44H.js → QAXZ4V3U.js} +1 -1
  35. package/dist/cdn/{VLDII7DK.js → QJWPUYT2.js} +1 -1
  36. package/dist/cdn/{3NUE2TJM.js → R54YGQ26.js} +1 -1
  37. package/dist/cdn/{2DJC25HT.js → RQ3C7MN3.js} +1 -1
  38. package/dist/cdn/{D2ILHVVB.js → RXRZKDP2.js} +1 -1
  39. package/dist/cdn/{2RYNWWMR.js → T6GHF2C6.js} +1 -1
  40. package/dist/cdn/{XUSJST2P.js → U3MXAIIV.js} +1 -1
  41. package/dist/cdn/{RA5SRNJJ.js → UGZMQPKL.js} +1 -1
  42. package/dist/cdn/{3QZFSJJZ.js → UONIIMIO.js} +1 -1
  43. package/dist/cdn/{7QUUVOSA.js → WH6A6PWO.js} +1 -1
  44. package/dist/cdn/{TWR7AJTM.js → WO4RKS5X.js} +1 -1
  45. package/dist/cdn/{JXODHIWF.js → WSJLW4KK.js} +1 -1
  46. package/dist/cdn/{EQ4D5HAS.js → XR33HMFY.js} +1 -1
  47. package/dist/cdn/XUUOPL4Q.js +2 -0
  48. package/dist/cdn/{7AM3AAIM.js → YIXQRLNL.js} +1 -1
  49. package/dist/cdn/YPRBAWD7.js +2 -0
  50. package/dist/cdn/{GE5OI5A7.js → ZTJ5RKET.js} +1 -1
  51. package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
  52. package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -1
  53. package/dist/cdn/assets/time-bar/t9n/messages.ar.json +1 -1
  54. package/dist/cdn/assets/time-bar/t9n/messages.bg.json +1 -1
  55. package/dist/cdn/assets/time-bar/t9n/messages.bs.json +1 -1
  56. package/dist/cdn/assets/time-bar/t9n/messages.ca.json +1 -1
  57. package/dist/cdn/assets/time-bar/t9n/messages.cs.json +1 -1
  58. package/dist/cdn/assets/time-bar/t9n/messages.da.json +1 -1
  59. package/dist/cdn/assets/time-bar/t9n/messages.de.json +1 -1
  60. package/dist/cdn/assets/time-bar/t9n/messages.el.json +1 -1
  61. package/dist/cdn/assets/time-bar/t9n/messages.es.json +1 -1
  62. package/dist/cdn/assets/time-bar/t9n/messages.et.json +1 -1
  63. package/dist/cdn/assets/time-bar/t9n/messages.fi.json +1 -1
  64. package/dist/cdn/assets/time-bar/t9n/messages.fr.json +1 -1
  65. package/dist/cdn/assets/time-bar/t9n/messages.he.json +1 -1
  66. package/dist/cdn/assets/time-bar/t9n/messages.hr.json +1 -1
  67. package/dist/cdn/assets/time-bar/t9n/messages.hu.json +1 -1
  68. package/dist/cdn/assets/time-bar/t9n/messages.id.json +1 -1
  69. package/dist/cdn/assets/time-bar/t9n/messages.it.json +1 -1
  70. package/dist/cdn/assets/time-bar/t9n/messages.ja.json +1 -1
  71. package/dist/cdn/assets/time-bar/t9n/messages.ko.json +1 -1
  72. package/dist/cdn/assets/time-bar/t9n/messages.lt.json +1 -1
  73. package/dist/cdn/assets/time-bar/t9n/messages.lv.json +1 -1
  74. package/dist/cdn/assets/time-bar/t9n/messages.nl.json +1 -1
  75. package/dist/cdn/assets/time-bar/t9n/messages.no.json +1 -1
  76. package/dist/cdn/assets/time-bar/t9n/messages.pl.json +1 -1
  77. package/dist/cdn/assets/time-bar/t9n/messages.pt-BR.json +1 -1
  78. package/dist/cdn/assets/time-bar/t9n/messages.pt-PT.json +1 -1
  79. package/dist/cdn/assets/time-bar/t9n/messages.ro.json +1 -1
  80. package/dist/cdn/assets/time-bar/t9n/messages.ru.json +1 -1
  81. package/dist/cdn/assets/time-bar/t9n/messages.sk.json +1 -1
  82. package/dist/cdn/assets/time-bar/t9n/messages.sl.json +1 -1
  83. package/dist/cdn/assets/time-bar/t9n/messages.sr.json +1 -1
  84. package/dist/cdn/assets/time-bar/t9n/messages.sv.json +1 -1
  85. package/dist/cdn/assets/time-bar/t9n/messages.th.json +1 -1
  86. package/dist/cdn/assets/time-bar/t9n/messages.tr.json +1 -1
  87. package/dist/cdn/assets/time-bar/t9n/messages.uk.json +1 -1
  88. package/dist/cdn/assets/time-bar/t9n/messages.vi.json +1 -1
  89. package/dist/cdn/assets/time-bar/t9n/messages.zh-CN.json +1 -1
  90. package/dist/cdn/assets/time-bar/t9n/messages.zh-HK.json +1 -1
  91. package/dist/cdn/assets/time-bar/t9n/messages.zh-TW.json +1 -1
  92. package/dist/cdn/index.js +1 -1
  93. package/dist/chunks/measurementUtils.js +35 -27
  94. package/dist/chunks/svgUtils.js +1 -1
  95. package/dist/chunks/univariateUtils.js +1 -1
  96. package/dist/chunks/utils.js +75 -7
  97. package/dist/chunks/utils2.js +50 -74
  98. package/dist/chunks/utils3.js +13 -50
  99. package/dist/chunks/utils4.js +45 -13
  100. package/dist/chunks/utils5.js +48 -44
  101. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +9 -1
  102. package/dist/components/arcgis-area-measurement-2d/customElement.js +18 -12
  103. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +9 -1
  104. package/dist/components/arcgis-area-measurement-3d/customElement.js +18 -12
  105. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
  106. package/dist/components/arcgis-building-discipline-tree/customElement.js +79 -79
  107. package/dist/components/arcgis-building-explorer/customElement.js +22 -22
  108. package/dist/components/arcgis-building-level-item/customElement.js +9 -9
  109. package/dist/components/arcgis-building-level-picker/customElement.js +16 -16
  110. package/dist/components/arcgis-building-phase-picker/customElement.js +25 -22
  111. package/dist/components/arcgis-compass/customElement.js +1 -1
  112. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +9 -1
  113. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +15 -9
  114. package/dist/components/arcgis-directional-pad/DirectionalPadViewModel.d.ts +1 -0
  115. package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
  116. package/dist/components/arcgis-directional-pad/customElement.js +190 -46
  117. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +9 -1
  118. package/dist/components/arcgis-distance-measurement-2d/customElement.js +34 -28
  119. package/dist/components/arcgis-elevation-profile/customElement.d.ts +18 -0
  120. package/dist/components/arcgis-elevation-profile/customElement.js +27 -25
  121. package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
  122. package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
  123. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
  124. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  125. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  126. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  127. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  128. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  129. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  130. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  131. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
  132. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
  133. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  134. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  135. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  136. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  137. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  138. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  139. package/dist/components/arcgis-search/customElement.js +1 -1
  140. package/dist/components/arcgis-selection-list/customElement.js +28 -28
  141. package/dist/components/arcgis-sketch/customElement.d.ts +0 -4
  142. package/dist/components/arcgis-volume-measurement/customElement.d.ts +48 -5
  143. package/dist/components/arcgis-volume-measurement/customElement.js +47 -46
  144. package/dist/docs/api.json +1 -1
  145. package/dist/docs/docs.json +1 -1
  146. package/dist/docs/vscode.html-custom-data.json +1 -1
  147. package/dist/docs/web-types.json +1 -1
  148. package/package.json +6 -6
  149. package/dist/cdn/35M4DQZK.js +0 -2
  150. package/dist/cdn/6PE3IB3H.js +0 -2
  151. package/dist/cdn/G5VPRDMX.js +0 -2
  152. package/dist/cdn/JF4LCL3J.js +0 -2
  153. package/dist/cdn/JNQEJQFS.js +0 -2
  154. package/dist/cdn/MRFX6GG4.js +0 -2
  155. package/dist/cdn/SLLE4XAR.js +0 -2
  156. package/dist/cdn/WQISNLF7.js +0 -2
  157. /package/dist/cdn/{7DI2ZSB3.js → 3ZXNGXHC.js} +0 -0
  158. /package/dist/cdn/{SKNX46RX.js → DL57EVZ4.js} +0 -0
  159. /package/dist/cdn/{FUQUIU52.js → E6IRF6JO.js} +0 -0
  160. /package/dist/cdn/{MDTNPISF.js → VDTRRLON.js} +0 -0
@@ -5,22 +5,22 @@ import { LitElement as b, createEvent as x, safeClassMap as y } from "@arcgis/lu
5
5
  import { usePropertyChange as M } from "@arcgis/lumina/controllers";
6
6
  import { u as O } from "../../chunks/useT9n.js";
7
7
  import { m as k } from "../../chunks/useViewModel.js";
8
- import { t as z, a as V } from "../../chunks/async-utils.js";
8
+ import { t as z, a as U } from "../../chunks/async-utils.js";
9
9
  import { g as p } from "../../chunks/globalCss.js";
10
10
  import { V as g } from "../../chunks/visible-element.js";
11
- import D from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
12
- import { property as n, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
11
+ import V from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
12
+ import { property as n, subclass as D } from "@arcgis/core/core/accessorSupport/decorators.js";
13
13
  import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
14
14
  import _ from "@arcgis/core/views/interactive/options/SnappingOptions.js";
15
- import { A as $ } from "../../chunks/AnalysisViewModel.js";
16
- import { g as A, a as U, b as m, r as C, m as h, c as E } from "../../chunks/measurementUtils.js";
15
+ import { A as S } from "../../chunks/AnalysisViewModel.js";
16
+ import { g as $, a as A, b as m, r as C, m as h, c as E } from "../../chunks/measurementUtils.js";
17
17
  const j = v`.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}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`;
18
18
  var P = Object.defineProperty, L = Object.getOwnPropertyDescriptor, s = (t, e, l, a) => {
19
19
  for (var i = a > 1 ? void 0 : a ? L(e, l) : e, o = t.length - 1, d; o >= 0; o--)
20
20
  (d = t[o]) && (i = (a ? d(e, l, i) : d(i)) || i);
21
21
  return a && i && P(e, l, i), i;
22
22
  };
23
- let r = class extends $ {
23
+ let r = class extends S {
24
24
  constructor() {
25
25
  super(...arguments), this.snappingOptions = new _(), this.supportedViewType = "2d", this.unsupportedErrorMessage = "The Area Measurement 2D component is only supported in 2D views.", this.shouldForceInteractive = !1;
26
26
  }
@@ -50,10 +50,10 @@ let r = class extends $ {
50
50
  }
51
51
  get state() {
52
52
  const { analysis: t, disabled: e, operationState: l, ready: a, supported: i } = this, { valid: o } = t;
53
- return A({ supported: i, disabled: e, ready: a, operationState: l, valid: o });
53
+ return $({ supported: i, disabled: e, ready: a, operationState: l, valid: o });
54
54
  }
55
55
  get displayState() {
56
- return U(this.state, !!this.analysis.geometry);
56
+ return A(this.state, !!this.analysis.geometry);
57
57
  }
58
58
  get measurement() {
59
59
  return {
@@ -69,7 +69,13 @@ let r = class extends $ {
69
69
  this._userUnitOptions = t;
70
70
  }
71
71
  get unit() {
72
- return E(this._userUnit, this.analysis.unit, this.unitOptions, this.defaultMeasurementSystem);
72
+ return E({
73
+ userUnit: this._userUnit,
74
+ analysisUnit: this.analysis.unit,
75
+ options: this.unitOptions,
76
+ defaultUnit: this.defaultMeasurementSystem,
77
+ viewUnit: this.view?.options.displayUnits.area
78
+ });
73
79
  }
74
80
  set unit(t) {
75
81
  this._userUnit = t;
@@ -82,7 +88,7 @@ let r = class extends $ {
82
88
  this.analysis.geometry = null;
83
89
  }
84
90
  constructAnalysis() {
85
- return new D();
91
+ return new V();
86
92
  }
87
93
  };
88
94
  s([
@@ -110,7 +116,7 @@ s([
110
116
  n()
111
117
  ], r.prototype, "_userUnit", 2);
112
118
  r = s([
113
- S("components.area-measurement-2d.AreaMeasurement2dViewModel")
119
+ D("components.area-measurement-2d.AreaMeasurement2dViewModel")
114
120
  ], r);
115
121
  const B = k(r);
116
122
  class T extends b {
@@ -130,7 +136,7 @@ class T extends b {
130
136
  await this.manager.destroy();
131
137
  }
132
138
  async start() {
133
- V(this.viewModel.start());
139
+ U(this.viewModel.start());
134
140
  }
135
141
  render() {
136
142
  const { messages: e, unit: l, unitOptions: a, viewModel: i } = this, { measurement: o, state: d } = i;
@@ -238,12 +238,20 @@ export abstract class ArcgisAreaMeasurement3d extends LitElement {
238
238
  /**
239
239
  * Unit system (imperial, metric) or specific unit used for displaying the area values. Possible values are listed in
240
240
  * [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions).
241
+ *
242
+ * When no unit is explicitly set on the component or its analysis, this property uses the area unit configured in the view through
243
+ * [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
244
+ * This property overrides the area unit on this component's analysis without changing the units configured in the view.
241
245
  */
242
246
  accessor unit: SystemOrAreaUnit;
243
247
  /**
244
248
  * List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
245
249
  * By default, the following units are included: `metric`, `imperial`, `square-inches`, `square-feet`, `square-us-feet`, `square-yards`, `square-miles`, `square-meters`, `square-kilometers`, `acres`, `ares`, `hectares`.
246
- * Possible [unit](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unit) values can only be a subset of this list.
250
+ * If the unit inherited from the view through
251
+ * [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
252
+ * is not listed in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions), the component checks whether its default unit is listed there.
253
+ * If it is, the component uses that default. If neither unit is listed, it uses the first entry in
254
+ * [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions).
247
255
  */
248
256
  accessor unitOptions: Array<SystemOrAreaUnit>;
249
257
  /**
@@ -9,25 +9,25 @@ import { a as z } from "../../chunks/async-utils.js";
9
9
  import { g } from "../../chunks/globalCss.js";
10
10
  import { V as p } from "../../chunks/visible-element.js";
11
11
  import O from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
12
- import { hasValidAreaResult as V } from "@arcgis/core/applications/Components/analysisUtils.js";
13
- import { property as l, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
14
- import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
15
- import { A as D } from "../../chunks/AnalysisViewModel.js";
16
- import { g as S, a as U, b as u, r as C, m, c as E } from "../../chunks/measurementUtils.js";
12
+ import { hasValidAreaResult as U } from "@arcgis/core/applications/Components/analysisUtils.js";
13
+ import { property as l, subclass as V } from "@arcgis/core/core/accessorSupport/decorators.js";
14
+ import { watch as $ } from "@arcgis/core/core/reactiveUtils.js";
15
+ import { A } from "../../chunks/AnalysisViewModel.js";
16
+ import { g as D, a as S, b as u, r as C, m, c as E } from "../../chunks/measurementUtils.js";
17
17
  const j = w`.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}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px;.esri-widget--panel{min-width:0}}`;
18
18
  var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (t, e, a, r) => {
19
19
  for (var i = r > 1 ? void 0 : r ? P(e, a) : e, s = t.length - 1, d; s >= 0; s--)
20
20
  (d = t[s]) && (i = (r ? d(e, a, i) : d(i)) || i);
21
21
  return r && i && L(e, a, i), i;
22
22
  };
23
- let o = class extends D {
23
+ let o = class extends A {
24
24
  constructor() {
25
25
  super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
26
26
  }
27
27
  initialize() {
28
28
  this.addHandles(
29
29
  // Make sure the analysis and view model units are in sync.
30
- A(
30
+ $(
31
31
  () => ({
32
32
  analysis: this.analysis,
33
33
  unit: this._userUnit
@@ -41,13 +41,13 @@ let o = class extends D {
41
41
  }
42
42
  get state() {
43
43
  const { analysis: t, disabled: e, operationState: a, ready: r, supported: i } = this, { valid: s } = t;
44
- return S({ supported: i, disabled: e, ready: r, operationState: a, valid: s });
44
+ return D({ supported: i, disabled: e, ready: r, operationState: a, valid: s });
45
45
  }
46
46
  get displayState() {
47
- return U(this.state, !!this.analysis.geometry);
47
+ return S(this.state, !!this.analysis.geometry);
48
48
  }
49
49
  get measurement() {
50
- const { analysisView: t } = this, e = t?.result, a = e?.mode ?? "euclidean", r = t?.type === "area-measurement-view-3d" && V(t);
50
+ const { analysisView: t } = this, e = t?.result, a = e?.mode ?? "euclidean", r = t?.type === "area-measurement-view-3d" && U(t);
51
51
  return {
52
52
  mode: a,
53
53
  area: u(e?.area, r),
@@ -61,7 +61,13 @@ let o = class extends D {
61
61
  this._userUnitOptions = t;
62
62
  }
63
63
  get unit() {
64
- return E(this._userUnit, this.analysis.unit, this.unitOptions, this.defaultMeasurementSystem);
64
+ return E({
65
+ userUnit: this._userUnit,
66
+ analysisUnit: this.analysis.unit,
67
+ options: this.unitOptions,
68
+ defaultUnit: this.defaultMeasurementSystem,
69
+ viewUnit: this.view?.options.displayUnits.area
70
+ });
65
71
  }
66
72
  set unit(t) {
67
73
  this._userUnit = t;
@@ -98,7 +104,7 @@ n([
98
104
  l()
99
105
  ], o.prototype, "_userUnit", 2);
100
106
  o = n([
101
- $("components.area-measurement-3d.AreaMeasurement3dViewModel")
107
+ V("components.area-measurement-3d.AreaMeasurement3dViewModel")
102
108
  ], o);
103
109
  const B = k(o);
104
110
  class R extends f {
@@ -19,7 +19,7 @@ import { g as b } from "../../chunks/globalCss.js";
19
19
  import { g as h, a as F, b as Q, r as W, s as T, c as X, d as Y, e as Z } from "../../chunks/layer-list-utils.js";
20
20
  import { ArcgisLayerListItem as ee } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
21
21
  import { s as te, a as se } from "../../chunks/layer-list-next.js";
22
- import { r as ie } from "../../chunks/utils2.js";
22
+ import { r as ie } from "../../chunks/utils.js";
23
23
  import { c as ae } from "../../chunks/css.js";
24
24
  import "../arcgis-layer-list-item-indicator/customElement.js";
25
25
  import "../arcgis-layer-list-item-panel/customElement.js";
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as C } from "../../chunks/runtime.js";
3
- import { css as S, html as p } from "lit";
4
- import { LitElement as V, nothing as L } from "@arcgis/lumina";
5
- import y from "@arcgis/core/core/Collection.js";
2
+ import { c as x } from "../../chunks/runtime.js";
3
+ import { css as C, html as p } from "lit";
4
+ import { LitElement as S, nothing as V } from "@arcgis/lumina";
5
+ import g from "@arcgis/core/core/Collection.js";
6
6
  import m from "@arcgis/core/core/Accessor.js";
7
7
  import { property as a, subclass as v } from "@arcgis/core/core/accessorSupport/decorators.js";
8
- import { c as O, f as $ } from "../../chunks/layer-utils2.js";
9
- import { watch as b, on as E } from "@arcgis/core/core/reactiveUtils.js";
10
- import { i as A } from "../../chunks/async-utils.js";
11
- var D = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (e, i, t, l) => {
12
- for (var s = l > 1 ? void 0 : l ? M(i, t) : i, r = e.length - 1, o; r >= 0; r--)
13
- (o = e[r]) && (s = (l ? o(i, t, s) : o(s)) || s);
14
- return l && s && D(i, t, s), s;
8
+ import { c as L, f as O } from "../../chunks/layer-utils2.js";
9
+ import { watch as b, on as $ } from "@arcgis/core/core/reactiveUtils.js";
10
+ import { i as E } from "../../chunks/async-utils.js";
11
+ var A = Object.defineProperty, D = Object.getOwnPropertyDescriptor, c = (e, t, i, l) => {
12
+ for (var s = l > 1 ? void 0 : l ? D(t, i) : t, r = e.length - 1, o; r >= 0; r--)
13
+ (o = e[r]) && (s = (l ? o(t, i, s) : o(s)) || s);
14
+ return l && s && A(t, i, s), s;
15
15
  };
16
16
  let n = class extends m {
17
17
  constructor(e) {
18
- super(e), this.id = "root", this.children = new y(), this.layers = new y(), this.level = 0, this.childIds = /* @__PURE__ */ new Set(), this.layerUniqueIds = /* @__PURE__ */ new Set();
18
+ super(e), this.id = "root", this.children = new g(), this.layers = new g(), this.level = 0, this.childIds = /* @__PURE__ */ new Set(), this.layerUniqueIds = /* @__PURE__ */ new Set();
19
19
  }
20
20
  initialize() {
21
21
  this.addHandles([
@@ -72,10 +72,10 @@ let n = class extends m {
72
72
  * The value to which the `visible` property of each layer is to be set.
73
73
  */
74
74
  toggleVisibility(e) {
75
- const i = e === void 0 ? !this.visible : e;
76
- this.layers.forEach((t) => {
77
- t.visible = i;
78
- }), i && this.parent != null && this.parent.toggleVisibility(!0);
75
+ const t = e === void 0 ? !this.visible : e;
76
+ this.layers.forEach((i) => {
77
+ i.visible = t;
78
+ }), t && this.parent != null && this.parent.toggleVisibility(!0);
79
79
  }
80
80
  /**
81
81
  * Toggles the visibility of all the layers controlled by this node,
@@ -85,64 +85,64 @@ let n = class extends m {
85
85
  * The value to which the `visible` property of each layer and siblings is to be set.
86
86
  */
87
87
  toggleAllSiblingsVisibility(e) {
88
- const i = e === void 0 ? !this.visible : e;
89
- this.toggleVisibility(i), this.parent != null && (this.parent.toggleVisibility(i), this.parent.children.forEach((t) => t.toggleVisibility(i)));
88
+ const t = e === void 0 ? !this.visible : e;
89
+ this.toggleVisibility(t), this.parent != null && (this.parent.toggleVisibility(t), this.parent.children.forEach((i) => i.toggleVisibility(t)));
90
90
  }
91
91
  };
92
- d([
92
+ c([
93
93
  a({})
94
94
  ], n.prototype, "id", 2);
95
- d([
95
+ c([
96
96
  a()
97
97
  ], n.prototype, "parent", 2);
98
- d([
98
+ c([
99
99
  a({ readOnly: !0 })
100
100
  ], n.prototype, "children", 2);
101
- d([
101
+ c([
102
102
  a({ readOnly: !0 })
103
103
  ], n.prototype, "layers", 2);
104
- d([
104
+ c([
105
105
  a({})
106
106
  ], n.prototype, "level", 2);
107
- d([
107
+ c([
108
108
  a({ readOnly: !0 })
109
109
  ], n.prototype, "hasChildren", 1);
110
- d([
110
+ c([
111
111
  a({ readOnly: !0 })
112
112
  ], n.prototype, "isDiscipline", 1);
113
- d([
113
+ c([
114
114
  a({ readOnly: !0 })
115
115
  ], n.prototype, "visible", 1);
116
- d([
116
+ c([
117
117
  a({ readOnly: !0 })
118
118
  ], n.prototype, "title", 1);
119
- n = d([
119
+ n = c([
120
120
  v("esri.widgets.BuildingExplorer.support.LayerTreeNode")
121
121
  ], n);
122
- function f(e, i) {
123
- let t = null;
122
+ function f(e, t) {
123
+ let i = null;
124
124
  for (const l of e) {
125
- const s = i(l);
126
- if (t != null && t !== s)
125
+ const s = t(l);
126
+ if (i != null && i !== s)
127
127
  return null;
128
- t = s;
128
+ i = s;
129
129
  }
130
- return t;
130
+ return i;
131
131
  }
132
- var N = Object.defineProperty, P = Object.getOwnPropertyDescriptor, _ = (e) => {
132
+ var M = Object.defineProperty, N = Object.getOwnPropertyDescriptor, _ = (e) => {
133
133
  throw TypeError(e);
134
- }, g = (e, i, t, l) => {
135
- for (var s = l > 1 ? void 0 : l ? P(i, t) : i, r = e.length - 1, o; r >= 0; r--)
136
- (o = e[r]) && (s = (l ? o(i, t, s) : o(s)) || s);
137
- return l && s && N(i, t, s), s;
138
- }, x = (e, i, t) => i.has(e) || _("Cannot " + t), u = (e, i, t) => (x(e, i, "read from private field"), t ? t.call(e) : i.get(e)), F = (e, i, t) => i.has(e) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), c;
139
- let h = class extends m {
134
+ }, y = (e, t, i, l) => {
135
+ for (var s = l > 1 ? void 0 : l ? N(t, i) : t, r = e.length - 1, o; r >= 0; r--)
136
+ (o = e[r]) && (s = (l ? o(t, i, s) : o(s)) || s);
137
+ return l && s && M(t, i, s), s;
138
+ }, P = (e, t, i) => t.has(e) || _("Cannot " + i), u = (e, t, i) => (P(e, t, "read from private field"), i ? i.call(e) : t.get(e)), F = (e, t, i) => t.has(e) ? _("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), h;
139
+ let d = class extends m {
140
140
  constructor(e) {
141
- super(e), this.root = new n(), F(this, c, new y()), this.state = "disabled", this.loadLayers = O();
141
+ super(e), this.root = new n(), F(this, h, new g()), this.state = "disabled", this.loadLayers = L();
142
142
  }
143
143
  initialize() {
144
144
  this.addHandles(
145
- E(
145
+ $(
146
146
  () => this.layers,
147
147
  "change",
148
148
  () => {
@@ -163,10 +163,10 @@ let h = class extends m {
163
163
  this._set("state", "disabled"), this.root.destroy();
164
164
  }
165
165
  get layers() {
166
- return u(this, c);
166
+ return u(this, h);
167
167
  }
168
168
  set layers(e) {
169
- u(this, c).removeAll(), u(this, c).addMany(e);
169
+ u(this, h).removeAll(), u(this, h).addMany(e);
170
170
  }
171
171
  /**
172
172
  * Initializes our internal tree with all the categories and disciplines from
@@ -174,10 +174,10 @@ let h = class extends m {
174
174
  */
175
175
  updateLayerTree() {
176
176
  this.root.destroy(), this._set("root", new n());
177
- const e = /* @__PURE__ */ new Map(), i = this.layers.length > 1 ? "modelName" : "id";
178
- return this.layers.forEach((t) => {
179
- const l = $(t);
180
- this.addNodesForSublayers(l ?? t, this.root, e, i);
177
+ const e = /* @__PURE__ */ new Map(), t = this.layers.length > 1 ? "modelName" : "id";
178
+ return this.layers.forEach((i) => {
179
+ const l = O(i);
180
+ this.addNodesForSublayers(l ?? i, this.root, e, t);
181
181
  }), this;
182
182
  }
183
183
  /**
@@ -194,13 +194,13 @@ let h = class extends m {
194
194
  * @param matchBy
195
195
  * The sublayer property used to deduplicate sublayers.
196
196
  */
197
- addNodeForLayer(e, i, t, l) {
197
+ addNodeForLayer(e, t, i, l) {
198
198
  const s = String(e[l]).toLowerCase();
199
199
  if (s == null || e.isEmpty)
200
200
  return;
201
- const r = `${i.id}/${s}`;
202
- let o = t.get(r);
203
- o || (o = new n({ id: s, level: i.level + 1 }), t.set(r, o)), o.layers.push(e), i.children.push(o), this.addNodesForSublayers(e, o, t, l);
201
+ const r = `${t.id}/${s}`;
202
+ let o = i.get(r);
203
+ o || (o = new n({ id: s, level: t.level + 1 }), i.set(r, o)), o.layers.push(e), t.children.push(o), this.addNodesForSublayers(e, o, i, l);
204
204
  }
205
205
  /**
206
206
  * Adds nodes for all the sublayers of the specified layer.
@@ -214,8 +214,8 @@ let h = class extends m {
214
214
  * @param matchBy
215
215
  * The sublayer property used to deduplicate sublayers.
216
216
  */
217
- addNodesForSublayers(e, i, t, l) {
218
- (e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s, i, t, l));
217
+ addNodesForSublayers(e, t, i, l) {
218
+ (e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s, t, i, l));
219
219
  }
220
220
  /**
221
221
  * Called when the layers are changed.
@@ -225,27 +225,27 @@ let h = class extends m {
225
225
  try {
226
226
  await this.loadLayers(this.layers), this.updateLayerTree(), this._set("state", "ready");
227
227
  } catch (e) {
228
- A(e) || this._set("state", "failed");
228
+ E(e) || this._set("state", "failed");
229
229
  }
230
230
  }
231
231
  };
232
- c = /* @__PURE__ */ new WeakMap();
233
- g([
232
+ h = /* @__PURE__ */ new WeakMap();
233
+ y([
234
234
  a()
235
- ], h.prototype, "root", 2);
236
- g([
235
+ ], d.prototype, "root", 2);
236
+ y([
237
237
  a()
238
- ], h.prototype, "layers", 1);
239
- g([
238
+ ], d.prototype, "layers", 1);
239
+ y([
240
240
  a()
241
- ], h.prototype, "state", 2);
242
- h = g([
241
+ ], d.prototype, "state", 2);
242
+ d = y([
243
243
  v("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")
244
- ], h);
245
- const I = S`.label{--calcite-label-margin-bottom: 0}`;
246
- class T extends V {
244
+ ], d);
245
+ const I = C`.label{--calcite-label-text-color: var(--arcgis-internal-building-explorer-content-text-color, var(--calcite-color-text-1));--calcite-label-margin-bottom: 0}calcite-tree{--calcite-color-text-3: var(--arcgis-internal-building-explorer-content-text-color, inherit);--calcite-tree-text-color: var(--arcgis-internal-building-explorer-content-text-color, var(--calcite-color-text-1))}calcite-checkbox{--calcite-color-brand: var(--arcgis-internal-building-explorer-selected-button-background-color);--calcite-checkbox-icon-color: var(--arcgis-internal-building-explorer-selected-button-text-color)}`;
246
+ class T extends S {
247
247
  constructor() {
248
- super(...arguments), this.#e = new h(), this.toggleSiblingsVisibility = !1;
248
+ super(...arguments), this.#e = new d(), this.toggleSiblingsVisibility = !1;
249
249
  }
250
250
  static {
251
251
  this.properties = { layers: 0, messages: 0, toggleSiblingsVisibility: 5 };
@@ -257,26 +257,26 @@ class T extends V {
257
257
  get layers() {
258
258
  return this.#e.layers.toArray();
259
259
  }
260
- set layers(i) {
261
- this.#e.layers = new y(i);
260
+ set layers(t) {
261
+ this.#e.layers = new g(t);
262
262
  }
263
263
  render() {
264
- const i = this.messages, t = this.#e;
265
- return i == null ? null : p`<calcite-tree lines selection-mode=none>${w({ node: t.root, messages: i, toggleSiblingsVisibility: this.toggleSiblingsVisibility })}</calcite-tree>`;
264
+ const t = this.messages, i = this.#e;
265
+ return t == null ? null : p`<calcite-tree lines selection-mode=none>${w({ node: i.root, messages: t, toggleSiblingsVisibility: this.toggleSiblingsVisibility })}</calcite-tree>`;
266
266
  }
267
267
  }
268
268
  function B(e) {
269
- const i = e.node, t = i.visible === !0, l = i.visible === null, s = t ? e.messages.hideSublayer : e.messages.showSublayer;
270
- return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${t} .indeterminate=${l} .label=${s} @click=${(r) => {
271
- r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (r.stopImmediatePropagation(), i.toggleAllSiblingsVisibility());
272
- }} title=${s ?? L} @calciteCheckboxChange=${(r) => {
273
- i.toggleVisibility(r.currentTarget.checked);
269
+ const t = e.node, i = t.visible === !0, l = t.visible === null, s = i ? e.messages.hideSublayer : e.messages.showSublayer;
270
+ return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${i} .indeterminate=${l} .label=${s} @click=${(r) => {
271
+ r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (r.stopImmediatePropagation(), t.toggleAllSiblingsVisibility());
272
+ }} title=${s ?? V} @calciteCheckboxChange=${(r) => {
273
+ t.toggleVisibility(r.currentTarget.checked);
274
274
  }}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren ? p`<calcite-tree lines selection-mode=none slot=children>${w({ node: e.node, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility })}</calcite-tree>` : null}</calcite-tree-item>`;
275
275
  }
276
276
  function w(e) {
277
- return e.node.children.toArray().reverse().map((t) => B({ node: t, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility }));
277
+ return e.node.children.toArray().reverse().map((i) => B({ node: i, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility }));
278
278
  }
279
- C("arcgis-building-discipline-tree", T);
279
+ x("arcgis-building-discipline-tree", T);
280
280
  export {
281
281
  T as BuildingDisciplineTree
282
282
  };