@arcgis/map-components 4.32.0-next.61 → 4.32.0-next.62

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 (199) hide show
  1. package/dist/arcgis-map-components/{5ZVXVZ2H.js → 27EBIGJH.js} +2 -2
  2. package/dist/arcgis-map-components/{WCUFTNIF.js → 2FX6CYUX.js} +2 -2
  3. package/dist/arcgis-map-components/{W32UJZSI.js → 2RV3SZEE.js} +2 -2
  4. package/dist/arcgis-map-components/{7JPRN4GK.js → 2VK3LY33.js} +2 -2
  5. package/dist/arcgis-map-components/{ZIABCIQN.js → 32KPCPPX.js} +2 -2
  6. package/dist/arcgis-map-components/{7TECKLUV.js → 3HRPOAVF.js} +2 -2
  7. package/dist/arcgis-map-components/{4RYU73E4.js → 4MNBBKVT.js} +2 -2
  8. package/dist/arcgis-map-components/{T36XHR5N.js → 5NIZDBPD.js} +2 -2
  9. package/dist/arcgis-map-components/{XEWCYDKI.js → 5TG4ST32.js} +2 -2
  10. package/dist/arcgis-map-components/{HSAGUCFW.js → 5WN73DR5.js} +2 -2
  11. package/dist/arcgis-map-components/{44ZKV7GA.js → 7GU22GQO.js} +2 -2
  12. package/dist/arcgis-map-components/{O3MLRTW6.js → A5FWO3NX.js} +2 -2
  13. package/dist/arcgis-map-components/{SJ7OBO2F.js → ARZDMXZK.js} +2 -2
  14. package/dist/arcgis-map-components/{AMWJLP5N.js → B4GUBPRC.js} +2 -2
  15. package/dist/arcgis-map-components/{F7UTNM2R.js → C66EPFC7.js} +2 -2
  16. package/dist/arcgis-map-components/{LGTYZXDG.js → CH3T2ZCN.js} +1 -1
  17. package/dist/arcgis-map-components/{NHPMKNPE.js → DPRPPXN2.js} +2 -2
  18. package/dist/arcgis-map-components/{YIZQE557.js → EX2ZDIH7.js} +2 -2
  19. package/dist/arcgis-map-components/{ETW6HG3U.js → FAI5QPRI.js} +2 -2
  20. package/dist/arcgis-map-components/{3R3NIJPL.js → FBPUVNRJ.js} +2 -2
  21. package/dist/arcgis-map-components/{QX3O7PTV.js → FEYU5GIU.js} +2 -2
  22. package/dist/arcgis-map-components/{5L2IG56V.js → FIVJT2JM.js} +2 -2
  23. package/dist/arcgis-map-components/FO5EBNQR.js +6 -0
  24. package/dist/arcgis-map-components/{LWTN5W7L.js → GIIF7VAB.js} +2 -2
  25. package/dist/arcgis-map-components/{E7BNOIC5.js → GKPAZVEV.js} +2 -2
  26. package/dist/arcgis-map-components/{U2FFLNMO.js → GZC6IX7L.js} +2 -2
  27. package/dist/arcgis-map-components/{DVBLDWMQ.js → GZDNLOAF.js} +2 -2
  28. package/dist/arcgis-map-components/{5OKGDKCP.js → H7HQCA7D.js} +2 -2
  29. package/dist/arcgis-map-components/{QRQCFSLK.js → HGRLUWRJ.js} +1 -1
  30. package/dist/arcgis-map-components/{RSXRVZNE.js → HJJALM5N.js} +2 -2
  31. package/dist/arcgis-map-components/{XSI6F53O.js → HNYQAAWS.js} +2 -2
  32. package/dist/arcgis-map-components/{AHGJFHRU.js → HTCCKTRA.js} +2 -2
  33. package/dist/arcgis-map-components/{4AUA2BWF.js → IQ73555Y.js} +2 -2
  34. package/dist/arcgis-map-components/{UX64NCGG.js → JE6II4MS.js} +2 -2
  35. package/dist/arcgis-map-components/{X4FUDKDK.js → JEQA22TD.js} +2 -2
  36. package/dist/arcgis-map-components/{CMYD2QEZ.js → KHGYISIQ.js} +2 -2
  37. package/dist/arcgis-map-components/{YZPZQ7YO.js → L3A276PR.js} +2 -2
  38. package/dist/arcgis-map-components/{BPERFNXN.js → L6YZWTGY.js} +2 -2
  39. package/dist/arcgis-map-components/{VZZGLPOF.js → L7N4HEUN.js} +2 -2
  40. package/dist/arcgis-map-components/{HR6JZWOA.js → LYHKMXQV.js} +2 -2
  41. package/dist/arcgis-map-components/{C2WGWZMD.js → M66STM7A.js} +2 -2
  42. package/dist/arcgis-map-components/{HAUFWOU3.js → MT235K3L.js} +2 -2
  43. package/dist/arcgis-map-components/{POK34BM6.js → MYF537YH.js} +2 -2
  44. package/dist/arcgis-map-components/{BCQSN2JA.js → NOP46UWO.js} +2 -2
  45. package/dist/arcgis-map-components/{QT4577QI.js → NUMGX6XQ.js} +2 -2
  46. package/dist/arcgis-map-components/{FPEQNNG5.js → NZGOOMP6.js} +2 -2
  47. package/dist/arcgis-map-components/{5VPUVSXR.js → O7PVZE37.js} +2 -2
  48. package/dist/arcgis-map-components/{YFWGTN7J.js → OHEHITWE.js} +2 -2
  49. package/dist/arcgis-map-components/{Q7PUM2HX.js → OUU4WU2Q.js} +2 -2
  50. package/dist/arcgis-map-components/{AMKOV4C4.js → OYBZLDKW.js} +2 -2
  51. package/dist/arcgis-map-components/{Z3YSDYWK.js → PFDABCK2.js} +2 -2
  52. package/dist/arcgis-map-components/{AFB4RP6J.js → Q3NCLS4J.js} +2 -2
  53. package/dist/arcgis-map-components/{MTZ2ZNHS.js → QLEGJGOY.js} +2 -2
  54. package/dist/arcgis-map-components/{KA4PCTJM.js → QLX77FXJ.js} +2 -2
  55. package/dist/arcgis-map-components/{7TN4Q4WC.js → QPT77X5U.js} +2 -2
  56. package/dist/arcgis-map-components/{3XC63CXB.js → S4IIANNF.js} +2 -2
  57. package/dist/arcgis-map-components/{57OO6BKV.js → SGZBXHEJ.js} +2 -2
  58. package/dist/arcgis-map-components/{VUDY6NWA.js → SMROOJDK.js} +2 -2
  59. package/dist/arcgis-map-components/{4OUYF5JT.js → STXCKGYE.js} +2 -2
  60. package/dist/arcgis-map-components/{KNIOQZC4.js → SXZPIYQO.js} +2 -2
  61. package/dist/arcgis-map-components/{3TEKSTHZ.js → UDUBE6V4.js} +2 -2
  62. package/dist/arcgis-map-components/{U4EYAT6G.js → UN46GICX.js} +3 -3
  63. package/dist/arcgis-map-components/{R6EKRSNF.js → V423XGAT.js} +2 -2
  64. package/dist/arcgis-map-components/{BUBXFT3I.js → VIOK3D24.js} +2 -2
  65. package/dist/arcgis-map-components/VSQ2WUSN.js +6 -0
  66. package/dist/arcgis-map-components/{VAJCGDMP.js → XXNM2PQY.js} +2 -2
  67. package/dist/arcgis-map-components/{UCZG6RB7.js → Y2BQJO5P.js} +2 -2
  68. package/dist/arcgis-map-components/Y6I5I7AJ.js +6 -0
  69. package/dist/arcgis-map-components/{U22TYL2X.js → YIBWFKXX.js} +2 -2
  70. package/dist/arcgis-map-components/{W3OGUGTO.js → YJ5NSAVF.js} +2 -2
  71. package/dist/arcgis-map-components/{YWAQ3J7A.js → ZPEGTP35.js} +2 -2
  72. package/dist/arcgis-map-components/{DIT7GG7E.js → ZZ2EIIA6.js} +2 -2
  73. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
  74. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.json +1 -0
  75. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ar.json +1 -0
  76. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.bg.json +1 -0
  77. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.bs.json +1 -0
  78. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ca.json +1 -0
  79. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.cs.json +1 -0
  80. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.da.json +1 -0
  81. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.de.json +1 -0
  82. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.el.json +1 -0
  83. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.en.json +1 -0
  84. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.es.json +1 -0
  85. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.et.json +1 -0
  86. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.fi.json +1 -0
  87. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.fr.json +1 -0
  88. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.he.json +1 -0
  89. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.hr.json +1 -0
  90. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.hu.json +1 -0
  91. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.id.json +1 -0
  92. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.it.json +1 -0
  93. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ja.json +1 -0
  94. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ko.json +1 -0
  95. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.lt.json +1 -0
  96. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.lv.json +1 -0
  97. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.nb.json +1 -0
  98. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.nl.json +1 -0
  99. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pl.json +1 -0
  100. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pt-BR.json +1 -0
  101. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pt-PT.json +1 -0
  102. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ro.json +1 -0
  103. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ru.json +1 -0
  104. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sk.json +1 -0
  105. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sl.json +1 -0
  106. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sr.json +1 -0
  107. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sv.json +1 -0
  108. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.th.json +1 -0
  109. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.tr.json +1 -0
  110. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.uk.json +1 -0
  111. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.vi.json +1 -0
  112. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-CN.json +1 -0
  113. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-HK.json +1 -0
  114. package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-TW.json +1 -0
  115. package/dist/chunks/basemap-gallery-item.js +1 -1
  116. package/dist/chunks/component-utils.js +1 -1
  117. package/dist/chunks/disconnected.js +1 -1
  118. package/dist/chunks/globalCss.js +1 -1
  119. package/dist/chunks/legacyIcon.js +108 -0
  120. package/dist/chunks/runtime.js +1 -1
  121. package/dist/chunks/useViewModel.js +1 -1
  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 +1 -1
  128. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  129. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  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 +1 -1
  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 +1 -1
  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.js +1 -1
  141. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  142. package/dist/components/arcgis-expand/customElement.js +1 -1
  143. package/dist/components/arcgis-feature/customElement.js +1 -1
  144. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  145. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  146. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  147. package/dist/components/arcgis-features/customElement.js +1 -1
  148. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  149. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  150. package/dist/components/arcgis-histogram/customElement.js +1 -1
  151. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  152. package/dist/components/arcgis-home/customElement.js +1 -1
  153. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  154. package/dist/components/arcgis-legend/customElement.js +1 -1
  155. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  156. package/dist/components/arcgis-locate/customElement.js +30 -128
  157. package/dist/components/arcgis-map/customElement.js +1 -1
  158. package/dist/components/arcgis-measurement/customElement.js +1 -1
  159. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  160. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  161. package/dist/components/arcgis-placement/customElement.js +1 -1
  162. package/dist/components/arcgis-print/customElement.js +1 -1
  163. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  164. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  165. package/dist/components/arcgis-scene/customElement.js +1 -1
  166. package/dist/components/arcgis-search/customElement.js +1 -1
  167. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  168. package/dist/components/arcgis-sketch/customElement.js +1 -1
  169. package/dist/components/arcgis-slice/customElement.js +1 -1
  170. package/dist/components/arcgis-slider/customElement.js +1 -1
  171. package/dist/components/arcgis-swipe/customElement.d.ts +57 -22
  172. package/dist/components/arcgis-swipe/customElement.js +103 -13
  173. package/dist/components/arcgis-table-list/customElement.js +1 -1
  174. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  175. package/dist/components/arcgis-track/customElement.js +1 -1
  176. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  177. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  178. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  179. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  180. package/dist/components/arcgis-version-management/customElement.js +1 -1
  181. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  182. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  183. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  184. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  185. package/dist/components/arcgis-weather/customElement.js +1 -1
  186. package/dist/components/arcgis-zoom/customElement.js +1 -1
  187. package/dist/docs/api.json +272 -25
  188. package/dist/docs/docs.json +198 -17
  189. package/dist/docs/vscode.html-custom-data.json +57 -6
  190. package/dist/docs/web-types.json +94 -18
  191. package/dist/index.js +1 -1
  192. package/dist/loader.js +2 -2
  193. package/dist/types/lumina.d.ts +1 -1
  194. package/dist/types/preact.d.ts +1 -1
  195. package/dist/types/react.d.ts +1 -1
  196. package/dist/types/stencil.d.ts +1 -1
  197. package/package.json +5 -5
  198. package/dist/arcgis-map-components/6NQ32IUV.js +0 -6
  199. package/dist/arcgis-map-components/BJ35PC4T.js +0 -6
