@arcgis/map-components 4.32.0-next.117 → 4.32.0-next.118

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 (215) hide show
  1. package/dist/arcgis-map-components/{ODTGJ45O.js → 2SLYTOGS.js} +2 -2
  2. package/dist/arcgis-map-components/{6FZUB5NX.js → 32XU4DDZ.js} +2 -2
  3. package/dist/arcgis-map-components/{5ML66TD3.js → 3BIVBSJD.js} +1 -1
  4. package/dist/arcgis-map-components/3U4SUV5J.js +4 -0
  5. package/dist/arcgis-map-components/{H24H7ZNU.js → 3ZSERA7V.js} +2 -2
  6. package/dist/arcgis-map-components/{5YYO2XCT.js → 4E6QHIJM.js} +2 -2
  7. package/dist/arcgis-map-components/4UVXENNK.js +4 -0
  8. package/dist/arcgis-map-components/{OQ2UYVSY.js → 5ESSL5X2.js} +2 -2
  9. package/dist/arcgis-map-components/{UUFVB3XF.js → 5VYPRKRT.js} +2 -2
  10. package/dist/arcgis-map-components/{P2KLP525.js → 647HSNEY.js} +2 -2
  11. package/dist/arcgis-map-components/{EXIFR4YA.js → 7S552M7M.js} +2 -2
  12. package/dist/arcgis-map-components/{JHCTPP2I.js → A5LAJIQH.js} +2 -2
  13. package/dist/arcgis-map-components/AA6MP2RR.js +4 -0
  14. package/dist/arcgis-map-components/{U72IUMSB.js → AIAMZDR5.js} +2 -2
  15. package/dist/arcgis-map-components/{J2I3JP4T.js → BMTHXGOO.js} +2 -2
  16. package/dist/arcgis-map-components/{BF54IGV2.js → CHY6MSAJ.js} +2 -2
  17. package/dist/arcgis-map-components/{OGWBN4HD.js → CJB4AQNW.js} +2 -2
  18. package/dist/arcgis-map-components/CMCUVR2O.js +4 -0
  19. package/dist/arcgis-map-components/{A464UGRG.js → CRTAEAFR.js} +2 -2
  20. package/dist/arcgis-map-components/{B64JIPNU.js → DBYPOQFN.js} +2 -2
  21. package/dist/arcgis-map-components/DFG567OH.js +4 -0
  22. package/dist/arcgis-map-components/{OYPNBPE4.js → DGXJEZGR.js} +2 -2
  23. package/dist/arcgis-map-components/{ZRBRLC6Y.js → DJAOHPWN.js} +2 -2
  24. package/dist/arcgis-map-components/{ERHVNNIN.js → DJVK4KUC.js} +1 -1
  25. package/dist/arcgis-map-components/E3IXYUMW.js +4 -0
  26. package/dist/arcgis-map-components/{JEOPYG2W.js → ELDSUYAU.js} +2 -2
  27. package/dist/arcgis-map-components/{HSP5U6FE.js → FNB2XNIT.js} +2 -2
  28. package/dist/arcgis-map-components/{C3FRQVSB.js → FUI5OMEA.js} +1 -1
  29. package/dist/arcgis-map-components/{XT4LT46N.js → FWC3YR25.js} +2 -2
  30. package/dist/arcgis-map-components/{A6O6WBMD.js → GOSYOR4U.js} +2 -2
  31. package/dist/arcgis-map-components/{E6SPBLZK.js → GRV2AUVA.js} +2 -2
  32. package/dist/arcgis-map-components/{AA2NZ6JX.js → HG3SZTGT.js} +2 -2
  33. package/dist/arcgis-map-components/{5VJNXUNN.js → HO5YWPFM.js} +2 -2
  34. package/dist/arcgis-map-components/{X55LTRC5.js → INRBGBYV.js} +2 -2
  35. package/dist/arcgis-map-components/{E5HKFXIP.js → INWHZ7L3.js} +2 -2
  36. package/dist/arcgis-map-components/{2YJ7AYNY.js → J6ASGVXU.js} +2 -2
  37. package/dist/arcgis-map-components/{IUH2NA3J.js → J7T2BT5J.js} +2 -2
  38. package/dist/arcgis-map-components/JGCXCURU.js +4 -0
  39. package/dist/arcgis-map-components/{QQTK66I4.js → JJBY3YTG.js} +2 -2
  40. package/dist/arcgis-map-components/{YOI6NSPO.js → KHBA4OYW.js} +2 -2
  41. package/dist/arcgis-map-components/KSME6U5Y.js +4 -0
  42. package/dist/arcgis-map-components/{WUAPWNKE.js → LORQX2JD.js} +2 -2
  43. package/dist/arcgis-map-components/MBBOOAEU.js +4 -0
  44. package/dist/arcgis-map-components/{JXXIXPN6.js → MZLOVIPA.js} +2 -2
  45. package/dist/arcgis-map-components/{NSUYY7KF.js → NBDNPA4X.js} +2 -2
  46. package/dist/arcgis-map-components/{2LC3SHAW.js → NGUSKYVR.js} +2 -2
  47. package/dist/arcgis-map-components/{5NDDQHKW.js → NMBSR6NR.js} +2 -2
  48. package/dist/arcgis-map-components/{VNK6O2BI.js → NWYV6L4P.js} +2 -2
  49. package/dist/arcgis-map-components/OBC3S6VT.js +4 -0
  50. package/dist/arcgis-map-components/{3ERRD4AW.js → OGLLW2FV.js} +2 -2
  51. package/dist/arcgis-map-components/P2CLEOHE.js +4 -0
  52. package/dist/arcgis-map-components/{TOJF3VSS.js → PKKL65A5.js} +2 -2
  53. package/dist/arcgis-map-components/{JNMFFRL5.js → PKVDVS64.js} +2 -2
  54. package/dist/arcgis-map-components/{2UNECELQ.js → PNORYIYX.js} +2 -2
  55. package/dist/arcgis-map-components/{PJ5B3SK3.js → QLOX24UX.js} +2 -2
  56. package/dist/arcgis-map-components/QZXFWCBX.js +4 -0
  57. package/dist/arcgis-map-components/{LTXYVQ3B.js → SMIZOY3N.js} +2 -2
  58. package/dist/arcgis-map-components/{AVOW3SWD.js → TBXAXPXO.js} +2 -2
  59. package/dist/arcgis-map-components/{F4XIKTOL.js → TSEVAAY5.js} +2 -2
  60. package/dist/arcgis-map-components/{UKTTAWH7.js → U54FPFXH.js} +2 -2
  61. package/dist/arcgis-map-components/{NJLS4UVB.js → UNMBUOHY.js} +2 -2
  62. package/dist/arcgis-map-components/VZM2TQ75.js +4 -0
  63. package/dist/arcgis-map-components/{4Z7C2ODE.js → WSK43RRV.js} +2 -2
  64. package/dist/arcgis-map-components/WXIB4GL4.js +4 -0
  65. package/dist/arcgis-map-components/{AOH6OI2V.js → XMDB32OA.js} +2 -2
  66. package/dist/arcgis-map-components/{4LJN5T43.js → XYKWR2B5.js} +2 -2
  67. package/dist/arcgis-map-components/{LCLO7E37.js → Y3AWKOXA.js} +2 -2
  68. package/dist/arcgis-map-components/YFYSMCB6.js +4 -0
  69. package/dist/arcgis-map-components/{7MH3S7KJ.js → YIEWNW4M.js} +1 -1
  70. package/dist/arcgis-map-components/YKR7TDB2.js +4 -0
  71. package/dist/arcgis-map-components/{2TMWQQNX.js → YV2TPLPI.js} +2 -2
  72. package/dist/arcgis-map-components/{26P7WYAH.js → YZI65CCO.js} +2 -2
  73. package/dist/arcgis-map-components/{7GSTVNPL.js → ZX57SG2S.js} +2 -2
  74. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  75. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ar.json +1 -1
  76. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.bg.json +1 -1
  77. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.bs.json +1 -1
  78. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ca.json +1 -1
  79. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.cs.json +1 -1
  80. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.da.json +1 -1
  81. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.de.json +1 -1
  82. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.el.json +1 -1
  83. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.es.json +1 -1
  84. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.et.json +1 -1
  85. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.fi.json +1 -1
  86. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.fr.json +1 -1
  87. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.he.json +1 -1
  88. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.hr.json +1 -1
  89. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.hu.json +1 -1
  90. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.id.json +1 -1
  91. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.it.json +1 -1
  92. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ja.json +1 -1
  93. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ko.json +1 -1
  94. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.lt.json +1 -1
  95. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.lv.json +1 -1
  96. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.nl.json +1 -1
  97. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.no.json +1 -1
  98. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.pl.json +1 -1
  99. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.pt-BR.json +1 -1
  100. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.pt-PT.json +1 -1
  101. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ro.json +1 -1
  102. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.ru.json +1 -1
  103. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.sk.json +1 -1
  104. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.sl.json +1 -1
  105. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.sr.json +1 -1
  106. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.sv.json +1 -1
  107. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.th.json +1 -1
  108. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.tr.json +1 -1
  109. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.uk.json +1 -1
  110. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.vi.json +1 -1
  111. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.zh-CN.json +1 -1
  112. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.zh-HK.json +1 -1
  113. package/dist/arcgis-map-components/assets/navigation-toggle/t9n/messages.zh-TW.json +1 -1
  114. package/dist/chunks/basemap-gallery-item.js +1 -1
  115. package/dist/chunks/component-utils.js +1 -1
  116. package/dist/chunks/disconnected.js +1 -1
  117. package/dist/chunks/globalCss.js +1 -1
  118. package/dist/chunks/legacyIcon.js +1 -1
  119. package/dist/chunks/runtime.js +1 -1
  120. package/dist/chunks/useView.js +64 -0
  121. package/dist/chunks/useViewModel.js +11 -66
  122. package/dist/chunks/useWidget.js +1 -1
  123. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  124. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  125. package/dist/components/arcgis-attachments/customElement.js +1 -1
  126. package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
  127. package/dist/components/arcgis-basemap-gallery/customElement.js +3 -2
  128. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  129. package/dist/components/arcgis-basemap-toggle/customElement.js +7 -6
  130. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  131. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  132. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  133. package/dist/components/arcgis-compass/customElement.js +6 -5
  134. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  135. package/dist/components/arcgis-daylight/customElement.js +1 -1
  136. package/dist/components/arcgis-directional-pad/customElement.js +3 -2
  137. package/dist/components/arcgis-directions/customElement.js +1 -1
  138. package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
  139. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  140. package/dist/components/arcgis-editor/customElement.d.ts +0 -1
  141. package/dist/components/arcgis-editor/customElement.js +7 -7
  142. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  143. package/dist/components/arcgis-expand/customElement.js +1 -1
  144. package/dist/components/arcgis-feature/customElement.js +1 -1
  145. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  146. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  147. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  148. package/dist/components/arcgis-features/customElement.js +1 -1
  149. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  150. package/dist/components/arcgis-fullscreen/customElement.js +7 -6
  151. package/dist/components/arcgis-histogram/customElement.js +1 -1
  152. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  153. package/dist/components/arcgis-home/customElement.js +6 -5
  154. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  155. package/dist/components/arcgis-legend/customElement.js +1 -1
  156. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  157. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  158. package/dist/components/arcgis-locate/customElement.js +11 -10
  159. package/dist/components/arcgis-map/customElement.js +1 -1
  160. package/dist/components/arcgis-measurement/customElement.js +1 -1
  161. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +20 -33
  162. package/dist/components/arcgis-navigation-toggle/customElement.js +53 -87
  163. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  164. package/dist/components/arcgis-placement/customElement.js +1 -1
  165. package/dist/components/arcgis-print/customElement.js +1 -1
  166. package/dist/components/arcgis-scale-bar/customElement.js +22 -21
  167. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  168. package/dist/components/arcgis-scene/customElement.js +1 -1
  169. package/dist/components/arcgis-search/customElement.js +1 -1
  170. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  171. package/dist/components/arcgis-sketch/customElement.js +1 -1
  172. package/dist/components/arcgis-slice/customElement.js +1 -1
  173. package/dist/components/arcgis-slider/customElement.js +1 -1
  174. package/dist/components/arcgis-swipe/customElement.js +3 -2
  175. package/dist/components/arcgis-table-list/customElement.js +1 -1
  176. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  177. package/dist/components/arcgis-track/customElement.js +3 -2
  178. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  179. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  180. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  181. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  182. package/dist/components/arcgis-version-management/customElement.js +3 -2
  183. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  184. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  185. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  186. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  187. package/dist/components/arcgis-weather/customElement.js +1 -1
  188. package/dist/components/arcgis-zoom/customElement.js +9 -8
  189. package/dist/docs/api.json +21 -35
  190. package/dist/docs/docs.json +15 -36
  191. package/dist/docs/vscode.html-custom-data.json +4 -4
  192. package/dist/docs/web-types.json +10 -13
  193. package/dist/index.js +1 -1
  194. package/dist/loader.js +2 -2
  195. package/dist/types/lumina.d.ts +1 -1
  196. package/dist/types/preact.d.ts +1 -1
  197. package/dist/types/react.d.ts +1 -1
  198. package/dist/types/stencil.d.ts +1 -1
  199. package/package.json +5 -5
  200. package/dist/arcgis-map-components/3GZ5QHD6.js +0 -4
  201. package/dist/arcgis-map-components/5SJJCR34.js +0 -4
  202. package/dist/arcgis-map-components/B2UPBTVU.js +0 -4
  203. package/dist/arcgis-map-components/CTTQ5ISZ.js +0 -4
  204. package/dist/arcgis-map-components/DZA6L5FZ.js +0 -4
  205. package/dist/arcgis-map-components/E3MCTVXN.js +0 -4
  206. package/dist/arcgis-map-components/ECV3YJL3.js +0 -4
  207. package/dist/arcgis-map-components/FYRT6MHO.js +0 -4
  208. package/dist/arcgis-map-components/JT3AWM6U.js +0 -4
  209. package/dist/arcgis-map-components/PTM2OKM6.js +0 -4
  210. package/dist/arcgis-map-components/T4PUC65F.js +0 -4
  211. package/dist/arcgis-map-components/UMFKKYJF.js +0 -4
  212. package/dist/arcgis-map-components/UNBT3U4A.js +0 -4
  213. package/dist/arcgis-map-components/WAM3WB65.js +0 -4
  214. package/dist/arcgis-map-components/XEMVO67G.js +0 -4
  215. package/dist/components/arcgis-navigation-toggle/NavigationToggleViewModel.d.ts +0 -17
