@arcgis/map-components 5.2.0-next.90 → 5.2.0-next.91

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 (125) hide show
  1. package/dist/cdn/2AKHVAG7.js +2 -0
  2. package/dist/cdn/2GM4O42V.js +2 -0
  3. package/dist/cdn/{2LDYIMCE.js → 2U6EB7BN.js} +1 -1
  4. package/dist/cdn/{HOUQ3XZ3.js → 34CXVCB3.js} +1 -1
  5. package/dist/cdn/{NWLNFKT6.js → 3TRAIJXM.js} +1 -1
  6. package/dist/cdn/{YLXNHUYF.js → 3VFBYBX4.js} +1 -1
  7. package/dist/cdn/{JGMSDKM3.js → 43XQKUF6.js} +1 -1
  8. package/dist/cdn/{AYRZUPV2.js → 5IXZDVTF.js} +1 -1
  9. package/dist/cdn/{RTUHTKTO.js → 5OQPTYP5.js} +1 -1
  10. package/dist/cdn/{SOOJLVZP.js → 73N362E5.js} +1 -1
  11. package/dist/cdn/{CEY5WBEU.js → 7BOYQGKF.js} +1 -1
  12. package/dist/cdn/{67ZLFQ5D.js → A5ZHWVI3.js} +1 -1
  13. package/dist/cdn/{HRX3VZC6.js → AF65YZXZ.js} +1 -1
  14. package/dist/cdn/{M7ARKSCG.js → AL52T6VH.js} +1 -1
  15. package/dist/cdn/{C32RBBXZ.js → B23TN7FG.js} +1 -1
  16. package/dist/cdn/{S474C2LJ.js → B2FQHBTX.js} +1 -1
  17. package/dist/cdn/{HXOGSZ3H.js → BSLVN2NW.js} +1 -1
  18. package/dist/cdn/{3RKXZISX.js → BXDUMWWE.js} +1 -1
  19. package/dist/cdn/{SD5FKQFO.js → CH6EWFKV.js} +1 -1
  20. package/dist/cdn/{ZFLMRC4G.js → CQ7HNSA2.js} +1 -1
  21. package/dist/cdn/{JK4KRK6P.js → CYWMBY4Y.js} +1 -1
  22. package/dist/cdn/{2VSQARQL.js → DDGANMOY.js} +1 -1
  23. package/dist/cdn/{BPB6FTQK.js → DMFYRFSD.js} +1 -1
  24. package/dist/cdn/{PUNT3Q36.js → EEVHASMU.js} +1 -1
  25. package/dist/cdn/{M6FA6DZH.js → EVKOQOVV.js} +1 -1
  26. package/dist/cdn/{II5MODDO.js → FR3EHEIV.js} +1 -1
  27. package/dist/cdn/{MJRXLGST.js → GC65JYR2.js} +1 -1
  28. package/dist/cdn/{IBOB5TYX.js → H32EDCZG.js} +1 -1
  29. package/dist/cdn/{5EOKOS52.js → H4FPSA53.js} +1 -1
  30. package/dist/cdn/{O6F37YLT.js → HAUHWMHN.js} +1 -1
  31. package/dist/cdn/{6HSLIZLD.js → I22IJPSN.js} +1 -1
  32. package/dist/cdn/{WQQVESNN.js → I5DFLVVJ.js} +1 -1
  33. package/dist/cdn/IGFJHWQN.js +2 -0
  34. package/dist/cdn/{L66K2IBM.js → IORWRMMG.js} +1 -1
  35. package/dist/cdn/{3VZGQUZE.js → IXS5O6G4.js} +1 -1
  36. package/dist/cdn/{MZ2KYVWD.js → J3743ZYD.js} +1 -1
  37. package/dist/cdn/{JTBVK3AS.js → JFHEHJOQ.js} +1 -1
  38. package/dist/cdn/{AACTDN7T.js → KGXZG3YI.js} +1 -1
  39. package/dist/cdn/{LKAMRNMI.js → KX3XJGXZ.js} +1 -1
  40. package/dist/cdn/{VRRD4HXH.js → LBYKVAQ2.js} +1 -1
  41. package/dist/cdn/MAPYP35W.js +2 -0
  42. package/dist/cdn/{CFANWKE6.js → NMQLILVV.js} +1 -1
  43. package/dist/cdn/{UBD7D3LO.js → NO6MFBNV.js} +1 -1
  44. package/dist/cdn/{B3W2SZIJ.js → NP5NJFWN.js} +1 -1
  45. package/dist/cdn/{FQTVI2JC.js → NQ5OGG4I.js} +1 -1
  46. package/dist/cdn/NUPOLDDX.js +2 -0
  47. package/dist/cdn/{4SV6HHMC.js → O7RSAJOS.js} +1 -1
  48. package/dist/cdn/{WE2GHP5E.js → Q6TYHAOA.js} +1 -1
  49. package/dist/cdn/{D325DZEQ.js → QVM6UFNB.js} +1 -1
  50. package/dist/cdn/{BBFLUSKF.js → QX7CIDD3.js} +1 -1
  51. package/dist/cdn/{OEGPO4V4.js → R6ZUE6GP.js} +1 -1
  52. package/dist/cdn/RJSJ53UD.js +2 -0
  53. package/dist/cdn/{OWT2YYBJ.js → RJZ424ZP.js} +1 -1
  54. package/dist/cdn/{CS5IVOG4.js → TTDOV3LD.js} +1 -1
  55. package/dist/cdn/{K43HEYQI.js → U2ZQWROE.js} +1 -1
  56. package/dist/cdn/UVD3M6B5.js +2 -0
  57. package/dist/cdn/VIHVSV4P.js +2 -0
  58. package/dist/cdn/{CJLQURQH.js → VLKHH2Y6.js} +1 -1
  59. package/dist/cdn/VNX2AHM5.js +2 -0
  60. package/dist/cdn/{5KXZQI7G.js → VY2FRIAX.js} +1 -1
  61. package/dist/cdn/{PPTHUNKC.js → W2HQAUUA.js} +1 -1
  62. package/dist/cdn/WTTWWX57.js +2 -0
  63. package/dist/cdn/{KEE5SJGE.js → ZTRUEI25.js} +1 -1
  64. package/dist/cdn/index.js +1 -1
  65. package/dist/chunks/GeolocationPositioning.js +45 -45
  66. package/dist/chunks/async-utils.js +18 -14
  67. package/dist/chunks/slots.js +1 -1
  68. package/dist/chunks/time-utils.js +2 -2
  69. package/dist/components/arcgis-building-phase-picker/customElement.js +13 -13
  70. package/dist/components/arcgis-color-select/customElement.js +6 -6
  71. package/dist/components/arcgis-coordinate-conversion/customElement.js +18 -17
  72. package/dist/components/arcgis-coordinate-conversion-next/customElement.js +11 -10
  73. package/dist/components/arcgis-daylight/customElement.d.ts +7 -0
  74. package/dist/components/arcgis-daylight/customElement.js +135 -135
  75. package/dist/components/arcgis-feature/customElement.d.ts +1 -1
  76. package/dist/components/arcgis-feature-expression/customElement.js +24 -24
  77. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  78. package/dist/components/arcgis-feature-relationship/customElement.js +42 -41
  79. package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
  80. package/dist/components/arcgis-feature-templates/customElement.js +15 -14
  81. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +32 -31
  82. package/dist/components/arcgis-features/customElement.d.ts +1 -1
  83. package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
  84. package/dist/components/arcgis-floor-filter/customElement.js +9 -8
  85. package/dist/components/arcgis-link-chart/customElement.d.ts +19 -7
  86. package/dist/components/arcgis-link-chart/customElement.js +16 -16
  87. package/dist/components/arcgis-map/customElement.d.ts +19 -7
  88. package/dist/components/arcgis-map/customElement.js +3 -3
  89. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +72 -72
  90. package/dist/components/arcgis-paste/customElement.d.ts +23 -3
  91. package/dist/components/arcgis-paste/customElement.js +102 -101
  92. package/dist/components/arcgis-presentation/customElement.js +43 -40
  93. package/dist/components/arcgis-scene/customElement.d.ts +42 -7
  94. package/dist/components/arcgis-scene/customElement.js +5 -5
  95. package/dist/components/arcgis-shadow-cast/customElement.d.ts +8 -3
  96. package/dist/components/arcgis-time-bar/customElement.d.ts +14 -5
  97. package/dist/components/arcgis-time-bar/customElement.js +29 -29
  98. package/dist/components/arcgis-time-bar/types.d.ts +3 -1
  99. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +2 -2
  100. package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
  101. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
  102. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +3 -3
  103. package/dist/components/arcgis-video/customElement.d.ts +19 -7
  104. package/dist/components/arcgis-volume-measurement/customElement.js +5 -5
  105. package/dist/docs/api.json +1 -1
  106. package/dist/docs/docs.json +1 -1
  107. package/dist/docs/vscode.css-custom-data.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/loader.js +2 -2
  111. package/dist/types/lumina.d.ts +2 -2
  112. package/dist/types/preact.d.ts +2 -2
  113. package/dist/types/react.d.ts +2 -2
  114. package/dist/types/stencil.d.ts +2 -2
  115. package/package.json +5 -5
  116. package/dist/cdn/2FTL6T53.js +0 -2
  117. package/dist/cdn/2XHGISYY.js +0 -2
  118. package/dist/cdn/4CJBWGTY.js +0 -2
  119. package/dist/cdn/5GIJFUEJ.js +0 -2
  120. package/dist/cdn/HASESZDN.js +0 -2
  121. package/dist/cdn/LMBTPOT3.js +0 -2
  122. package/dist/cdn/OU7XFISZ.js +0 -2
  123. package/dist/cdn/UU4FSZYG.js +0 -2
  124. package/dist/cdn/YVZI2KY2.js +0 -2
  125. package/dist/cdn/Z3XLCKLP.js +0 -2