@@ -10,7 +10,7 @@ import { LitElement as R, createEvent as D, noShadowRoot as x, safeClassMap as r
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.61
13
+ * v4.32.0-next.62
14
14
  */
15
15
  const i = "esri-scale-bar", t = {
16
16
  base: i,
@@ -7,7 +7,7 @@ import { css as o } from "@lit/reactive-element/css-tag.js";
7
7
  /*!
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.61
10
+ * v4.32.0-next.62
11
11
  */
12
12
  const c = o`arcgis-scale-range-slider{display:block}`, r = s(i);
13
13
  class d extends a {
@@ -8,7 +8,7 @@ import { css as y } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const f = y`.arcgis-scene{padding:0;margin:0;height:100%;width:100%}`, _ = o(v, {}), b = o(l, {});
14
14
  class V extends p {
@@ -8,7 +8,7 @@ import { css as o } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const g = o`arcgis-search{display:block}`, d = r(a);
14
14
  class u extends h {
@@ -7,7 +7,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
7
7
  /*!
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.61
10
+ * v4.32.0-next.62
11
11
  */
12
12
  const r = n`arcgis-shadow-cast{display:block}`, l = o(e);
13
13
  class c extends a {
@@ -8,7 +8,7 @@ import { css as g } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const p = g`arcgis-sketch{display:block}`, c = n(l);
14
14
  class m extends h {
@@ -7,7 +7,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
7
7
  /*!
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.61
10
+ * v4.32.0-next.62
11
11
  */
12
12
  const d = r`arcgis-slice{display:block}`, h = i(t);
13
13
  class c extends a {
@@ -8,7 +8,7 @@ import { css as m } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const c = m`arcgis-slider{min-width:200px;min-height:25px}`, r = a(s);
14
14
  class d extends h {
@@ -1,24 +1,23 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
2
  /// <reference types="../../index.d.ts" />
3
3
  import { ArcgisReferenceElement } from '../../utils/component-utils';
4
- import { Use } from '@arcgis/components-controllers';
5
4
  import { Nil } from '@arcgis/components-utils';
6
- import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
5
+ import { Use } from '@arcgis/components-controllers';
6
+ import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
7
7
 
8
- declare const useSwipeWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
8
+ declare const useSwipeViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & {
9
9
  manager: import('@arcgis/components-controllers').ControllerManager;
10
10
  el: HTMLElement;
11
11
  autoDestroyDisabled?: boolean;
12
12
  destroy?: () => Promise<void>;
13
- } & Pick<__esri.Swipe, "label" | "viewModel" | "icon" | "direction" | "dragLabel" | "leadingLayers" | "trailingLayers"> & {
13
+ } & Pick<__esri.SwipeViewModel, never> & {
14
14
  reactiveUtils?: typeof __esri.reactiveUtils;
15
- state?: unknown;
16
- viewModel?: __esri.SwipeViewModel | undefined;
15
+ state?: "ready" | "disabled" | undefined;
17
16
  icon: Nil | string;
18
17
  label: Nil | string;
19
18
  referenceElement: ArcgisReferenceElement | Nil | string;
20
- position: __esri.UIPosition;
21
19
  arcgisReady: import('@arcgis/components-controllers').EventEmitter;
20
+ position: __esri.UIPosition;
22
21
  arcgisPropertyChange: import('@arcgis/components-controllers').EventEmitter<{
23
22
  name: string;
24
23
  }> | undefined;
@@ -26,36 +25,72 @@ declare const useSwipeWidget: (component: import('@arcgis/components-controllers
26
25
  childElem?: HTMLElement & {
27
26
  ownedBy?: HTMLElement;
28
27
  };
29
- view?: __esri.MapView | __esri.SceneView | Nil;
28
+ view?: __esri.MapView | __esri.SceneView | undefined;
30
29
  };
31
30
  autoDestroyDisabled: boolean;
32
31
  destroy: () => Promise<void>;
33
32
  }, options?: {
34
- editConstructorProperties(props: __esri.SwipeProperties): __esri.SwipeProperties | Promise<__esri.SwipeProperties>;
35
- } | undefined) => __esri.Swipe;
33
+ editConstructorProperties(props: unknown): unknown;
34
+ } | undefined) => __esri.SwipeViewModel;
36
35
  /** The [Swipe](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html) provides a tool to show a portion of a layer or layers on top of a map.
37
36
  */
38
37
  export declare class ArcgisSwipe extends LitElement {
38
+ /** */
39
+ private messages;
39
40
  /**
40
- * If true, the component will not be destroyed automatically when it is
41
- * disconnected from the document. This is useful when you want to move the
42
- * component to a different place on the page, or temporary hide it. If this
43
- * is set, make sure to call the \`destroy\` method when you are done to prevent
44
- * memory leaks.
41
+ * If true, the component will not be destroyed automatically when
42
+ * it is disconnected from the document. This is useful when you
43
+ * want to move the component to a different place on the page, or
44
+ * temporary hide it. If this is set, make sure to call the
45
+ * \`destroy\` method when you are done to prevent memory leaks.
45
46
  */
46
47
  autoDestroyDisabled: boolean;
48
+ /**
49
+ * The direction the Swipe component moves across the view.
50
+ * If `"horizontal"`, the component will move left and right and
51
+ * if `"vertical"`, the component will move up and down.
52
+ */
47
53
  direction: "horizontal" | "vertical";
48
- dragLabel: string;
49
- /** @private */
50
54
  /**
51
- * Icon which represents the component.
52
- * Typically used when the component is controlled by another component (e.g. by the Expand component).
53
- * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values.
55
+ * When `true`, sets the component to a disabled state so the user cannot interact with it.
56
+ */
57
+ disabled: boolean;
58
+ /**
59
+ * When `true`, the divider between the leading and trailing layers will be hidden.
60
+ */
61
+ hideDivider: boolean;
62
+ /**
63
+ * When `true`, the handle from which you drag the component will be hidden.
64
+ */
65
+ hideHandle: boolean;
66
+ /**
67
+ * Icon which represents the component. It is typically used when the component is controlled by another
68
+ * one (e.g. in the Expand component).
69
+ *
70
+ * @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
71
+ */
72
+ icon: Nil | string;
73
+ /**
74
+ * The component's default label.
75
+ */
76
+ label: Nil | string;
77
+ /**
78
+ * A collection of layers that will show on the left or top side of the Swipe component.
54
79
  */
55
- icon: string;
56
80
  leadingLayers: __esri.Collection<__esri.Layer>;
57
- readonly state: "ready" | "disabled";
81
+ /** Overwrite localized strings for this component */
82
+ messageOverrides?: typeof this.messages._overrides;
83
+ position: __esri.UIPosition;
84
+ /**
85
+ * The position of the Swipe component. This determines what percentage
86
+ * of the view will be taken up by the [leadingLayers](#leadingLayers).
87
+ */
58
88
  swipePosition: number;
89
+ referenceElement: ArcgisReferenceElement | Nil | string;
90
+ readonly state: "ready" | "disabled";
91
+ /**
92
+ * A collection of layers that will show on the right or bottom side of the Swipe component.
93
+ */
59
94
  trailingLayers: __esri.Collection<__esri.Layer>;
60
95
  /** Permanently destroy the component */
61
96
  destroy(): Promise<void>;
@@ -1,23 +1,45 @@
1
- import { c as t } from "../../chunks/runtime.js";
2
- import { newWidgetsSwipe as i } from "@arcgis/core-adapter";
3
- import { usePropertyChange as e } from "@arcgis/components-controllers";
4
- import { m as s } from "../../chunks/useWidget.js";
5
- import { LitElement as a, createEvent as o, noShadowRoot as r } from "@arcgis/lumina";
1
+ import { c as x } from "../../chunks/runtime.js";
2
+ import { html as g } from "lit-html";
3
+ import { g as _ } from "../../chunks/globalCss.js";
4
+ import { l as m } from "../../chunks/legacyIcon.js";
5
+ import { u as $, m as D } from "../../chunks/useViewModel.js";
6
+ import { classes as v } from "@arcgis/components-utils";
7
+ import { usePropertyChange as P } from "@arcgis/components-controllers";
8
+ import { newWidgetsSwipeSwipeViewModel as C } from "@arcgis/core-adapter";
9
+ import { LitElement as M, createEvent as K, noShadowRoot as z, safeClassMap as h, safeStyleMap as b, nothing as L } from "@arcgis/lumina";
10
+ import { css as A } from "@lit/reactive-element/css-tag.js";
6
11
  /*!
7
12
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
13
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- * v4.32.0-next.61
14
+ * v4.32.0-next.62
10
15
  */
11
- const n = s(i);
12
- class d extends a {
16
+ const H = A`arcgis-swipe,.arcgis-swipe{position:absolute;margin:0;background:transparent;padding:0;width:100%;height:100%;overflow:hidden;user-select:none}.arcgis-swipe,.arcgis-ui .arcgis-swipe{pointer-events:none}.arcgis-swipe__container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.arcgis-swipe--horizontal .arcgis-swipe__container{margin-left:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:col-resize;height:100%}.arcgis-swipe--vertical .arcgis-swipe__container{margin-top:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:row-resize;width:100%}.arcgis-swipe--disabled .arcgis-swipe__container{cursor:default;pointer-events:none}.arcgis-swipe__divider{position:absolute;background-color:var(--calcite-color-background)}.arcgis-swipe--horizontal .arcgis-swipe__divider{top:0;left:calc(var(--calcite-spacing-xxxl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.arcgis-swipe--vertical .arcgis-swipe__divider{top:calc(var(--calcite-spacing-xxxl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.arcgis-swipe__handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-round);background-color:var(--calcite-color-background);width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);color:var(--calcite-color-border-input);&--hidden{visibility:hidden}}.arcgis-swipe--vertical .arcgis-swipe__handle{rotate:90deg}.arcgis-swipe__handle-icon{position:relative;z-index:2}.arcgis-swipe--horizontal .arcgis-swipe__handle{top:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.arcgis-swipe--vertical .arcgis-swipe__handle{left:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.arcgis-swipe__container:focus .arcgis-swipe__handle,.arcgis-swipe__container:focus .arcgis-swipe__divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.arcgis-swipe__container:focus .arcgis-swipe__handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, l = "arcgis-swipe", n = {
17
+ base: l,
18
+ baseDisabled: `${l}--disabled`,
19
+ vertical: `${l}--vertical`,
20
+ horizontal: `${l}--horizontal`,
21
+ container: `${l}__container`,
22
+ divider: `${l}__divider`,
23
+ handle: `${l}__handle`,
24
+ handleHidden: `${l}__handle--hidden`,
25
+ handleIcon: `${l}__handle-icon`
26
+ }, V = D(C);
27
+ class O extends M {
13
28
  constructor() {
14
- super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.direction = this.widget.direction, this.dragLabel = this.widget.dragLabel, this.icon = this.widget.icon, this.label = this.widget.label, this.leadingLayers = this.widget.leadingLayers, this.position = "manual", this.state = this.viewModel.state, this.swipePosition = this.widget.position, this.trailingLayers = this.widget.trailingLayers, this.arcgisPropertyChange = e()("state"), this.arcgisReady = o();
29
+ super(...arguments), this._container = null, this._swiping = !1, this.messages = $({}), this._pointerOffset = 0, this.viewModel = V(this), this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.leadingLayers = this.viewModel.leadingLayers, this.position = "manual", this.swipePosition = this.viewModel.position, this.state = this.viewModel.state, this.trailingLayers = this.viewModel.trailingLayers, this.arcgisPropertyChange = P()("state"), this.arcgisReady = K(), this._onContainerPointerDown = (i) => {
30
+ i.preventDefault();
31
+ const { _container: e } = this;
32
+ e && document.activeElement !== this.el && e.focus(), this._swiping = !0, this._calculatePointerOffset(i);
33
+ };
15
34
  }
16
35
  static {
17
- this.properties = { autoDestroyDisabled: 5, direction: 1, dragLabel: 1, icon: 1, label: 1, leadingLayers: 0, position: 1, referenceElement: 1, state: 3, swipePosition: 9, trailingLayers: 0 };
36
+ this.properties = { autoDestroyDisabled: 5, direction: 3, disabled: 7, hideDivider: 7, hideHandle: 7, icon: 3, label: 1, leadingLayers: 0, messageOverrides: 0, position: 3, swipePosition: 9, referenceElement: 1, state: 3, trailingLayers: 0 };
18
37
  }
19
38
  static {
20
- this.shadowRootOptions = r;
39
+ this.shadowRootOptions = z;
40
+ }
41
+ static {
42
+ this.styles = H;
21
43
  }
22
44
  // #endregion
23
45
  // #region Public Methods
@@ -25,8 +47,76 @@ class d extends a {
25
47
  async destroy() {
26
48
  await this.manager.destroy();
27
49
  }
50
+ // #endregion
51
+ // #region Lifecycle
52
+ loaded() {
53
+ this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
54
+ }
55
+ // #endregion
56
+ // #region Private Methods
57
+ _calculatePointerOffset(i) {
58
+ const { direction: e } = this, t = i.target, r = (e === "vertical" ? t.clientHeight : t.clientWidth) / 2, s = t.getBoundingClientRect(), o = i.clientX - s.left, d = i.clientY - s.top;
59
+ this._pointerOffset = e === "vertical" ? d - r : o - r;
60
+ }
61
+ _onContainerPointerUp(i) {
62
+ this._swiping && (i.preventDefault(), this._swiping = !1);
63
+ }
64
+ _onContainerPointerMove(i) {
65
+ if (!this._swiping)
66
+ return;
67
+ i.preventDefault();
68
+ const { _pointerOffset: e, el: t, direction: r } = this, { clientX: s, clientY: o } = i, { top: d, left: a, width: c, height: p } = t.getBoundingClientRect(), u = r === "vertical" ? p : c, f = (r === "vertical" ? o - d - e : s - a - e) / u * 100;
69
+ this.swipePosition = f;
70
+ }
71
+ _getKeyPosition(i) {
72
+ const { key: e } = i, { swipePosition: t } = this, { max: r, min: s, step: o, stepMultiplier: d, direction: a } = this.viewModel, c = o * d;
73
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(e) && (i.preventDefault(), i.stopPropagation()), a === "vertical" ? e === "ArrowDown" || e === "ArrowRight" : e === "ArrowUp" || e === "ArrowRight") {
74
+ const w = i.shiftKey ? c : o;
75
+ return t + w;
76
+ }
77
+ if (a === "vertical" ? e === "ArrowUp" || e === "ArrowLeft" : e === "ArrowDown" || e === "ArrowLeft") {
78
+ const w = i.shiftKey ? c : o;
79
+ return t - w;
80
+ }
81
+ return e === "Home" ? s : e === "End" ? r : (a === "vertical" ? e === "PageDown" : e === "PageUp") ? t + c : (a === "vertical" ? e === "PageUp" : e === "PageDown") ? t - c : null;
82
+ }
83
+ _onContainerKeyDown(i) {
84
+ const e = this._getKeyPosition(i);
85
+ typeof e == "number" && (this.swipePosition = e);
86
+ }
87
+ // #endregion
88
+ // #region Rendering
89
+ render() {
90
+ const { state: i, direction: e } = this.viewModel, t = i === "disabled" || this.disabled, r = {
91
+ [_.disabled]: t,
92
+ [n.baseDisabled]: t,
93
+ [n.vertical]: e === "vertical",
94
+ [n.horizontal]: e === "horizontal"
95
+ };
96
+ return g`<div class=${h(v(n.base, _.widget, r))}>${i === "disabled" ? null : this._renderContainer()}</div>`;
97
+ }
98
+ _renderHandle() {
99
+ const { direction: i } = this.viewModel, { hideHandle: e } = this, t = {
100
+ [m.dragHorizontal]: i === "vertical",
101
+ [m.dragVertical]: i === "horizontal"
102
+ }, r = v(n.handle, !!e && n.handleHidden);
103
+ return g`<div class=${h(r)} role=presentation><span aria-hidden=true class=${h(v(n.handleIcon, t))}></span></div>`;
104
+ }
105
+ _renderDivider() {
106
+ return this.hideDivider ? null : g`<div class=${h(n.divider)} role=presentation></div>`;
107
+ }
108
+ _renderContent() {
109
+ return [this._renderDivider(), this._renderHandle()];
110
+ }
111
+ _renderContainer() {
112
+ const { disabled: i, viewModel: e } = this, { max: t, min: r, direction: s, position: o } = e, d = this.label ?? this.messages.dragLabel ?? "", a = `${o}%`, c = {
113
+ top: s === "vertical" ? a : void 0,
114
+ left: s === "vertical" ? void 0 : a
115
+ }, p = this._renderContent();
116
+ return i ? g`<div class=${h(n.container)} role=presentation style=${b(c)}>${p}</div>` : g`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${d} .ariaOrientation=${s} .ariaValueMax=${`${t}`} .ariaValueMin=${`${r}`} .ariaValueNow=${`${o}`} .ariaValueText=${a} class=${h(n.container)} @keydown=${this._onContainerKeyDown} role=slider style=${b(c)} tabindex=0 title=${d ?? L} touch-action=none>${p}</div>`;
117
+ }
28
118
  }
29
- t("arcgis-swipe", d);
119
+ x("arcgis-swipe", O);
30
120
  export {
31
- d as ArcgisSwipe
121
+ O as ArcgisSwipe
32
122
  };
@@ -8,7 +8,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const m = n`arcgis-table-list{display:block}`, d = i(s);
14
14
  class h extends l {
@@ -8,7 +8,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const r = n`arcgis-time-slider{display:block}`, m = o(e);
14
14
  class c extends a {
@@ -11,7 +11,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
11
11
  /*!
12
12
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
13
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
14
- * v4.32.0-next.61
14
+ * v4.32.0-next.62
15
15
  */
16
16
  const y = b`arcgis-track{display:block}`, $ = {
17
17
  base: "esri-track"
@@ -8,7 +8,7 @@ import { LitElement as h, createEvent as A, noShadowRoot as m } from "@arcgis/lu
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  class v extends h {
14
14
  constructor() {
@@ -8,7 +8,7 @@ import { LitElement as f, createEvent as t, noShadowRoot as w } from "@arcgis/lu
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  class g extends f {
14
14
  constructor() {
@@ -8,7 +8,7 @@ import { LitElement as n, createEvent as w, noShadowRoot as c } from "@arcgis/lu
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  class m extends n {
14
14
  constructor() {
@@ -8,7 +8,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
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.61
11
+ * v4.32.0-next.62
12
12
  */
13
13
  const l = r`arcgis-value-picker{display:block}`, c = s(e);
14
14
  class u extends o {
@@ -9,7 +9,7 @@ import { css as A } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
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.61
12
+ * v4.32.0-next.62
13
13
  */
14
14
  const T = A`.initial-version-invalid-block{margin-bottom:1rem}.calcite-combobox-item{width:330px}.calcite-flow-widget{width:350px}calcite-block{margin:0}calcite-pagination{justify-content:center}`, x = M(P), u = "map-components:version-management";
15
15
  class R extends k {
@@ -4,7 +4,7 @@ import { LitElement as C, createEvent as n, noShadowRoot as G, safeClassMap as F
4
4
  /*!
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.61
7
+ * v4.32.0-next.62
8
8
  */
9
9
  class y extends C {
10
10
  constructor() {
@@ -4,7 +4,7 @@ import { LitElement as b, createEvent as f, noShadowRoot as x, nothing as I } fr
4
4
  /*!
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.61
7
+ * v4.32.0-next.62
8
8
  */
9
9
  class E extends b {
10
10
  constructor() {
@@ -6,7 +6,7 @@ import { css as U } from "@lit/reactive-element/css-tag.js";
6
6
  /*!
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.61
9
+ * v4.32.0-next.62
10
10
  */
11
11
  const A = U`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}calcite-block{margin-block:0}calcite-pagination{justify-content:center}`;
12
12
  class N extends F {
@@ -6,7 +6,7 @@ import { css as x } from "@lit/reactive-element/css-tag.js";
6
6
  /*!
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.61
9
+ * v4.32.0-next.62
10
10
  */
11
11
  const C = x`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}.properties-buttons{display:flex}`;
12
12
  class k extends V {
@@ -7,7 +7,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
7
7
  /*!
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.61
10
+ * v4.32.0-next.62
11
11
  */
12
12
  const d = h`arcgis-weather{display:block}`, l = i(t);
13
13
  class n extends o {
@@ -9,7 +9,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
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.61
12
+ * v4.32.0-next.62
13
13
  */
14
14
  const o = {
15
15
  base: "arcgis-zoom",