@arcgis/map-components 5.1.0-next.75 → 5.1.0-next.76
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.
- package/dist/cdn/{FM3AT2SL.js → AG7LUCV3.js} +1 -1
- package/dist/cdn/G7KHJU6J.js +2 -0
- package/dist/cdn/{ACAAYGKC.js → HL4M23YL.js} +1 -1
- package/dist/cdn/MNXYDKVS.js +2 -0
- package/dist/cdn/PP7ZT3L2.js +2 -0
- package/dist/cdn/QW4QGAIG.js +2 -0
- package/dist/cdn/SD7DMWPD.js +2 -0
- package/dist/cdn/{KGLUFWJ7.js → T66WG4I4.js} +1 -1
- package/dist/cdn/V2HLEYHF.js +3 -0
- package/dist/cdn/{3TVO5LIN.js → WO2BX7U2.js} +1 -1
- package/dist/cdn/XOTOQOK6.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +20 -19
- package/dist/chunks/video-utils.js +12 -0
- package/dist/components/arcgis-feature/customElement.js +75 -53
- package/dist/components/arcgis-feature-media/customElement.js +222 -211
- package/dist/components/arcgis-feature-relationship/customElement.js +69 -68
- package/dist/components/arcgis-features/customElement.d.ts +2 -2
- package/dist/components/arcgis-features/customElement.js +44 -44
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-video-player/customElement.js +22 -21
- package/dist/components/arcgis-video-player-action-bar/customElement.js +14 -17
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/2IXIUNGH.js +0 -2
- package/dist/cdn/CQCKW6L4.js +0 -2
- package/dist/cdn/EXZFAJW4.js +0 -3
- package/dist/cdn/GHSQJ4UC.js +0 -2
- package/dist/cdn/QPMWCCXQ.js +0 -2
- package/dist/cdn/YCM6SOEX.js +0 -2
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { usePropertyChange as d } from "@arcgis/lumina/controllers";
|
|
5
|
-
import { classes as h } from "@arcgis/toolkit/dom";
|
|
6
|
-
import c from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as u, html as e } from "lit";
|
|
7
4
|
import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import f from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
|
|
6
|
+
import { LitElement as g, createEvent as l, safeClassMap as m } from "@arcgis/lumina";
|
|
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";
|
|
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);
|
|
15
|
+
class T extends g {
|
|
15
16
|
constructor() {
|
|
16
|
-
super(...arguments), this.messages =
|
|
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
18
|
}
|
|
18
19
|
static {
|
|
19
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
21
|
}
|
|
21
22
|
static {
|
|
22
|
-
this.styles =
|
|
23
|
+
this.styles = M;
|
|
23
24
|
}
|
|
24
25
|
get followingMode() {
|
|
25
26
|
return this.viewModel.followingMode;
|
|
@@ -32,9 +33,9 @@ class $ extends u {
|
|
|
32
33
|
}
|
|
33
34
|
loaded() {
|
|
34
35
|
this.manager.onLifecycle(() => [
|
|
35
|
-
t(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.
|
|
36
|
-
const { buffered: i, currentTime:
|
|
37
|
-
this._duration = s, this._currentTime =
|
|
36
|
+
t(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.buffered, this.viewModel.ended], () => {
|
|
37
|
+
const { buffered: i, currentTime: o, duration: n, ended: d } = this.viewModel, s = r(n), a = r(o), c = r(i);
|
|
38
|
+
this._duration = s, this._currentTime = a, this._bufferedValue = c / (s || 1), this._currentValue = a / (s || 1), this._isBuffering = !d && this._bufferedValue < this._currentValue;
|
|
38
39
|
}),
|
|
39
40
|
t(() => this.layer?.title, (i) => {
|
|
40
41
|
this._layerTitle = i ?? void 0;
|
|
@@ -46,7 +47,7 @@ class $ extends u {
|
|
|
46
47
|
]);
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
return e`<div class=${
|
|
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>`;
|
|
50
51
|
}
|
|
51
52
|
_renderLoadingScrim() {
|
|
52
53
|
return this._videoViewReady ? null : e`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
|
|
@@ -57,7 +58,7 @@ class $ extends u {
|
|
|
57
58
|
_renderVideoSection() {
|
|
58
59
|
return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${() => {
|
|
59
60
|
this._videoViewReady = !0, this.arcgisVideoReady.emit();
|
|
60
|
-
}} ${
|
|
61
|
+
}} ${p(this._videoViewRef)}></arcgis-video>`;
|
|
61
62
|
}
|
|
62
63
|
_renderSlider() {
|
|
63
64
|
return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
|
|
@@ -69,7 +70,7 @@ class $ extends u {
|
|
|
69
70
|
return this._metadataVisible ? e`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
h("arcgis-video-player", T);
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
T as ArcgisVideoPlayer
|
|
75
76
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import {
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
return l(Math.round(s) * 1e3, { minute: "2-digit", second: "2-digit" });
|
|
11
|
-
}
|
|
12
|
-
class g extends c {
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as a, html as e } from "lit";
|
|
4
|
+
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as r, safeClassMap as c } from "@arcgis/lumina";
|
|
6
|
+
import { classes as n } from "@arcgis/toolkit/dom";
|
|
7
|
+
import { f as t } from "../../chunks/video-utils.js";
|
|
8
|
+
const d = a`.toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2)}.timecode{color:var(--calcite-color-text-3);line-height:1.25rem}.controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.live-icon{color:var(--calcite-color-status-danger)}.controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`;
|
|
9
|
+
class v extends r {
|
|
13
10
|
static {
|
|
14
11
|
this.properties = { _isLive: 16, viewModel: 0, messages: 0, currentTime: 9, duration: 9, toggleMetadata: 0, inline: 5 };
|
|
15
12
|
}
|
|
16
13
|
static {
|
|
17
|
-
this.styles =
|
|
14
|
+
this.styles = d;
|
|
18
15
|
}
|
|
19
16
|
loaded() {
|
|
20
17
|
this.manager.onLifecycle(() => [
|
|
21
|
-
|
|
18
|
+
l(() => this.viewModel.layer?.isLive, (i) => {
|
|
22
19
|
this._isLive = i ?? void 0;
|
|
23
20
|
}, { initial: !0 })
|
|
24
21
|
]);
|
|
@@ -26,11 +23,11 @@ class g extends c {
|
|
|
26
23
|
render() {
|
|
27
24
|
const { messages: i } = this;
|
|
28
25
|
this._isLive === void 0 && (this._isLive = this.viewModel.layer?.isLive);
|
|
29
|
-
const
|
|
30
|
-
return e`<div class=${n(
|
|
26
|
+
const s = this._isLive ? t(this.currentTime) : `${t(this.currentTime)} / ${t(this.duration)}`;
|
|
27
|
+
return e`<div class=${c(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${i} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive ? e`<calcite-icon class="live-icon" icon=beacon></calcite-icon>` : null}${!this.inline || this._isLive ? e`<div class="timecode">${s}</div>` : null}</div>${this.inline ? null : e`<arcgis-video-player-controls-group class="controls-group" .messages=${i} .toggleMetadata=${() => this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`;
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
|
|
30
|
+
o("arcgis-video-player-action-bar", v);
|
|
34
31
|
export {
|
|
35
|
-
|
|
32
|
+
v as VideoPlayerActionBar
|
|
36
33
|
};
|