@@ -1,15 +1,15 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as O } from "../../chunks/runtime.js";
3
3
  import { css as z, html as g } from "lit";
4
- import { GenericController as P, proxyExports as E, useDirection as B } from "@arcgis/lumina/controllers";
5
- import { LitElement as G, createEvent as v, nothing as y } from "@arcgis/lumina";
6
- import { u as T } from "../../chunks/useT9n.js";
4
+ import { GenericController as P, proxyExports as E, useDirection as T } from "@arcgis/lumina/controllers";
5
+ import { LitElement as B, createEvent as v, nothing as y } from "@arcgis/lumina";
6
+ import { u as G } from "../../chunks/useT9n.js";
7
7
  import { m as R } from "../../chunks/useViewModel.js";
8
8
  import { property as d, subclass as N } from "@arcgis/core/core/accessorSupport/decorators.js";
9
- import H from "@arcgis/core/core/Accessor.js";
9
+ import D from "@arcgis/core/core/Accessor.js";
10
10
  import w from "@arcgis/core/core/Collection.js";
11
- import { ignoreAbortErrors as k } from "@arcgis/core/core/promiseUtils.js";
12
- import { watch as u, on as D, whenOnce as _ } from "@arcgis/core/core/reactiveUtils.js";
11
+ import { ignoreAbortErrors as H } from "@arcgis/core/core/promiseUtils.js";
12
+ import { watch as u, on as k, whenOnce as _ } from "@arcgis/core/core/reactiveUtils.js";
13
13
  import V from "@arcgis/core/Graphic.js";
14
14
  import M from "@arcgis/core/layers/Layer.js";
15
15
  import j from "@arcgis/core/graphic/CSVGraphicOrigin.js";
@@ -20,14 +20,15 @@ import Q from "@arcgis/core/graphic/BuildingGraphicOrigin.js";
20
20
  import q from "@arcgis/core/graphic/FeatureGraphicOrigin.js";
21
21
  import { fetchPopupFeaturesFromGraphics as A } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
22
22
  import { s as I } from "../../chunks/resources.js";
