@arcgis/map-components 5.2.0-next.41 → 5.2.0-next.43
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/{TLFRQY4X.js → 6J7L2FAB.js} +1 -1
- package/dist/cdn/{5IO4VISO.js → BIZFPS3V.js} +1 -1
- package/dist/cdn/{AWQ26Q4D.js → CNV6ALQO.js} +1 -1
- package/dist/cdn/{KH3IAHXE.js → GPDIJQMG.js} +1 -1
- package/dist/cdn/{TVTHJ57O.js → J3LU4VHH.js} +1 -1
- package/dist/cdn/{OTLQG3D4.js → NGYAHM32.js} +1 -1
- package/dist/cdn/QXFHLDLD.js +2 -0
- package/dist/cdn/VZK5BXWY.js +2 -0
- package/dist/cdn/{G55FBLQV.js → WACJO3GM.js} +1 -1
- package/dist/cdn/{Y7ESUBFW.js → ZMVTKENO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +10 -10
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +6 -6
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +3 -3
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.d.ts +2 -1
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +5 -5
- package/dist/components/arcgis-popup/customElement.d.ts +2 -1
- package/dist/components/arcgis-popup/customElement.js +13 -9
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -33
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/KG4EPDJO.js +0 -2
- package/dist/cdn/XIVMPSLL.js +0 -2
|
@@ -375,7 +375,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
375
375
|
*
|
|
376
376
|
* _**Note**: Individual message keys may change between releases._
|
|
377
377
|
*/
|
|
378
|
-
accessor messageOverrides: {
|
|
378
|
+
accessor messageOverrides: NonNullable<ArcgisFeatureNext["messageOverrides"]> & {
|
|
379
379
|
componentLabel?: string | undefined;
|
|
380
380
|
zoom?: string | undefined;
|
|
381
381
|
browseAggregatedFeatures?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as L } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as O, html as o } from "lit";
|
|
4
4
|
import { keyed as y } from "lit/directives/keyed.js";
|
|
5
|
-
import
|
|
5
|
+
import R from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import E from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import H from "@arcgis/core/popup/Features.js";
|
|
8
8
|
import { LitElement as P, createEvent as A, renderElement as z, nothing as p, safeClassMap as I } from "@arcgis/lumina";
|
|
@@ -21,7 +21,7 @@ import { u as G } from "../../chunks/useT9n.js";
|
|
|
21
21
|
import { watch as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
22
22
|
import { a as N } from "../../chunks/maybe.js";
|
|
23
23
|
import { a as W, b as X } from "../../chunks/keyboard-utils.js";
|
|
24
|
-
const J =
|
|
24
|
+
const J = O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;
|
|
25
25
|
function Q(F) {
|
|
26
26
|
return F?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
27
27
|
}
|
|
@@ -32,7 +32,7 @@ function Y(F) {
|
|
|
32
32
|
const ee = q(H);
|
|
33
33
|
class te extends P {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(...arguments), this._zoomToFeature = new
|
|
35
|
+
super(...arguments), this._zoomToFeature = new R({
|
|
36
36
|
icon: "magnifying-glass-plus",
|
|
37
37
|
id: "zoom-to-feature",
|
|
38
38
|
title: "{messages.zoom}"
|
|
@@ -408,7 +408,7 @@ class te extends P {
|
|
|
408
408
|
}
|
|
409
409
|
_renderContent() {
|
|
410
410
|
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
411
|
-
return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? y(e, o`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
411
|
+
return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? y(e, o`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
L("arcgis-features-next", te);
|
|
@@ -321,7 +321,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
321
321
|
*
|
|
322
322
|
* @internal
|
|
323
323
|
*/
|
|
324
|
-
accessor messageOverrides: {
|
|
324
|
+
accessor messageOverrides: NonNullable<ArcgisCatalogLayerListNext["messageOverrides"]> & NonNullable<ArcgisTableListNext["messageOverrides"]> & {
|
|
325
325
|
componentLabel?: string | undefined;
|
|
326
326
|
back?: string | undefined;
|
|
327
327
|
noItemsToDisplay?: string | undefined;
|
|
@@ -154,7 +154,7 @@ class ie extends Q {
|
|
|
154
154
|
}
|
|
155
155
|
async _createCatalogLayerList(e) {
|
|
156
156
|
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode: o, visibilityAppearance: l } = this;
|
|
157
|
-
return M(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
157
|
+
return M(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
158
158
|
}
|
|
159
159
|
_getTableListParams(e) {
|
|
160
160
|
switch (e.type) {
|
|
@@ -176,7 +176,7 @@ class ie extends Q {
|
|
|
176
176
|
}
|
|
177
177
|
async _createTableList(e) {
|
|
178
178
|
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this._getTableListParams(e);
|
|
179
|
-
return M(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
|
|
179
|
+
return M(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
|
|
180
180
|
}
|
|
181
181
|
_handlePanelFlowItemBack(e) {
|
|
182
182
|
e.open = !1;
|
|
@@ -3,6 +3,7 @@ import type NonPanoramicMedia from "./support/NonPanoramicMedia.js";
|
|
|
3
3
|
import type Graphic from "@arcgis/core/Graphic.js";
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
5
|
import type { NonPanoramicMediaProperties } from "./support/NonPanoramicMedia.js";
|
|
6
|
+
import type { ArcgisZoom } from "../arcgis-zoom/customElement.js";
|
|
6
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
8
|
|
|
8
9
|
/** @internal */
|
|
@@ -22,7 +23,7 @@ export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement
|
|
|
22
23
|
*
|
|
23
24
|
* _**Note**: Individual message keys may change between releases._
|
|
24
25
|
*/
|
|
25
|
-
accessor messageOverrides: { title?: string | undefined; };
|
|
26
|
+
accessor messageOverrides: NonNullable<ArcgisZoom["messageOverrides"]> & { title?: string | undefined; };
|
|
26
27
|
/** @default 0 */
|
|
27
28
|
accessor rotation: number;
|
|
28
29
|
/** @param graphic */
|
|
@@ -17,10 +17,10 @@ import G from "@arcgis/core/layers/GraphicsLayer.js";
|
|
|
17
17
|
import { GenericController as b } from "@arcgis/lumina/controllers";
|
|
18
18
|
import { createRef as P, ref as I } from "lit/directives/ref.js";
|
|
19
19
|
const x = g`:host{height:100%;--arcgis-view-color-focus: none}`;
|
|
20
|
-
var
|
|
21
|
-
for (var a = t > 1 ? void 0 : t ?
|
|
20
|
+
var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (r, e, i, t) => {
|
|
21
|
+
for (var a = t > 1 ? void 0 : t ? z(e, i) : e, s = r.length - 1, o; s >= 0; s--)
|
|
22
22
|
(o = r[s]) && (a = (t ? o(e, i, a) : o(a)) || a);
|
|
23
|
-
return t && a &&
|
|
23
|
+
return t && a && O(e, i, a), a;
|
|
24
24
|
};
|
|
25
25
|
let n = class extends w {
|
|
26
26
|
//--------------------------------------------------------------------------
|
|
@@ -197,7 +197,7 @@ class H extends b {
|
|
|
197
197
|
}
|
|
198
198
|
class S extends y {
|
|
199
199
|
constructor() {
|
|
200
|
-
super(...arguments), this._messages = M(), this._graphicsController = new H(this), this._imageChanged = !1, this._internalMap = P(), this._loading = !1, this.hideHeader = !1, this.hideLoader = !1, this.hideZoomControls = !1, this.
|
|
200
|
+
super(...arguments), this._messages = M(), this._graphicsController = new H(this), this._imageChanged = !1, this._internalMap = P(), this._loading = !1, this.hideHeader = !1, this.hideLoader = !1, this.hideZoomControls = !1, this.rotation = 0;
|
|
201
201
|
}
|
|
202
202
|
static {
|
|
203
203
|
this.properties = { _imageChanged: 16, _internalMap: 16, _image: 16, _loading: 16, _media: 16, hideHeader: 5, hideLoader: 5, hideZoomControls: 5, messageOverrides: 0, media: 0, rotation: 9 };
|
|
@@ -290,7 +290,7 @@ class S extends y {
|
|
|
290
290
|
m(i), this._imageChanged = !0, this._image = t, this.imageRenderer?.map?.layers.add(this._image);
|
|
291
291
|
}
|
|
292
292
|
render() {
|
|
293
|
-
return _`<calcite-panel .loading=${this.hideLoader ? void 0 : this._loading} .heading=${this.hideHeader ? void 0 : this._messages.title}><arcgis-map hide-attribution .spatialReference=${v.WebMercator} ${I(this._internalMap)}><arcgis-zoom .hidden=${this.hideZoomControls} slot=top-left></arcgis-zoom></arcgis-map></calcite-panel>`;
|
|
293
|
+
return _`<calcite-panel .loading=${this.hideLoader ? void 0 : this._loading} .heading=${this.hideHeader ? void 0 : this._messages.title}><arcgis-map hide-attribution .spatialReference=${v.WebMercator} ${I(this._internalMap)}><arcgis-zoom .hidden=${this.hideZoomControls} .messageOverrides=${this.messageOverrides} slot=top-left></arcgis-zoom></arcgis-map></calcite-panel>`;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
p("arcgis-oriented-imagery-viewer-image-viewer", S);
|
|
@@ -8,6 +8,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
8
8
|
import type { ActionEvent, PopupOpenOptions } from "@arcgis/core/widgets/Popup/types.js";
|
|
9
9
|
import type { ScreenPoint } from "@arcgis/core/core/types.js";
|
|
10
10
|
import type { ClickEvent } from "@arcgis/core/views/input/types.js";
|
|
11
|
+
import type { ArcgisFeaturesNext } from "../arcgis-features-next/customElement.js";
|
|
11
12
|
import type { ArcgisFeatureNext } from "../arcgis-feature-next/customElement.js";
|
|
12
13
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
13
14
|
import type { PopupAction, InitialDisplayOptions, State } from "@arcgis/core/popup/types.js";
|
|
@@ -464,7 +465,7 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
464
465
|
*/
|
|
465
466
|
accessor location: Point | null | undefined;
|
|
466
467
|
/** Overwrite localized strings for this component */
|
|
467
|
-
accessor messageOverrides: {
|
|
468
|
+
accessor messageOverrides: NonNullable<ArcgisFeaturesNext["messageOverrides"]> & {
|
|
468
469
|
componentLabel?: string | undefined;
|
|
469
470
|
zoom?: string | undefined;
|
|
470
471
|
dock?: string | undefined;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { c as A } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as E, html as w } from "lit";
|
|
4
4
|
import P from "@arcgis/core/popup/Features.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { useDirection as
|
|
5
|
+
import { u as O } from "../../chunks/useT9n.js";
|
|
6
|
+
import { useDirection as F, usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { m as N } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { LitElement as L, createEvent as _, safeStyleMap as S, safeClassMap as y } from "@arcgis/lumina";
|
|
9
9
|
import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
@@ -26,7 +26,7 @@ const I = N(P), C = {
|
|
|
26
26
|
};
|
|
27
27
|
class j extends L {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._direction =
|
|
29
|
+
super(...arguments), this._direction = F(), this._featuresComponent = g(), this._dockAction = new V({ id: "popup-dock-action" }), this._mainContainerNode = g(), this._pointerNode = g(), this.messages = O(), this.viewModel = I(this), this._containerNode = g(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
30
30
|
this.positionStyle = this._calculatePositionStyle();
|
|
31
31
|
}, this.screenLocation = H(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.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.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.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.promises = this.viewModel.promises, 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 = $()("active", "collapsed", "currentAlignment", "dockEnabled", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = _(), this.arcgisClose = _(), this.arcgisTriggerAction = _();
|
|
32
32
|
}
|
|
@@ -154,7 +154,7 @@ class j extends L {
|
|
|
154
154
|
const { _mainContainerNode: e, _popupRect: o, viewModel: i } = this, { view: s } = i, { screenLocation: n } = this;
|
|
155
155
|
if (n == null || !s || !o || !e.value)
|
|
156
156
|
return "top-center";
|
|
157
|
-
const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), c = this._getPointerSize(), { height: d, width:
|
|
157
|
+
const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), c = this._getPointerSize(), { height: d, width: v } = o, h = v + c, u = Math.max(d, l, a) + c, z = this._isOutsideView({
|
|
158
158
|
popupHeight: u,
|
|
159
159
|
popupWidth: h,
|
|
160
160
|
screenLocation: n,
|
|
@@ -166,7 +166,7 @@ class j extends L {
|
|
|
166
166
|
screenLocation: n,
|
|
167
167
|
side: "left",
|
|
168
168
|
view: s
|
|
169
|
-
}),
|
|
169
|
+
}), k = this._isOutsideView({
|
|
170
170
|
popupHeight: u,
|
|
171
171
|
popupWidth: h,
|
|
172
172
|
screenLocation: n,
|
|
@@ -179,7 +179,7 @@ class j extends L {
|
|
|
179
179
|
side: "bottom",
|
|
180
180
|
view: s
|
|
181
181
|
});
|
|
182
|
-
return D ?
|
|
182
|
+
return D ? k ? "bottom-right" : "top-right" : z ? k ? "bottom-left" : "top-left" : k ? M ? "top-center" : "bottom-center" : "top-center";
|
|
183
183
|
}
|
|
184
184
|
_callCurrentAlignment(t) {
|
|
185
185
|
return typeof t == "function" ? t.call(this) : t;
|
|
@@ -307,7 +307,7 @@ class j extends L {
|
|
|
307
307
|
this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
|
|
308
308
|
}
|
|
309
309
|
render() {
|
|
310
|
-
const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: r } = this.viewModel, l = n && e, a = n && !e, c = r?.widthBreakpoint, d = r?.heightBreakpoint,
|
|
310
|
+
const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: r } = this.viewModel, l = n && e, a = n && !e, c = r?.widthBreakpoint, d = r?.heightBreakpoint, v = {
|
|
311
311
|
"aligned-top-center": o === "top-center",
|
|
312
312
|
"aligned-bottom-center": o === "bottom-center",
|
|
313
313
|
"aligned-top-left": o === "top-left" || o === "top-start" && t === "ltr" || o === "top-end" && t === "rtl",
|
|
@@ -338,7 +338,7 @@ class j extends L {
|
|
|
338
338
|
"is-sm-height-breakpoint": d === "small",
|
|
339
339
|
"is-xs-height-breakpoint": d === "xsmall"
|
|
340
340
|
};
|
|
341
|
-
return w`<div style=${S(s)} class=${y(x("root",
|
|
341
|
+
return w`<div style=${S(s)} class=${y(x("root", v, {
|
|
342
342
|
hidden: !n || !s && !e
|
|
343
343
|
}))} .ariaHidden=${!n} .ariaLabel=${T(this.heading ?? "")} role=dialog popover=manual ${m(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
344
344
|
}
|
|
@@ -348,8 +348,12 @@ class j extends L {
|
|
|
348
348
|
_renderMainContainer() {
|
|
349
349
|
const t = {
|
|
350
350
|
shadow: this.dockEnabled
|
|
351
|
+
}, e = {
|
|
352
|
+
...this.messageOverrides,
|
|
353
|
+
collapse: this.messageOverrides?.collapse ?? this.messages.collapse,
|
|
354
|
+
expand: this.messageOverrides?.expand ?? this.messages.expand
|
|
351
355
|
};
|
|
352
|
-
return w`<div class=${y(x("main-container", t))} ${m(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} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${
|
|
356
|
+
return w`<div class=${y(x("main-container", t))} ${m(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} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${e} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${m(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
353
357
|
}
|
|
354
358
|
}
|
|
355
359
|
A("arcgis-popup", j);
|
|
@@ -5,6 +5,7 @@ import type MapView from "@arcgis/core/views/MapView.js";
|
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
7
7
|
import type { SelectStartPayload } from "../arcgis-utility-network-trace-location/customElement.js";
|
|
8
|
+
import type { ArcgisUtilityNetworkTraceResults } from "../arcgis-utility-network-trace-results/customElement.js";
|
|
8
9
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
9
10
|
import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
10
11
|
|
|
@@ -227,39 +228,7 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
|
|
|
227
228
|
*
|
|
228
229
|
* _**Note**: Individual message keys may change between releases._
|
|
229
230
|
*/
|
|
230
|
-
accessor messageOverrides:
|
|
231
|
-
gettingResults: string;
|
|
232
|
-
headings: {
|
|
233
|
-
features: string;
|
|
234
|
-
functions: string;
|
|
235
|
-
setColor: string;
|
|
236
|
-
totalFeatures: string;
|
|
237
|
-
traceResultsCustom: string;
|
|
238
|
-
traceResultsGeneric: string;
|
|
239
|
-
};
|
|
240
|
-
labels: {
|
|
241
|
-
aggregatedGeometryGraphicsColor: string;
|
|
242
|
-
functionResults: string;
|
|
243
|
-
numElements: string;
|
|
244
|
-
numFeatures: string;
|
|
245
|
-
numFunctions: string;
|
|
246
|
-
traceResultElementsByLayer: string;
|
|
247
|
-
};
|
|
248
|
-
noResultsDescription: string;
|
|
249
|
-
noResultsHeading: string;
|
|
250
|
-
noSelectableFeatures: string;
|
|
251
|
-
noTraceConfigDescription: string;
|
|
252
|
-
noTraceConfigHeading: string;
|
|
253
|
-
resultFeaturesAreHidden: string;
|
|
254
|
-
traceErrors: {
|
|
255
|
-
dirtyAreasDiscovered: string;
|
|
256
|
-
noValidControllers: string;
|
|
257
|
-
pathNotFound: string;
|
|
258
|
-
};
|
|
259
|
-
traceFailedDescription: string;
|
|
260
|
-
traceFailedHeading: string;
|
|
261
|
-
unknown: string;
|
|
262
|
-
}, "resultFeaturesAreHidden">> & {
|
|
231
|
+
accessor messageOverrides: NonNullable<ArcgisUtilityNetworkTraceResults["messageOverrides"]> & {
|
|
263
232
|
buttons?: {
|
|
264
233
|
clearResultsCustom?: string | undefined;
|
|
265
234
|
clearResultsGeneric?: string | undefined;
|
|
@@ -144,7 +144,7 @@ class E extends w {
|
|
|
144
144
|
return s`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.showNoStartingPointsWarning = !1}><div slot=title>${this._messages.errors.noStartingPointsTitle}</div><div slot=message>${this._messages.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
145
145
|
}
|
|
146
146
|
renderResultsTab() {
|
|
147
|
-
return u(`${this.el.id}__results-tab-item`, s`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? s`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : s`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${
|
|
147
|
+
return u(`${this.el.id}__results-tab-item`, s`<calcite-tab .selected=${this.activeTab === "results"}>${this.state === "executing" ? s`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : s`<arcgis-utility-network-trace-results .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .layers=${this._allLayers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceConfigTitle=${this._selectedTraceConfig?.title} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this._viewModel.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this._handleAggregatedGeometryGraphicsColorChange} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} @arcgisTraceResultFeaturesReady=${this._handleTraceResultFeaturesReady} ${g(this._handleTraceResultsRefChange)}></arcgis-utility-network-trace-results>`}</calcite-tab>`);
|
|
148
148
|
}
|
|
149
149
|
renderResultsFooter() {
|
|
150
150
|
const { traceResult: e } = this, a = !!(e?.elements.length || e?.globalFunctionResults.length || e?.aggregatedGeometry) && this._traceResultsElement?.state === "ready", i = this._traceResultsElement?.numResults ?? 0;
|
|
@@ -9,6 +9,7 @@ import type UtilityNetwork from "@arcgis/core/networks/UtilityNetwork.js";
|
|
|
9
9
|
import type TraceResult from "@arcgis/core/rest/networks/support/TraceResult.js";
|
|
10
10
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
11
11
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
12
|
+
import type { ArcgisFeaturesNext } from "../arcgis-features-next/customElement.js";
|
|
12
13
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
13
14
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
14
15
|
|
|
@@ -110,7 +111,7 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
|
|
|
110
111
|
/** @default false */
|
|
111
112
|
accessor isElementsSelected: boolean;
|
|
112
113
|
accessor layers: Layer[];
|
|
113
|
-
accessor messageOverrides: {
|
|
114
|
+
accessor messageOverrides: NonNullable<ArcgisFeaturesNext["messageOverrides"]> & {
|
|
114
115
|
gettingResults?: string | undefined;
|
|
115
116
|
headings?: {
|
|
116
117
|
features?: string | undefined;
|
|
@@ -126,7 +126,7 @@ class F extends f {
|
|
|
126
126
|
if (!t)
|
|
127
127
|
return this._renderNoTraceLanding();
|
|
128
128
|
const { elements: a, globalFunctionResults: s, aggregatedGeometry: r } = t, l = !a.length && !s.length && !r, n = a.length > 0 && !s.length && !r;
|
|
129
|
-
return l ? this._renderNoResultsLanding() : this.state === "loading" ? this._renderGettingResults() : this.hideFeatureResults && n ? this._renderFeaturesAreHiddenLanding() : this.isElementsSelected || n ? i`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${n} hide-select-feature initial-display-mode=list @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this._featuresRefChange)}></arcgis-features-next>` : this._renderLanding(t);
|
|
129
|
+
return l ? this._renderNoResultsLanding() : this.state === "loading" ? this._renderGettingResults() : this.hideFeatureResults && n ? this._renderFeaturesAreHiddenLanding() : this.isElementsSelected || n ? i`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .features=${this.traceResultFeatures} .hideActionBar=${this.hideActionBar} .hideCloseButton=${n} hide-select-feature initial-display-mode=list .messageOverrides=${this.messageOverrides} @arcgisClose=${() => this.isElementsSelected = !1} open .referenceElement=${this.referenceElement} .view=${this.view} ${u(this._featuresRefChange)}></arcgis-features-next>` : this._renderLanding(t);
|
|
130
130
|
}
|
|
131
131
|
_renderGettingResults() {
|
|
132
132
|
return i`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`;
|