@arcgis/map-components 6.0.0-next.21 → 6.0.0-next.23

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 (134) hide show
  1. package/dist/cdn/{G56N6RF4.js → 2S6RQ6Q4.js} +1 -1
  2. package/dist/cdn/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
  3. package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
  4. package/dist/cdn/4N4XDCDQ.js +2 -0
  5. package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
  6. package/dist/cdn/{UFK7DHVC.js → 4WZ7Y57Q.js} +1 -1
  7. package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
  8. package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
  9. package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
  10. package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
  11. package/dist/cdn/6GGKA7MT.js +2 -0
  12. package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
  13. package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
  14. package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
  15. package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
  16. package/dist/cdn/{FDESUDJ5.js → AIF4MCBB.js} +1 -1
  17. package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
  18. package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
  19. package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
  20. package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
  21. package/dist/cdn/EJVFK7JX.js +2 -0
  22. package/dist/cdn/{SDLZ4BNM.js → EVWWTIEQ.js} +1 -1
  23. package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
  24. package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
  25. package/dist/cdn/GIQT67VT.js +2 -0
  26. package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
  27. package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
  28. package/dist/cdn/{GQQTIX2X.js → HQXC5XLE.js} +1 -1
  29. package/dist/cdn/HTONXZBP.js +2 -0
  30. package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
  31. package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
  32. package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
  33. package/dist/cdn/KXDLX4RE.js +2 -0
  34. package/dist/cdn/{4I6F64B2.js → LKKCTKMQ.js} +1 -1
  35. package/dist/cdn/MW27GSDX.js +2 -0
  36. package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
  37. package/dist/cdn/{4LNXCEM5.js → NORQIOSX.js} +1 -1
  38. package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
  39. package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
  40. package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
  41. package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
  42. package/dist/cdn/{NHMHVWNB.js → QKNHYZYS.js} +1 -1
  43. package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
  44. package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
  45. package/dist/cdn/RFO3M46K.js +2 -0
  46. package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
  47. package/dist/cdn/SLWZHNVT.js +2 -0
  48. package/dist/cdn/TKIWKCDA.js +2 -0
  49. package/dist/cdn/{WTAAQHO3.js → TM4FFRX5.js} +1 -1
  50. package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
  51. package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
  52. package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
  53. package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
  54. package/dist/cdn/V3J5GQHD.js +2 -0
  55. package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
  56. package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
  57. package/dist/cdn/XWBR6FXI.js +2 -0
  58. package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
  59. package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
  60. package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
  61. package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
  62. package/dist/cdn/ZF7NUFAT.js +2 -0
  63. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  64. package/dist/cdn/index.js +1 -1
  65. package/dist/cdn/main.css +1 -1
  66. package/dist/chunks/useArcgisViewReadyError.js +155 -151
  67. package/dist/chunks/useViewModel.js +7 -7
  68. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +88 -86
  69. package/dist/components/arcgis-daylight/customElement.js +2 -1
  70. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  71. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  72. package/dist/components/arcgis-features-next/customElement.js +14 -15
  73. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
  74. package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
  75. package/dist/components/arcgis-layer-list-next/customElement.js +97 -95
  76. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  77. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  78. package/dist/components/arcgis-search/customElement.js +3 -0
  79. package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
  80. package/dist/components/arcgis-sketch/customElement.js +48 -21
  81. package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
  82. package/dist/components/arcgis-swipe/customElement.js +45 -63
  83. package/dist/components/arcgis-table-list-next/customElement.js +55 -54
  84. package/dist/components/arcgis-time-bar/customElement.d.ts +484 -409
  85. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  86. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  87. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  88. package/dist/components/arcgis-track/customElement.d.ts +12 -3
  89. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +42 -2
  90. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +20 -17
  91. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -70
  92. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  93. package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
  94. package/dist/components/arcgis-video-player/customElement.js +72 -72
  95. package/dist/components/arcgis-video-player/index.js +4 -4
  96. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  97. package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
  98. package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
  99. package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
  100. package/dist/components/arcgis-video-player-slider/index.js +1 -0
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/vscode.html-custom-data.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/dist/index.d.ts +0 -20
  106. package/dist/loader.js +4 -5
  107. package/dist/types/lumina.d.ts +3 -24
  108. package/dist/types/preact.d.ts +3 -26
  109. package/dist/types/react.d.ts +3 -28
  110. package/dist/types/stencil.d.ts +3 -24
  111. package/package.json +6 -6
  112. package/dist/cdn/COSETVX4.js +0 -2
  113. package/dist/cdn/ED2T4ASN.js +0 -2
  114. package/dist/cdn/F74YQZ2X.js +0 -2
  115. package/dist/cdn/KXD4VEKE.js +0 -2
  116. package/dist/cdn/MBLS5ES4.js +0 -2
  117. package/dist/cdn/OJJSIN3V.js +0 -2
  118. package/dist/cdn/P3565WG3.js +0 -2
  119. package/dist/cdn/PHVKEWZ7.js +0 -2
  120. package/dist/cdn/QAOT2TJ6.js +0 -2
  121. package/dist/cdn/QKGJVGXJ.js +0 -2
  122. package/dist/cdn/QVJ2FUNW.js +0 -2
  123. package/dist/cdn/UI4IEVSV.js +0 -2
  124. package/dist/cdn/UPCWZNTA.js +0 -2
  125. package/dist/cdn/VEV3AAVP.js +0 -2
  126. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
  127. package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
  128. package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
  129. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
  130. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
  131. package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
  132. package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
  133. package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
  134. /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
