@arcgis/map-components 5.2.0-next.102 → 5.2.0-next.104

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 (87) hide show
  1. package/dist/cdn/{YVQJ4XD4.js → 3IQBOCXJ.js} +1 -1
  2. package/dist/cdn/{S7JDLOX2.js → 4J23LF6M.js} +1 -1
  3. package/dist/cdn/{J624KHFL.js → 4R53HBKQ.js} +1 -1
  4. package/dist/cdn/{A3KD2UAY.js → 5ASN6KWI.js} +1 -1
  5. package/dist/cdn/{GGKOLSCH.js → 6AUGGEEP.js} +1 -1
  6. package/dist/cdn/{YEN7K65V.js → 7HFQ4IJ2.js} +1 -1
  7. package/dist/cdn/{ZUWNZX6G.js → BCGLGOZZ.js} +1 -1
  8. package/dist/cdn/EBPGSTIL.js +2 -0
  9. package/dist/cdn/{TZEAPNBI.js → IFJS7BSY.js} +1 -1
  10. package/dist/cdn/{KJTWHP5I.js → ITQE4OCT.js} +1 -1
  11. package/dist/cdn/{4YU2AF7S.js → M4IP3YJG.js} +1 -1
  12. package/dist/cdn/PBIEHFTW.js +2 -0
  13. package/dist/cdn/{GLMK45AB.js → PCQRHDV6.js} +1 -1
  14. package/dist/cdn/{6ZE7BJTS.js → R2WAEZ4G.js} +1 -1
  15. package/dist/cdn/{DVGE5VPK.js → S3U3C6H7.js} +1 -1
  16. package/dist/cdn/{3AIQYNSA.js → SWSQAOGC.js} +1 -1
  17. package/dist/cdn/{ZCRUGROJ.js → SXAPY3VV.js} +1 -1
  18. package/dist/cdn/{VULA5TJD.js → TROUKXL3.js} +1 -1
  19. package/dist/cdn/US6Z6V5I.js +2 -0
  20. package/dist/cdn/VB64Q5DB.js +2 -0
  21. package/dist/cdn/WNZ2XRBD.js +2 -0
  22. package/dist/cdn/{WAFRMU5C.js → WUHDP2W5.js} +1 -1
  23. package/dist/cdn/{HJ7TFEPK.js → YSWBEPQF.js} +2 -2
  24. package/dist/cdn/{BZGHEINJ.js → ZO4SS6VB.js} +1 -1
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/chunks/slots.js +1 -1
  27. package/dist/components/arcgis-editor/customElement.d.ts +8 -2
  28. package/dist/components/arcgis-editor/customElement.js +2 -2
  29. package/dist/components/arcgis-layer-list-next/customElement.js +12 -7
  30. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -2
  31. package/dist/components/arcgis-time-bar/customElement.js +147 -146
  32. package/dist/components/arcgis-time-bar/types.d.ts +1 -2
  33. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +1 -0
  34. package/dist/components/arcgis-time-bar-slider/customElement.js +53 -57
  35. package/dist/docs/api.json +1 -1
  36. package/dist/docs/docs.json +1 -1
  37. package/dist/docs/vscode.html-custom-data.json +1 -1
  38. package/dist/docs/web-types.json +1 -1
  39. package/package.json +6 -6
  40. package/dist/cdn/65FGHESR.js +0 -2
  41. package/dist/cdn/EDGLEFG3.js +0 -2
  42. package/dist/cdn/F2ZADKF4.js +0 -2
  43. package/dist/cdn/SA4IYYIE.js +0 -2
  44. package/dist/cdn/ZABYV3VA.js +0 -2
  45. /package/dist/cdn/{6RT7GRX4.js → 2YXG2UVO.js} +0 -0
  46. /package/dist/cdn/{AA2HLLIM.js → 3477AJGP.js} +0 -0
  47. /package/dist/cdn/{2ZG7S6GM.js → 46RONL5G.js} +0 -0
  48. /package/dist/cdn/{GJAC7GKP.js → 4TMO432K.js} +0 -0
  49. /package/dist/cdn/{4J6DMRVO.js → 4TXSVEFQ.js} +0 -0
  50. /package/dist/cdn/{TKEBTPPA.js → 5D7JP2MD.js} +0 -0
  51. /package/dist/cdn/{7JKYXV7H.js → 6AXSN2JJ.js} +0 -0
  52. /package/dist/cdn/{QJBQ3JLC.js → 6T2UQ2JE.js} +0 -0
  53. /package/dist/cdn/{6B4ROFUM.js → 7BTU3W4U.js} +0 -0
  54. /package/dist/cdn/{E3AEBH36.js → AH7T5E6X.js} +0 -0
  55. /package/dist/cdn/{DSPV4EIK.js → ATBK5KMZ.js} +0 -0
  56. /package/dist/cdn/{D2FVI5JG.js → BN7OHAZB.js} +0 -0
  57. /package/dist/cdn/{657KH5W3.js → C66EUSNM.js} +0 -0
  58. /package/dist/cdn/{HRTVHZHG.js → EHCISJXP.js} +0 -0
  59. /package/dist/cdn/{G7DHB4QN.js → F5GIAKDV.js} +0 -0
  60. /package/dist/cdn/{YWQU6EBN.js → H6I3JKBD.js} +0 -0
  61. /package/dist/cdn/{H3RDAWS7.js → HMK6VULW.js} +0 -0
  62. /package/dist/cdn/{JU4MCJPU.js → I4D3VLLY.js} +0 -0
  63. /package/dist/cdn/{HDYBFSI5.js → K2MQIU34.js} +0 -0
  64. /package/dist/cdn/{OTTKYEPK.js → K3DQPSQI.js} +0 -0
  65. /package/dist/cdn/{TTBQBEDS.js → NXYIGLH3.js} +0 -0
  66. /package/dist/cdn/{SE4NXMGA.js → O5WV2YAQ.js} +0 -0
  67. /package/dist/cdn/{D5LP3DJA.js → OTQZC2PT.js} +0 -0
  68. /package/dist/cdn/{SOOVHYLT.js → P3ZJGUIA.js} +0 -0
  69. /package/dist/cdn/{3VWL4SN7.js → PEXZHNPA.js} +0 -0
  70. /package/dist/cdn/{T5QDEAAE.js → QCZLDGXP.js} +0 -0
  71. /package/dist/cdn/{X2MAQDWV.js → SWTIFZKP.js} +0 -0
  72. /package/dist/cdn/{J3KTKVLP.js → T46FMVXL.js} +0 -0
  73. /package/dist/cdn/{DNQGXWL3.js → TPPHNJZM.js} +0 -0
  74. /package/dist/cdn/{LG3G4BFF.js → TRVSOZ6E.js} +0 -0
  75. /package/dist/cdn/{VFHHDNXC.js → TSBXS3ZU.js} +0 -0
  76. /package/dist/cdn/{GLZMKGGW.js → TUC2QO55.js} +0 -0
  77. /package/dist/cdn/{IU63DGNP.js → TVEUPC5T.js} +0 -0
  78. /package/dist/cdn/{B6JLKBMG.js → U2O4UBGQ.js} +0 -0
  79. /package/dist/cdn/{7NO3F7GQ.js → UKEFVOLB.js} +0 -0
  80. /package/dist/cdn/{4F6FNH6V.js → VESS43VK.js} +0 -0
  81. /package/dist/cdn/{KVIE42LT.js → W452TPUB.js} +0 -0
  82. /package/dist/cdn/{JHF7SGKM.js → XVRI7KL6.js} +0 -0
  83. /package/dist/cdn/{FRGVEQAZ.js → XWROBCOJ.js} +0 -0
  84. /package/dist/cdn/{ADZF7IHV.js → XX5K2YYE.js} +0 -0
  85. /package/dist/cdn/{OO4SKY7C.js → YC6OF77P.js} +0 -0
  86. /package/dist/cdn/{HH4A44WX.js → YFA64UQH.js} +0 -0
  87. /package/dist/cdn/{QH4RNPEX.js → YUCXRBNY.js} +0 -0
