@arcgis/map-components 5.2.0-next.1 → 5.2.0-next.3

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 (123) hide show
  1. package/dist/cdn/24UHFJSD.js +2 -0
  2. package/dist/cdn/2MJTTQRU.js +2 -0
  3. package/dist/cdn/{CXNLXDLW.js → 2THVOG4Y.js} +1 -1
  4. package/dist/cdn/6N233F4I.js +2 -0
  5. package/dist/cdn/{BDDXZ4ML.js → A7P3DUN2.js} +1 -1
  6. package/dist/cdn/AEV7DYPK.js +2 -0
  7. package/dist/cdn/{CZ3FVANK.js → AOC4VUP6.js} +1 -1
  8. package/dist/cdn/{ZNYLFGEB.js → CUMFJ3AY.js} +1 -1
  9. package/dist/cdn/{D5CSONNZ.js → FT2LXOKH.js} +1 -1
  10. package/dist/cdn/FZNGDLO6.js +2 -0
  11. package/dist/cdn/{ICMAOGTU.js → GRF2FJN5.js} +1 -1
  12. package/dist/cdn/{IAPVYBIO.js → JBRTOHPW.js} +1 -1
  13. package/dist/cdn/JBWWGDI5.js +2 -0
  14. package/dist/cdn/JQVWY2TG.js +2 -0
  15. package/dist/cdn/L5DJYP26.js +2 -0
  16. package/dist/cdn/P2YOSZ4V.js +2 -0
  17. package/dist/cdn/{MJYIEJPU.js → P3TXSVMD.js} +2 -2
  18. package/dist/cdn/PYZZBY6S.js +2 -0
  19. package/dist/cdn/QM2RBDFO.js +4 -0
  20. package/dist/cdn/QY5F7WAO.js +2 -0
  21. package/dist/cdn/RL5PFJGE.js +2 -0
  22. package/dist/cdn/S37FED24.js +2 -0
  23. package/dist/cdn/THRRGHTM.js +2 -0
  24. package/dist/cdn/{UHHTJK2I.js → WA7JHFV4.js} +1 -1
  25. package/dist/cdn/{RMW557ZN.js → XKPUIYHL.js} +1 -1
  26. package/dist/cdn/{GSMQDS7C.js → Y27ZQGV5.js} +1 -1
  27. package/dist/cdn/{Y4LAL4D3.js → Y3B5PQ5E.js} +1 -1
  28. package/dist/cdn/{SITKA5S5.js → YABPKPDP.js} +1 -1
  29. package/dist/cdn/ZF7CLHYV.js +2 -0
  30. package/dist/cdn/index.js +1 -1
  31. package/dist/chunks/useArcgisViewReadyError.js +60 -111
  32. package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
  33. package/dist/components/arcgis-daylight/customElement.js +98 -112
  34. package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
  35. package/dist/components/arcgis-feature-table/customElement.js +2 -2
  36. package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
  37. package/dist/components/arcgis-features-next/customElement.js +69 -63
  38. package/dist/components/arcgis-features-next/index.js +1 -0
  39. package/dist/components/arcgis-link-chart/customElement.d.ts +10 -3
  40. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  41. package/dist/components/arcgis-map/customElement.d.ts +10 -3
  42. package/dist/components/arcgis-map/customElement.js +9 -9
  43. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
  44. package/dist/components/arcgis-popup/customElement.d.ts +2 -0
  45. package/dist/components/arcgis-popup/customElement.js +9 -9
  46. package/dist/components/arcgis-scene/customElement.d.ts +10 -3
  47. package/dist/components/arcgis-scene/customElement.js +24 -24
  48. package/dist/components/arcgis-search/customElement.js +6 -6
  49. package/dist/components/arcgis-video/customElement.d.ts +15 -2
  50. package/dist/components/arcgis-video/customElement.js +5 -5
  51. package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
  52. package/dist/components/arcgis-video-player/customElement.js +14 -11
  53. package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
  54. package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
  55. package/dist/components/arcgis-video-player-settings/index.js +1 -0
  56. package/dist/docs/api.json +1 -1
  57. package/dist/docs/docs.json +1 -1
  58. package/dist/docs/vscode.html-custom-data.json +1 -1
  59. package/dist/docs/web-types.json +1 -1
  60. package/dist/loader.js +8 -8
  61. package/dist/types/lumina.d.ts +4 -4
  62. package/dist/types/preact.d.ts +4 -4
  63. package/dist/types/react.d.ts +4 -4
  64. package/dist/types/stencil.d.ts +4 -4
  65. package/package.json +4 -4
  66. package/dist/cdn/4XR7RDUC.js +0 -2
  67. package/dist/cdn/65P3TECS.js +0 -2
  68. package/dist/cdn/6NEHIRSM.js +0 -2
  69. package/dist/cdn/7HVDHWKE.js +0 -2
  70. package/dist/cdn/7LPXFLXF.js +0 -2
  71. package/dist/cdn/CPQQEWKH.js +0 -2
  72. package/dist/cdn/CWWTUOR7.js +0 -2
  73. package/dist/cdn/FNOJC6RY.js +0 -2
  74. package/dist/cdn/J6G5UUNA.js +0 -2
  75. package/dist/cdn/JH45FDUO.js +0 -2
  76. package/dist/cdn/KRJOFH5A.js +0 -4
  77. package/dist/cdn/NEXYYXWU.js +0 -2
  78. package/dist/cdn/QZPKGHKG.js +0 -2
  79. package/dist/cdn/TFLKRVDZ.js +0 -2
  80. package/dist/cdn/X4COPBRD.js +0 -2
  81. package/dist/cdn/ZCULSTYU.js +0 -2
  82. /package/dist/cdn/{EACNQTOQ.js → 24HADOKV.js} +0 -0
  83. /package/dist/cdn/{VF6C5V2D.js → 27HHZNMM.js} +0 -0
  84. /package/dist/cdn/{NBH6PROL.js → 2G4VQVBD.js} +0 -0
  85. /package/dist/cdn/{IJMXE77N.js → 2LKEXUGD.js} +0 -0
  86. /package/dist/cdn/{M63QHTM6.js → 3JU2AHMP.js} +0 -0
  87. /package/dist/cdn/{DXLEA2EP.js → 3YVA4NJL.js} +0 -0
  88. /package/dist/cdn/{6R766RG6.js → 6FT2R5PB.js} +0 -0
  89. /package/dist/cdn/{RKUTQD6Q.js → 744JVRBH.js} +0 -0
  90. /package/dist/cdn/{73S5NFVN.js → A4S3GECZ.js} +0 -0
  91. /package/dist/cdn/{W2JV27PM.js → ADD3R54T.js} +0 -0
  92. /package/dist/cdn/{HGQ44436.js → AK2M26FE.js} +0 -0
  93. /package/dist/cdn/{PE2SVZDC.js → APMRTXPD.js} +0 -0
  94. /package/dist/cdn/{R2EB7EHT.js → AT6DOX43.js} +0 -0
  95. /package/dist/cdn/{ECVDZYOP.js → BRANLHXP.js} +0 -0
  96. /package/dist/cdn/{RVUYYH7M.js → CDAV4NEB.js} +0 -0
  97. /package/dist/cdn/{UPU33OD4.js → CTMF7NFP.js} +0 -0
  98. /package/dist/cdn/{NT3F6SCH.js → FUTB3TZA.js} +0 -0
  99. /package/dist/cdn/{527J47AJ.js → FYDZH6BL.js} +0 -0
  100. /package/dist/cdn/{4JEJXGJU.js → GLRISNYR.js} +0 -0
  101. /package/dist/cdn/{3N4S6FME.js → HH3DMGSF.js} +0 -0
  102. /package/dist/cdn/{2EP5VXD6.js → HQPBHWPK.js} +0 -0
  103. /package/dist/cdn/{WP4KFUY3.js → HUYCG6D3.js} +0 -0
  104. /package/dist/cdn/{342CXNII.js → IA3NCWIB.js} +0 -0
  105. /package/dist/cdn/{3X7ZHD6L.js → IBGSVDSQ.js} +0 -0
  106. /package/dist/cdn/{XX2NQ7F7.js → KEGLDP4A.js} +0 -0
  107. /package/dist/cdn/{GIM5WRSV.js → KIZ3ARHJ.js} +0 -0
  108. /package/dist/cdn/{AXN2DJ6L.js → MLV3GXE7.js} +0 -0
  109. /package/dist/cdn/{COD4GW2E.js → NYHNV75B.js} +0 -0
  110. /package/dist/cdn/{2TRD5SF7.js → O2CLPWU5.js} +0 -0
  111. /package/dist/cdn/{TBYXPWDW.js → PMWIRBWT.js} +0 -0
  112. /package/dist/cdn/{3IBA2E3M.js → Q5PJLESJ.js} +0 -0
  113. /package/dist/cdn/{E4CZXX27.js → QI5WIEJM.js} +0 -0
  114. /package/dist/cdn/{VQSQJFKX.js → SOOQCCHH.js} +0 -0
  115. /package/dist/cdn/{M7EKIG3O.js → SWYSBYOY.js} +0 -0
  116. /package/dist/cdn/{7EFRKXP6.js → TIRTPJYQ.js} +0 -0
  117. /package/dist/cdn/{7NPPDW6X.js → UUUPIG6P.js} +0 -0
  118. /package/dist/cdn/{7JIQFRV4.js → VHB2BYFO.js} +0 -0
  119. /package/dist/cdn/{7RZWWLDN.js → WFJH7WES.js} +0 -0
  120. /package/dist/cdn/{YDJ7YXWL.js → XPS7ZSFJ.js} +0 -0
  121. /package/dist/cdn/{SMZ3OJKR.js → XVY5OKH2.js} +0 -0
  122. /package/dist/cdn/{IYDUUPIY.js → YJPDBYVX.js} +0 -0
  123. /package/dist/cdn/{V4CD5PGC.js → ZX5J6SMV.js} +0 -0