@@ -6,12 +6,12 @@ import { GenericController as J, usePropertyChange as Q, useWatchAttributes as X
6
6
  import { reEmitEvent as S } from "@arcgis/lumina-toolkit/reEmitEvent";
7
7
  import Y from "@arcgis/core/layers/GraphicsLayer.js";
8
8
  import Z from "@arcgis/core/symbols/TextSymbol.js";
9
- import { LitElement as ee, createEvent as te, nothing as B } from "@arcgis/lumina";
9
+ import { LitElement as ee, createEvent as te, nothing as D } from "@arcgis/lumina";
10
10
  import { watch as f, on as ie, whenOnce as oe } from "@arcgis/core/core/reactiveUtils.js";
11
11
  import { u as se } from "../../chunks/useT9n.js";
12
12
  import { m as ne } from "../../chunks/useViewModel.js";
13
13
  import { V as _ } from "../../chunks/visible-element.js";
14
- import { createRef as O, ref as M } from "lit/directives/ref.js";
14
+ import { createRef as L, ref as M } from "lit/directives/ref.js";
15
15
  import le from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
16
16
  import { S as re } from "../../chunks/resources.js";
17
17
  import { getOrCreateMapValue as F, createReactiveMap as ae } from "@arcgis/core/applications/Components/featureUtils.js";
@@ -36,7 +36,7 @@ const be = [
36
36
  "top-left",
37
37
  "top-right"
38
38
  ], Ce = new Set(be);
39
- function D(i, e) {
39
+ function B(i, e) {
40
40
  let t = e;
41
41
  for (const o of i.split(".")) {
42
42
  if (typeof t != "object" || t === null)
@@ -738,7 +738,7 @@ class Ae extends J {
738
738
  const e = this.component.el, t = e.parentElement, o = this.#o, s = e.assignedSlot;
739
739
  if (!t || !Pe.has(t.localName) || !o || !s?.parentElement)
740
740
  return;
741
- const c = getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr", d = K(e.slot, c);
741
+ const c = getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr", d = U(e.slot, c);
742
742
  if (!d)
743
743
  return;
744
744
  const r = Array.from(t.children).filter(
@@ -778,8 +778,8 @@ class Ae extends J {
778
778
  this.#y();
779
779
  return;
780
780
  }
781
- const t = this.component.layout, o = Oe({
782
- content: Le(e),
781
+ const t = this.component.layout, o = Le({
782
+ content: Oe(e),
783
783
  gap: ke,
784
784
  layout: t,
785
785
  position: e.position,
@@ -806,7 +806,7 @@ class Ae extends J {
806
806
  this.#t.disconnect(), this.#p?.(), this.#p = void 0, this.#e.disconnect(), this.#i.disconnect(), this.#l = void 0, this.#s = void 0, this.#h = [], this.#n?.removeEventListener("slotchange", this.#u), this.#n = void 0, this.#r = void 0, this.#a = void 0, this.#d = void 0, this.#g = void 0;
807
807
  }
808
808
  }
809
- function Oe({
809
+ function Le({
810
810
  content: i,
811
811
  gap: e,
812
812
  layout: t,
@@ -815,12 +815,12 @@ function Oe({
815
815
  toolbarBounds: c,
816
816
  viewBounds: d
817
817
  }) {
818
- const r = L(d, t), n = L(c, t), u = z(o, t), g = u ? n.start - r.start : r.end - n.end;
818
+ const r = O(d, t), n = O(c, t), u = z(o, t), g = u ? n.start - r.start : r.end - n.end;
819
819
  let l = 0, v = !1;
820
820
  for (const b of i) {
821
821
  if (z(b.position, t) === u)
822
822
  continue;
823
- const C = L(b.bounds, t);
823
+ const C = O(b.bounds, t);
824
824
  if (!(C.crossStart < n.crossEnd && C.crossEnd > n.crossStart))
825
825
  continue;
826
826
  const E = u ? r.end - C.start : C.end - r.start;
@@ -829,17 +829,17 @@ function Oe({
829
829
  const m = v ? e : 0;
830
830
  return Math.max(0, r.length - Math.max(0, g) - s - l - m);
831
831
  }
832
- function L(i, e) {
832
+ function O(i, e) {
833
833
  return e === "horizontal" ? { start: i.left, end: i.right, length: i.width, crossStart: i.top, crossEnd: i.bottom } : { start: i.top, end: i.bottom, length: i.height, crossStart: i.left, crossEnd: i.right };
834
834
  }
835
835
  function z(i, e) {
836
836
  return e === "horizontal" ? i.endsWith("left") : i.startsWith("top");
837
837
  }
838
- function Le(i) {
838
+ function Oe(i) {
839
839
  return i.content.flatMap((e) => {
840
840
  if (e.assignedSlot === i.assignedSlot)
841
841
  return [];
842
- const t = K(e.slot, i.direction);
842
+ const t = U(e.slot, i.direction);
843
843
  return t ? [{ bounds: e.getBoundingClientRect(), position: t }] : [];
844
844
  });
845
845
  }
@@ -859,7 +859,7 @@ function $e(i, e, t, o) {
859
859
  return g + b;
860
860
  }, u);
861
861
  }
862
- function K(i, e) {
862
+ function U(i, e) {
863
863
  const [t, o] = i.split("-");
864
864
  if (t !== "bottom" && t !== "top")
865
865
  return;
@@ -875,9 +875,9 @@ const Re = ne((i) => new le({
875
875
  }));
876
876
  class Ve extends ee {
877
877
  constructor() {
878
- super(), this.#t = new a(), this.#l = O(), this.#s = new Ae(this), this.#n = O(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
878
+ super(), this.#t = new a(), this.#l = L(), this.#s = new Ae(this), this.#n = L(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
879
879
  componentViewModel: this.#t
880
- }, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel = Re(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.arcgisCreate = S(() => this.viewModel, "create"), this.arcgisDelete = S(() => this.viewModel, "delete"), this.arcgisDuplicate = S(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = Q()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = te(), this.arcgisRedo = S(() => this.viewModel, "redo"), this.arcgisUndo = S(() => this.viewModel, "undo"), this.arcgisUpdate = S(() => this.viewModel, "update"), X(["slot"], () => {
880
+ }, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel = Re(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.activeFillSymbol = this.viewModel.activeFillSymbol, this.activeLineSymbol = this.viewModel.activeLineSymbol, this.activeVertexSymbol = this.viewModel.activeVertexSymbol, this.activeCreateToolDrawMode = this.viewModel.activeCreateToolDrawMode, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.activeTooltip = this.viewModel.activeTooltip, this.arcgisCreate = S(() => this.viewModel, "create"), this.arcgisDelete = S(() => this.viewModel, "delete"), this.arcgisDuplicate = S(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = Q()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = te(), this.arcgisRedo = S(() => this.viewModel, "redo"), this.arcgisUndo = S(() => this.viewModel, "undo"), this.arcgisUpdate = S(() => this.viewModel, "update"), X(["slot"], () => {
881
881
  this.requestUpdate();
882
882
  }), this.manager.onLifecycle(() => [
883
883
  f(() => this.el.view?.map, (e, t) => {
@@ -899,7 +899,7 @@ class Ve extends ee {
899
899
  });
900
900
  }
901
901
  static {
902
- this.properties = { _groupLayoutPriorityOverrides: 16, _contextualToolLocation: 16, _refMap: 16, viewModel: 0, view: 0, activeTool: 32, autoDestroyDisabled: 5, visibleElements: 0, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, geometrySimplificationInProgress: 36, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSinglePluginBackButton: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout: 1, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, referenceElement: 1, relativePosition: 1, scale: 1, visualScale: 1, showSnappingControlsElementsHeader: 5, showCreateToolsFreehandPolygon: 5, showCreateToolsFreehandPolyline: 5, showCreateToolsText: 5, hideGeometrySimplificationActivityIndicator: 5, snappingOptions: 0, state: 32, textSymbol: 0, toolbarKind: 1, tooltipOptions: 0, useViewOptions: 5, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32 };
902
+ this.properties = { _groupLayoutPriorityOverrides: 16, _contextualToolLocation: 16, _refMap: 16, viewModel: 0, view: 0, activeTool: 32, autoDestroyDisabled: 5, visibleElements: 0, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, geometrySimplificationInProgress: 36, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSinglePluginBackButton: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout: 1, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, activeFillSymbol: 0, activeLineSymbol: 0, activeVertexSymbol: 0, activeCreateToolDrawMode: 1, referenceElement: 1, relativePosition: 1, scale: 1, visualScale: 1, showSnappingControlsElementsHeader: 5, showCreateToolsFreehandPolygon: 5, showCreateToolsFreehandPolyline: 5, showCreateToolsText: 5, hideGeometrySimplificationActivityIndicator: 5, snappingOptions: 0, state: 32, textSymbol: 0, toolbarKind: 1, tooltipOptions: 0, useViewOptions: 5, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32, activeTooltip: 0 };
903
903
  }
904
904
  static {
905
905
  this.styles = Se;
@@ -1159,6 +1159,12 @@ class Ve extends ee {
1159
1159
  set cancelUpdateOnClickAwayDisabled(e) {
1160
1160
  this.viewModel.cancelUpdateOnClickAway = !e;
1161
1161
  }
1162
+ async addGraphic(e) {
1163
+ this.viewModel.addGraphic(e);
1164
+ }
1165
+ async addGraphics(e) {
1166
+ this.viewModel.addGraphics(e);
1167
+ }
1162
1168
  async cancel() {
1163
1169
  this.#t.cancelAll();
1164
1170
  }
@@ -1180,9 +1186,24 @@ class Ve extends ee {
1180
1186
  async duplicate() {
1181
1187
  this.viewModel.duplicate();
1182
1188
  }
1189
+ async hasGraphic(e) {
1190
+ return this.viewModel.hasGraphic(e);
1191
+ }
1192
+ async removeAllGraphics() {
1193
+ this.viewModel.removeAllGraphics();
1194
+ }
1195
+ async removeGraphic(e) {
1196
+ this.viewModel.removeGraphic(e);
1197
+ }
1198
+ async removeGraphics(e) {
1199
+ this.viewModel.removeGraphics(e);
1200
+ }
1183
1201
  async redo() {
1184
1202
  this.viewModel.redo();
1185
1203
  }
1204
+ async canRedo() {
1205
+ return this.viewModel.canRedo();
1206
+ }
1186
1207
  async setContextualToolLocation(e) {
1187
1208
  this._contextualToolLocation = e;
1188
1209
  }
@@ -1195,14 +1216,20 @@ class Ve extends ee {
1195
1216
  async triggerUpdate(e, t) {
1196
1217
  await this.#t.update(e, t);
1197
1218
  }
1219
+ async place(e) {
1220
+ this.viewModel.place(e);
1221
+ }
1198
1222
  async undo() {
1199
1223
  this.#t.sketchViewModel?.undo();
1200
1224
  }
1225
+ async canUndo() {
1226
+ return this.viewModel.canUndo();
1227
+ }
1201
1228
  connectedCallback() {
1202
1229
  super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new Y({ title: "Sketch Layer" }), this.layer = this._defaultGraphicsLayer, this.view?.map?.add(this.layer), this.viewModel.layer = this._defaultGraphicsLayer);
1203
1230
  }
1204
1231
  disconnectedCallback() {
1205
- this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
1232
+ this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), this.cancel(), super.disconnectedCallback();
1206
1233
  }
1207
1234
  render() {
1208
1235
  const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: c, relativePosition: d, _contextualToolLocation: r } = this, n = t.find(({ name: g }) => g === "selectionSet"), u = t.filter(({ name: g }) => g !== "selectionSet");
@@ -1229,7 +1256,7 @@ class Ve extends ee {
1229
1256
  _renderActionGroup({ visible: e, commands: t, name: o }) {
1230
1257
  if (!e || !t.length)
1231
1258
  return;
1232
- const { defaultPriority: s, groupKind: c, overflowLabel: d, preferEndSlot: r } = we[o], u = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((v) => this._renderCommand(v)), l = D(`more.${d}`, this._messages);
1259
+ const { defaultPriority: s, groupKind: c, overflowLabel: d, preferEndSlot: r } = we[o], u = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((v) => this._renderCommand(v)), l = B(`more.${d}`, this._messages);
1233
1260
  switch (c) {
1234
1261
  case "more-button":
1235
1262
  return y`<arcgis-toolbar-group .priority=${u} .preferEndSlot=${r}><arcgis-toolbar-more-button .overflowActionLabel=${l} .priority=${u}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
@@ -1239,9 +1266,9 @@ class Ve extends ee {
1239
1266
  return y`<arcgis-toolbar-group .priority=${u} .preferEndSlot=${r}>${g}</arcgis-toolbar-group>`;
1240
1267
  }
1241
1268
  }
1242
- _renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: c, icon: d, disabled: r, id: n, kind: u, labelKey: g, labelParameters: l, loading: v, tooltipKey: m, iconFlipRTL: b, onClick: C, refKey: P, textEnabled: E, renderAsAction: U }) {
1243
- const { _messages: G, _refMap: H, layout: $ } = this, k = D(g, G), A = k === void 0 ? g : l ? j(k, l) : k, R = G?.[m] ?? A, V = P ? F(H, P, O) : this.#n, x = { afterCreate: t, afterRemoved: o, afterUpdate: s };
1244
- return U ? y`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${r} .icon=${d} .iconFlipRtl=${b} id=${n ?? B} .kind=${u} .loading=${v} .labelText=${$ === "horizontal" ? A : ""} .textEnabled=${E} .tooltipText=${$ === "horizontal" && E ? "" : R} @arcgisToolbarItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-action>` : y`<arcgis-toolbar-item .active=${e} .disabled=${r} .icon=${d} id=${n ?? B} .iconFlipRtl=${b} .labelText=${A} .tooltipText=${R} @arcgisItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-item>`;
1269
+ _renderCommand({ active: e, afterCreate: t, afterRemoved: o, afterUpdate: s, appearance: c, icon: d, disabled: r, id: n, kind: u, labelKey: g, labelParameters: l, loading: v, tooltipKey: m, iconFlipRTL: b, onClick: C, refKey: P, textEnabled: E, renderAsAction: K }) {
1270
+ const { _messages: G, _refMap: H, layout: $ } = this, k = B(g, G), A = k === void 0 ? g : l ? j(k, l) : k, R = G?.[m] ?? A, V = P ? F(H, P, L) : this.#n, x = { afterCreate: t, afterRemoved: o, afterUpdate: s };
1271
+ return K ? y`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${r} .icon=${d} .iconFlipRtl=${b} id=${n ?? D} .kind=${u} .loading=${v} .labelText=${$ === "horizontal" ? A : ""} .textEnabled=${E} .tooltipText=${$ === "horizontal" && E ? "" : R} @arcgisToolbarItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-action>` : y`<arcgis-toolbar-item .active=${e} .disabled=${r} .icon=${d} id=${n ?? D} .iconFlipRtl=${b} .labelText=${A} .tooltipText=${R} @arcgisItemSelected=${C} ${W(x)} ${M(V)}></arcgis-toolbar-item>`;
1245
1272
  }
1246
1273
  }
1247
1274
  N("arcgis-sketch", Ve);
@@ -91,13 +91,6 @@ export abstract class ArcgisSwipe extends LitElement {
91
91
  * @default "Swipe"
92
92
  */
93
93
  accessor label: string | undefined;
94
- /**
95
- * A collection of layers that will show on the left or top side of the Swipe component.
96
- *
97
- * @deprecated since 5.0, use [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers) instead.
98
- * @see [leadingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#leadingLayers)
99
- */
100
- accessor leadingLayers: Collection<Layer>;
101
94
  /**
102
95
  * Replace localized message strings with your own strings.
103
96
  *
@@ -142,21 +135,6 @@ export abstract class ArcgisSwipe extends LitElement {
142
135
  * @default "disabled"
143
136
  */
144
137
  get state(): SwipeState;
145
- /**
146
- * The position of the Swipe component. This determines what percentage
147
- * of the view will be taken up by the [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers).
148
- *
149
- * @deprecated since 5.0, use [position](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#position) instead.
150
- * @default 25
151
- */
152
- accessor swipePosition: number;
153
- /**
154
- * A collection of layers that will show on the right or bottom side of the Swipe component.
155
- *
156
- * @deprecated since 5.0, use [endLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#endLayers) instead.
157
- * @see [trailingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#trailingLayers)
158
- */
159
- accessor trailingLayers: Collection<Layer>;
160
138
  /**
161
139
  * The view associated with the component.
162
140
  * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-swipe component will be associated with a map or scene component rather than using the `view` property.
@@ -2,13 +2,13 @@
2
2
  import { c as z } from "../../chunks/runtime.js";
3
3
  import { css as A, html as y } from "lit";
4
4
  import { classes as b } from "@arcgis/toolkit/dom";
5
- import { LitElement as K, createEvent as L, safeClassMap as C, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
5
+ import { LitElement as K, createEvent as C, safeClassMap as L, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
6
6
  import { usePropertyChange as O } from "@arcgis/lumina/controllers";
7
7
  import { createRef as S, ref as H } from "lit/directives/ref.js";
8
8
  import { u as k } from "../../chunks/useT9n.js";
9
9
  import { m as U } from "../../chunks/useViewModel.js";
10
- import { g as P } from "../../chunks/globalCss.js";
11
- import { l as $ } from "../../chunks/legacyIcon.js";
10
+ import { g as $ } from "../../chunks/globalCss.js";
11
+ import { l as P } from "../../chunks/legacyIcon.js";
12
12
  import I from "@arcgis/core/core/Accessor.js";
13
13
  import f from "@arcgis/core/core/Collection.js";
14
14
  import T from "@arcgis/core/core/Error.js";
@@ -16,11 +16,11 @@ import { property as p, subclass as j } from "@arcgis/core/core/accessorSupport/
16
16
  import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
17
17
  import { c as R, i as X, l as Y } from "../../chunks/async-utils.js";
18
18
  var B = Object.defineProperty, N = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
19
- for (var s = r > 1 ? void 0 : r ? N(e, i) : e, o = t.length - 1, a; o >= 0; o--)
20
- (a = t[o]) && (s = (r ? a(e, i, s) : a(s)) || s);
21
- return r && s && B(e, i, s), s;
19
+ for (var n = r > 1 ? void 0 : r ? N(e, i) : e, o = t.length - 1, a; o >= 0; o--)
20
+ (a = t[o]) && (n = (r ? a(e, i, n) : a(n)) || n);
21
+ return r && n && B(e, i, n), n;
22
22
  };
23
- const w = {
23
+ const m = {
24
24
  left: 0,
25
25
  right: 0,
26
26
  top: 0,
@@ -118,11 +118,11 @@ let l = class extends I {
118
118
  const { position: e } = this;
119
119
  return t === "leading" ? {
120
120
  type: "rect",
121
- ...w,
121
+ ...m,
122
122
  bottom: `${100 - e}%`
123
123
  } : t === "trailing" ? {
124
124
  type: "rect",
125
- ...w,
125
+ ...m,
126
126
  top: `${e}%`
127
127
  } : null;
128
128
  }
@@ -130,11 +130,11 @@ let l = class extends I {
130
130
  const { position: e } = this;
131
131
  return t === "leading" ? {
132
132
  type: "rect",
133
- ...w,
133
+ ...m,
134
134
  right: `${100 - e}%`
135
135
  } : t === "trailing" ? {
136
136
  type: "rect",
137
- ...w,
137
+ ...m,
138
138
  left: `${e}%`
139
139
  } : null;
140
140
  }
@@ -143,31 +143,31 @@ let l = class extends I {
143
143
  return e === "vertical" ? this._getVerticalClipRect(t) : e === "horizontal" ? this._getHorizontalClipRect(t) : null;
144
144
  }
145
145
  async _clipLayer(t, e) {
146
- const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer: o, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
146
+ const { _leadingClips: i, _trailingClips: r, view: n } = this, { layer: o, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
147
147
  try {
148
- const n = await this._getLayerView(o);
149
- if (e.aborted || this.destroyed || s !== this.view || !n || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(o))
148
+ const s = await this._getLayerView(o);
149
+ if (e.aborted || this.destroyed || n !== this.view || !s || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(o))
150
150
  return;
151
- const g = c.get(n);
152
- g && n.clips.remove(g);
151
+ const g = c.get(s);
152
+ g && s.clips.remove(g);
153
153
  const v = this._getClipRect(a);
154
154
  if (v) {
155
- const m = n.clips.length;
156
- n.clips.add(v);
157
- const u = n.clips.at(m);
158
- u && c.set(n, u);
155
+ const w = s.clips.length;
156
+ s.clips.add(v);
157
+ const u = s.clips.at(w);
158
+ u && c.set(s, u);
159
159
  }
160
- } catch (n) {
161
- if (e.aborted || X(n) || n instanceof T && n.name === "view:no-layerview-for-layer")
160
+ } catch (s) {
161
+ if (e.aborted || X(s) || s instanceof T && s.name === "view:no-layerview-for-layer")
162
162
  return;
163
- Y(n, this.declaredClass, "Failed to clip layer");
163
+ Y(s, this.declaredClass, "Failed to clip layer");
164
164
  }
165
165
  }
166
166
  _removeClips(t) {
167
167
  this.removeHandles(M[t]);
168
168
  const { _leadingClips: e, _trailingClips: i } = this, r = t === "trailing" ? i : t === "leading" ? e : null;
169
- r && (r.forEach((s, o) => {
170
- V(o) && o.clips.remove(s);
169
+ r && (r.forEach((n, o) => {
170
+ V(o) && o.clips.remove(n);
171
171
  }), r.clear());
172
172
  }
173
173
  _removeExistingClips() {
@@ -217,10 +217,10 @@ class G extends K {
217
217
  e.preventDefault();
218
218
  const i = this._containerRef.value;
219
219
  i && document.activeElement !== this.el && i.focus(), this._swiping = !0, this._calculatePointerOffset(e);
220
- }, this.view = this.viewModel.view, 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.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = L(), this.arcgisSwipeChange = L(), this.arcgisSwipeInput = L();
220
+ }, this.view = this.viewModel.view, 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.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = C(), this.arcgisSwipeChange = C(), this.arcgisSwipeInput = C();
221
221
  }
222
222
  static {
223
- this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, leadingLayers: 0, messageOverrides: 0, position: 9, startLayers: 0, swipePosition: 9, referenceElement: 1, state: 32, trailingLayers: 0 };
223
+ this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, messageOverrides: 0, position: 9, startLayers: 0, referenceElement: 1, state: 32 };
224
224
  }
225
225
  static {
226
226
  this.styles = W;
@@ -231,30 +231,12 @@ class G extends K {
231
231
  set endLayers(e) {
232
232
  this.viewModel.trailingLayers = e;
233
233
  }
234
- get leadingLayers() {
235
- return this.startLayers;
236
- }
237
- set leadingLayers(e) {
238
- this.startLayers = e;
239
- }
240
234
  get startLayers() {
241
235
  return this.viewModel.leadingLayers;
242
236
  }
243
237
  set startLayers(e) {
244
238
  this.viewModel.leadingLayers = e;
245
239
  }
246
- get swipePosition() {
247
- return this.position;
248
- }
249
- set swipePosition(e) {
250
- this.position = e;
251
- }
252
- get trailingLayers() {
253
- return this.endLayers;
254
- }
255
- set trailingLayers(e) {
256
- this.endLayers = e;
257
- }
258
240
  async destroy() {
259
241
  await this.manager.destroy();
260
242
  }
@@ -262,8 +244,8 @@ class G extends K {
262
244
  this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
263
245
  }
264
246
  _calculatePointerOffset(e) {
265
- const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, o = r.getBoundingClientRect(), a = e.clientX - o.left, c = e.clientY - o.top;
266
- this._pointerOffset = i === "vertical" ? c - s : a - s;
247
+ const { direction: i } = this, r = this._containerRef.value, n = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, o = r.getBoundingClientRect(), a = e.clientX - o.left, c = e.clientY - o.top;
248
+ this._pointerOffset = i === "vertical" ? c - n : a - n;
267
249
  }
268
250
  _onContainerPointerUp(e) {
269
251
  this._swiping && (e.preventDefault(), this._positionChanged && (this.arcgisSwipeChange.emit(), this._positionChanged = !1), this._swiping = !1);
@@ -272,40 +254,40 @@ class G extends K {
272
254
  if (!this._swiping)
273
255
  return;
274
256
  e.preventDefault();
275
- const { _pointerOffset: i, el: r, direction: s } = this, { clientX: o, clientY: a } = e, { top: c, left: n, width: h, height: g } = r.getBoundingClientRect(), v = s === "vertical" ? g : h, u = (s === "vertical" ? a - c - i : o - n - i) / v * 100;
257
+ const { _pointerOffset: i, el: r, direction: n } = this, { clientX: o, clientY: a } = e, { top: c, left: s, width: h, height: g } = r.getBoundingClientRect(), v = n === "vertical" ? g : h, u = (n === "vertical" ? a - c - i : o - s - i) / v * 100;
276
258
  this.position !== u && (this.position = u, this._positionChanged = !0, this.arcgisSwipeInput.emit());
277
259
  }
278
260
  _getKeyPosition(e) {
279
- const { key: i } = e, { position: r } = this, { max: s, min: o, step: a, stepMultiplier: c, direction: n } = this.viewModel, h = a * c;
280
- if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), n === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
261
+ const { key: i } = e, { position: r } = this, { max: n, min: o, step: a, stepMultiplier: c, direction: s } = this.viewModel, h = a * c;
262
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), s === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
281
263
  const _ = e.shiftKey ? h : a;
282
264
  return r + _;
283
265
  }
284
- if (n === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
266
+ if (s === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
285
267
  const _ = e.shiftKey ? h : a;
286
268
  return r - _;
287
269
  }
288
- return i === "Home" ? o : i === "End" ? s : (n === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (n === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
270
+ return i === "Home" ? o : i === "End" ? n : (s === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (s === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
289
271
  }
290
272
  _onContainerKeyDown(e) {
291
273
  const i = this._getKeyPosition(e);
292
274
  typeof i == "number" && this.position !== i && (this.position = i, this.arcgisSwipeInput.emit(), this.arcgisSwipeChange.emit());
293
275
  }
294
276
  render() {
295
- const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, s = {
296
- [P.disabled]: r,
277
+ const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, n = {
278
+ [$.disabled]: r,
297
279
  disabled: r,
298
280
  vertical: i === "vertical",
299
281
  horizontal: i === "horizontal"
300
282
  };
301
- return y`<div class=${C(b("root", P.widget, s))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
283
+ return y`<div class=${L(b("root", $.widget, n))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
302
284
  }
303
285
  _renderHandle() {
304
286
  const { direction: e } = this.viewModel, { hideHandle: i } = this, r = {
305
- [$.dragHorizontal]: e === "vertical",
306
- [$.dragVertical]: e === "horizontal"
307
- }, s = b("handle", !!i && "handle-hidden");
308
- return y`<div class=${C(s)} role=presentation><span aria-hidden=true class=${C(b("handle-icon", r))}></span></div>`;
287
+ [P.dragHorizontal]: e === "vertical",
288
+ [P.dragVertical]: e === "horizontal"
289
+ }, n = b("handle", !!i && "handle-hidden");
290
+ return y`<div class=${L(n)} role=presentation><span aria-hidden=true class=${L(b("handle-icon", r))}></span></div>`;
309
291
  }
310
292
  _renderDivider() {
311
293
  return this.hideDivider ? null : y`<div class="divider" role=presentation></div>`;
@@ -314,11 +296,11 @@ class G extends K {
314
296
  return [this._renderDivider(), this._renderHandle()];
315
297
  }
316
298
  _renderContainer() {
317
- const { disabled: e, viewModel: i } = this, { max: r, min: s, direction: o, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", n = `${a}%`, h = {
318
- top: o === "vertical" ? n : void 0,
319
- left: o === "vertical" ? void 0 : n
299
+ const { disabled: e, viewModel: i } = this, { max: r, min: n, direction: o, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", s = `${a}%`, h = {
300
+ top: o === "vertical" ? s : void 0,
301
+ left: o === "vertical" ? void 0 : s
320
302
  }, g = this._renderContent();
321
- return e ? y`<div class="container" role=presentation style=${D(h)}>${g}</div>` : y`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${r}`} .ariaValueMin=${`${s}`} .ariaValueNow=${`${a}`} .ariaValueText=${n} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
303
+ return e ? y`<div class="container" role=presentation style=${D(h)}>${g}</div>` : y`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${r}`} .ariaValueMin=${`${n}`} .ariaValueNow=${`${a}`} .ariaValueText=${s} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
322
304
  }
323
305
  }
324
306
  z("arcgis-swipe", G);