@@ -1,47 +1,47 @@
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 z, html as v } from "lit";
3
+ import { css as z, html as p } from "lit";
4
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
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";
8
+ import { b as j, d as H, a as G } from "../../chunks/async-utils.js";
9
+ import { c as L, e as U, g as F, i as C, h as Y, j as J, k as Q, l as R, a as X } from "../../chunks/dateUtils.js";
10
10
  import { convertDateFormatToIntlOptions as b } from "@arcgis/core/intl.js";
11
- import { r as et, u as it, s as st } from "../../chunks/time-utils.js";
12
- import k from "@arcgis/core/time/TimeInterval.js";
11
+ import { r as tt, u as et, s as it } from "../../chunks/time-utils.js";
12
+ import st from "@arcgis/core/time/TimeInterval.js";
13
13
  import { getTimeSliderSettingsFromWebDocument as nt } from "@arcgis/core/support/timeUtils.js";
14
14
  import { log as at } from "@arcgis/toolkit/log";
15
15
  import { property as l, subclass as ot } from "@arcgis/core/core/accessorSupport/decorators.js";
16
- import { watch as w, whenOnce as O } from "@arcgis/core/core/reactiveUtils.js";
16
+ import { watch as w, whenOnce as Z } from "@arcgis/core/core/reactiveUtils.js";
17
17
  import { LitElement as rt, createEvent as lt } from "@arcgis/lumina";
