@arcgis/map-components 5.2.0-next.169 → 5.2.0-next.170
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/{QNAOKY55.js → AOC6IH5V.js} +1 -1
- package/dist/cdn/{3IZHAJN7.js → ASE62666.js} +1 -1
- package/dist/cdn/{GSUQ5AKK.js → CMTDETKI.js} +1 -1
- package/dist/cdn/CTW7AD4G.js +2 -0
- package/dist/cdn/D63Y3AK3.js +2 -0
- package/dist/cdn/HRH6WU6F.js +2 -0
- package/dist/cdn/{XIYYT5SJ.js → KJPCX4EP.js} +1 -1
- package/dist/cdn/MYDW74L5.js +2 -0
- package/dist/cdn/OEKZISQJ.js +2 -0
- package/dist/cdn/OJRVXIAV.js +2 -0
- package/dist/cdn/{H6QQGYZN.js → PLOONHSR.js} +1 -1
- package/dist/cdn/PQP3TME2.js +2 -0
- package/dist/cdn/SHM6HHG4.js +2 -0
- package/dist/cdn/{BFMIWUQN.js → TI6HDT4M.js} +1 -1
- package/dist/cdn/{QXWPPVRF.js → UPUO5W3B.js} +1 -1
- package/dist/cdn/X2R4PMIV.js +2 -0
- package/dist/cdn/YH7AMHUJ.js +3 -0
- package/dist/cdn/{N5ISIJH5.js → YQ6M3MBJ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/chart-utils.js +12 -12
- package/dist/chunks/esri-main.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +30 -23
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +263 -216
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +155 -143
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +17 -10
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +7 -4
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +46 -38
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +19 -3
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +22 -15
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +70 -62
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
- 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/index.d.ts +0 -4
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +1 -6
- package/dist/types/preact.d.ts +1 -7
- package/dist/types/react.d.ts +1 -8
- package/dist/types/stencil.d.ts +1 -6
- package/package.json +6 -6
- package/dist/cdn/55FMVRQF.js +0 -2
- package/dist/cdn/6PMF2LH7.js +0 -2
- package/dist/cdn/F7O7VE64.js +0 -2
- package/dist/cdn/MISUZ26F.js +0 -2
- package/dist/cdn/PJCNEOQF.js +0 -2
- package/dist/cdn/RDBCKSUZ.js +0 -2
- package/dist/cdn/UAUGYXU6.js +0 -2
- package/dist/cdn/W3F5JSCP.js +0 -3
- package/dist/cdn/WQA6TRAU.js +0 -2
- package/dist/cdn/YXFFWLE5.js +0 -2
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +0 -156
- package/dist/components/arcgis-feature-form-field/index.d.ts +0 -1
- package/dist/components/arcgis-feature-form-field/types.d.ts +0 -7
- package/dist/components/arcgis-feature-form-field-number/customElement.d.ts +0 -4
- package/dist/components/arcgis-feature-form-field-number/index.d.ts +0 -1
|
@@ -1,40 +1,58 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { stripHTML as
|
|
2
|
+
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
+
import S from "@arcgis/core/popup/FeaturesModel.js";
|
|
4
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
5
|
+
import { useDirection as $, usePropertyChange as N } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { m as T } from "../../chunks/useViewModel.js";
|
|
7
|
+
import { LitElement as L, createEvent as w, safeStyleMap as V, safeClassMap as _ } from "@arcgis/lumina";
|
|
8
|
+
import { css as H, html as y } from "lit";
|
|
9
|
+
import { stripHTML as B } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
10
10
|
import { classes as x } from "@arcgis/toolkit/dom";
|
|
11
|
-
import { createRef as
|
|
12
|
-
import { watch as
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
11
|
+
import { createRef as m, ref as f } from "lit/directives/ref.js";
|
|
12
|
+
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
+
import I from "@arcgis/core/support/actions/ActionButton.js";
|
|
14
|
+
import { t as R } from "../../chunks/screenLocation.js";
|
|
15
15
|
import "../arcgis-search-result-renderer/customElement.js";
|
|
16
|
-
const
|
|
17
|
-
function
|
|
18
|
-
|
|
16
|
+
const W = H`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{--arcgis-internal-popup-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-popup-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-popup-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-popup-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right,.is-docked-top-start,.is-docked-top-end{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right,.is-docked-bottom-start,.is-docked-bottom-end{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left,.is-docked-top-start,.is-docked-bottom-start{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right,.is-docked-top-end,.is-docked-bottom-end{justify-content:flex-end}.is-docked-top-left.is-rtl,.is-docked-top-right.is-rtl,.is-docked-bottom-left.is-rtl,.is-docked-bottom-right.is-rtl{flex-direction:row-reverse}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container,.is-docked-top-start .main-container,.is-docked-top-end .main-container,.is-docked-bottom-start .main-container,.is-docked-bottom-end .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`, D = /* @__PURE__ */ new WeakSet();
|
|
17
|
+
function j(h) {
|
|
18
|
+
const t = h.defaultView;
|
|
19
|
+
if (!(!t || D.has(h))) {
|
|
20
|
+
for (const e of ["top", "right", "bottom", "left"])
|
|
21
|
+
try {
|
|
22
|
+
t.CSS.registerProperty({
|
|
23
|
+
name: `--arcgis-internal-popup-overlay-space-${e}`,
|
|
24
|
+
syntax: "<length>",
|
|
25
|
+
inherits: !1,
|
|
26
|
+
initialValue: "0px"
|
|
27
|
+
});
|
|
28
|
+
} catch (i) {
|
|
29
|
+
if (!(i instanceof t.DOMException && i.name === "InvalidModificationError"))
|
|
30
|
+
throw i;
|
|
31
|
+
}
|
|
32
|
+
D.add(h);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function v(h) {
|
|
36
|
+
return h && Number.parseInt(h.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
19
37
|
}
|
|
20
|
-
const
|
|
38
|
+
const Y = T(S), M = {
|
|
21
39
|
buttonEnabled: !0,
|
|
22
40
|
position: "auto",
|
|
23
41
|
breakpoint: {
|
|
24
42
|
width: 544
|
|
25
43
|
}
|
|
26
44
|
};
|
|
27
|
-
class
|
|
45
|
+
class U extends L {
|
|
28
46
|
constructor() {
|
|
29
|
-
super(...arguments), this._direction =
|
|
47
|
+
super(...arguments), this._direction = $(), this._headingText = { html: "", text: "" }, this._featuresComponent = m(), this._dockAction = new I({ id: "popup-dock-action" }), this._mainContainerNode = m(), this._pointerNode = m(), this.messages = F(), this.viewModel = Y(this), this._containerNode = m(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
30
48
|
this.positionStyle = this._calculatePositionStyle();
|
|
31
|
-
}, this.screenLocation =
|
|
49
|
+
}, this._messageOverrides = {}, this.screenLocation = R(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = !1, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.features = this.viewModel.features, this.featureStream = this.viewModel.featureStream, this.focusTrapDisabled = !1, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideEmptyRelationshipContent = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.open = this.viewModel.open, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = N()("active", "collapsed", "currentAlignment", "dockEnabled", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = w(), this.arcgisClose = w(), this.arcgisTriggerAction = w();
|
|
32
50
|
}
|
|
33
51
|
static {
|
|
34
|
-
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, _effectiveDockEnabled: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, diagnostics: 32, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, featureStream: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideEmptyRelationshipContent: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
52
|
+
this.properties = { _messageOverrides: 16, screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, _effectiveDockEnabled: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, diagnostics: 32, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, featureStream: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideEmptyRelationshipContent: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
35
53
|
}
|
|
36
54
|
static {
|
|
37
|
-
this.styles =
|
|
55
|
+
this.styles = W;
|
|
38
56
|
}
|
|
39
57
|
get trackLocation() {
|
|
40
58
|
return this.active && !this._effectiveDockEnabled;
|
|
@@ -53,13 +71,13 @@ class R extends T {
|
|
|
53
71
|
return this._getCurrentDockPosition();
|
|
54
72
|
}
|
|
55
73
|
get dockOptions() {
|
|
56
|
-
return this._dockOptions ||
|
|
74
|
+
return this._dockOptions || M;
|
|
57
75
|
}
|
|
58
76
|
set dockOptions(t) {
|
|
59
|
-
const e = { ...
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
typeof
|
|
77
|
+
const e = { ...M }, i = this.viewModel?.view?.breakpoints, o = {};
|
|
78
|
+
i && (o.width = i.xsmall, o.height = i.xsmall);
|
|
79
|
+
const n = { ...e, ...t }, s = { ...e.breakpoint, ...o }, { breakpoint: a } = n;
|
|
80
|
+
typeof a == "object" ? n.breakpoint = { ...s, ...a } : a && (n.breakpoint = s), this._dockOptions = n;
|
|
63
81
|
}
|
|
64
82
|
get selectedDrillInFeature() {
|
|
65
83
|
return this._featuresComponent.value?.selectedDrillInFeature ?? null;
|
|
@@ -85,18 +103,28 @@ class R extends T {
|
|
|
85
103
|
async setFocus() {
|
|
86
104
|
this._featuresComponent.value?.setFocus();
|
|
87
105
|
}
|
|
106
|
+
willUpdate(t) {
|
|
107
|
+
if (!this.hasUpdated || t.has("messageOverrides") || t.has("messages")) {
|
|
108
|
+
const e = this.messages._original ?? this.messages;
|
|
109
|
+
this._messageOverrides = {
|
|
110
|
+
...this.messageOverrides,
|
|
111
|
+
collapse: this.messageOverrides?.collapse ?? e.collapse,
|
|
112
|
+
expand: this.messageOverrides?.expand ?? e.expand
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
88
116
|
connectedCallback() {
|
|
89
|
-
super.connectedCallback(), this._syncPopupResizeObserver();
|
|
117
|
+
j(this.el.ownerDocument), super.connectedCallback(), this._syncPopupResizeObserver();
|
|
90
118
|
}
|
|
91
119
|
loaded() {
|
|
92
120
|
this.manager.onLifecycle(() => [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const { _dockAction: t, dockOptions: e } = this,
|
|
97
|
-
|
|
121
|
+
p(() => [this.viewModel?.view?.widthBreakpoint, this._effectiveDockEnabled, this._direction], () => this._handleDockIcon(), { initial: !0 }),
|
|
122
|
+
p(() => [this._effectiveDockEnabled, this.messages?.undock, this.messages?.dock], () => this._handleDockEnabled(), { initial: !0 }),
|
|
123
|
+
p(() => [this.dockOptions, this._featuresComponent.value, this.viewModel?.view?.focusRegionVisible], () => {
|
|
124
|
+
const { _dockAction: t, dockOptions: e } = this, i = this._featuresComponent.value?.headerActions;
|
|
125
|
+
i?.remove(t), e.buttonEnabled && !this.viewModel?.view?.focusRegionVisible && i?.add(t);
|
|
98
126
|
}, { initial: !0 }),
|
|
99
|
-
|
|
127
|
+
p(() => [
|
|
100
128
|
this._pointerNode.value,
|
|
101
129
|
this.alignment,
|
|
102
130
|
this.currentAlignment,
|
|
@@ -107,16 +135,16 @@ class R extends T {
|
|
|
107
135
|
this.viewModel?.location,
|
|
108
136
|
this.viewModel?.view?.size
|
|
109
137
|
], () => this._positionContainer(), { initial: !0 }),
|
|
110
|
-
|
|
138
|
+
p(() => this._mainContainerNode.value, (t) => {
|
|
111
139
|
this._syncPopupResizeObserver(t);
|
|
112
140
|
}, { initial: !0 }),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
141
|
+
p(() => this.viewModel?.view?.size, (t, e) => this._updateDockEnabledForViewSize(t, e)),
|
|
142
|
+
p(() => this.viewModel?.view?.ready, () => this._setDockEnabledForViewSize(this.dockOptions), { initial: !0 }),
|
|
143
|
+
p(() => this.view?.map, (t) => {
|
|
116
144
|
this.viewModel.map = t;
|
|
117
145
|
}, { initial: !0 }),
|
|
118
|
-
|
|
119
|
-
|
|
146
|
+
p(() => this.screenLocation, (t, e) => this._autoClose(t, e)),
|
|
147
|
+
p(() => [this.active, this._containerNode.value, this._effectiveDockEnabled, this.topLayerDisabled], () => this._togglePopover(), { initial: !0 })
|
|
120
148
|
]);
|
|
121
149
|
}
|
|
122
150
|
disconnectedCallback() {
|
|
@@ -140,50 +168,38 @@ class R extends T {
|
|
|
140
168
|
_handleArcgisTriggerAction(t) {
|
|
141
169
|
t.stopPropagation(), t.detail.action === this._dockAction && (this.dockEnabled = !this.dockEnabled), this.arcgisTriggerAction.emit({ action: t.detail.action });
|
|
142
170
|
}
|
|
143
|
-
_isOutsideView(t) {
|
|
144
|
-
const { popupHeight:
|
|
145
|
-
|
|
171
|
+
_isOutsideView(t, e) {
|
|
172
|
+
const { popupHeight: i, popupWidth: o, screenLocation: n, side: s, view: a } = t;
|
|
173
|
+
if (Number.isNaN(o) || Number.isNaN(i) || !a || !n)
|
|
174
|
+
return !1;
|
|
175
|
+
const l = e ? Number.parseFloat(e.getPropertyValue(`--arcgis-internal-popup-overlay-space-${s}`)) : 0;
|
|
176
|
+
switch (s) {
|
|
177
|
+
case "right":
|
|
178
|
+
return n.x + o / 2 > a.width - l;
|
|
179
|
+
case "left":
|
|
180
|
+
return n.x - o / 2 < l;
|
|
181
|
+
case "top":
|
|
182
|
+
return n.y - i < l;
|
|
183
|
+
case "bottom":
|
|
184
|
+
return n.y + i > a.height - l;
|
|
185
|
+
}
|
|
146
186
|
}
|
|
147
187
|
_getPointerSize() {
|
|
148
|
-
const { _pointerNode: t } = this, e = t.value ? window.getComputedStyle(t.value) : null,
|
|
149
|
-
return Math.hypot(
|
|
188
|
+
const { _pointerNode: t } = this, e = t.value ? window.getComputedStyle(t.value) : null, i = v(e?.height), o = v(e?.width);
|
|
189
|
+
return Math.hypot(i, o);
|
|
150
190
|
}
|
|
151
191
|
_getHeadingText() {
|
|
152
192
|
const t = this.heading ?? "";
|
|
153
|
-
return this._headingText.html !== t && (this._headingText = { html: t, text:
|
|
193
|
+
return this._headingText.html !== t && (this._headingText = { html: t, text: B(t) }), this._headingText.text;
|
|
154
194
|
}
|
|
155
195
|
_calculateAutoAlignment(t) {
|
|
156
196
|
if (t !== "auto")
|
|
157
197
|
return t;
|
|
158
|
-
const { _mainContainerNode: e, _popupRect:
|
|
159
|
-
if (
|
|
198
|
+
const { _mainContainerNode: e, _popupRect: i, viewModel: o } = this, { view: n } = o, { screenLocation: s } = this;
|
|
199
|
+
if (s == null || !n || !i || !e.value)
|
|
160
200
|
return "top-center";
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
popupWidth: p,
|
|
164
|
-
screenLocation: n,
|
|
165
|
-
side: "right",
|
|
166
|
-
view: s
|
|
167
|
-
}), M = this._isOutsideView({
|
|
168
|
-
popupHeight: u,
|
|
169
|
-
popupWidth: p,
|
|
170
|
-
screenLocation: n,
|
|
171
|
-
side: "left",
|
|
172
|
-
view: s
|
|
173
|
-
}), k = this._isOutsideView({
|
|
174
|
-
popupHeight: u,
|
|
175
|
-
popupWidth: p,
|
|
176
|
-
screenLocation: n,
|
|
177
|
-
side: "top",
|
|
178
|
-
view: s
|
|
179
|
-
}), z = this._isOutsideView({
|
|
180
|
-
popupHeight: u,
|
|
181
|
-
popupWidth: p,
|
|
182
|
-
screenLocation: n,
|
|
183
|
-
side: "bottom",
|
|
184
|
-
view: s
|
|
185
|
-
});
|
|
186
|
-
return M ? k ? "bottom-right" : "top-right" : C ? k ? "bottom-left" : "top-left" : k ? z ? "top-center" : "bottom-center" : "top-center";
|
|
201
|
+
const a = window.getComputedStyle(e.value), l = v(a.maxHeight), r = v(a.height), d = this._getPointerSize(), { height: c, width: b } = i, z = b + d, u = { popupHeight: Math.max(c, l, r) + d, popupWidth: z, screenLocation: s, view: n }, C = this._containerNode.value, g = C ? window.getComputedStyle(C) : null, E = this._isOutsideView({ ...u, side: "right" }, g), A = this._isOutsideView({ ...u, side: "left" }, g), k = this._isOutsideView({ ...u, side: "top" }, g), O = this._isOutsideView({ ...u, side: "bottom" }, g);
|
|
202
|
+
return A ? k ? "bottom-right" : "top-right" : E ? k ? "bottom-left" : "top-left" : k ? O ? "top-center" : "bottom-center" : "top-center";
|
|
187
203
|
}
|
|
188
204
|
_callCurrentAlignment(t) {
|
|
189
205
|
return typeof t == "function" ? t.call(this) : t;
|
|
@@ -203,11 +219,11 @@ class R extends T {
|
|
|
203
219
|
_calculateAutoDockPosition(t) {
|
|
204
220
|
if (t !== "auto")
|
|
205
221
|
return t;
|
|
206
|
-
const e = this.viewModel?.view,
|
|
222
|
+
const e = this.viewModel?.view, i = "top-end";
|
|
207
223
|
if (!e)
|
|
208
|
-
return
|
|
209
|
-
const { breakpoints:
|
|
210
|
-
return
|
|
224
|
+
return i;
|
|
225
|
+
const { breakpoints: o } = e;
|
|
226
|
+
return o?.xsmall && e.width <= o.xsmall ? "bottom-center" : i;
|
|
211
227
|
}
|
|
212
228
|
_getDockIcon() {
|
|
213
229
|
const t = this._getDockPosition(), { _direction: e } = this;
|
|
@@ -237,39 +253,39 @@ class R extends T {
|
|
|
237
253
|
_handleDockEnabled() {
|
|
238
254
|
this._dockAction.title = this._effectiveDockEnabled ? this.messages?.undock : this.messages?.dock;
|
|
239
255
|
}
|
|
240
|
-
_calculateAlignmentPosition(t, e,
|
|
241
|
-
if (t < 0 || e < 0 || !
|
|
256
|
+
_calculateAlignmentPosition(t, e, i, o) {
|
|
257
|
+
if (t < 0 || e < 0 || !i || !o || t > i.width || e > i.height)
|
|
242
258
|
return;
|
|
243
|
-
const { topLayerDisabled:
|
|
244
|
-
if (
|
|
259
|
+
const { topLayerDisabled: n } = this, s = n ? t : t + i.x, a = n ? e : e + i.y, { _direction: l, currentAlignment: r } = this, d = this._getPointerSize(), c = d / 2;
|
|
260
|
+
if (r === "top-left" || r === "top-start" && l === "ltr" || r === "top-end" && l === "rtl")
|
|
245
261
|
return {
|
|
246
|
-
top:
|
|
247
|
-
left:
|
|
262
|
+
top: a - (o.height + c),
|
|
263
|
+
left: s - o.width - c
|
|
248
264
|
};
|
|
249
|
-
if (
|
|
265
|
+
if (r === "top-center")
|
|
250
266
|
return {
|
|
251
|
-
top:
|
|
252
|
-
left:
|
|
267
|
+
top: a - (o.height + d),
|
|
268
|
+
left: s - o.width / 2
|
|
253
269
|
};
|
|
254
|
-
if (
|
|
270
|
+
if (r === "top-right" || r === "top-end" && l === "ltr" || r === "top-start" && l === "rtl")
|
|
255
271
|
return {
|
|
256
|
-
top:
|
|
257
|
-
left:
|
|
272
|
+
top: a - (o.height + c),
|
|
273
|
+
left: s + c
|
|
258
274
|
};
|
|
259
|
-
if (
|
|
275
|
+
if (r === "bottom-left" || r === "bottom-start" && l === "ltr" || r === "bottom-end" && l === "rtl")
|
|
260
276
|
return {
|
|
261
|
-
top:
|
|
262
|
-
left:
|
|
277
|
+
top: a + c,
|
|
278
|
+
left: s - o.width - c
|
|
263
279
|
};
|
|
264
|
-
if (
|
|
280
|
+
if (r === "bottom-center")
|
|
265
281
|
return {
|
|
266
|
-
top:
|
|
267
|
-
left:
|
|
282
|
+
top: a + d,
|
|
283
|
+
left: s - o.width / 2
|
|
268
284
|
};
|
|
269
|
-
if (
|
|
285
|
+
if (r === "bottom-right" || r === "bottom-end" && l === "ltr" || r === "bottom-start" && l === "rtl")
|
|
270
286
|
return {
|
|
271
|
-
top:
|
|
272
|
-
left:
|
|
287
|
+
top: a + c,
|
|
288
|
+
left: s + c
|
|
273
289
|
};
|
|
274
290
|
}
|
|
275
291
|
_getPositionStyleValue(t) {
|
|
@@ -281,56 +297,56 @@ class R extends T {
|
|
|
281
297
|
const { screenLocation: t } = this;
|
|
282
298
|
if (t == null)
|
|
283
299
|
return;
|
|
284
|
-
const e = this.view?.container?.getBoundingClientRect(),
|
|
285
|
-
this._popupRect =
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
288
|
-
return `inset: ${this._getPositionStyleValue(
|
|
300
|
+
const e = this.view?.container?.getBoundingClientRect(), i = this._mainContainerNode.value?.getBoundingClientRect();
|
|
301
|
+
this._popupRect = i;
|
|
302
|
+
const o = this._calculateAlignmentPosition(t.x, t.y, e, i);
|
|
303
|
+
if (o)
|
|
304
|
+
return `inset: ${this._getPositionStyleValue(o.top)} ${this._getPositionStyleValue(o.right)} ${this._getPositionStyleValue(o.bottom)} ${this._getPositionStyleValue(o.left)};`;
|
|
289
305
|
}
|
|
290
|
-
_dockingThresholdCrossed(t, e,
|
|
291
|
-
const [
|
|
292
|
-
return
|
|
306
|
+
_dockingThresholdCrossed(t, e, i) {
|
|
307
|
+
const [o, n] = t, [s, a] = e, { width: l = 0, height: r = 0 } = i ?? {};
|
|
308
|
+
return o <= l && s > l || o > l && s <= l || n <= r && a > r || n > r && a <= r;
|
|
293
309
|
}
|
|
294
310
|
_updateDockEnabledForViewSize(t, e) {
|
|
295
311
|
if (!t || !e || !this.viewModel?.view?.ready)
|
|
296
312
|
return;
|
|
297
|
-
const { dockOptions:
|
|
298
|
-
typeof
|
|
313
|
+
const { dockOptions: i } = this, o = i.breakpoint;
|
|
314
|
+
typeof o == "object" && this._dockingThresholdCrossed(t, e, o) && this._setDockEnabledForViewSize(i);
|
|
299
315
|
}
|
|
300
316
|
_shouldDockAtCurrentViewSize(t) {
|
|
301
|
-
const e = t.breakpoint,
|
|
302
|
-
if (!
|
|
317
|
+
const e = t.breakpoint, i = this.viewModel?.view?.ui;
|
|
318
|
+
if (!i)
|
|
303
319
|
return !1;
|
|
304
|
-
const { width:
|
|
305
|
-
if (Number.isNaN(
|
|
320
|
+
const { width: o, height: n } = i;
|
|
321
|
+
if (Number.isNaN(o) || Number.isNaN(n) || typeof e != "object")
|
|
306
322
|
return !1;
|
|
307
|
-
const
|
|
308
|
-
return
|
|
323
|
+
const s = typeof e.width == "number" && o <= (e.width ?? 0), a = typeof e.height == "number" && n <= (e.height ?? 0);
|
|
324
|
+
return s || a;
|
|
309
325
|
}
|
|
310
326
|
_setDockEnabledForViewSize(t) {
|
|
311
327
|
this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
|
|
312
328
|
}
|
|
313
329
|
render() {
|
|
314
|
-
const { _direction: t, _effectiveDockEnabled: e, currentAlignment:
|
|
315
|
-
"aligned-top-center":
|
|
316
|
-
"aligned-bottom-center":
|
|
317
|
-
"aligned-top-left":
|
|
318
|
-
"aligned-bottom-left":
|
|
319
|
-
"aligned-top-right":
|
|
320
|
-
"aligned-bottom-right":
|
|
330
|
+
const { _direction: t, _effectiveDockEnabled: e, currentAlignment: i, currentDockPosition: o, positionStyle: n } = this, { active: s, view: a } = this.viewModel, l = s && e, r = s && !e, d = a?.widthBreakpoint, c = a?.heightBreakpoint, b = {
|
|
331
|
+
"aligned-top-center": i === "top-center",
|
|
332
|
+
"aligned-bottom-center": i === "bottom-center",
|
|
333
|
+
"aligned-top-left": i === "top-left" || i === "top-start" && t === "ltr" || i === "top-end" && t === "rtl",
|
|
334
|
+
"aligned-bottom-left": i === "bottom-left" || i === "bottom-start" && t === "ltr" || i === "bottom-end" && t === "rtl",
|
|
335
|
+
"aligned-top-right": i === "top-right" || i === "top-end" && t === "ltr" || i === "top-start" && t === "rtl",
|
|
336
|
+
"aligned-bottom-right": i === "bottom-right" || i === "bottom-end" && t === "ltr" || i === "bottom-start" && t === "rtl",
|
|
321
337
|
"is-docked": l,
|
|
322
|
-
shadow:
|
|
338
|
+
shadow: r,
|
|
323
339
|
"is-rtl": this._direction === "rtl",
|
|
324
|
-
"is-docked-top-start":
|
|
325
|
-
"is-docked-top-end":
|
|
326
|
-
"is-docked-top-left":
|
|
327
|
-
"is-docked-top-center":
|
|
328
|
-
"is-docked-top-right":
|
|
329
|
-
"is-docked-bottom-left":
|
|
330
|
-
"is-docked-bottom-center":
|
|
331
|
-
"is-docked-bottom-right":
|
|
332
|
-
"is-docked-bottom-start":
|
|
333
|
-
"is-docked-bottom-end":
|
|
340
|
+
"is-docked-top-start": o === "top-start",
|
|
341
|
+
"is-docked-top-end": o === "top-end",
|
|
342
|
+
"is-docked-top-left": o === "top-left",
|
|
343
|
+
"is-docked-top-center": o === "top-center",
|
|
344
|
+
"is-docked-top-right": o === "top-right",
|
|
345
|
+
"is-docked-bottom-left": o === "bottom-left",
|
|
346
|
+
"is-docked-bottom-center": o === "bottom-center",
|
|
347
|
+
"is-docked-bottom-right": o === "bottom-right",
|
|
348
|
+
"is-docked-bottom-start": o === "bottom-start",
|
|
349
|
+
"is-docked-bottom-end": o === "bottom-end",
|
|
334
350
|
"is-xl-width-breakpoint": d === "xlarge",
|
|
335
351
|
"is-lg-width-breakpoint": d === "large",
|
|
336
352
|
"is-md-width-breakpoint": d === "medium",
|
|
@@ -342,25 +358,21 @@ class R extends T {
|
|
|
342
358
|
"is-sm-height-breakpoint": c === "small",
|
|
343
359
|
"is-xs-height-breakpoint": c === "xsmall"
|
|
344
360
|
};
|
|
345
|
-
return
|
|
346
|
-
hidden: !
|
|
347
|
-
}))} .ariaHidden=${!
|
|
361
|
+
return y`<div style=${V(n)} class=${_(x("root", b, {
|
|
362
|
+
hidden: !s || !n && !e
|
|
363
|
+
}))} .ariaHidden=${!s} .ariaLabel=${this._getHeadingText()} popover=manual ${f(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
348
364
|
}
|
|
349
365
|
_renderPointer() {
|
|
350
|
-
return !this._effectiveDockEnabled || !this.active ?
|
|
366
|
+
return !this._effectiveDockEnabled || !this.active ? y`<div class="pointer" role=presentation><div class=${_(x("pointer-direction", "shadow"))} ${f(this._pointerNode)}></div></div>` : null;
|
|
351
367
|
}
|
|
352
368
|
_renderMainContainer() {
|
|
353
369
|
const t = {
|
|
354
370
|
shadow: this._effectiveDockEnabled
|
|
355
|
-
}, e = {
|
|
356
|
-
...this.messageOverrides,
|
|
357
|
-
collapse: this.messageOverrides?.collapse ?? this.messages.collapse,
|
|
358
|
-
expand: this.messageOverrides?.expand ?? this.messages.expand
|
|
359
371
|
};
|
|
360
|
-
return
|
|
372
|
+
return y`<div class=${_(x("main-container", t))} ${f(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .focusTrapEnabled=${!this.focusTrapDisabled} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${this._messageOverrides} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${f(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
361
373
|
}
|
|
362
374
|
}
|
|
363
|
-
|
|
375
|
+
P("arcgis-popup", U);
|
|
364
376
|
export {
|
|
365
|
-
|
|
377
|
+
U as ArcgisPopup
|
|
366
378
|
};
|
|
@@ -19,7 +19,7 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
19
19
|
* By default, the component visualizes shadows. When [visualizeSunlight](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#visualizeSunlight) is `true`,
|
|
20
20
|
* it visualizes sunlight exposure instead.
|
|
21
21
|
*
|
|
22
|
-
* The component provides controls for the date, time range,
|
|
22
|
+
* The component provides controls for the date, time range, UTC offset, visualization mode, colors, intervals, and whether
|
|
23
23
|
* to visualize shadows or sunlight.
|
|
24
24
|
*
|
|
25
25
|
* The [date](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#date), [startTimeOfDay](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#startTimeOfDay),
|
|
@@ -27,8 +27,14 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
27
27
|
* define the date, time range, and UTC offset used to compute the analysis overlay. They do not change the lighting in
|
|
28
28
|
* the scene. To control scene lighting, use the [arcgis-daylight](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/) component.
|
|
29
29
|
*
|
|
30
|
-
* The [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) property
|
|
31
|
-
* date and time range.
|
|
30
|
+
* The [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) property specifies a numeric offset from Coordinated Universal
|
|
31
|
+
* Time (UTC) used to interpret the selected date and time range. A UTC offset does not identify a regional time zone,
|
|
32
|
+
* such as `Europe/Zurich`, or automatically account for daylight saving time.
|
|
33
|
+
*
|
|
34
|
+
* The UTC offset selector, labeled **Timezone** in the component, sets [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset).
|
|
35
|
+
* Changing the selection does not modify [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone).
|
|
36
|
+
* Use it to select the appropriate offset for the analysis date and time range, including any daylight saving time
|
|
37
|
+
* adjustment. The selector can be hidden using the [hideTimezone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#hideTimezone) property.
|
|
32
38
|
*
|
|
33
39
|
* > [!IMPORTANT]
|
|
34
40
|
* >
|
|
@@ -54,10 +60,9 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
54
60
|
* * As a result, shadow duration may be underestimated and sunlight duration may be overestimated in areas where terrain
|
|
55
61
|
* would normally block sunlight. To avoid incorrect visualization, `startTimeOfDay` should be set after local sunrise
|
|
56
62
|
* and `endTimeOfDay` before local sunset.
|
|
57
|
-
* *
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* not be accurate. In case of an inaccurate timezone, users can set it manually using the timezone picker.
|
|
63
|
+
* * When [utcOffset](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-shadow-cast/#utcOffset) is not specified, the component estimates the UTC offset from
|
|
64
|
+
* the camera's longitude. It does not determine the regional time zone at the camera's location. If the estimated offset
|
|
65
|
+
* is not appropriate for the analysis date and location, users can set it manually using the UTC offset selector.
|
|
61
66
|
*
|
|
62
67
|
* **See also**
|
|
63
68
|
*
|
|
@@ -274,7 +279,7 @@ export abstract class ArcgisShadowCast extends LitElement {
|
|
|
274
279
|
*/
|
|
275
280
|
accessor hideTimeRangeSlider: boolean;
|
|
276
281
|
/**
|
|
277
|
-
* If true, the
|
|
282
|
+
* If true, the UTC offset selector, labeled **Timezone** in the component, is hidden.
|
|
278
283
|
*
|
|
279
284
|
* @default false
|
|
280
285
|
*/
|
|
@@ -531,8 +536,10 @@ export abstract class ArcgisShadowCast extends LitElement {
|
|
|
531
536
|
*/
|
|
532
537
|
accessor totalDurationMode: ShadowCastTotalDurationMode;
|
|
533
538
|
/**
|
|
534
|
-
* The UTC offset in hours used to interpret the selected date and time range for the analysis.
|
|
535
|
-
*
|
|
539
|
+
* The UTC offset in hours used to interpret the selected date and time range for the analysis. This numeric offset
|
|
540
|
+
* does not identify a regional time zone or automatically account for daylight saving time.
|
|
541
|
+
*
|
|
542
|
+
* If not specified, the component estimates the UTC offset from the camera's longitude.
|
|
536
543
|
* This property is separate from [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone). Changing one does not update the other.
|
|
537
544
|
*/
|
|
538
545
|
accessor utcOffset: number | null | undefined;
|
|
@@ -249,7 +249,7 @@ let n = class extends j {
|
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region Public Methods
|
|
251
251
|
destroy() {
|
|
252
|
-
T(this, w).abort(), this.view?.unregisterComponent(this), d(this, h, M).call(this);
|
|
252
|
+
T(this, w).abort(), this.view?.unregisterComponent(this), d(this, h, M).call(this), super.destroy();
|
|
253
253
|
}
|
|
254
254
|
formatDate(t) {
|
|
255
255
|
return this._formatDate(t, this._dateFormat);
|
|
@@ -13,7 +13,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
13
13
|
* [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/)
|
|
14
14
|
* whose web map contains utility networks. The component loads the map and the selected network.
|
|
15
15
|
* The component displays the network's [title](https://developers.arcgis.com/javascript/latest/references/core/networks/Network/#title)
|
|
16
|
-
* when the map contains one utility network, or a [
|
|
16
|
+
* when the map contains one utility network, or a [combobox](https://developers.arcgis.com/calcite-design-system/components/combobox/)
|
|
17
17
|
* for multiple utility networks.
|
|
18
18
|
*
|
|
19
19
|
* When the map's networks are loaded, the first network is selected if the current selection
|
|
@@ -125,7 +125,7 @@ export abstract class ArcgisUtilityNetworkPicker extends LitElement {
|
|
|
125
125
|
*/
|
|
126
126
|
accessor error: string | undefined;
|
|
127
127
|
/**
|
|
128
|
-
* The heading above the utility network title or
|
|
128
|
+
* The heading above the utility network title or combobox.
|
|
129
129
|
* When not set or empty, the component uses the localized utility network label.
|
|
130
130
|
*/
|
|
131
131
|
accessor heading: string | undefined;
|
|
@@ -36,9 +36,6 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
36
36
|
* > The path trace provides the same functionality to return a shortest path result while offering additional capabilities to find paths in your network.
|
|
37
37
|
*
|
|
38
38
|
* The component can display the following from a trace result: elements (as [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#traceResultFeatures)), aggregated geometries, and function results.
|
|
39
|
-
* If the trace result includes elements that originate from a [feature layer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/)
|
|
40
|
-
* that is not included in the map, the Results tab displays an `Unknown` layer with a count of those elements.
|
|
41
|
-
* The component's [traceResultFeatures](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#traceResultFeatures) property also does not include these elements.
|
|
42
39
|
*
|
|
43
40
|
* > [!WARNING]
|
|
44
41
|
* >
|
|
@@ -151,6 +148,12 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
151
148
|
* @see [Popup actions sample](https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/)
|
|
152
149
|
*/
|
|
153
150
|
accessor actions: ArcgisFeaturesNext["actions"] | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* The color used to render graphics for aggregated geometries in trace results.
|
|
153
|
+
*
|
|
154
|
+
* @deprecated since 5.2. Use [aggregatedGeometryResultsGraphicsColor](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#aggregatedGeometryResultsGraphicsColor) instead. This property is planned for removal in 6.0.
|
|
155
|
+
*/
|
|
156
|
+
accessor aggregatedGeometryGraphicsColor: Color;
|
|
154
157
|
/**
|
|
155
158
|
* The color used to render graphics for aggregated geometries in trace results, specified as a
|
|
156
159
|
* [Color](https://developers.arcgis.com/javascript/latest/references/core/Color/) object.
|
|
@@ -438,7 +441,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
438
441
|
*/
|
|
439
442
|
readonly arcgisHideGraphicsChange: import("@arcgis/lumina").TargetedEvent<this, boolean>;
|
|
440
443
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
441
|
-
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "aggregatedGeometryResultsGraphicsColor" | "hideGraphics" | "state" | "traceError" | "traceResult"; }>;
|
|
444
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "aggregatedGeometryGraphicsColor" | "aggregatedGeometryResultsGraphicsColor" | "hideGraphics" | "state" | "traceError" | "traceResult"; }>;
|
|
442
445
|
/** Emitted when the component associated with a map or scene view is ready for user interaction. */
|
|
443
446
|
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
444
447
|
/**
|