@@ -5,7 +5,7 @@ import { m as a } from "../../chunks/useWidget.js";
5
5
  import { css as n } from "@lit/reactive-element/css-tag.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- v4.32.0-next.117 */
8
+ v4.32.0-next.118 */
9
9
  const c = n`arcgis-expand{display:flex;pointer-events:auto}arcgis-expand>.esri-expand__content--expanded{background-color:var(--calcite-color-background)}`, d = a(e);
10
10
  class l extends i {
11
11
  // #endregion
@@ -6,7 +6,7 @@ import { m as d } from "../../chunks/useWidget.js";
6
6
  import { css as l } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const r = l`arcgis-feature{display:block}`, c = d(a);
11
11
  class p extends n {
12
12
  constructor() {
@@ -7,7 +7,7 @@ import { m as h } from "../../chunks/useWidget.js";
7
7
  import { css as m } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const l = m`arcgis-feature-form{display:block}`, g = h(s);
12
12
  class n extends r {
13
13
  constructor() {
@@ -9,7 +9,7 @@ import { f as m } from "../../chunks/component-utils.js";
9
9
  import { css as c } from "@lit/reactive-element/css-tag.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- v4.32.0-next.117 */
12
+ v4.32.0-next.118 */
13
13
  const u = c`arcgis-feature-table{display:block}.arcgis-feature-table{width:100%;height:100%}`, w = g(d);
14
14
  class b extends a {
15
15
  constructor() {
@@ -7,7 +7,7 @@ import { m as a } from "../../chunks/useWidget.js";
7
7
  import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const n = h`arcgis-feature-templates{display:block}`, c = a(s);
12
12
  class d extends o {
13
13
  constructor() {
@@ -7,7 +7,7 @@ import { m as d } from "../../chunks/useWidget.js";
7
7
  import { css as l } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const c = l`arcgis-features{display:block}`, g = d(o);
12
12
  class u extends r {
13
13
  constructor() {
@@ -5,7 +5,7 @@ import { m as a } from "../../chunks/useWidget.js";
5
5
  import { css as r } from "@lit/reactive-element/css-tag.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- v4.32.0-next.117 */
8
+ v4.32.0-next.118 */
9
9
  const h = r`arcgis-floor-filter{display:block}`, n = a(i);
10
10
  class c extends s {
11
11
  constructor() {
@@ -3,25 +3,26 @@ import { html as s } from "lit-html";
3
3
  import { usePropertyChange as c } from "@arcgis/components-controllers";
4
4
  import { classes as d } from "@arcgis/components-utils";
5
5
  import m from "@arcgis/core/widgets/Fullscreen/FullscreenViewModel.js";
6
- import { LitElement as u, createEvent as h, noShadowRoot as g, safeClassMap as i, nothing as p } from "@arcgis/lumina";
7
- import { u as f, m as w } from "../../chunks/useViewModel.js";
6
+ import { LitElement as u, createEvent as h, noShadowRoot as p, safeClassMap as i, nothing as f } from "@arcgis/lumina";
7
+ import { u as g } from "../../chunks/useView.js";
8
+ import { m as w } from "../../chunks/useViewModel.js";
8
9
  import { g as o } from "../../chunks/globalCss.js";
9
10
  import { css as b } from "@lit/reactive-element/css-tag.js";
10
11
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
12
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- v4.32.0-next.117 */
13
+ v4.32.0-next.118 */
13
14
  const y = b`arcgis-fullscreen{display:block}`, v = {
14
15
  base: "esri-fullscreen"
15
16
  }, M = w(m);
16
17
  class $ extends u {
17
18
  constructor() {
18
- super(...arguments), this.messages = f(), this.viewModel = M(this), this.autoDestroyDisabled = !1, this.element = this.viewModel.element, this.icon = "zoom-out-fixed", this.position = "top-left", this.state = this.viewModel.state, this.arcgisPropertyChange = c()("state"), this.arcgisReady = h();
19
+ super(...arguments), this.messages = g(), this.viewModel = M(this), this.autoDestroyDisabled = !1, this.element = this.viewModel.element, this.icon = "zoom-out-fixed", this.position = "top-left", this.state = this.viewModel.state, this.arcgisPropertyChange = c()("state"), this.arcgisReady = h();
19
20
  }
20
21
  static {
21
22
  this.properties = { autoDestroyDisabled: 5, element: 0, icon: 3, label: 1, messageOverrides: 0, position: 3, referenceElement: 1, state: 3 };
22
23
  }
23
24
  static {
24
- this.shadowRootOptions = g;
25
+ this.shadowRootOptions = p;
25
26
  }
26
27
  static {
27
28
  this.styles = y;
@@ -46,7 +47,7 @@ class $ extends u {
46
47
  // #region Rendering
47
48
  render() {
48
49
  const { fullscreenTitle: e, icon: r } = this, t = this.viewModel?.state, a = t === "feature-unsupported", l = t === "ready" || t === "disabled" || t === "feature-unsupported" ? "zoom-out-fixed" : "zoom-in-fixed";
49
- return s`<div class=${i(d(v.base, o.widget))}>${!a && s`<calcite-button class=${i(o.widgetButton)} .disabled=${t === "disabled"} .iconStart=${r ?? l} kind=neutral .label=${e} @click=${this._toggle} title=${e ?? p}></calcite-button>` || ""}</div>`;
50
+ return s`<div class=${i(d(v.base, o.widget))}>${!a && s`<calcite-button class=${i(o.widgetButton)} .disabled=${t === "disabled"} .iconStart=${r ?? l} kind=neutral .label=${e} @click=${this._toggle} title=${e ?? f}></calcite-button>` || ""}</div>`;
50
51
  }
51
52
  }
52
53
  n("arcgis-fullscreen", $);
@@ -6,7 +6,7 @@ import { m as r } from "../../chunks/useWidget.js";
6
6
  import { css as n } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const h = n`arcgis-histogram{display:block}`, d = r(e);
11
11
  class m extends s {
12
12
  constructor() {
@@ -6,7 +6,7 @@ import { m as n } from "../../chunks/useWidget.js";
6
6
  import { css as d } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const h = d`arcgis-histogram-range-slider{display:block}`, l = n(s);
11
11
  class g extends a {
12
12
  constructor() {
@@ -5,15 +5,16 @@ import { reEmitEvent as n } from "@arcgis/components-controllers/accessor";
5
5
  import { classes as m } from "@arcgis/components-utils";
6
6
  import d from "@arcgis/core/widgets/Home/HomeViewModel.js";
7
7
  import { LitElement as h, createEvent as g, noShadowRoot as p, safeClassMap as i, nothing as v } from "@arcgis/lumina";
8
- import { u as w, m as u } from "../../chunks/useViewModel.js";
8
+ import { u as w } from "../../chunks/useView.js";
9
+ import { m as f } from "../../chunks/useViewModel.js";
9
10
  import { g as a } from "../../chunks/globalCss.js";
10
- import { css as f } from "@lit/reactive-element/css-tag.js";
11
+ import { css as u } from "@lit/reactive-element/css-tag.js";
11
12
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
13
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- v4.32.0-next.117 */
14
- const b = f`arcgis-home{display:block}`, y = {
14
+ v4.32.0-next.118 */
15
+ const b = u`arcgis-home{display:block}`, y = {
15
16
  base: "esri-home"
16
- }, M = u(d);
17
+ }, M = f(d);
17
18
  class $ extends h {
18
19
  constructor() {
19
20
  super(...arguments), this.messages = w(), this.viewModel = M(this), this.autoDestroyDisabled = !1, this.goToOverride = this.viewModel.goToOverride, this.icon = "home", this.position = "top-left", this.state = this.viewModel.state, this.viewpoint = this.viewModel.viewpoint, this.arcgisGo = n(() => this.viewModel, "go"), this.arcgisPropertyChange = c()("state"), this.arcgisReady = g();
@@ -7,7 +7,7 @@ import { m as d } from "../../chunks/useWidget.js";
7
7
  import { css as n } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const g = n`arcgis-layer-list{display:block}`, c = d(o);
12
12
  class m extends r {
13
13
  constructor() {
@@ -6,7 +6,7 @@ import { m as o } from "../../chunks/useWidget.js";
6
6
  import { css as n } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const d = n`arcgis-legend{display:block}`, h = o(i);
11
11
  class l extends s {
12
12
  constructor() {
@@ -6,7 +6,7 @@ import { m as r } from "../../chunks/useWidget.js";
6
6
  import { css as n } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const l = n`arcgis-line-of-sight{display:block}`, h = r(i);
11
11
  class c extends e {
12
12
  constructor() {
@@ -8,7 +8,7 @@ import { e as h, i as g } from "../../chunks/component-utils.js";
8
8
  import { css as y } from "@lit/reactive-element/css-tag.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- v4.32.0-next.117 */
11
+ v4.32.0-next.118 */
12
12
  const u = y`.arcgis-link-chart{padding:0;margin:0;height:100%;width:100%}`, f = r(
13
13
  l,
14
14
  /**
@@ -1,23 +1,24 @@
1
1
  import { c as m } from "../../chunks/runtime.js";
2
2
  import { html as t } from "lit-html";
3
3
  import { usePropertyChange as g } from "@arcgis/components-controllers";
4
- import { reEmitEvent as c } from "@arcgis/components-controllers/accessor";
4
+ import { reEmitEvent as r } from "@arcgis/components-controllers/accessor";
5
5
  import { classes as u } from "@arcgis/components-utils";
6
- import v from "@arcgis/core/widgets/Locate/LocateViewModel.js";
7
- import { LitElement as f, createEvent as w, noShadowRoot as E, safeClassMap as l, nothing as b } from "@arcgis/lumina";
8
- import { u as M, m as y } from "../../chunks/useViewModel.js";
9
- import { g as r } from "../../chunks/globalCss.js";
6
+ import f from "@arcgis/core/widgets/Locate/LocateViewModel.js";
7
+ import { LitElement as v, createEvent as w, noShadowRoot as E, safeClassMap as c, nothing as b } from "@arcgis/lumina";
8
+ import { u as M } from "../../chunks/useView.js";
9
+ import { m as y } from "../../chunks/useViewModel.js";
10
+ import { g as l } from "../../chunks/globalCss.js";
10
11
  import { l as $ } from "../../chunks/legacyIcon.js";
11
12
  import { css as L } from "@lit/reactive-element/css-tag.js";
12
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
14
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
14
- v4.32.0-next.117 */
15
+ v4.32.0-next.118 */
15
16
  const D = L`arcgis-locate{display:block}`, O = {
16
17
  base: "esri-locate"
17
- }, n = "gps-off", T = y(v);
18
- class I extends f {
18
+ }, n = "gps-off", T = y(f);
19
+ class I extends v {
19
20
  constructor() {
20
- super(...arguments), this.messages = M(), this.viewModel = T(this), this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = n, this.popupDisabled = this.viewModel.popupEnabled, this.position = "top-left", this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = c(() => this.viewModel, "locate-error"), this.arcgisPropertyChange = g()("state"), this.arcgisReady = w(), this.arcgisSuccess = c(() => this.viewModel, "locate");
21
+ super(...arguments), this.messages = M(), this.viewModel = T(this), this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = n, this.popupDisabled = this.viewModel.popupEnabled, this.position = "top-left", this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = r(() => this.viewModel, "locate-error"), this.arcgisPropertyChange = g()("state"), this.arcgisReady = w(), this.arcgisSuccess = r(() => this.viewModel, "locate");
21
22
  }
22
23
  static {
23
24
  this.properties = { autoDestroyDisabled: 5, geolocationOptions: 1, goToLocationDisabled: 7, goToOverride: 0, graphic: 0, icon: 3, label: 1, messageOverrides: 0, popupDisabled: 5, position: 3, referenceElement: 1, scale: 9, state: 3 };
@@ -61,7 +62,7 @@ class I extends f {
61
62
  // #region Rendering
62
63
  render() {
63
64
  const { viewModel: e, icon: d } = this, { state: o } = e, i = o === "locating", s = i ? this.messages.cancel : this.messages.title, h = o === "feature-unsupported", p = $ === void 0 ? n : void 0, a = this._localizeError(this.viewModel?.error);
64
- return t`<div class=${l(u(O.base, r.widget))}>${!h && t`<calcite-button class=${l(r.widgetButton)} .disabled=${o === "disabled"} .iconStart=${i ? void 0 : d ?? p} kind=neutral .label=${s} @click=${this._locate} title=${s ?? b}>${i ? t`<calcite-loader inline label></calcite-loader>` : null}</calcite-button>` || ""}${a ? t`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${a}</calcite-tooltip>` : null}</div>`;
65
+ return t`<div class=${c(u(O.base, l.widget))}>${!h && t`<calcite-button class=${c(l.widgetButton)} .disabled=${o === "disabled"} .iconStart=${i ? void 0 : d ?? p} kind=neutral .label=${s} @click=${this._locate} title=${s ?? b}>${i ? t`<calcite-loader inline label></calcite-loader>` : null}</calcite-button>` || ""}${a ? t`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${a}</calcite-tooltip>` : null}</div>`;
65
66
  }
66
67
  }
67
68
  m("arcgis-locate", I);
@@ -8,7 +8,7 @@ import { e as h, i as g } from "../../chunks/component-utils.js";
8
8
  import { css as y } from "@lit/reactive-element/css-tag.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- v4.32.0-next.117 */
11
+ v4.32.0-next.118 */
12
12
  const u = y`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, f = r(
13
13
  v,
14
14
  /**
@@ -6,7 +6,7 @@ import { m as r } from "../../chunks/useWidget.js";
6
6
  import { css as n } from "@lit/reactive-element/css-tag.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- v4.32.0-next.117 */
9
+ v4.32.0-next.118 */
10
10
  const c = n`arcgis-measurement{display:block}`, h = r(i);
11
11
  class l extends s {
12
12
  constructor() {
@@ -3,21 +3,21 @@
3
3
  import { Use } from '@arcgis/components-controllers';
4
4
  import { Nil } from '@arcgis/components-utils';
5
5
  import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
6
+ import { PropertyValues } from 'lit';
7
+ import { useView } from '../../controllers/useView';
6
8
  import { ArcgisReferenceElement } from '../../utils/component-utils';
7
- import { NavigationToggleViewModel } from './NavigationToggleViewModel';
8
9
 
10
+ type State = "disabled" | "ready";
11
+ type NavigationMode = "pan" | "rotate";
9
12
  type LayoutMode = "horizontal" | "vertical";
10
- declare const useViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & {
11
- manager: import('@arcgis/components-controllers').ControllerManager;
12
- el: HTMLElement;
13
- autoDestroyDisabled?: boolean;
14
- destroy?: () => Promise<void>;
15
- } & Pick<NavigationToggleViewModel, never> & import('../../controllers/useViewModel').ViewModelControllerUses<NavigationToggleViewModel>, options?: {
16
- editConstructorProperties(props: unknown): unknown;
17
- } | undefined) => NavigationToggleViewModel;
18
13
  /**
19
- * The NavigationToggle component has two simple buttons for toggling the [navigation mode](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode)
20
- * of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
14
+ * A navigation toggle component can be used to control the navigation mode of an arcgis-scene component.
15
+ *
16
+ * When the navigation mode is set to "pan", the mouse drag gesture pans the view and right-click + drag allows the user
17
+ * to rotate the view. When the navigation mode is set to "rotate", the mouse drag gesture rotates the view and
18
+ * right-click + drag pans the view.
19
+ *
20
+ * The navitation toggle component is not supported in 2d.
21
21
  */
22
22
  export declare class ArcgisNavigationToggle extends LitElement {
23
23
  /**
@@ -29,29 +29,16 @@ export declare class ArcgisNavigationToggle extends LitElement {
29
29
  */
30
30
  autoDestroyDisabled: boolean;
31
31
  /**
32
- * Icon which represents the component.
33
- * Typically used when the component is controlled by another component (e.g. by the Expand component).
34
- * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values.
32
+ * Icon which represents the component. It is typically used when the
33
+ * component is controlled by another one (e.g. in the arcgis-expand
34
+ * component).
35
+ *
36
+ * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
35
37
  */
36
38
  icon: HTMLCalciteIconElement["icon"] | Nil;
37
- /** The widget's default label. */
39
+ /** The component's default label. */
38
40
  label: string | undefined;
39
- /**
40
- * Sets the layout of the widget to either `horizontal` or `vertical`. See the
41
- * table below for a list of possible values.
42
- *
43
- * Possible Value | Example
44
- * ---------------|--------
45
- * vertical | ![navigation-toggle](../assets/img/apiref/widgets/navigation-toggle.png)
46
- * horizontal | ![navigation-toggle-horizontal](../assets/img/apiref/widgets/navigation-toggle-horizontal.png)
47
- *
48
- * @example
49
- * // creates a new instance of the NavigationToggle widget
50
- * let navigationToggle = new NavigationToggle({
51
- * view: view,
52
- * layout: "horizontal" // makes the layout horizontal
53
- * });
54
- */
41
+ /** The layout of the component. */
55
42
  layout: LayoutMode;
56
43
  /**
57
44
  * The navigation mode of the [view](#view). See the table below for a list of
@@ -62,10 +49,10 @@ export declare class ArcgisNavigationToggle extends LitElement {
62
49
  * pan | The mouse drag gesture pans the view. Right-click + drag allows the user to perform a 3D rotate around the center of the view.
63
50
  * rotate | The mouse drag gesture performs a 3D rotate around the center of the view and the right-click + drag gesture pans the view.
64
51
  */
65
- navigationMode: import('./NavigationToggleViewModel').NavigationMode;
52
+ navigationMode: NavigationMode;
66
53
  position: __esri.UIPosition;
67
54
  referenceElement: ArcgisReferenceElement | Nil | string;
68
- state: import('./NavigationToggleViewModel').State;
55
+ state: State;
69
56
  /** Permanently destroy the component */
70
57
  destroy(): Promise<void>;
71
58
  toggle(): Promise<void>;
@@ -1,94 +1,29 @@
1
- import { c as v } from "../../chunks/runtime.js";
2
- import { html as p } from "lit-html";
3
- import { usePropertyChange as h } from "@arcgis/components-controllers";
4
- import { LitElement as M, createEvent as m, noShadowRoot as w, safeClassMap as y, nothing as g } from "@arcgis/lumina";
5
- import { u, m as b } from "../../chunks/useViewModel.js";
6
- import { g as f } from "../../chunks/globalCss.js";
7
- import { css as _ } from "@lit/reactive-element/css-tag.js";
8
- import $ from "@arcgis/core/core/Accessor.js";
9
- import { property as c, subclass as C } from "@arcgis/core/core/accessorSupport/decorators.js";
10
- import { when as P } from "@arcgis/core/core/reactiveUtils.js";
1
+ import { c as l } from "../../chunks/runtime.js";
2
+ import { usePropertyChange as d } from "@arcgis/components-controllers";
3
+ import { when as n } from "@arcgis/core/core/reactiveUtils.js";
4
+ import { LitElement as g, createEvent as p, noShadowRoot as h, safeClassMap as m, nothing as c } from "@arcgis/lumina";
5
+ import { html as v } from "lit";
6
+ import { a as u, u as y } from "../../chunks/useView.js";
7
+ import { g as b } from "../../chunks/globalCss.js";
8
+ import { css as M } from "@lit/reactive-element/css-tag.js";
11
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
10
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- v4.32.0-next.117 */
14
- const x = "arcgis-navigation-toggle", N = {
15
- base: x
16
- }, D = _`.arcgis-navigation-toggle{display:flex}`;
17
- var O = Object.defineProperty, E = Object.getOwnPropertyDescriptor, l = (t, e, r, o) => {
18
- for (var i = o > 1 ? void 0 : o ? E(e, r) : e, s = t.length - 1, a; s >= 0; s--)
19
- (a = t[s]) && (i = (o ? a(e, r, i) : a(i)) || i);
20
- return o && i && O(e, r, i), i;
21
- };
22
- let n = class extends $ {
23
- //#region Lifecyle
24
- constructor(t) {
25
- super(t), this._navigationMode = "pan", this.view = void 0;
26
- }
27
- initialize() {
28
- this.addHandles([
29
- P(
30
- () => this.view?.navigation.actionMap,
31
- () => this._setNavigationMode()
32
- )
33
- ]);
34
- }
35
- destroy() {
36
- this.view = void 0;
37
- }
38
- get state() {
39
- return this.view?.ready && this.view?.type === "3d" ? "ready" : "disabled";
40
- }
41
- get navigationMode() {
42
- return this._navigationMode;
43
- }
44
- set navigationMode(t) {
45
- this._navigationMode = t, this._setNavigationMode();
46
- }
47
- //#endregion
48
- //#region Public Methods
49
- toggle() {
50
- this.state !== "disabled" && (this.navigationMode = this.navigationMode !== "pan" ? "pan" : "rotate");
51
- }
52
- //#endregion
53
- //#region Private Methods
54
- _setNavigationMode() {
55
- const t = this.view?.navigation.actionMap;
56
- if (!t)
57
- return;
58
- const e = this._navigationMode === "pan";
59
- t.dragPrimary = e ? "pan" : "rotate", t.dragSecondary = e ? "rotate" : "pan";
60
- }
61
- //#endregion
62
- };
63
- l([
64
- c({ readOnly: !0 })
65
- ], n.prototype, "state", 1);
66
- l([
67
- c()
68
- ], n.prototype, "_navigationMode", 2);
69
- l([
70
- c()
71
- ], n.prototype, "view", 2);
72
- n = l([
73
- C("esri.widgets.NavigationToggle.NavigationToggleViewModel")
74
- ], n);
75
- const R = b(n);
76
- class T extends M {
11
+ v4.32.0-next.118 */
12
+ const f = "arcgis-navigation-toggle", $ = {
13
+ base: f
14
+ }, w = M`.arcgis-navigation-toggle{display:flex}`;
15
+ class _ extends g {
77
16
  constructor() {
78
- super(...arguments), this.viewModel = R(this), this._messages = u(), this._onPanClick = () => {
79
- this.viewModel.navigationMode = "pan";
80
- }, this._onRotateClick = () => {
81
- this.viewModel.navigationMode = "rotate";
82
- }, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.icon = "pan", this.layout = "vertical", this.navigationMode = this.viewModel.navigationMode, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange = h()("layout", "state"), this.arcgisReady = m();
17
+ super(...arguments), this.view = u(this), this._messages = y(), this.autoDestroyDisabled = !1, this.icon = "pan", this.layout = "vertical", this.navigationMode = "pan", this.position = "bottom-left", this.state = "disabled", this.arcgisPropertyChange = d()("layout", "state"), this.arcgisReady = p();
83
18
  }
84
19
  static {
85
- this.properties = { view: 16, autoDestroyDisabled: 5, icon: 3, label: 1, layout: 3, navigationMode: 3, position: 1, referenceElement: 1, state: 3 };
20
+ this.properties = { autoDestroyDisabled: 5, icon: 3, label: 1, layout: 3, navigationMode: 3, position: 1, referenceElement: 1, state: 3 };
86
21
  }
87
22
  static {
88
- this.shadowRootOptions = w;
23
+ this.shadowRootOptions = h;
89
24
  }
90
25
  static {
91
- this.styles = D;
26
+ this.styles = w;
92
27
  }
93
28
  //#endregion
94
29
  //#region Public Methods
@@ -97,16 +32,47 @@ class T extends M {
97
32
  await this.manager.destroy();
98
33
  }
99
34
  async toggle() {
100
- this.viewModel.toggle();
35
+ this.state !== "disabled" && (this.navigationMode = this.navigationMode !== "pan" ? "pan" : "rotate");
36
+ }
37
+ //#endregion
38
+ //#region Lifecycle
39
+ load() {
40
+ this.manager.onLifecycle(() => [
41
+ n(() => this.view?.navigation.actionMap, () => this._updateNavigationActionMap()),
42
+ n(() => {
43
+ const { view: t } = this;
44
+ return t?.ready && t?.type === "3d" ? "ready" : "disabled";
45
+ }, (t) => {
46
+ this.state = t;
47
+ }, { sync: !0, initial: !0 })
48
+ ]);
49
+ }
50
+ willUpdate(t) {
51
+ t.has("navigationMode") && this._updateNavigationActionMap();
52
+ }
53
+ //#endregion
54
+ //#region Private Methods
55
+ _onPanClick() {
56
+ this.navigationMode = "pan";
57
+ }
58
+ _onRotateClick() {
59
+ this.navigationMode = "rotate";
60
+ }
61
+ _updateNavigationActionMap() {
62
+ const t = this.view?.navigation.actionMap;
63
+ if (!t)
64
+ return;
65
+ const a = this.navigationMode === "pan";
66
+ t.dragPrimary = a ? "pan" : "rotate", t.dragSecondary = a ? "rotate" : "pan";
101
67
  }
102
68
  //#endregion
103
69
  //#region Rendering
104
70
  render() {
105
- const { _messages: e, navigationMode: r, state: o } = this, i = e.pan ?? "", s = e.rotate ?? "", a = o === "disabled", d = r === "pan";
106
- return p`<calcite-action-bar .ariaLabel=${this.label} class=${y({ [N.base]: !0, [f.disabled]: a })} expand-disabled .layout=${this.layout} scale=s><calcite-action .active=${d} appearance=solid data-testid=navigation-toggle-pan .disabled=${a} icon=move @click=${this._onPanClick} scale=s .text=${i} title=${i ?? g}></calcite-action><calcite-action .active=${!d} appearance=solid data-testid=navigation-toggle-rotate .disabled=${a} icon=rotate @click=${this._onRotateClick} scale=s .text=${s} title=${s ?? g}></calcite-action></calcite-action-bar>`;
71
+ const { _messages: t, navigationMode: a, state: r } = this, e = t.pan ?? "", s = t.rotate ?? "", i = r === "disabled", o = a === "pan";
72
+ return v`<calcite-action-bar .ariaLabel=${this.label} class=${m({ [$.base]: !0, [b.disabled]: i })} expand-disabled .layout=${this.layout} scale=s><calcite-action .active=${o} appearance=solid data-testid=navigation-toggle-pan .disabled=${i} icon=move @click=${this._onPanClick} scale=s .text=${e} title=${e ?? c}></calcite-action><calcite-action .active=${!o} appearance=solid data-testid=navigation-toggle-rotate .disabled=${i} icon=rotate @click=${this._onRotateClick} scale=s .text=${s} title=${s ?? c}></calcite-action></calcite-action-bar>`;
107
73
  }
108
74
  }
109
- v("arcgis-navigation-toggle", T);
75
+ l("arcgis-navigation-toggle", _);
110
76
  export {
111
- T as ArcgisNavigationToggle
77
+ _ as ArcgisNavigationToggle
112
78
  };
@@ -7,7 +7,7 @@ import { m as l } from "../../chunks/useWidget.js";
7
7
  import { css as g } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const h = g`arcgis-oriented-imagery-viewer{display:block}`, m = l(r);
12
12
  class y extends o {
13
13
  constructor() {
@@ -4,7 +4,7 @@ import { LitElement as r, createEvent as o, noShadowRoot as n } from "@arcgis/lu
4
4
  import { css as c } from "@lit/reactive-element/css-tag.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
7
- v4.32.0-next.117 */
7
+ v4.32.0-next.118 */
8
8
  const h = c`arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:block}`;
9
9
  class a extends r {
10
10
  //#endregion
@@ -7,7 +7,7 @@ import { m as n } from "../../chunks/useWidget.js";
7
7
  import { css as h } from "@lit/reactive-element/css-tag.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.117 */
10
+ v4.32.0-next.118 */
11
11
  const d = h`arcgis-print{display:block}`, m = n(r);
12
12
  class p extends o {
13
13
  constructor() {
@@ -6,14 +6,15 @@ import { getDefaultUnitForView as w } from "@arcgis/core/applications/Components
6
6
  import { watch as y } from "@arcgis/core/core/reactiveUtils.js";
7
7
  import { formatNumber as S } from "@arcgis/core/intl.js";
8
8
  import L from "@arcgis/core/widgets/ScaleBar/ScaleBarViewModel.js";
9
- import { LitElement as B, createEvent as M, noShadowRoot as R, safeClassMap as a, safeStyleMap as f } from "@arcgis/lumina";
10
- import { u as x, m as D } from "../../chunks/useViewModel.js";
9
+ import { LitElement as B, createEvent as M, noShadowRoot as R, safeClassMap as a, safeStyleMap as _ } from "@arcgis/lumina";
10
+ import { u as x } from "../../chunks/useView.js";
11
+ import { m as D } from "../../chunks/useViewModel.js";
11
12
  import { g as v } from "../../chunks/globalCss.js";
12
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
14
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
14
- v4.32.0-next.117 */
15
- function $(_ = 0, e = 0) {
16
- return { x: _, y: e };
15
+ v4.32.0-next.118 */
16
+ function $(f = 0, e = 0) {
17
+ return { x: f, y: e };
17
18
  }
18
19
  const r = "esri-scale-bar", t = {
19
20
  base: r,
@@ -87,7 +88,7 @@ class k extends B {
87
88
  _handleRootCreateOrUpdate() {
88
89
  if (!this.viewModel)
89
90
  return;
90
- const e = this._scaleComputedFrom, i = this.el.getBoundingClientRect(), o = i.left + window.pageXOffset, l = i.top + window.pageYOffset, n = $(o, l);
91
+ const e = this._scaleComputedFrom, i = this.el.getBoundingClientRect(), s = i.left + window.pageXOffset, l = i.top + window.pageYOffset, n = $(s, l);
91
92
  (n.x !== e.x || n.y !== e.y) && (this._scaleComputedFrom = n);
92
93
  }
93
94
  _formatDistance(e, i) {
@@ -103,33 +104,33 @@ class k extends B {
103
104
  const e = this.viewModel.state === "disabled", i = {
104
105
  [v.disabled]: e
105
106
  };
106
- let o, l;
107
+ let s, l;
107
108
  if (!e) {
108
- const { unit: n, barStyle: c } = this, b = n === "imperial" || n === "dual", p = n === "metric" || n === "dual", m = 100, h = n === "dual" ? "line" : c;
109
- if (b) {
110
- const s = this.viewModel.getScaleBarProperties(m, "imperial");
111
- s && (l = h === "ruler" ? this._renderRuler(s) : this._renderLine(s, "bottom"));
112
- }
109
+ const { unit: n, barStyle: c } = this, p = n === "imperial" || n === "dual", b = n === "metric" || n === "dual", m = 100, h = n === "dual" ? "line" : c;
113
110
  if (p) {
114
- const s = this.viewModel.getScaleBarProperties(m, "metric");
115
- s && (o = h === "ruler" ? this._renderRuler(s) : this._renderLine(s, "top"));
111
+ const o = this.viewModel.getScaleBarProperties(m, "imperial");
112
+ o && (l = h === "ruler" ? this._renderRuler(o) : this._renderLine(o, "bottom"));
113
+ }
114
+ if (b) {
115
+ const o = this.viewModel.getScaleBarProperties(m, "metric");
116
+ o && (s = h === "ruler" ? this._renderRuler(o) : this._renderLine(o, "top"));
116
117
  }
117
118
  }
118
- return u`<div class=${a(d(t.base, v.widget, i))} ${g(this._handleContainerRef)}>${o}${l}</div>`;
119
+ return u`<div class=${a(d(t.base, v.widget, i))} ${g(this._handleContainerRef)}>${s}${l}</div>`;
119
120
  }
120
121
  _renderRuler(e) {
121
- const { length: i, unit: o, value: l } = e, n = Math.round(i), c = this._formatDistance(l, o);
122
- return u`<div class=${a(d(t.barContainer, t.rulerBarContainer))}><div class=${a(t.ruler)} style=${f({ width: `${n}px` })}><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div></div><div class=${a(d(t.labelContainer, t.rulerLabelContainer))}><div class=${a(t.label)}>0</div><div class=${a(t.label)}>${c}</div></div></div>`;
122
+ const { length: i, unit: s, value: l } = e, n = Math.round(i), c = this._formatDistance(l, s);
123
+ return u`<div class=${a(d(t.barContainer, t.rulerBarContainer))}><div class=${a(t.ruler)} style=${_({ width: `${n}px` })}><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div><div class=${a(t.rulerBlock)}></div></div><div class=${a(d(t.labelContainer, t.rulerLabelContainer))}><div class=${a(t.label)}>0</div><div class=${a(t.label)}>${c}</div></div></div>`;
123
124
  }
124
125
  _renderLine(e, i) {
125
- const { length: o, unit: l, value: n } = e, c = Math.round(o), b = this._formatDistance(n, l), p = {
126
+ const { length: s, unit: l, value: n } = e, c = Math.round(s), p = this._formatDistance(n, l), b = {
126
127
  [t.topLabelContainer]: i === "top",
127
128
  [t.bottomLabelContainer]: i === "bottom"
128
- }, m = u`<div class=${a(d(t.labelContainer, t.lineLabelContainer, p))}><div class=${a(t.label)}>${b}</div></div>`, h = {
129
+ }, m = u`<div class=${a(d(t.labelContainer, t.lineLabelContainer, b))}><div class=${a(t.label)}>${p}</div></div>`, h = {
129
130
  [t.topLine]: i === "top",
130
131
  [t.bottomLine]: i === "bottom"
131
- }, s = u`<div class=${a(d(t.line, h))} style=${f({ width: `${c}px` })}></div>`;
132
- return u`<div class=${a(d(t.barContainer, t.lineBarContainer))}>${[s, m]}</div>`;
132
+ }, o = u`<div class=${a(d(t.line, h))} style=${_({ width: `${c}px` })}></div>`;
133
+ return u`<div class=${a(d(t.barContainer, t.lineBarContainer))}>${[o, m]}</div>`;
133
134
  }
134
135
  }
135
136
  C("arcgis-scale-bar", k);