23
- import { d as C, p as J } from "../../chunks/constants2.js";
24
- const X = z`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--arcgis-internal-attribution-space-top));width:fit-content;height:100%}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{height:100%;align-content:center;border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-list-action{padding-inline:var(--calcite-space-sm)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base);font-size:var(--calcite-font-size-md)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{padding:var(--esri-widget-padding);background-color:var(--calcite-color-surface-2)}`;
25
- var Y = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, o = (i, e, t, s) => {
26
- for (var n = s > 1 ? void 0 : s ? Z(e, t) : e, r = i.length - 1, a; r >= 0; r--)
23
+ import { g as J } from "../../chunks/async-utils.js";
24
+ import { d as C, p as X } from "../../chunks/constants2.js";
25
+ const Y = z`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--arcgis-internal-attribution-space-top));width:fit-content;height:100%}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{height:100%;align-content:center;border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-list-action{padding-inline:var(--calcite-space-sm)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base);font-size:var(--calcite-font-size-md)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{padding:var(--esri-widget-padding);background-color:var(--calcite-color-surface-2)}`;
26
+ var Z = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, o = (i, e, t, s) => {
27
+ for (var n = s > 1 ? void 0 : s ? ee(e, t) : e, r = i.length - 1, a; r >= 0; r--)
27
28
  (a = i[r]) && (n = (s ? a(e, t, n) : a(n)) || n);
28
- return s && n && Y(e, t, n), n;
29
+ return s && n && Z(e, t, n), n;
29
30
  };
30
- let l = class extends H {
31
+ let l = class extends D {
31
32
  //endregion
32
33
  //#region Lifecycle
33
34
  constructor(i) {
@@ -129,7 +130,7 @@ let l = class extends H {
129
130
  async applySlide(i, e, t) {
130
131
  if (this.view) {
131
132
  const s = t ? { signal: t?.signal } : {};
132
- await k(
133
+ await H(
133
134
  i.applyTo(this.view, {
134
135
  ...s,
135
136
  animate: !e
@@ -149,7 +150,7 @@ let l = class extends H {
149
150
  }
150
151
  _startWatchSlides() {
151
152
  this._subscribeToSlideEvents(this.slides), this.addHandles(
152
- D(
153
+ k(
153
154
  () => this.slides,
154
155
  "change",
155
156
  (i) => {
@@ -224,7 +225,7 @@ o([
224
225
  l = o([
225
226
  N("components.presentation.PresentationViewModel")
226
227
  ], l);
227
- class ee extends P {
228
+ class te extends P {
228
229
  constructor(e) {
229
230
  super(e);
230
231
  }
@@ -357,7 +358,7 @@ class ee extends P {
357
358
  }
358
359
  //#endregion
359
360
  }
360
- const te = (i) => new ee(i), S = Object.freeze({ width: 0, height: 0 }), f = /* @__PURE__ */ new WeakMap(), m = () => ({
361
+ const ie = (i) => new te(i), S = Object.freeze({ width: 0, height: 0 }), f = /* @__PURE__ */ new WeakMap(), m = () => ({
361
362
  topCenter: { ...S },
362
363
  topLeft: { ...S },
363
364
  topRight: { ...S },
@@ -378,7 +379,7 @@ const te = (i) => new ee(i), S = Object.freeze({ width: 0, height: 0 }), f = /*
378
379
  observedSizes: m(),
379
380
  subscribers: /* @__PURE__ */ new Set()
380
381
  }, f.set(i, e)), e;
381
- }, ie = (i) => {
382
+ }, se = (i) => {
382
383
  const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, a = i?.bottomRight.value;
383
384
  return e && t && s && n && r && a ? {
384
385
  topCenter: e,
@@ -388,10 +389,10 @@ const te = (i) => new ee(i), S = Object.freeze({ width: 0, height: 0 }), f = /*
388
389
  bottomLeft: r,
389
390
  bottomRight: a
390
391
  } : null;
391
- }, se = (i, e) => I.every((t) => i.get(t) === e[t]), ne = (i) => {
392
+ }, ne = (i, e) => I.every((t) => i.get(t) === e[t]), re = (i) => {
392
393
  const e = F(i.observedSizes);
393
394
  i.subscribers.forEach((t) => t(e));
394
- }, re = (i, e) => {
395
+ }, ae = (i, e) => {
395
396
  const t = f.get(i);
396
397
  if (!t)
397
398
  return;
@@ -402,29 +403,29 @@ const te = (i) => new ee(i), S = Object.freeze({ width: 0, height: 0 }), f = /*
402
403
  return;
403
404
  const { width: a, height: c } = n.contentRect, h = { width: a, height: c }, p = t.observedSizes[r];
404
405
  p.width === h.width && p.height === h.height || (t.observedSizes[r] = h, s = !0);
405
- }), s && ne(t);
406
+ }), s && re(t);
406
407
  }, L = (i, e) => {
407
408
  const t = $(i);
408
409
  t.resizeObserver || (t.resizeObserver = new ResizeObserver((n) => {
409
- re(i, n);
410
+ ae(i, n);
410
411
  }));
411
- const s = ie(e);
412
+ const s = se(e);
412
413
  if (!s) {
413
414
  t.observedGroups.size > 0 && (t.resizeObserver.disconnect(), t.observedGroups.clear());
414
415
  return;
415
416
  }
416
- se(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), I.forEach((n) => {
417
+ ne(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), I.forEach((n) => {
417
418
  const r = s[n];
418
419
  t.observedGroups.set(n, r), t.resizeObserver?.observe(r);
419
420
  }));
420
- }, ae = (i, e) => {
421
+ }, le = (i, e) => {
421
422
  const t = $(i);
422
423
  return t.subscribers.add(e), e(F(t.observedSizes)), () => {
423
424
  const s = f.get(i);
424
425
  s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), f.delete(i)));
425
426
  };
426
427
  };
427
- class le extends P {
428
+ class oe extends P {
428
429
  // References to the slot group elements owned by the host component.
429
430
  #e;
430
431
  #t;
@@ -450,7 +451,7 @@ class le extends P {
450
451
  this.exports = m();
451
452
  return;
452
453
  }
453
- this.#i = ae(t, (s) => {
454
+ this.#i = le(t, (s) => {
454
455
  this.#n(s) || (this.exports = s);
455
456
  }), L(t, this.#e);
456
457
  }
@@ -482,12 +483,12 @@ class le extends P {
482
483
  });
483
484
  }
484
485
  }
485
- const oe = E(le), de = R(l);
486
- class ce extends G {
486
+ const de = E(oe), ce = R(l);
487
+ class he extends B {
487
488
  constructor() {
488
- super(...arguments), this._messages = T(), this._direction = B(), this.#e = de(this), this.#i = (e) => {
489
+ super(...arguments), this._messages = G(), this._direction = T(), this.#e = ce(this), this.#i = (e) => {
489
490
  this.#e.captureArrowKeysForNavigation(e, this._direction);
490
- }, this.#s = te(this), this.#r = null, this.#l = (e) => {
491
+ }, this.#s = ie(this), this.#r = null, this.#l = (e) => {
491
492
  this.#s.closePopup(), this.arcgisSlideApplyStart.emit({ slide: e });
492
493
  }, this.#o = (e) => {
493
494
  this.#s.openPopup(e), this.sliceAnalysisInteractive && this.#e.setSliceAnalysisInteractive(!0), this.arcgisSlideApplyComplete.emit({ slide: e });
@@ -497,15 +498,17 @@ class ce extends G {
497
498
  const t = e.detail?.selectedSlide;
498
499
  if (!t)
499
500
  return;
500
- this.#n?.abort(), this.#n = new AbortController();
501
- const s = Date.now(), n = this.#r !== null && s - this.#r < C;
502
- if (this.#r = s, this.#e.applySlide(t, n, this.#n), n) {
501
+ this.#n?.abort();
502
+ const s = new AbortController();
503
+ this.#n = s;
504
+ const n = Date.now(), r = this.#r !== null && n - this.#r < C;
505
+ if (this.#r = n, this.#e.applySlide(t, r, s), r) {
503
506
  this._showSlideList = !1;
504
507
  return;
505
508
  }
506
509
  setTimeout(() => {
507
- this.#n?.signal.aborted || (this._showSlideList = !1, this.#e.applySlide(t, !1, this.#n));
508
- }, C);
510
+ s.signal.aborted || (this._showSlideList = !1, this.#e.applySlide(t, !1, s));
511
+ }, J(C));
509
512
  }, this.#a = () => {
510
513
  this._showSlideList = !1;
511
514
  }, this._showSlideList = !1, this.autoDestroyDisabled = !1, this.view = this.#e.view, this.visualScale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.sliceAnalysisInteractive = !1, this.navigationHidden = !1, this.arcgisPopupFeatureNotFound = v(), this.arcgisPopupFeaturesRetrieved = v(), this.arcgisReady = v(), this.arcgisSlideApplyCancel = v(), this.arcgisSlideApplyComplete = v(), this.arcgisSlideApplyStart = v();
@@ -514,7 +517,7 @@ class ce extends G {
514
517
  this.properties = { _slotSizesController: 16, _showSlideList: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, visualScale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5, slideLegendDisabled: 5, sliceAnalysisInteractive: 5, navigationHidden: 5 };
515
518
  }
516
519
  static {
517
- this.styles = X;
520
+ this.styles = Y;
518
521
  }
519
522
  #e;
520
523
  #t;
@@ -552,7 +555,7 @@ class ce extends G {
552
555
  this.#e.setSliceAnalysisInteractive(t);
553
556
  }, { initial: !0 }),
554
557
  u(() => e.referenceElement, (t) => {
555
- this.#u(t) && (this._slotSizesController = oe(this), this.#h = this.#g());
558
+ this.#u(t) && (this._slotSizesController = de(this), this.#h = this.#g());
556
559
  }, { once: !0, initial: !0 }),
557
560
  {
558
561
  remove: () => {
@@ -588,7 +591,7 @@ class ce extends G {
588
591
  if (this.navigationHidden)
589
592
  return null;
590
593
  const e = this.#e.lastSlideSelected && !this.#e.hasOnlyOneSlide, t = this.#w();
591
- return g`<div class="navigation-container"><div class="navigation-slide-list-container">${t}</div><div class="navigation"><div class="slide-list-action-container"><calcite-action id=${J} class="slide-list-action" .text=${this._messages.slideList ?? ""} selection-appearance=highlight icon=list .scale=${this.visualScale === "l" ? "m" : "s"} .label=${this._messages.slideList} title=${this._messages.slideList ?? y} .active=${this._showSlideList} @click=${() => this._showSlideList = !this._showSlideList}></calcite-action></div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected || !this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? y} @click=${() => this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#f()}</div><calcite-button appearance=transparent icon-start=${e ? "reset" : "chevron-right"} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? y} @click=${() => this.#e.navigateInPresentation(1)}></calcite-button></div></div>`;
594
+ return g`<div class="navigation-container"><div class="navigation-slide-list-container">${t}</div><div class="navigation"><div class="slide-list-action-container"><calcite-action id=${X} class="slide-list-action" .text=${this._messages.slideList ?? ""} selection-appearance=highlight icon=list .scale=${this.visualScale === "l" ? "m" : "s"} .label=${this._messages.slideList} title=${this._messages.slideList ?? y} .active=${this._showSlideList} @click=${() => this._showSlideList = !this._showSlideList}></calcite-action></div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected || !this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? y} @click=${() => this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#f()}</div><calcite-button appearance=transparent icon-start=${e ? "reset" : "chevron-right"} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? y} @click=${() => this.#e.navigateInPresentation(1)}></calcite-button></div></div>`;
592
595
  }
593
596
  #f() {
594
597
  const e = this.#e.slideIndex + 1, t = this._messages?.slideNavAriaText?.replace("${index}", e.toString()).replace("${numberOfSlides}", this.#e.visibleSlides.length.toString());
@@ -604,7 +607,7 @@ class ce extends G {
604
607
  return this._showSlideList ? g`<arcgis-presentation-slide-list .slides=${this.#e.visibleSlides} .slideId=${this.#e.slideId} .label=${this._messages.slideList} .visualScale=${this.visualScale} @arcgisSlideListItemSelected=${this.#c} @arcgisSlideListOutsideClick=${this.#a}></arcgis-presentation-slide-list>` : null;
605
608
  }
606
609
  }
607
- O("arcgis-presentation", ce);
610
+ O("arcgis-presentation", he);
608
611
  export {
609
- ce as ArcgisPresentation
612
+ he as ArcgisPresentation
610
613
  };
@@ -42,6 +42,25 @@ import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
42
42
  import type { ViewPadding } from "@arcgis/core/views/ui/types.js";
43
43
  import type { SlotGroupRefs } from "../../support/slots.js";
44
44
 
45
+ declare module "@arcgis/lumina" {
46
+ export interface DeclareCssProperties {
47
+ /** _Since 4.34_ Specifies the top padding for the layout. */
48
+ "--arcgis-layout-overlay-space-top": "*";
49
+ /** _Since 4.34_ Specifies the bottom padding for the layout. */
50
+ "--arcgis-layout-overlay-space-bottom": "*";
51
+ /** _Since 4.34_ Specifies the left padding for the layout. */
52
+ "--arcgis-layout-overlay-space-left": "*";
53
+ /** _Since 4.34_ Specifies the right padding for the layout. */
54
+ "--arcgis-layout-overlay-space-right": "*";
55
+ /** _Since 5.0_ Specifies the focus outline color for the view. */
56
+ "--arcgis-view-color-focus": "*";
57
+ /** _Since 5.1_ Specifies the background color for table rows. */
58
+ "--arcgis-table-row-background-color": "*";
59
+ /** _Since 5.1_ Specifies the background color for alternate table rows. */
60
+ "--arcgis-table-row-alt-background-color": "*";
61
+ }
62
+ }
63
+
45
64
  /**
46
65
  * The ArcGIS Scene component is used to add 3D maps to web applications. For 2D maps, use the
47
66
  * [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/).
@@ -91,13 +110,6 @@ import type { SlotGroupRefs } from "../../support/slots.js";
91
110
  * - [Get started](https://developers.arcgis.com/javascript/latest/get-started/)
92
111
  * - [Programming patterns](https://developers.arcgis.com/javascript/latest/programming-patterns/)
93
112
  *
94
- * @cssproperty [--arcgis-layout-overlay-space-top] - _Since 4.34_ Specifies the top padding for the layout.
95
- * @cssproperty [--arcgis-layout-overlay-space-bottom] - _Since 4.34_ Specifies the bottom padding for the layout.
96
- * @cssproperty [--arcgis-layout-overlay-space-left] - _Since 4.34_ Specifies the left padding for the layout.
97
- * @cssproperty [--arcgis-layout-overlay-space-right] - _Since 4.34_ Specifies the right padding for the layout.
98
- * @cssproperty [--arcgis-view-color-focus] - _Since 5.0_ Specifies the focus outline color for the view.
99
- * @cssproperty [--arcgis-table-row-background-color] - _Since 5.1_ Specifies the background color for table rows.
100
- * @cssproperty [--arcgis-table-row-alt-background-color] - _Since 5.1_ Specifies the background color for alternate table rows.
101
113
  * @slot - Default slot for adding components to the scene. User is responsible for positioning the content via CSS.
102
114
  * @slot [top-left] - Slot for components positioned in the top-left corner.
103
115
  * @slot [top-right] - Slot for components positioned in the top-right corner.
@@ -845,6 +857,29 @@ export abstract class ArcgisScene extends LitElement {
845
857
  * });
846
858
  */
847
859
  accessor timeExtent: TimeExtent | null | undefined;
860
+ /**
861
+ * Defines the time zone of the view.
862
+ * The time zone property determines how dates and times are represented to the user,
863
+ * but the underlying data is unchanged.
864
+ *
865
+ * > [!IMPORTANT]
866
+ * >
867
+ * > This property does not apply to the [arcgis-daylight](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/) or
868
+ * > [arcgis-shadow-cast](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/) components. They use their own `utcOffset` properties. Support for using the
869
+ * > scene's time zone in these components is planned for a future release.
870
+ *
871
+ * @default "system"
872
+ * @since 5.2
873
+ * @see [SceneView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#timeZone)
874
+ * @see [wikipedia - List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
875
+ * @example
876
+ * ```js
877
+ * // Date and time will be displayed in Pacific/Auckland (NZ) time zone
878
+ * const viewElement = document.querySelector("arcgis-scene");
879
+ * viewElement.timeZone = "Pacific/Auckland";
880
+ * ```
881
+ */
882
+ accessor timeZone: string;
848
883
  /**
849
884
  * Indicates whether the view is being updated by additional data requests to the network,
850
885
  * or by processing received data.
@@ -17,12 +17,12 @@ import { b as P, c as A, p as M, i as R } from "../../chunks/component-utils.js"
17
17
  const D = w(g, {}), I = w(u, {});
18
18
  class k extends d {
19
19
  constructor() {
20
- super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = D(this), this.view = I(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), C(this), this.view.ui = {
20
+ super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = D(this), this.view = I(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.updating = this.view.updating, this.viewingMode = this.view.viewingMode, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), C(this), this.view.ui = {
21
21
  components: []
22
22
  };
23
23
  }
24
24
  static {
25
- this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, updating: 36, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
25
+ this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 36, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
26
26
  }
27
27
  static {
28
28
  this.styles = [_, E];
@@ -164,12 +164,12 @@ class k extends d {
164
164
  async closePopup() {
165
165
  this._uiController.closePopup();
166
166
  }
167
- async fetchPopupFeatures(i, e) {
168
- return this.view.fetchPopupFeatures(i, e);
169
- }
170
167
  async destroy() {
171
168
  await this.manager.destroy();
172
169
  }
170
+ async fetchPopupFeatures(i, e) {
171
+ return this.view.fetchPopupFeatures(i, e);
172
+ }
173
173
  async goTo(i, e) {
174
174
  return await this.view.goTo(i, e);
175
175
  }
@@ -27,9 +27,13 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
27
27
  * define the date, time range, and UTC offset used to compute the analysis overlay. They do not change the lighting in
28
28
  * the scene. To control scene lighting, use the [arcgis-daylight](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/) component.
29
29
  *
30
- * The [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) property determines which timezone the selected date and time range
31
- * are interpreted in for the analysis. This differs from the Daylight component, where selecting a timezone updates the
32
- * [arcgis-scene.environment](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#environment) date and time according to the camera position.
30
+ * The [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) property determines the time zone used to interpret the selected
31
+ * date and time range.
32
+ *
33
+ * > [!IMPORTANT]
34
+ * >
35
+ * > Shadow Cast does not use [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone). Changing the scene's time zone does not affect
36
+ * > the analysis. Support for using the scene's time zone is planned for a future release.
33
37
  *
34
38
  * The [mode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#mode) property controls how shadow or sunlight exposure is visualized:
35
39
  *
@@ -522,6 +526,7 @@ export abstract class ArcgisShadowCast extends LitElement {
522
526
  /**
523
527
  * The UTC offset in hours used to interpret the selected date and time range for the analysis. If not specified, the
524
528
  * component automatically determines an approximate UTC offset based on the camera location.
529
+ * This property is separate from [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone). Changing one does not update the other.
525
530
  */
526
531
  accessor utcOffset: number | null | undefined;
527
532
  /**
@@ -5,9 +5,9 @@ import type WebScene from "@arcgis/core/WebScene.js";
5
5
  import type MapView from "@arcgis/core/views/MapView.js";
6
6
  import type SceneView from "@arcgis/core/views/SceneView.js";
7
7
  import type { ArcgisReferenceElement, IconName } from "../types.js";
8
+ import type { ToolbarKind, Format, Mode, State, Stops } from "./types.js";
8
9
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
9
10
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
- import type { Format, Mode, State, Stops } from "./types.js";
11
11
 
12
12
  /**
13
13
  * The `<arcgis-time-bar>` component provides interactive time selection and playback within a defined temporal extent.
@@ -30,9 +30,7 @@ import type { Format, Mode, State, Stops } from "./types.js";
30
30
  * > The `time-extent` slot, if used, must contain a single `<arcgis-time-bar-slider>` component. Other elements or components are not supported.
31
31
  *
32
32
  * @slot [actions-end] - A slot for adding `calcite-action`s that will appear at the end of the component.
33
- * @slot
34
- * [settings ] - A slot for adding custom content to the settings popover when the `showSettings` property is `true` and settings button is clicked.
35
- * If no content is provided, the default settings component will be rendered.
33
+ * @slot [settings] - A slot for adding custom content to the settings popover when the `showSettings` property is `true` and settings button is clicked. If no content is provided, the default settings component will be rendered.
36
34
  * @slot [time-extent] - A slot for optionally inserting a `arcgis-time-bar-slider`.
37
35
  * @since 5.2
38
36
  * @example
@@ -802,9 +800,20 @@ export abstract class ArcgisTimeBar extends LitElement {
802
800
  * ```
803
801
  * @see [wikipedia - List of tz database time zones](https://wikipedia.org/wiki/List_of_tz_database_time_zones)
804
802
  * @see [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone)
805
- * @see [MapView#timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone)
803
+ * @see [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone)
804
+ * @see [MapView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone)
805
+ * @see [SceneView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#timeZone)
806
806
  */
807
807
  accessor timeZone: string | undefined;
808
+ /**
809
+ * Controls the appearance of the `arcgis-time-bar` component.
810
+ *
811
+ * When set to `"floating"`, the default, the component will appear with rounded corners and a dropshadow.
812
+ * When set to `"docked"`, the component will appear without rounded corners and dropshadow.
813
+ *
814
+ * @default "floating"
815
+ */
816
+ accessor toolbarKind: ToolbarKind;
808
817
  /**
809
818
  * The view associated with the component.
810
819
  * > **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-time-bar component will be associated with a map or scene component rather than using the `view` property.
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as W } from "../../chunks/runtime.js";
3
- import { css as V, html as v } from "lit";
4
- import z from "@arcgis/core/core/Accessor.js";
3
+ import { css as z, html as v } from "lit";
4
+ import V from "@arcgis/core/core/Accessor.js";
5
5
  import x from "@arcgis/core/time/TimeExtent.js";
6
6
  import q from "@arcgis/core/webdoc/widgets/TimeSlider.js";
7
- import H from "@arcgis/core/webdoc/Widgets.js";
8
- import { b as G, d as L, a as U } from "../../chunks/async-utils.js";
9
- import { c as Y, e as J, g as F, i as C, h as K, j as Q, k as X, l as Z, a as tt } from "../../chunks/dateUtils.js";
10
- import { convertDateFormatToIntlOptions as T } from "@arcgis/core/intl.js";
7
+ import K from "@arcgis/core/webdoc/Widgets.js";
8
+ import { b as H, d as G, a as L } from "../../chunks/async-utils.js";
9
+ import { c as U, e as Y, g as F, i as C, h as J, j as Q, k as X, l as Z, a as tt } from "../../chunks/dateUtils.js";
10
+ import { convertDateFormatToIntlOptions as b } from "@arcgis/core/intl.js";
11
11
  import { r as et, s as it } from "../../chunks/time-utils.js";
12
12
  import k from "@arcgis/core/time/TimeInterval.js";
13
13
  import { getTimeSliderSettingsFromWebDocument as st } from "@arcgis/core/support/timeUtils.js";
@@ -118,10 +118,10 @@ var _t = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, N = (t) =>
118
118
  for (var u = a > 1 ? void 0 : a ? Et(e, n) : e, c = t.length - 1, f; c >= 0; c--)
119
119
  (f = t[c]) && (u = (a ? f(e, n, u) : f(u)) || u);
120
120
  return a && u && _t(e, n, u), u;
121
- }, j = (t, e, n) => e.has(t) || N("Cannot " + n), M = (t, e, n) => (j(t, e, "read from private field"), n ? n.call(t) : e.get(t)), R = (t, e, n) => e.has(t) ? N("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), p = (t, e, n) => (j(t, e, "access private method"), n), _, h, D, $, E, b, P;
122
- let o = class extends z {
121
+ }, j = (t, e, n) => e.has(t) || N("Cannot " + n), M = (t, e, n) => (j(t, e, "read from private field"), n ? n.call(t) : e.get(t)), R = (t, e, n) => e.has(t) ? N("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), p = (t, e, n) => (j(t, e, "access private method"), n), _, h, D, $, E, T, P;
122
+ let o = class extends V {
123
123
  constructor() {
124
- super(...arguments), R(this, h), R(this, _, new AbortController()), this.disabled = !1, this.format = "date", this.loadPersistedSettingsDisabled = !1, this.loop = !1, this.mode = "time-window", this.savePersistedSettingsDisabled = !1, this.stops = J;
124
+ super(...arguments), R(this, h), R(this, _, new AbortController()), this.disabled = !1, this.format = "date", this.loadPersistedSettingsDisabled = !1, this.loop = !1, this.mode = "time-window", this.savePersistedSettingsDisabled = !1, this.stops = Y;
125
125
  }
126
126
  get _adjustedMajorTickFormat() {
127
127
  const { era: t, timeZone: e } = this;
@@ -133,13 +133,13 @@ let o = class extends z {
133
133
  }
134
134
  get _dateFormat() {
135
135
  const { era: t, timeZone: e } = this;
136
- return { ...T("short-date"), era: t, timeZone: e };
136
+ return { ...b("short-date"), era: t, timeZone: e };
137
137
  }
138
138
  get _dateTimeFormat() {
139
139
  const { era: t, timeZone: e } = this;
140
140
  return {
141
- ...T("short-date"),
142
- ...T("long-time"),
141
+ ...b("short-date"),
142
+ ...b("long-time"),
143
143
  era: t,
144
144
  timeZone: e
145
145
  };
@@ -160,7 +160,7 @@ let o = class extends z {
160
160
  }
161
161
  get _timeFormat() {
162
162
  const { timeZone: t } = this;
163
- return { ...T("long-time"), timeZone: t };
163
+ return { ...b("long-time"), timeZone: t };
164
164
  }
165
165
  get effectiveStops() {
166
166
  const { fullTimeExtent: t, stops: e } = this;
@@ -181,7 +181,7 @@ let o = class extends z {
181
181
  }
182
182
  const n = e.timeExtent ?? t;
183
183
  if (n)
184
- return C(e) ? K(n, e.count) : Q(n, e.interval);
184
+ return C(e) ? J(n, e.count) : Q(n, e.interval);
185
185
  }
186
186
  get effectiveStopsEpoch() {
187
187
  return this.effectiveStops?.map((t) => t.getTime());
@@ -223,7 +223,7 @@ let o = class extends z {
223
223
  //#endregion
224
224
  //#region Public Methods
225
225
  destroy() {
226
- M(this, _).abort(), this.view?.unregisterComponent(this), p(this, h, b).call(this);
226
+ M(this, _).abort(), this.view?.unregisterComponent(this), p(this, h, T).call(this);
227
227
  }
228
228
  formatDate(t) {
229
229
  return this._formatDate(t, this._dateFormat);
@@ -309,7 +309,7 @@ let o = class extends z {
309
309
  }
310
310
  }
311
311
  )
312
- ]), await G(
312
+ ]), await H(
313
313
  (async () => {
314
314
  if (await O(() => this.view?.ready, { signal: M(this, _).signal }), this.loadPersistedSettingsDisabled)
315
315
  return;
@@ -331,7 +331,7 @@ let o = class extends z {
331
331
  p(this, h, E).call(this, { forward: !1, allowRestart: !1 });
332
332
  }
333
333
  stop() {
334
- p(this, h, b).call(this);
334
+ p(this, h, T).call(this);
335
335
  }
336
336
  updateWebDocument(t) {
337
337
  if (this.savePersistedSettingsDisabled)
@@ -346,7 +346,7 @@ let o = class extends z {
346
346
  stopInterval: tt(this.stops) ? this.stops.interval : null,
347
347
  stops: F(this.stops) ? this.stops.dates : null
348
348
  });
349
- t.widgets ??= new H(), t.widgets.timeSlider = e;
349
+ t.widgets ??= new K(), t.widgets.timeSlider = e;
350
350
  }
351
351
  _formatDate(t, e) {
352
352
  return ft({ locale: this.locale, formatOptions: e }).format(t);
@@ -361,15 +361,15 @@ h = /* @__PURE__ */ new WeakSet();
361
361
  D = async function() {
362
362
  try {
363
363
  const { view: t } = this, e = this._animationController?.signal;
364
- await Promise.all([L(this.playRate, e), t && O(() => !t.updating, e)]);
364
+ await Promise.all([G(this.playRate, e), t && O(() => !t.updating, e)]);
365
365
  } catch (t) {
366
- U(t) || nt("error", "arcgis-slider-time", "animation error", { detail: { error: t } }), this._animationController = void 0;
366
+ L(t) || nt("error", "arcgis-slider-time", "animation error", { detail: { error: t } }), this._animationController = void 0;
367
367
  return;
368
368
  }
369
369
  p(this, h, E).call(this, { forward: !0, allowRestart: !1 }), this._animationController && p(this, h, D).call(this);
370
370
  };
371
371
  $ = function() {
372
- p(this, h, b).call(this), this._animationController = new AbortController(), p(this, h, E).call(this, { forward: !0, allowRestart: !0 }), p(this, h, D).call(this);
372
+ p(this, h, T).call(this), this._animationController = new AbortController(), p(this, h, E).call(this, { forward: !0, allowRestart: !0 }), p(this, h, D).call(this);
373
373
  };
374
374
  E = function({ forward: t, allowRestart: e }) {
375
375
  const { _thumbPositions: n, effectiveStopsEpoch: a } = this;
@@ -395,7 +395,7 @@ E = function({ forward: t, allowRestart: e }) {
395
395
  this.timeExtent = p(this, h, P).call(this, m);
396
396
  }
397
397
  };
398
- b = function() {
398
+ T = function() {
399
399
  this._animationController?.abort(), this._animationController = void 0;
400
400
  };
401
401
  P = function(t) {
@@ -477,7 +477,7 @@ r([
477
477
  l()
478
478
  ], o.prototype, "state", 1);
479
479
  r([
480
- l({ cast: Y })
480
+ l({ cast: U })
481
481
  ], o.prototype, "stops", 2);
482
482
  r([
483
483
  l()
@@ -497,18 +497,18 @@ r([
497
497
  o = r([
498
498
  at("components.time-bar.TimeBarViewModel")
499
499
  ], o);
500
- const Tt = V`:host{box-shadow:var(--arcgis-internal-box-shadow, var(--calcite-shadow-sm));transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`, bt = mt(o);
500
+ const bt = z`:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out;--arcgis-time-bar-shadow: none}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: var(--arcgis-time-bar-shadow);--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`, Tt = mt(o);
501
501
  class St extends ot {
502
502
  constructor() {
503
- super(...arguments), this._viewModel = bt(this), this.messages = dt({ name: "time-bar", blocking: !0 }), this.#t = lt(), this.#e = ct(), this.#i = (e) => {
503
+ super(...arguments), this._viewModel = Tt(this), this.messages = dt({ name: "time-bar", blocking: !0 }), this.#t = lt(), this.#e = ct(), this.#i = (e) => {
504
504
  this._settingsActionElement = e;
505
- }, this.autoDestroyDisabled = !1, this.disabled = this._viewModel.disabled, this.effectiveStops = this._viewModel.effectiveStops, this.format = this._viewModel.format, this.fullTimeExtent = this._viewModel.fullTimeExtent, this.icon = "clock", this.loadPersistedSettingsDisabled = this._viewModel.loadPersistedSettingsDisabled, this.loop = this._viewModel.loop, this.mode = this._viewModel.mode, this.playRate = this._viewModel.playRate, this.savePersistedSettingsDisabled = this._viewModel.savePersistedSettingsDisabled, this.showNext = !1, this.showPlay = !1, this.showPrevious = !1, this.showSettings = !1, this.state = this._viewModel.state, this.stops = this._viewModel.stops, this.timeExtent = this._viewModel.timeExtent, this.timeZone = this._viewModel.timeZone, this.view = this._viewModel.view, this.arcgisPropertyChange = ht()("effectiveStops", "fullTimeExtent", "state", "timeExtent"), this.arcgisReady = rt();
505
+ }, this.autoDestroyDisabled = !1, this.disabled = this._viewModel.disabled, this.effectiveStops = this._viewModel.effectiveStops, this.format = this._viewModel.format, this.fullTimeExtent = this._viewModel.fullTimeExtent, this.icon = "clock", this.loadPersistedSettingsDisabled = this._viewModel.loadPersistedSettingsDisabled, this.loop = this._viewModel.loop, this.mode = this._viewModel.mode, this.playRate = this._viewModel.playRate, this.savePersistedSettingsDisabled = this._viewModel.savePersistedSettingsDisabled, this.showNext = !1, this.showPlay = !1, this.showPrevious = !1, this.showSettings = !1, this.state = this._viewModel.state, this.stops = this._viewModel.stops, this.timeExtent = this._viewModel.timeExtent, this.timeZone = this._viewModel.timeZone, this.toolbarKind = "floating", this.view = this._viewModel.view, this.arcgisPropertyChange = ht()("effectiveStops", "fullTimeExtent", "state", "timeExtent"), this.arcgisReady = rt();
506
506
  }
507
507
  static {
508
- this.properties = { _settingsActionElement: 16, autoDestroyDisabled: 5, disabled: 5, effectiveStops: 32, format: 1, fullTimeExtent: 0, icon: 1, label: 1, loadPersistedSettingsDisabled: 5, loop: 5, messageOverrides: 0, mode: 1, playRate: 9, referenceElement: 1, savePersistedSettingsDisabled: 5, showNext: 5, showPlay: 5, showPrevious: 5, showSettings: 5, state: 32, stops: 0, timeExtent: 0, timeZone: 1, view: 0 };
508
+ this.properties = { _settingsActionElement: 16, autoDestroyDisabled: 5, disabled: 5, effectiveStops: 32, format: 1, fullTimeExtent: 0, icon: 1, label: 1, loadPersistedSettingsDisabled: 5, loop: 5, messageOverrides: 0, mode: 1, playRate: 9, referenceElement: 1, savePersistedSettingsDisabled: 5, showNext: 5, showPlay: 5, showPrevious: 5, showSettings: 5, state: 32, stops: 0, timeExtent: 0, timeZone: 1, toolbarKind: 1, view: 0 };
509
509
  }
510
510
  static {
511
- this.styles = Tt;
511
+ this.styles = bt;
512
512
  }
513
513
  #t;
514
514
  #e;
@@ -555,7 +555,7 @@ class St extends ot {
555
555
  }
556
556
  }
557
557
  render() {
558
- return v`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-disabled floating>${this.#e === "ltr" ? v`${this.#n()}${this.#u()}${this.#l()}${this.#s()}` : v`${this.#l()}${this.#u()}${this.#n()}${this.#s()}`}</calcite-action-bar></div>`;
558
+ return v`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-disabled .floating=${this.toolbarKind === "floating"}>${this.#e === "ltr" ? v`${this.#n()}${this.#u()}${this.#l()}${this.#s()}` : v`${this.#l()}${this.#u()}${this.#n()}${this.#s()}`}</calcite-action-bar></div>`;
559
559
  }
560
560
  #s() {
561
561
  return v`<slot name=actions-end slot=actions-end></slot>`;
@@ -42,4 +42,6 @@ export interface TickFormat {
42
42
  format: DateTimeFormatOptions;
43
43
  major: TimeInterval;
44
44
  minor: TimeInterval;
45
- }
45
+ }
46
+
47
+ export type ToolbarKind = "docked" | "floating";
@@ -6,8 +6,8 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
6
  /**
7
7
  * The `arcgis-time-bar-slider` component renders a time-based slider intended for use `arcgis-time-bar`'s "time-extent" slot.
8
8
  *
9
- * @slot [max ] - A slot that displays a label for the end date of the slider. If not provided, a default label will be rendered.
10
- * @slot [min ] - A slot that displays a label for the start date of the slider. If not provided, a default label will be rendered.
9
+ * @slot [max] - A slot that displays a label for the end date of the slider. If not provided, a default label will be rendered.
10
+ * @slot [min] - A slot that displays a label for the start date of the slider. If not provided, a default label will be rendered.
11
11
  * @slot [popover] - A slot that displays a popover's content while interacting with the slider's thumb or range. If not provided, a default content will be rendered.
12
12
  * @since 5.2
13
13
  * @example
@@ -442,7 +442,7 @@ export abstract class ArcgisTimeSlider extends LitElement {
442
442
  accessor timeVisible: boolean;
443
443
  /**
444
444
  * Dates and times displayed in the component will be displayed in this time zone. By default this time zone is
445
- * inherited from [MapView#timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone). When a MapView is not associated with the component
445
+ * inherited from the associated [MapView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone) or [SceneView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#timeZone). When a view is not associated with the component
446
446
  * then the property will fallback to the `system` time zone.
447
447
  *
448
448
  * **Possible Values**