@arcgis/map-components 5.2.0-next.162 → 5.2.0-next.163

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.
@@ -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);
@@ -28,10 +28,10 @@ export abstract class ArcgisTimeSlider extends LitElement {
28
28
  * can be used to execute custom code such as setting the [timeExtent](https://developers.arcgis.com/javascript/latest/references/core/widgets/TimeSlider/#timeExtent) to a specific date or copying the
29
29
  * timeExtent to the browser's clipboard.
30
30
  *
31
- * [![widgets-timeSlider-actions](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/timeslider/widgets-timeslider-actions.avif)](https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-timeslider-offset)
31
+ * [![widgets-timeSlider-actions](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/timeslider/widgets-timeslider-actions.avif)](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
32
32
  *
33
33
  * @since 4.21
34
- * @see [Sample - TimeSlider with offset](https://developers.arcgis.com/javascript/latest/sample-code/widgets-timeslider-offset/)
34
+ * @see [Sample - Time Bar with timeOffset and actions](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
35
35
  * @example
36
36
  * // Create a TimeSlider with two actions to snap the thumb to
37
37
  * // two specific time extents.