18
- import { createRef as ut, ref as A } from "lit/directives/ref.js";
19
- import { getSlotAssignedElements as mt } from "@arcgis/toolkit/dom/slots";
20
- import { m as ct } from "../../chunks/useViewModel.js";
21
- import { useDirection as ht, usePropertyChange as dt } from "@arcgis/lumina/controllers";
22
- import { u as vt } from "../../chunks/useT9n.js";
23
- const B = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap();
24
- function pt(t) {
25
- const { locale: e, formatOptions: n } = t, a = wt(n), u = new Intl.DateTimeFormat(e, a);
26
- return B.set(t, u), u;
18
+ import { createRef as mt, ref as k } from "lit/directives/ref.js";
19
+ import { getSlotAssignedElements as ct } from "@arcgis/toolkit/dom/slots";
20
+ import { m as ht } from "../../chunks/useViewModel.js";
21
+ import { useDirection as ut, usePropertyChange as dt } from "@arcgis/lumina/controllers";
22
+ import { u as pt } from "../../chunks/useT9n.js";
23
+ const O = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap();
24
+ function vt(t) {
25
+ const { locale: e, formatOptions: n } = t, a = wt(n), m = new Intl.DateTimeFormat(e, a);
26
+ return O.set(t, m), m;
27
27
  }
28
28
  function ft(t) {
29
29
  const { locale: e, formatOptions: n } = t, a = new Intl.NumberFormat(e, n);
30
- return I.set(t, a), a;
30
+ return B.set(t, a), a;
31
31
  }
32
32
  function gt(t) {
33
- return B.get(t) ?? pt(t);
33
+ return O.get(t) ?? vt(t);
34
34
  }
35
35
  function yt(t) {
36
- return I.get(t) ?? ft(t);
36
+ return B.get(t) ?? ft(t);
37
37
  }
38
38
  function wt(t) {
39
39
  return t.timeZone ? {
40
40
  ...t,
41
- timeZone: et(t.timeZone)
41
+ timeZone: tt(t.timeZone)
42
42
  } : t;
43
43
  }
44
- const i = (t, e, n) => ({ minorTick: t, majorTick: e, majorTickFormat: n }), s = {
44
+ const i = (t, e) => ({ tick: t, tickFormat: e }), s = {
45
45
  sf: { second: "numeric", fractionalSecondDigits: 3 },
46
46
  s: { second: "numeric" },
47
47
  ms: { minute: "numeric", second: "numeric" },
@@ -52,82 +52,83 @@ const i = (t, e, n) => ({ minorTick: t, majorTick: e, majorTickFormat: n }), s =
52
52
  my: { month: "short", year: "numeric" },
53
53
  y: { year: "numeric" }
54
54
  }, xt = [
55
- i({ value: 1, unit: "milliseconds" }, { value: 20, unit: "milliseconds" }, s.sf),
56
- i({ value: 2, unit: "milliseconds" }, { value: 50, unit: "milliseconds" }, s.sf),
57
- i({ value: 5, unit: "milliseconds" }, { value: 100, unit: "milliseconds" }, s.sf),
58
- i({ value: 10, unit: "milliseconds" }, { value: 200, unit: "milliseconds" }, s.sf),
59
- i({ value: 20, unit: "milliseconds" }, { value: 500, unit: "milliseconds" }, s.sf),
60
- i({ value: 50, unit: "milliseconds" }, { value: 1, unit: "seconds" }, s.s),
61
- i({ value: 100, unit: "milliseconds" }, { value: 2, unit: "seconds" }, s.s),
62
- i({ value: 200, unit: "milliseconds" }, { value: 5, unit: "seconds" }, s.s),
63
- i({ value: 500, unit: "milliseconds" }, { value: 10, unit: "seconds" }, s.s),
64
- i({ value: 1, unit: "seconds" }, { value: 20, unit: "seconds" }, s.ms),
65
- i({ value: 2, unit: "seconds" }, { value: 30, unit: "seconds" }, s.ms),
66
- i({ value: 5, unit: "seconds" }, { value: 1, unit: "minutes" }, s.mi),
67
- i({ value: 10, unit: "seconds" }, { value: 2, unit: "minutes" }, s.mi),
68
- i({ value: 20, unit: "seconds" }, { value: 5, unit: "minutes" }, s.mi),
69
- i({ value: 40, unit: "seconds" }, { value: 10, unit: "minutes" }, s.mi),
70
- i({ value: 1, unit: "minutes" }, { value: 30, unit: "minutes" }, s.hm),
71
- i({ value: 2, unit: "minutes" }, { value: 1, unit: "hours" }, s.hm),
72
- i({ value: 5, unit: "minutes" }, { value: 2, unit: "hours" }, s.hm),
73
- i({ value: 10, unit: "minutes" }, { value: 4, unit: "hours" }, s.hm),
74
- i({ value: 20, unit: "minutes" }, { value: 8, unit: "hours" }, s.hm),
75
- i({ value: 40, unit: "minutes" }, { value: 1, unit: "days" }, s.dm),
76
- i({ value: 1, unit: "hours" }, { value: 1, unit: "days" }, s.dm),
77
- i({ value: 2, unit: "hours" }, { value: 2, unit: "days" }, s.dm),
78
- i({ value: 5, unit: "hours" }, { value: 4, unit: "days" }, s.dm),
79
- i({ value: 10, unit: "hours" }, { value: 10, unit: "days" }, s.dm),
80
- i({ value: 20, unit: "hours" }, { value: 15, unit: "days" }, s.dm),
81
- i({ value: 1, unit: "days" }, { value: 20, unit: "days" }, s.dm),
82
- i({ value: 2, unit: "days" }, { value: 1, unit: "months" }, s.m),
83
- i({ value: 5, unit: "days" }, { value: 3, unit: "months" }, s.m),
84
- i({ value: 10, unit: "days" }, { value: 6, unit: "months" }, s.my),
85
- i({ value: 20, unit: "days" }, { value: 1, unit: "years" }, s.y),
86
- i({ value: 1, unit: "months" }, { value: 2, unit: "years" }, s.y),
87
- i({ value: 2, unit: "months" }, { value: 4, unit: "years" }, s.y),
88
- i({ value: 5, unit: "months" }, { value: 10, unit: "years" }, s.y),
89
- i({ value: 1, unit: "years" }, { value: 20, unit: "years" }, s.y),
90
- i({ value: 2, unit: "years" }, { value: 50, unit: "years" }, s.y),
91
- i({ value: 5, unit: "years" }, { value: 100, unit: "years" }, s.y),
92
- i({ value: 10, unit: "years" }, { value: 200, unit: "years" }, s.y),
93
- i({ value: 20, unit: "years" }, { value: 500, unit: "years" }, s.y),
94
- i({ value: 50, unit: "years" }, { value: 1e3, unit: "years" }, s.y),
95
- i({ value: 1, unit: "centuries" }, { value: 20, unit: "centuries" }, s.y),
96
- i({ value: 2, unit: "centuries" }, { value: 50, unit: "centuries" }, s.y),
97
- i({ value: 5, unit: "centuries" }, { value: 100, unit: "centuries" }, s.y),
98
- i({ value: 10, unit: "centuries" }, { value: 200, unit: "centuries" }, s.y),
99
- i({ value: 20, unit: "centuries" }, { value: 500, unit: "centuries" }, s.y),
100
- i({ value: 50, unit: "centuries" }, { value: 1e3, unit: "centuries" }, s.y),
101
- i({ value: 100, unit: "centuries" }, { value: 2e3, unit: "centuries" }, s.y),
102
- i({ value: 200, unit: "centuries" }, { value: 5e3, unit: "centuries" }, s.y),
103
- i({ value: 500, unit: "centuries" }, { value: 1e4, unit: "centuries" }, s.y),
104
- i({ value: 1e3, unit: "centuries" }, { value: 2e4, unit: "centuries" }, s.y)
55
+ i({ value: 10, unit: "milliseconds" }, s.sf),
56
+ i({ value: 20, unit: "milliseconds" }, s.sf),
57
+ i({ value: 50, unit: "milliseconds" }, s.sf),
58
+ i({ value: 100, unit: "milliseconds" }, s.sf),
59
+ i({ value: 200, unit: "milliseconds" }, s.sf),
60
+ i({ value: 500, unit: "milliseconds" }, s.sf),
61
+ i({ value: 1, unit: "seconds" }, s.s),
62
+ i({ value: 2, unit: "seconds" }, s.s),
63
+ i({ value: 5, unit: "seconds" }, s.s),
64
+ i({ value: 10, unit: "seconds" }, s.s),
65
+ i({ value: 20, unit: "seconds" }, s.ms),
66
+ i({ value: 30, unit: "seconds" }, s.ms),
67
+ i({ value: 1, unit: "minutes" }, s.mi),
68
+ i({ value: 2, unit: "minutes" }, s.mi),
69
+ i({ value: 5, unit: "minutes" }, s.mi),
70
+ i({ value: 10, unit: "minutes" }, s.mi),
71
+ i({ value: 30, unit: "minutes" }, s.hm),
72
+ i({ value: 1, unit: "hours" }, s.hm),
73
+ i({ value: 2, unit: "hours" }, s.hm),
74
+ i({ value: 4, unit: "hours" }, s.hm),
75
+ i({ value: 8, unit: "hours" }, s.hm),
76
+ i({ value: 1, unit: "days" }, s.dm),
77
+ i({ value: 1, unit: "days" }, s.dm),
78
+ i({ value: 2, unit: "days" }, s.dm),
79
+ i({ value: 4, unit: "days" }, s.dm),
80
+ i({ value: 10, unit: "days" }, s.dm),
81
+ i({ value: 15, unit: "days" }, s.dm),
82
+ i({ value: 20, unit: "days" }, s.dm),
83
+ i({ value: 1, unit: "months" }, s.m),
84
+ i({ value: 3, unit: "months" }, s.m),
85
+ i({ value: 6, unit: "months" }, s.my),
86
+ i({ value: 1, unit: "years" }, s.y),
87
+ i({ value: 2, unit: "years" }, s.y),
88
+ i({ value: 4, unit: "years" }, s.y),
89
+ i({ value: 10, unit: "years" }, s.y),
90
+ i({ value: 20, unit: "years" }, s.y),
91
+ i({ value: 50, unit: "years" }, s.y),
92
+ i({ value: 100, unit: "years" }, s.y),
93
+ i({ value: 200, unit: "years" }, s.y),
94
+ i({ value: 500, unit: "years" }, s.y),
95
+ i({ value: 10, unit: "centuries" }, s.y),
96
+ i({ value: 20, unit: "centuries" }, s.y),
97
+ i({ value: 50, unit: "centuries" }, s.y),
98
+ i({ value: 100, unit: "centuries" }, s.y),
99
+ i({ value: 200, unit: "centuries" }, s.y),
100
+ i({ value: 500, unit: "centuries" }, s.y),
101
+ i({ value: 1e3, unit: "centuries" }, s.y),
102
+ i({ value: 2e3, unit: "centuries" }, s.y),
103
+ i({ value: 5e3, unit: "centuries" }, s.y),
104
+ i({ value: 1e4, unit: "centuries" }, s.y),
105
+ i({ value: 2e4, unit: "centuries" }, s.y)
105
106
  ];
106
107
  function _t(t) {
107
- return xt.map(({ minorTick: e, majorTick: n, majorTickFormat: a }, u) => {
108
- const c = new k(e), f = new k(n), m = c.toMilliseconds(), g = {
109
- ...a,
108
+ return xt.map(({ tick: e, tickFormat: n }) => {
109
+ const a = new st(e), m = a.toMilliseconds(), h = {
110
+ ...n,
110
111
  timeZone: t
111
112
  };
112
- return { minor: c, major: f, duration: m, format: g, index: u };
113
+ return { duration: m, format: h, timeInterval: a };
113
114
  });
114
115
  }
115
- var Et = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, N = (t) => {
116
+ var Et = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, I = (t) => {
116
117
  throw TypeError(t);
117
118
  }, r = (t, e, n, a) => {
118
- for (var u = a > 1 ? void 0 : a ? bt(e, n) : e, c = t.length - 1, f; c >= 0; c--)
119
- (f = t[c]) && (u = (a ? f(e, n, u) : f(u)) || u);
120
- return a && u && Et(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, T, P;
119
+ for (var m = a > 1 ? void 0 : a ? bt(e, n) : e, h = t.length - 1, f; h >= 0; h--)
120
+ (f = t[h]) && (m = (a ? f(e, n, m) : f(m)) || m);
121
+ return a && m && Et(e, n, m), m;
122
+ }, N = (t, e, n) => e.has(t) || I("Cannot " + n), M = (t, e, n) => (N(t, e, "read from private field"), n ? n.call(t) : e.get(t)), A = (t, e, n) => e.has(t) ? I("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), v = (t, e, n) => (N(t, e, "access private method"), n), _, u, D, $, E, T, P;
122
123
  let o = class extends V {
123
124
  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 = Y;
125
+ super(...arguments), A(this, u), A(this, _, new AbortController()), this.disabled = !1, this.format = "date", this.loadPersistedSettingsDisabled = !1, this.loop = !1, this.mode = "time-window", this.savePersistedSettingsDisabled = !1, this.stops = U;
125
126
  }
126
- get _adjustedMajorTickFormat() {
127
+ get _adjustedTickFormat() {
127
128
  const { era: t, timeZone: e } = this;
128
129
  return {
129
- ...this.majorTickFormat,
130
- era: this.majorTickFormat?.year ? t : void 0,
130
+ ...this.tickFormat,
131
+ era: this.tickFormat?.year ? t : void 0,
131
132
  timeZone: e
132
133
  };
133
134
  }
@@ -170,18 +171,18 @@ let o = class extends V {
170
171
  const { dates: a } = e;
171
172
  if (!a?.length)
172
173
  return;
173
- const u = a.sort((y, d) => y.getTime() - d.getTime());
174
+ const m = a.sort((y, d) => y.getTime() - d.getTime());
174
175
  if (!t?.start || !t?.end)
175
- return u;
176
- const { start: c, end: f } = t, m = c.getTime(), g = f.getTime();
177
- return u.filter((y) => {
176
+ return m;
177
+ const { start: h, end: f } = t, c = h.getTime(), g = f.getTime();
178
+ return m.filter((y) => {
178
179
  const d = y.getTime();
179
- return d >= m && d <= g;
180
+ return d >= c && d <= g;
180
181
  });
181
182
  }
182
183
  const n = e.timeExtent ?? t;
183
184
  if (n)
184
- return C(e) ? J(n, e.count) : Q(n, e.interval);
185
+ return C(e) ? Y(n, e.count) : J(n, e.interval);
185
186
  }
186
187
  get effectiveStopsEpoch() {
187
188
  return this.effectiveStops?.map((t) => t.getTime());
@@ -190,29 +191,29 @@ let o = class extends V {
190
191
  return (this.fullTimeExtent?.start?.getFullYear() ?? 0) < 0 ? "short" : void 0;
191
192
  }
192
193
  get interactive() {
193
- return !(this.disabled || this.state === "disabled" || this.timeZone === it);
194
+ return !(this.disabled || this.state === "disabled" || this.timeZone === et);
194
195
  }
195
196
  get isOutOfRange() {
196
197
  const { timeExtent: t, fullTimeExtent: e } = this, { start: n, end: a } = e ?? {};
197
198
  if (!n || !a || !t || t.isAllTime || t.isEmpty)
198
199
  return !0;
199
- const { start: u, end: c } = t ?? {}, f = u != null && (u < n || u > a), m = c != null && (c > a || c < n);
200
- return f || m;
201
- }
202
- get majorTickFormatter() {
203
- return (t) => this._formatDate(t, this._adjustedMajorTickFormat);
200
+ const { start: m, end: h } = t ?? {}, f = m != null && (m < n || m > a), c = h != null && (h > a || h < n);
201
+ return f || c;
204
202
  }
205
203
  set playRate(t) {
206
- t <= 0 || t > 1e3 * 60 * 60 || (this.state === "playing" && p(this, h, $).call(this), this._set("playRate", t));
204
+ t <= 0 || t > 1e3 * 60 * 60 || (this.state === "playing" && v(this, u, $).call(this), this._set("playRate", t));
207
205
  }
208
206
  get state() {
209
207
  return this.fullTimeExtent ? this._animationController ? "playing" : "ready" : "disabled";
210
208
  }
209
+ get tickFormatter() {
210
+ return (t) => this._formatDate(t, this._adjustedTickFormat);
211
+ }
211
212
  get tickFormats() {
212
213
  return _t(this.timeZone);
213
214
  }
214
215
  get timeZone() {
215
- return this._userTimeZone ?? this.viewTimeZone ?? st;
216
+ return this._userTimeZone ?? this.viewTimeZone ?? it;
216
217
  }
217
218
  set timeZone(t) {
218
219
  this._userTimeZone = t ?? void 0;
@@ -223,7 +224,7 @@ let o = class extends V {
223
224
  //#endregion
224
225
  //#region Public Methods
225
226
  destroy() {
226
- M(this, _).abort(), this.view?.unregisterComponent(this), p(this, h, T).call(this);
227
+ M(this, _).abort(), this.view?.unregisterComponent(this), v(this, u, T).call(this);
227
228
  }
228
229
  formatDate(t) {
229
230
  return this._formatDate(t, this._dateFormat);
@@ -241,8 +242,8 @@ let o = class extends V {
241
242
  const { fullTimeExtent: e, timeZone: n } = this;
242
243
  if (!e)
243
244
  return [];
244
- const { start: a, end: u } = e;
245
- return !a || !u ? [] : X(a, u, t, n).map((f) => f.getTime());
245
+ const { start: a, end: m } = e;
246
+ return !a || !m ? [] : Q(a, m, t, n).map((f) => f.getTime());
246
247
  }
247
248
  async initialize() {
248
249
  this.addHandles([
@@ -250,7 +251,7 @@ let o = class extends V {
250
251
  w(
251
252
  () => this.effectiveStops,
252
253
  (t) => {
253
- t && (this.timeExtent ??= Z(t, this.mode));
254
+ t && (this.timeExtent ??= R(t, this.mode));
254
255
  },
255
256
  { initial: !0 }
256
257
  ),
@@ -309,9 +310,9 @@ let o = class extends V {
309
310
  }
310
311
  }
311
312
  )
312
- ]), await H(
313
+ ]), await j(
313
314
  (async () => {
314
- if (await O(() => this.view?.ready, { signal: M(this, _).signal }), this.loadPersistedSettingsDisabled)
315
+ if (await Z(() => this.view?.ready, { signal: M(this, _).signal }), this.loadPersistedSettingsDisabled)
315
316
  return;
316
317
  const t = await nt(
317
318
  this.view?.map,
@@ -322,16 +323,16 @@ let o = class extends V {
322
323
  );
323
324
  }
324
325
  next() {
325
- p(this, h, E).call(this, { forward: !0, allowRestart: !1 });
326
+ v(this, u, E).call(this, { forward: !0, allowRestart: !1 });
326
327
  }
327
328
  play() {
328
- p(this, h, $).call(this);
329
+ v(this, u, $).call(this);
329
330
  }
330
331
  previous() {
331
- p(this, h, E).call(this, { forward: !1, allowRestart: !1 });
332
+ v(this, u, E).call(this, { forward: !1, allowRestart: !1 });
332
333
  }
333
334
  stop() {
334
- p(this, h, T).call(this);
335
+ v(this, u, T).call(this);
335
336
  }
336
337
  updateWebDocument(t) {
337
338
  if (this.savePersistedSettingsDisabled)
@@ -343,7 +344,7 @@ let o = class extends V {
343
344
  numStops: C(this.stops) ? this.stops.count : null,
344
345
  numThumbs: this.mode === "time-window" ? 2 : 1,
345
346
  stopDelay: this.playRate,
346
- stopInterval: tt(this.stops) ? this.stops.interval : null,
347
+ stopInterval: X(this.stops) ? this.stops.interval : null,
347
348
  stops: F(this.stops) ? this.stops.dates : null
348
349
  });
349
350
  t.widgets ??= new K(), t.widgets.timeSlider = e;
@@ -357,42 +358,42 @@ let o = class extends V {
357
358
  //#endregion
358
359
  };
359
360
  _ = /* @__PURE__ */ new WeakMap();
360
- h = /* @__PURE__ */ new WeakSet();
361
+ u = /* @__PURE__ */ new WeakSet();
361
362
  D = async function() {
362
363
  try {
363
364
  const { view: t } = this, e = this._animationController?.signal;
364
- await Promise.all([G(this.playRate, e), t && O(() => !t.updating, e)]);
365
+ await Promise.all([H(this.playRate, e), t && Z(() => !t.updating, e)]);
365
366
  } catch (t) {
366
- L(t) || at("error", "arcgis-slider-time", "animation error", { detail: { error: t } }), this._animationController = void 0;
367
+ G(t) || at("error", "arcgis-slider-time", "animation error", { detail: { error: t } }), this._animationController = void 0;
367
368
  return;
368
369
  }
369
- p(this, h, E).call(this, { forward: !0, allowRestart: !1 }), this._animationController && p(this, h, D).call(this);
370
+ v(this, u, E).call(this, { forward: !0, allowRestart: !1 }), this._animationController && v(this, u, D).call(this);
370
371
  };
371
372
  $ = function() {
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
+ v(this, u, T).call(this), this._animationController = new AbortController(), v(this, u, E).call(this, { forward: !0, allowRestart: !0 }), v(this, u, D).call(this);
373
374
  };
374
375
  E = function({ forward: t, allowRestart: e }) {
375
376
  const { _thumbPositions: n, effectiveStopsEpoch: a } = this;
376
377
  if (!n || !a)
377
378
  return;
378
- const u = n.map((m) => {
379
- const g = a.indexOf(m);
379
+ const m = n.map((c) => {
380
+ const g = a.indexOf(c);
380
381
  if (g !== -1)
381
382
  return g;
382
383
  const S = a.reduce(
383
- (y, d) => Math.abs(d - m) < Math.abs(y - m) ? d : y
384
+ (y, d) => Math.abs(d - c) < Math.abs(y - c) ? d : y
384
385
  );
385
386
  return a.indexOf(S);
386
- }), c = u.map((m) => m += t ? 1 : -1);
387
- if (c.some((m) => m < 0 || m > a.length - 1))
387
+ }), h = m.map((c) => c += t ? 1 : -1);
388
+ if (h.some((c) => c < 0 || c > a.length - 1))
388
389
  if (this.loop || e) {
389
- const m = Math.min(...u), g = Math.max(...u), y = (t ? u.map((d) => d - m) : u.map((d) => d + (a.length - 1 - g))).map((d) => a[d]);
390
- this.timeExtent = p(this, h, P).call(this, y);
390
+ const c = Math.min(...m), g = Math.max(...m), y = (t ? m.map((d) => d - c) : m.map((d) => d + (a.length - 1 - g))).map((d) => a[d]);
391
+ this.timeExtent = v(this, u, P).call(this, y);
391
392
  } else
392
393
  this.state === "playing" && this.stop();
393
394
  else {
394
- const m = c.map((g) => a[g]);
395
- this.timeExtent = p(this, h, P).call(this, m);
395
+ const c = h.map((g) => a[g]);
396
+ this.timeExtent = v(this, u, P).call(this, c);
396
397
  }
397
398
  };
398
399
  T = function() {
@@ -402,11 +403,11 @@ P = function(t) {
402
403
  if (!t)
403
404
  return;
404
405
  const e = [...t].sort((n, a) => n - a).map((n) => new Date(n));
405
- return Z(e, this.mode);
406
+ return R(e, this.mode);
406
407
  };
407
408
  r([
408
409
  l()
409
- ], o.prototype, "_adjustedMajorTickFormat", 1);
410
+ ], o.prototype, "_adjustedTickFormat", 1);
410
411
  r([
411
412
  l()
412
413
  ], o.prototype, "_animationController", 2);
@@ -458,12 +459,6 @@ r([
458
459
  r([
459
460
  l()
460
461
  ], o.prototype, "loop", 2);
461
- r([
462
- l()
463
- ], o.prototype, "majorTickFormat", 2);
464
- r([
465
- l()
466
- ], o.prototype, "majorTickFormatter", 1);
467
462
  r([
468
463
  l()
469
464
  ], o.prototype, "mode", 2);
@@ -477,8 +472,14 @@ r([
477
472
  l()
478
473
  ], o.prototype, "state", 1);
479
474
  r([
480
- l({ cast: U })
475
+ l({ cast: L })
481
476
  ], o.prototype, "stops", 2);
477
+ r([
478
+ l()
479
+ ], o.prototype, "tickFormat", 2);
480
+ r([
481
+ l()
482
+ ], o.prototype, "tickFormatter", 1);
482
483
  r([
483
484
  l()
484
485
  ], o.prototype, "tickFormats", 1);
@@ -497,10 +498,10 @@ r([
497
498
  o = r([
498
499
  ot("components.time-bar.TimeBarViewModel")
499
500
  ], o);
500
- const Tt = 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))}`, St = ct(o);
501
+ const Tt = 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-internal-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-internal-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))}`, St = ht(o);
501
502
  class Mt extends rt {
502
503
  constructor() {
503
- super(...arguments), this._viewModel = St(this), this.messages = vt({ name: "time-bar", blocking: !0 }), this.#t = ut(), this.#e = ht(), this.#i = (e) => {
504
+ super(...arguments), this._viewModel = St(this), this.messages = pt({ name: "time-bar", blocking: !0 }), this.#t = mt(), this.#e = ut(), this.#i = (e) => {
504
505
  this._settingsActionElement = e;
505
506
  }, 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 = dt()("effectiveStops", "fullTimeExtent", "state", "timeExtent"), this.arcgisReady = lt();
506
507
  }
@@ -537,15 +538,15 @@ class Mt extends rt {
537
538
  willUpdate(e) {
538
539
  e.has("messages") && (this._viewModel.locale = this.messages._lang);
539
540
  }
540
- #m(e) {
541
+ #c(e) {
541
542
  const { currentTarget: n } = e, a = (
542
543
  // prioritizes slotted element (if it exists)
543
- mt(n).at(0) ?? // fallback to default label
544
+ ct(n).at(0) ?? // fallback to default label
544
545
  n.querySelector("arcgis-time-bar-extent")
545
546
  );
546
547
  a && (a.viewModel = this._viewModel);
547
548
  }
548
- async #c() {
549
+ async #h() {
549
550
  switch (this.state) {
550
551
  case "disabled":
551
552
  case "playing":
@@ -555,30 +556,30 @@ class Mt extends rt {
555
556
  }
556
557
  }
557
558
  render() {
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
+ return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-disabled .floating=${this.toolbarKind === "floating"}>${this.#e === "ltr" ? p`${this.#n()}${this.#m()}${this.#l()}${this.#s()}` : p`${this.#l()}${this.#m()}${this.#n()}${this.#s()}`}</calcite-action-bar></div>`;
559
560
  }
560
561
  #s() {
561
- return v`<slot name=actions-end slot=actions-end></slot>`;
562
+ return p`<slot name=actions-end slot=actions-end></slot>`;
562
563
  }
563
564
  #n() {
564
- return this.showPrevious || this.showPlay || this.showNext ? v`<calcite-action-group>${this.#e === "ltr" ? v`${this.#o()}${this.#r()}${this.#a()}` : v`${this.#a()}${this.#r()}${this.#o()}`}</calcite-action-group>` : null;
565
+ return this.showPrevious || this.showPlay || this.showNext ? p`<calcite-action-group>${this.#e === "ltr" ? p`${this.#o()}${this.#r()}${this.#a()}` : p`${this.#a()}${this.#r()}${this.#o()}`}</calcite-action-group>` : null;
565
566
  }
566
567
  #a() {
567
- return this.showNext ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=forward @click=${this.next} .text=${this.messages.next}></calcite-action>` : null;
568
+ return this.showNext ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=forward @click=${this.next} .text=${this.messages.next}></calcite-action>` : null;
568
569
  }
569
570
  #o() {
570
- return this.showPlay ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length} .icon=${this.state === "playing" ? "pause-f" : "play-f"} @click=${this.#c} .text=${this.state === "playing" ? this.messages.stop : this.messages.play}></calcite-action>` : null;
571
+ return this.showPlay ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length} .icon=${this.state === "playing" ? "pause-f" : "play-f"} @click=${this.#h} .text=${this.state === "playing" ? this.messages.stop : this.messages.play}></calcite-action>` : null;
571
572
  }
572
573
  #r() {
573
- return this.showPrevious ? v`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=reverse @click=${this.previous} .text=${this.messages.previous}></calcite-action>` : null;
574
+ return this.showPrevious ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing"} icon=reverse @click=${this.previous} .text=${this.messages.previous}></calcite-action>` : null;
574
575
  }
575
576
  #l() {
576
- return this.showSettings ? v`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal ${A(this.#i)}></calcite-action>${this._settingsActionElement ? v`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${() => {
577
+ return this.showSettings ? p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal ${k(this.#i)}></calcite-action>${this._settingsActionElement ? p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${() => {
577
578
  this.#t.value?.navigateToOverview();
578
- }} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${A(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>` : void 0}</calcite-action-group>` : null;
579
+ }} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${k(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>` : void 0}</calcite-action-group>` : null;
579
580
  }
580
- #u() {
581
- return v`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent class="label" .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`;
581
+ #m() {
582
+ return p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#c}><arcgis-time-bar-extent class="label" .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`;
582
583
  }
583
584
  }
584
585
  W("arcgis-time-bar", Mt);
@@ -40,8 +40,7 @@ export type Stops = StopsByCount | StopsByDates | StopsByInterval;
40
40
  export interface TickFormat {
41
41
  duration: number;
42
42
  format: DateTimeFormatOptions;
43
- major: TimeInterval;
44
- minor: TimeInterval;
43
+ timeInterval: TimeInterval;
45
44
  }
46
45
 
47
46
  export type ToolbarKind = "docked" | "floating";
@@ -6,6 +6,7 @@ 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 [content-end] - A slot that displays ticks at the end of the slider. If not provided, default ticks will be rendered.
9
10
  * @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
11
  * @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
12
  * @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.