@@ -5,19 +5,19 @@ import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import f from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
6
6
  import { LitElement as g, createEvent as l, safeClassMap as m } from "@arcgis/lumina";
7
7
  import { usePropertyChange as v } from "@arcgis/lumina/controllers";
8
- import { classes as _ } from "@arcgis/toolkit/dom";
9
- import { createRef as w, ref as p } from "lit/directives/ref.js";
10
- import { u as y } from "../../chunks/useT9n.js";
11
- import { m as $ } from "../../chunks/useViewModel.js";
12
- import { g as V } from "../../chunks/globalCss.js";
8
+ import { classes as p } from "@arcgis/toolkit/dom";
9
+ import { createRef as _, ref as y } from "lit/directives/ref.js";
10
+ import { u as w } from "../../chunks/useT9n.js";
11
+ import { m as V } from "../../chunks/useViewModel.js";
12
+ import { g as $ } from "../../chunks/globalCss.js";
13
13
  import { n as r } from "../../chunks/video-utils.js";
14
- const M = u`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, b = $(f);
14
+ const M = u`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, b = V(f);
15
15
  class T extends g {
16
16
  constructor() {
17
- super(...arguments), this.messages = y({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = w(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
17
+ super(...arguments), this.messages = w({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = _(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this._loopPlayback = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.operationalDataVisible = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
18
18
  }
19
19
  static {
20
- this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, hideHeader: 5, view: 0 };
20
+ this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, _loopPlayback: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, operationalDataVisible: 5, hideHeader: 5, view: 0 };
21
21
  }
22
22
  static {
23
23
  this.styles = M;
@@ -43,11 +43,14 @@ class T extends g {
43
43
  t(() => this.layer?.isLive, (i) => {
44
44
  this._isLive = i ?? void 0;
45
45
  }, { initial: !0 }),
46
+ t(() => this.layer?.playbackRate, (i) => {
47
+ typeof i == "number" && this.viewModel.changePlaybackSpeed(i);
48
+ }, { initial: !0 }),
46
49
  t(() => this.viewModel.view?.map, () => this.requestUpdate())
47
50
  ]);
48
51
  }
49
52
  render() {
50
- return e`<div class=${m(_(this.inline ? "inline" : "root", V.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
53
+ return e`<div class=${m(p(this.inline ? "inline" : "root", $.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
51
54
  }
52
55
  _renderLoadingScrim() {
53
56
  return this._videoViewReady ? null : e`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
@@ -56,9 +59,9 @@ class T extends g {
56
59
  return this._isBuffering ? e`<calcite-progress type=indeterminate></calcite-progress>` : null;
57
60
  }
58
61
  _renderVideoSection() {
59
- return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${() => {
62
+ return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
60
63
  this._videoViewReady = !0, this.arcgisVideoReady.emit();
61
- }} ${p(this._videoViewRef)}></arcgis-video>`;
64
+ }} ${y(this._videoViewRef)}></arcgis-video>`;
62
65
  }
63
66
  _renderSlider() {
64
67
  return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
@@ -1,12 +1,12 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as p } from "../../chunks/runtime.js";
2
+ import { c as b } from "../../chunks/runtime.js";
3
3
  import { html as i } from "lit";
4
- import { watch as b } from "@arcgis/core/core/reactiveUtils.js";
5
- import { LitElement as w } from "@arcgis/lumina";
6
- function u(o) {
7
- return o.followingMode === "none" ? "circle-disallowed" : o.followingMode === "follow-sensor" ? "zoom-to-object" : o.followingMode === "follow-frame" ? "follow" : "video";
4
+ import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as h } from "@arcgis/lumina";
6
+ function u(a) {
7
+ return a.followingMode === "none" ? "circle-disallowed" : a.followingMode === "follow-sensor" ? "zoom-to-object" : a.followingMode === "follow-frame" ? "follow" : "video";
8
8
  }
9
- class h extends w {
9
+ class v extends h {
10
10
  constructor() {
11
11
  super(...arguments), this._disabled = !1;
12
12
  }
@@ -15,25 +15,27 @@ class h extends w {
15
15
  }
16
16
  loaded() {
17
17
  this.manager.onLifecycle(() => [
18
- b(() => this.viewModel.state, (e) => {
18
+ w(() => this.viewModel.state, (e) => {
19
19
  this._disabled = e === "not-ready" || e === "waiting";
20
20
  }, { initial: !0 })
21
21
  ]);
22
22
  }
23
23
  render() {
24
- const { viewModel: e, messages: l, _disabled: a } = this, t = e.currentTime > 0, c = !!e.layer?.telemetry?.sensorLocation, n = !!e.layer?.telemetry?.sensorTrail, r = !!e.layer?.telemetry?.lineOfSight, d = !!e.layer?.telemetry?.frameCenter, s = !!e.layer?.telemetry?.frameOutline, m = !!e.layer?.groundControlPoints, g = i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
24
+ const { viewModel: e, messages: l, _disabled: o } = this, t = e.currentTime > 0, c = !!e.layer?.telemetry?.sensorLocation, n = !!e.layer?.telemetry?.sensorPath, r = !!e.layer?.telemetry?.sensorTrail, d = !!e.layer?.telemetry?.lineOfSight, m = !!e.layer?.telemetry?.frameCenter, s = !!e.layer?.telemetry?.frameOutline, g = !!e.layer?.groundControlPoints, $ = i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
25
25
  e.toggleSensorDisplay();
26
- }} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t && !r} .label=${l.sightLine} @click=${() => {
26
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t && !d} .label=${l.sightLine} @click=${() => {
27
27
  e.toggleSensorSightLineDisplay();
28
- }} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t && !n} .label=${l.sensorTrail} @click=${() => {
28
+ }} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t && !n} .label=${l.sensorPath} @click=${() => {
29
+ e.toggleSensorPathDisplay();
30
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorPath}></calcite-list-item><calcite-list-item .disabled=${t && !r} .label=${l.sensorTrail} @click=${() => {
29
31
  e.toggleSensorTrailDisplay();
30
- }} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t && !d} .label=${l.frameCenter} @click=${() => {
32
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t && !m} .label=${l.frameCenter} @click=${() => {
31
33
  e.toggleFrameCenterDisplay();
32
34
  }} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t && !s} .label=${l.frameOutline} @click=${() => {
33
35
  e.toggleFrameOutlineDisplay();
34
- }} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t && !m} .label=${l.frame} @click=${() => {
36
+ }} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t && !g} .label=${l.frame} @click=${() => {
35
37
  e.toggleFrameDisplay();
36
- }} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${a} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`, f = i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${() => {
38
+ }} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`, y = i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${() => {
37
39
  e.followingMode = "none";
38
40
  }} .selected=${e.followingMode === "none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
39
41
  e.followingMode = "follow-sensor";
@@ -41,11 +43,11 @@ class h extends w {
41
43
  e.followingMode = "follow-frame";
42
44
  }} .selected=${e.followingMode === "follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t && !s && !c} .label=${l.video} @click=${() => {
43
45
  e.followingMode = "follow-both";
44
- }} .selected=${e.followingMode === "follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${a} .icon=${u(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`, $ = i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`, y = i`<calcite-action alignment=center .disabled=${a} icon=feature-details @click=${() => this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;
45
- return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[g, f, $, y]}</calcite-action-bar>`;
46
+ }} .selected=${e.followingMode === "follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${u(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`, f = i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`, p = i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${() => this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;
47
+ return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[$, y, f, p]}</calcite-action-bar>`;
46
48
  }
47
49
  }
48
- p("arcgis-video-player-controls-group", h);
50
+ b("arcgis-video-player-controls-group", v);
49
51
  export {
50
- h as VideoPlayerControlsGroup
52
+ v as VideoPlayerControlsGroup
51
53
  };
@@ -1,42 +1,44 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as $ } from "../../chunks/runtime.js";
2
+ import { c as v } from "../../chunks/runtime.js";
3
3
  import { html as c } from "lit";
4
4
  import d from "@arcgis/core/Color.js";
5
5
  import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { LitElement as _ } from "@arcgis/lumina";
7
- import { useDirection as v } from "@arcgis/lumina/controllers";
8
- const u = ["Auto"], f = [0.25, 0.5, 1, 1.5, 2], r = new d([255, 127, 0]);
9
- function a(o, i) {
10
- return `${i.format(o)}x`;
7
+ import { useDirection as b } from "@arcgis/lumina/controllers";
8
+ const u = ["Auto"], w = [0.25, 0.5, 1, 1.5, 2], r = new d([255, 127, 0]);
9
+ function o(s, t) {
10
+ return `${t.format(s)}x`;
11
11
  }
12
- class b extends _ {
12
+ class k extends _ {
13
13
  constructor() {
14
- super(...arguments), this._color = null, this._speed = 1, this._quality = "Auto", this._direction = v(), this._disabled = !1;
14
+ super(...arguments), this._color = null, this._speed = 1, this._quality = "Auto", this._direction = b(), this._disabled = !1;
15
15
  }
16
16
  static {
17
17
  this.properties = { _disabled: 16, _active: 16, viewModel: 0, messages: 0 };
18
18
  }
19
19
  loaded() {
20
20
  this.manager.onLifecycle(() => [
21
- g(() => this.viewModel.state, (i) => {
22
- this._disabled = i === "not-ready" || i === "waiting";
21
+ g(() => this.viewModel.state, (t) => {
22
+ this._disabled = t === "not-ready" || t === "waiting";
23
23
  }, { initial: !0 })
24
24
  ]);
25
25
  }
26
26
  render() {
27
- const { viewModel: i, messages: e } = this, l = this._direction === "rtl" ? "chevron-left" : "chevron-right", s = new Intl.NumberFormat(this.messages._lang, {
27
+ const { viewModel: t, messages: e } = this, l = this._direction === "rtl" ? "chevron-left" : "chevron-right", a = new Intl.NumberFormat(this.messages._lang, {
28
28
  minimumFractionDigits: 0,
29
29
  maximumFractionDigits: 2
30
- }), h = c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active === "speed"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${f.map((t) => c`<calcite-list-item .disabled=${i?.layer?.isLive && t !== 1} .label=${a(t, s)} @click=${() => {
31
- this._speed = t, i.changePlaybackSpeed(t);
32
- }} .selected=${t === this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, m = c`<calcite-flow-item .heading=${e.quality} .selected=${this._active === "quality"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${u.map((t) => c`<calcite-list-item .label=${t} @click=${() => this._quality = t} .selected=${t === this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, p = c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active === "color"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex() ?? r.toHex()} @calciteColorPickerChange=${({ currentTarget: t }) => {
33
- const n = t.value?.toString() ?? null;
34
- this._color = n ? new d(n) : null, this._color && i.changeGraphicsColor(this._color);
30
+ }), h = c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active === "speed"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${w.map((i) => c`<calcite-list-item .disabled=${t?.layer?.isLive && i !== 1} .label=${o(i, a)} @click=${() => {
31
+ this._speed = i, t.changePlaybackSpeed(i);
32
+ }} .selected=${i === this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, m = c`<calcite-flow-item .heading=${e.quality} .selected=${this._active === "quality"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${u.map((i) => c`<calcite-list-item .label=${i} @click=${() => this._quality = i} .selected=${i === this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, p = c`<calcite-flow-item .heading=${e.loopPlayback} .selected=${this._active === "loop"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .label=${e.loop} expanded><calcite-switch .disabled=${t?.layer?.isLive} .label=${e.loopPlayback} .checked=${t?.layer?.loop} .labelTextStart=${e.loop} @calciteSwitchChange=${() => {
33
+ t.toggleLoopPlayback();
34
+ }}></calcite-switch></calcite-block></calcite-flow-item>`, $ = c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active === "color"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex() ?? r.toHex()} @calciteColorPickerChange=${({ currentTarget: i }) => {
35
+ const n = i.value?.toString() ?? null;
36
+ this._color = n ? new d(n) : null, this._color && t.changeGraphicsColor(this._color);
35
37
  }}></calcite-color-picker></calcite-block></calcite-flow-item>`;
36
- return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${() => this._active = void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.speed} @click=${() => this._active = "speed"}><div slot=content-end><calcite-chip .label=${a(this._speed, s)} scale=s>${a(this._speed, s)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${() => this._active = "quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${() => this._active = "color"}><calcite-color-picker-swatch .color=${this._color?.toString() ?? r.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active === "speed" ? h : null}${this._active === "quality" ? m : null}${this._active === "color" ? p : null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`;
38
+ return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${() => this._active = void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.loop} @click=${() => this._active = "loop"}><div slot=content-end><calcite-chip .label=${e.loopPlayback} .icon=${this.viewModel.layer?.loop ? "recurrence" : "break-recurrence"}></calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.speed} @click=${() => this._active = "speed"}><div slot=content-end><calcite-chip .label=${o(this._speed, a)} scale=s>${o(this._speed, a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${() => this._active = "quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${() => this._active = "color"}><calcite-color-picker-swatch .color=${this._color?.toString() ?? r.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active === "speed" ? h : null}${this._active === "quality" ? m : null}${this._active === "color" ? $ : null}${this._active === "loop" ? p : null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`;
37
39
  }
38
40
  }
39
- $("arcgis-video-player-settings", b);
41
+ v("arcgis-video-player-settings", k);
40
42
  export {
41
- b as VideoPlayerSettings
43
+ k as VideoPlayerSettings
42
44
  };
@@ -2,6 +2,7 @@ import "@esri/calcite-components/components/calcite-flow-item";
2
2
  import "@esri/calcite-components/components/calcite-list";
3
3
  import "@esri/calcite-components/components/calcite-list-item";
4
4
  import "@esri/calcite-components/components/calcite-block";
5
+ import "@esri/calcite-components/components/calcite-switch";
5
6
  import "@esri/calcite-components/components/calcite-color-picker";
6
7
  import "@esri/calcite-components/components/calcite-popover";
7
8
  import "@esri/calcite-components/components/calcite-flow";