@arcgis/map-components 5.2.0-next.0 → 5.2.0-next.2
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/24UHFJSD.js +2 -0
- package/dist/cdn/2MJTTQRU.js +2 -0
- package/dist/cdn/{J23UDIAN.js → 43Q3TUPX.js} +1 -1
- package/dist/cdn/72IUGDSR.js +2 -0
- package/dist/cdn/A7P3DUN2.js +2 -0
- package/dist/cdn/AEV7DYPK.js +2 -0
- package/dist/cdn/{CZ3FVANK.js → AOC4VUP6.js} +1 -1
- package/dist/cdn/EWYSBOXF.js +2 -0
- package/dist/cdn/GVOCIBLC.js +2 -0
- package/dist/cdn/JBRTOHPW.js +2 -0
- package/dist/cdn/JBWWGDI5.js +2 -0
- package/dist/cdn/L5DJYP26.js +2 -0
- package/dist/cdn/P2YOSZ4V.js +2 -0
- package/dist/cdn/{NGGYUKKX.js → PRZ7EKB7.js} +1 -1
- package/dist/cdn/PYZZBY6S.js +2 -0
- package/dist/cdn/RL5PFJGE.js +2 -0
- package/dist/cdn/S37FED24.js +2 -0
- package/dist/cdn/THRRGHTM.js +2 -0
- package/dist/cdn/ZF7CLHYV.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +2 -2
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +60 -111
- package/dist/chunks/useLayerById.js +5 -5
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +98 -112
- package/dist/components/arcgis-directions/customElement.d.ts +5 -5
- package/dist/components/arcgis-directions/customElement.js +3 -3
- package/dist/components/arcgis-feature/customElement.d.ts +4 -1
- package/dist/components/arcgis-feature-next/customElement.d.ts +27 -65
- package/dist/components/arcgis-feature-table/customElement.d.ts +35 -20
- package/dist/components/arcgis-feature-table/customElement.js +36 -30
- package/dist/components/arcgis-features/customElement.d.ts +10 -11
- package/dist/components/arcgis-features-next/customElement.d.ts +61 -126
- package/dist/components/arcgis-features-next/customElement.js +69 -63
- package/dist/components/arcgis-features-next/index.js +1 -0
- package/dist/components/arcgis-link-chart/customElement.d.ts +10 -3
- package/dist/components/arcgis-link-chart/customElement.js +11 -11
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +10 -3
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +12 -12
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +23 -20
- package/dist/components/arcgis-popup/customElement.d.ts +7 -9
- package/dist/components/arcgis-popup/customElement.js +9 -9
- package/dist/components/arcgis-scene/customElement.d.ts +10 -3
- package/dist/components/arcgis-scene/customElement.js +24 -24
- package/dist/components/arcgis-search/customElement.d.ts +7 -0
- package/dist/components/arcgis-search/customElement.js +38 -38
- package/dist/components/arcgis-video/customElement.d.ts +15 -2
- package/dist/components/arcgis-video/customElement.js +5 -5
- package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
- package/dist/components/arcgis-video-player/customElement.js +14 -11
- package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
- package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
- package/dist/components/arcgis-video-player-settings/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +11 -11
- package/dist/types/lumina.d.ts +8 -8
- package/dist/types/preact.d.ts +8 -8
- package/dist/types/react.d.ts +8 -8
- package/dist/types/stencil.d.ts +8 -8
- package/package.json +4 -4
- package/dist/cdn/25DYY7HH.js +0 -2
- package/dist/cdn/274IEJH2.js +0 -2
- package/dist/cdn/4XR7RDUC.js +0 -2
- package/dist/cdn/7LPXFLXF.js +0 -2
- package/dist/cdn/AKNID6WJ.js +0 -2
- package/dist/cdn/CPQQEWKH.js +0 -2
- package/dist/cdn/IGXBF2RY.js +0 -2
- package/dist/cdn/IHDWD72J.js +0 -2
- package/dist/cdn/M4CPJTHZ.js +0 -2
- package/dist/cdn/NLHFLEWT.js +0 -2
- package/dist/cdn/OFUAKDTE.js +0 -2
- package/dist/cdn/TFLKRVDZ.js +0 -2
- package/dist/cdn/UZ3CMTNE.js +0 -2
- package/dist/cdn/WTGXVWSL.js +0 -2
- package/dist/cdn/YMUQ7JSB.js +0 -2
- package/dist/cdn/ZCULSTYU.js +0 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as _, html as
|
|
3
|
+
import { css as _, html as s } from "lit";
|
|
4
4
|
import { ref as v } from "lit/directives/ref.js";
|
|
5
5
|
import w from "@arcgis/core/widgets/Search/SearchViewModel.js";
|
|
6
6
|
import { LitElement as f, createEvent as b, renderElement as x, safeClassMap as M, nothing as S } from "@arcgis/lumina";
|
|
7
|
-
import { reEmitEvent as
|
|
8
|
-
import { a as
|
|
7
|
+
import { reEmitEvent as a } from "@arcgis/lumina/controllers/accessor";
|
|
8
|
+
import { a as h } from "../../chunks/maybe.js";
|
|
9
9
|
import { classes as y } from "@arcgis/toolkit/dom";
|
|
10
10
|
import { g as C } from "../../chunks/globalCss.js";
|
|
11
11
|
import { isAbortError as $ } from "@arcgis/core/core/promiseUtils.js";
|
|
12
12
|
import { m as R } from "../../chunks/useViewModel.js";
|
|
13
|
-
import { s as
|
|
14
|
-
import { substitute as
|
|
15
|
-
import { usePropertyChange as
|
|
16
|
-
import { u as
|
|
17
|
-
import { watch as
|
|
13
|
+
import { s as k } from "../../chunks/sr.js";
|
|
14
|
+
import { substitute as g } from "@arcgis/core/intl.js";
|
|
15
|
+
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
16
|
+
import { u as E } from "../../chunks/useT9n.js";
|
|
17
|
+
import { watch as u, on as T } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
18
|
const A = _`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, L = R(w);
|
|
19
|
-
function
|
|
20
|
-
return typeof
|
|
19
|
+
function p(n) {
|
|
20
|
+
return typeof n == "object" && n !== null && "openPopup" in n && "closePopup" in n;
|
|
21
21
|
}
|
|
22
22
|
class z extends f {
|
|
23
23
|
constructor() {
|
|
24
24
|
super(...arguments), this.viewModel = L(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this._handleSelectResult = (e) => {
|
|
25
25
|
const { name: t } = e.detail.result;
|
|
26
|
-
this._selectedMessage =
|
|
27
|
-
}, this.messages =
|
|
26
|
+
this._selectedMessage = g(this.messages.resultSelected, { resultName: t });
|
|
27
|
+
}, this.messages = E({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.hideSourcesMenu = !1, this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = D()("state"), this.arcgisReady = b(), this.arcgisSearchClear = a(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = a(() => this.viewModel, "search-complete"), this.arcgisSearchStart = a(() => this.viewModel, "search-start"), this.arcgisSelectResult = a(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = a(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = a(() => this.viewModel, "suggest-start");
|
|
28
28
|
}
|
|
29
29
|
static {
|
|
30
|
-
this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
30
|
+
this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, hideSourcesMenu: 5, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.styles = [A,
|
|
33
|
+
this.styles = [A, k];
|
|
34
34
|
}
|
|
35
35
|
get _isDisabled() {
|
|
36
36
|
const { state: e } = this.viewModel;
|
|
@@ -81,15 +81,15 @@ class z extends f {
|
|
|
81
81
|
}
|
|
82
82
|
loaded() {
|
|
83
83
|
this.listen("arcgisSelectResult", this._handleSelectResult), this.manager.onLifecycle(() => [
|
|
84
|
-
|
|
84
|
+
u(() => [this._searchResultRendererEl, this.viewModel?.defaultPopupTemplate], () => {
|
|
85
85
|
const e = this.viewModel?.defaultPopupTemplate, { _searchResultRendererEl: t } = this;
|
|
86
86
|
if (e && t) {
|
|
87
87
|
const i = document.createElement("div");
|
|
88
88
|
i.appendChild(t), e.content = i, this._searchResultRendererContentEl = t;
|
|
89
89
|
}
|
|
90
90
|
}, { initial: !0 }),
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
u(() => this.messages, (e) => this.viewModel.messages = e, { initial: !0 }),
|
|
92
|
+
u(() => this.viewModel?.resultGraphic, (e, t) => this._closePopup(t)),
|
|
93
93
|
T(() => this.viewModel, "select-result", (e) => {
|
|
94
94
|
const { popupEnabled: t } = e;
|
|
95
95
|
t && this._openPopup();
|
|
@@ -97,16 +97,16 @@ class z extends f {
|
|
|
97
97
|
]);
|
|
98
98
|
}
|
|
99
99
|
_addSearchResultRenderer() {
|
|
100
|
-
this._searchResultRendererEl = x(
|
|
100
|
+
this._searchResultRendererEl = x(s`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`);
|
|
101
101
|
}
|
|
102
102
|
_closePopup(e) {
|
|
103
103
|
const { referenceElement: t, view: i } = this;
|
|
104
|
-
|
|
104
|
+
p(t) && t.popupElement?.selectedFeature === e ? t?.closePopup() : i?.popup?.selectedFeature === e && i?.closePopup();
|
|
105
105
|
}
|
|
106
106
|
_openPopup() {
|
|
107
|
-
if (
|
|
107
|
+
if (p(this.referenceElement)) {
|
|
108
108
|
const { resultGraphic: e, resultLocation: t } = this.viewModel, i = { features: e ? [e] : [], location: t };
|
|
109
|
-
this.referenceElement?.openPopup(i)
|
|
109
|
+
this.referenceElement?.openPopup(i);
|
|
110
110
|
} else if (this.view) {
|
|
111
111
|
const { resultGraphic: e, resultLocation: t } = this.viewModel;
|
|
112
112
|
this.view.openPopup({
|
|
@@ -137,7 +137,7 @@ class z extends f {
|
|
|
137
137
|
this._useCurrentLocation();
|
|
138
138
|
return;
|
|
139
139
|
}
|
|
140
|
-
const i = JSON.parse(t), r = this.viewModel.suggestions?.find(({ sourceIndex:
|
|
140
|
+
const i = JSON.parse(t), r = this.viewModel.suggestions?.find(({ sourceIndex: o }) => o === i.sourceIndex)?.results?.find(({ key: o }) => `${o}` == `${i.key}`);
|
|
141
141
|
r && this.search(r);
|
|
142
142
|
}
|
|
143
143
|
async _useCurrentLocation() {
|
|
@@ -163,10 +163,10 @@ class z extends f {
|
|
|
163
163
|
r && (this.viewModel.activeSourceIndex = Number.parseInt(r, 10));
|
|
164
164
|
}
|
|
165
165
|
_cancelSuggest() {
|
|
166
|
-
this.activeMenu = "none", this._locateFailed = !1, this._showNoResults = !1, this._suggestController =
|
|
166
|
+
this.activeMenu = "none", this._locateFailed = !1, this._showNoResults = !1, this._suggestController = h(this._suggestController);
|
|
167
167
|
}
|
|
168
168
|
_cancelQueries() {
|
|
169
|
-
this._cancelSuggest(), this._searchController =
|
|
169
|
+
this._cancelSuggest(), this._searchController = h(this._searchController);
|
|
170
170
|
}
|
|
171
171
|
_scrollToTopSuggestion() {
|
|
172
172
|
this._autocompleteEl?.scrollContentTo({ top: 0 });
|
|
@@ -179,22 +179,22 @@ class z extends f {
|
|
|
179
179
|
return (e === -1 ? t.all : r?.name || t.untitledSource) || "";
|
|
180
180
|
}
|
|
181
181
|
render() {
|
|
182
|
-
return this._addSearchResultRenderer(),
|
|
182
|
+
return this._addSearchResultRenderer(), s`<div class=${M(y("root", C.widget))}><div class="sr-only" aria-live=polite>${this._selectedMessage}</div><div class="container">${this._renderSourcesMenu()}${this._renderForm()}</div></div>`;
|
|
183
183
|
}
|
|
184
184
|
_renderSourcesMenu() {
|
|
185
|
-
const {
|
|
186
|
-
return
|
|
185
|
+
const { hideSourcesMenu: e, messages: t, _isDisabled: i, _effectiveActiveMenu: r } = this, { allSources: o, searchAllEnabled: l } = this.viewModel;
|
|
186
|
+
return o.length > 1 && !e ? s`<calcite-dropdown class="dropdown" .disabled=${i} .open=${r === "source"} overlay-positioning=fixed .topLayerDisabled=${this.topLayerDisabled} @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${t.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${t.searchIn}>${l ? this._renderSource(-1) : null}${o.map((c, d) => this._renderSource(d)).toArray()}</calcite-dropdown-group></calcite-dropdown>` : null;
|
|
187
187
|
}
|
|
188
188
|
_renderUseCurrentLocation() {
|
|
189
189
|
const { _currentLocationValue: e } = this;
|
|
190
|
-
return
|
|
190
|
+
return s`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation ?? ""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`;
|
|
191
191
|
}
|
|
192
192
|
_renderAutocomplete() {
|
|
193
|
-
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder:
|
|
194
|
-
return
|
|
193
|
+
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder: o, searchTerm: l, state: c } = this.viewModel, d = this.label ?? t.searchButtonTitle ?? "";
|
|
194
|
+
return s`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${l} .label=${d} .loading=${c === "searching"} .maxLength=${r} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e === "suggestion"} overlay-positioning=fixed .placeholder=${o} .topLayerDisabled=${this.topLayerDisabled} title=${(l ? "" : o) ?? S} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${v(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`;
|
|
195
195
|
}
|
|
196
196
|
_renderForm() {
|
|
197
|
-
return
|
|
197
|
+
return s`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label ?? this.messages.searchButtonTitle ?? ""}</button></form>`;
|
|
198
198
|
}
|
|
199
199
|
_renderSuggestGroup(e) {
|
|
200
200
|
return e.results?.map((t) => this._renderSuggestion(t));
|
|
@@ -204,28 +204,28 @@ class z extends f {
|
|
|
204
204
|
return this._showNoResults ? null : this._showCurrentLocation ? this._renderUseCurrentLocation() : e?.map((t) => this._renderSuggestResults(t));
|
|
205
205
|
}
|
|
206
206
|
_renderSuggestResults(e) {
|
|
207
|
-
const { allSources: t, activeSourceIndex: i } = this.viewModel, { sourceIndex: r } = e,
|
|
208
|
-
return
|
|
207
|
+
const { allSources: t, activeSourceIndex: i } = this.viewModel, { sourceIndex: r } = e, o = e.results?.length, l = t.length > 1 && i === -1, c = this._getSourceName(r);
|
|
208
|
+
return o && l ? s`<calcite-autocomplete-item-group .heading=${c}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>` : this._renderSuggestGroup(e);
|
|
209
209
|
}
|
|
210
210
|
_renderSuggestion({ key: e, sourceIndex: t, text: i }) {
|
|
211
211
|
const r = {
|
|
212
212
|
key: e,
|
|
213
213
|
sourceIndex: t
|
|
214
214
|
};
|
|
215
|
-
return
|
|
215
|
+
return s`<calcite-autocomplete-item .heading=${i ?? this.messages.untitledResult ?? ""} .value=${JSON.stringify(r)}></calcite-autocomplete-item>`;
|
|
216
216
|
}
|
|
217
217
|
_renderSource(e) {
|
|
218
218
|
const t = this._getSourceName(e);
|
|
219
|
-
return
|
|
219
|
+
return s`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e === this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`;
|
|
220
220
|
}
|
|
221
221
|
_renderNoResultsWarning(e) {
|
|
222
|
-
const { messages: t } = this, i = e ?
|
|
222
|
+
const { messages: t } = this, i = e ? g(t.noResultsFoundForValue ?? "", {
|
|
223
223
|
value: `"${e}"`
|
|
224
224
|
}) : t.noResultsFound;
|
|
225
|
-
return
|
|
225
|
+
return s`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`;
|
|
226
226
|
}
|
|
227
227
|
_renderLocateError() {
|
|
228
|
-
return
|
|
228
|
+
return s`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`;
|
|
229
229
|
}
|
|
230
230
|
_renderNotices() {
|
|
231
231
|
return this._locateFailed ? this._renderLocateError() : this._showNoResults ? this._renderNoResultsWarning(this._lastSearchTerm ?? this.viewModel.searchTerm) : null;
|
|
@@ -64,13 +64,26 @@ export abstract class ArcgisVideo extends LitElement {
|
|
|
64
64
|
* @since 5.0
|
|
65
65
|
*/
|
|
66
66
|
accessor attributionMode: "dark" | "light" | null | undefined;
|
|
67
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* If true, the component will not be destroyed automatically when it is
|
|
69
|
+
* disconnected from the document. This is useful when you want to move the
|
|
70
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
71
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-video/#destroy) method when you are done to
|
|
72
|
+
* prevent memory leaks.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
68
76
|
accessor autoDestroyDisabled: boolean;
|
|
69
77
|
/** The [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/) to display in the view. */
|
|
70
78
|
accessor layer: VideoLayer | null | undefined;
|
|
71
79
|
/** A reference to the associated [Map](https://developers.arcgis.com/javascript/latest/references/core/Map/) or [WebMap](https://developers.arcgis.com/javascript/latest/references/core/WebMap/). */
|
|
72
80
|
accessor map: Map | WebMap | null | undefined;
|
|
73
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Indicates whether map graphics from the reference map element are overlaid on the video player's content.
|
|
83
|
+
*
|
|
84
|
+
* @default false
|
|
85
|
+
* @since 5.1
|
|
86
|
+
*/
|
|
74
87
|
accessor operationalDataVisible: boolean;
|
|
75
88
|
/**
|
|
76
89
|
* When `true`, this property indicates whether the view successfully satisfied all dependencies,
|
|
@@ -5,20 +5,20 @@ import { useDirection as n } from "@arcgis/lumina/controllers";
|
|
|
5
5
|
import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import l from "@arcgis/core/views/VideoView.js";
|
|
7
7
|
import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
|
|
8
|
-
import { makeAccessorController as
|
|
8
|
+
import { makeAccessorController as p } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as s, ref as a } from "lit/directives/ref.js";
|
|
10
10
|
import { C as r } from "../../chunks/resources.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as f, s as y, S as w } from "../../chunks/slots.js";
|
|
12
12
|
import { s as v } from "../../chunks/esri-main.js";
|
|
13
|
-
const u = h`:host{width:100%;height:100%}`, R =
|
|
13
|
+
const u = h`:host{width:100%;height:100%}`, R = p(l, {
|
|
14
14
|
omitProps: ["container", "navigation", "scale", "ui"]
|
|
15
15
|
});
|
|
16
16
|
class g extends c {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs =
|
|
18
|
+
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = f(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.operationalDataVisible = this.view.operationalDataVisible, this.arcgisViewReadyChange = m();
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.properties = { autoDestroyDisabled: 5,
|
|
21
|
+
this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0, operationalDataVisible: 5 };
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.styles = [v, y, u];
|
|
@@ -227,6 +227,13 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
227
227
|
video: string;
|
|
228
228
|
videoPlayer: string;
|
|
229
229
|
}>;
|
|
230
|
+
/**
|
|
231
|
+
* Indicates whether map graphics from the reference map element are overlaid on the video player's content.
|
|
232
|
+
*
|
|
233
|
+
* @default false
|
|
234
|
+
* @since 5.1
|
|
235
|
+
*/
|
|
236
|
+
accessor operationalDataVisible: boolean;
|
|
230
237
|
/**
|
|
231
238
|
* By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
|
|
232
239
|
*
|
|
@@ -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
|
|
9
|
-
import { createRef as
|
|
10
|
-
import { u as
|
|
11
|
-
import { m as
|
|
12
|
-
import { g as
|
|
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 =
|
|
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 =
|
|
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(
|
|
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
|
-
}} ${
|
|
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
|
|
2
|
+
import { c as b } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as i } from "lit";
|
|
4
|
-
import { watch as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
function u(
|
|
7
|
-
return
|
|
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
|
|
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
|
-
|
|
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:
|
|
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 && !
|
|
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.
|
|
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 && !
|
|
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 && !
|
|
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=${
|
|
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=${
|
|
45
|
-
return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[
|
|
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
|
-
|
|
50
|
+
b("arcgis-video-player-controls-group", v);
|
|
49
51
|
export {
|
|
50
|
-
|
|
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
|
|
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
|
|
8
|
-
const u = ["Auto"],
|
|
9
|
-
function
|
|
10
|
-
return `${
|
|
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
|
|
12
|
+
class k extends _ {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this._color = null, this._speed = 1, this._quality = "Auto", this._direction =
|
|
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, (
|
|
22
|
-
this._disabled =
|
|
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:
|
|
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>${
|
|
31
|
-
this._speed =
|
|
32
|
-
}} .selected=${
|
|
33
|
-
|
|
34
|
-
|
|
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=${
|
|
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
|
-
|
|
41
|
+
v("arcgis-video-player-settings", k);
|
|
40
42
|
export {
|
|
41
|
-
|
|
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";
|