@arcgis/map-components 5.1.0-next.89 → 5.1.0-next.90
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/{BOMPCJ77.js → 2LNLB4XY.js} +1 -1
- package/dist/cdn/{25LLGDTO.js → 2YB6S64G.js} +1 -1
- package/dist/cdn/3A4SIMPX.js +2 -0
- package/dist/cdn/3N5NYUQ4.js +2 -0
- package/dist/cdn/{K6FLTE5C.js → 3YVU66DR.js} +1 -1
- package/dist/cdn/4GX6K4QV.js +2 -0
- package/dist/cdn/{UMATWIWL.js → 5BKXAZGJ.js} +1 -1
- package/dist/cdn/{6352EDBR.js → 64Q47BWH.js} +1 -1
- package/dist/cdn/{XQ5BV7DL.js → 6BESCJK6.js} +1 -1
- package/dist/cdn/{TUY46VJP.js → 7GN54I5I.js} +1 -1
- package/dist/cdn/A35RPLAM.js +2 -0
- package/dist/cdn/AOKQLNNK.js +2 -0
- package/dist/cdn/{MAVNZR2L.js → BLH76V4B.js} +1 -1
- package/dist/cdn/D4ZQOMOH.js +2 -0
- package/dist/cdn/{ZSG6TJPR.js → FJY5EA2S.js} +1 -1
- package/dist/cdn/{HU4V2LGL.js → GDHU6FB7.js} +1 -1
- package/dist/cdn/{5GEYGYVM.js → GFNS6DWD.js} +1 -1
- package/dist/cdn/{ACT4QKSO.js → GPMDFKYC.js} +1 -1
- package/dist/cdn/{24VXNB37.js → IWGEVWTS.js} +1 -1
- package/dist/cdn/{FDNFARSM.js → JHRFJTE4.js} +1 -1
- package/dist/cdn/{3BUCNQ3Q.js → JWYAOQXS.js} +1 -1
- package/dist/cdn/{HTNECFCQ.js → K2RCQ3S4.js} +1 -1
- package/dist/cdn/{MAILZU6P.js → MAFF3ZL7.js} +1 -1
- package/dist/cdn/{FQY55PPT.js → MVULTZL6.js} +1 -1
- package/dist/cdn/{GCPE7SKR.js → NJP6OBBN.js} +1 -1
- package/dist/cdn/{ST5DXIZ6.js → NVRFQSZB.js} +1 -1
- package/dist/cdn/{WJWYFM4K.js → PSIEACM5.js} +1 -1
- package/dist/cdn/{F5RARHY3.js → Q6IMZMFI.js} +1 -1
- package/dist/cdn/{MQ4W6OKL.js → QHSIMKPK.js} +1 -1
- package/dist/cdn/QMR3YL46.js +2 -0
- package/dist/cdn/{C6DEM2XB.js → RCLKTOCN.js} +1 -1
- package/dist/cdn/{ZIV7S3DE.js → THXCDBHG.js} +1 -1
- package/dist/cdn/V4RMKJUW.js +2 -0
- package/dist/cdn/WRWNOEUN.js +2 -0
- package/dist/cdn/{PFHHH6X2.js → XF7T7NTL.js} +1 -1
- package/dist/cdn/{R2EXDY7E.js → XHYVTSLE.js} +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +51 -63
- package/dist/chunks/urlUtils.js +17 -0
- package/dist/components/arcgis-aggregated-features/customElement.js +69 -46
- package/dist/components/arcgis-daylight/customElement.js +2 -2
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +7 -0
- package/dist/components/arcgis-features/customElement.js +68 -51
- package/dist/components/arcgis-grid-controls/customElement.js +26 -26
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.d.ts +41 -0
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +299 -0
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/index.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/index.js +4 -0
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/support/NonPanoramicMedia.d.ts +25 -0
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-time-of-day-slider/customElement.js +47 -47
- package/dist/components/arcgis-time-slider/customElement.d.ts +353 -688
- package/dist/components/arcgis-time-slider/customElement.js +26 -678
- package/dist/components/arcgis-time-slider/index.js +0 -7
- 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 +4 -0
- package/dist/loader.js +3 -2
- package/dist/types/lumina.d.ts +9 -2
- package/dist/types/preact.d.ts +10 -2
- package/dist/types/react.d.ts +11 -2
- package/dist/types/stencil.d.ts +9 -2
- package/package.json +5 -5
- package/dist/cdn/AFAQWPXY.js +0 -2
- package/dist/cdn/DWADIUIX.js +0 -2
- package/dist/cdn/F2UYN7PY.js +0 -2
- package/dist/cdn/F74DKJP5.js +0 -2
- package/dist/cdn/JE5PV6KP.js +0 -2
- package/dist/cdn/MDC6LZQV.js +0 -2
- package/dist/cdn/Z33HF7ZE.js +0 -2
- package/dist/cdn/assets/time-slider/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/time-slider/t9n/messages.zh-TW.json +0 -1
- package/dist/components/arcgis-time-slider/types.d.ts +0 -147
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as L } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { keyed as
|
|
5
|
-
import
|
|
3
|
+
import { css as N, html as r } from "lit";
|
|
4
|
+
import { keyed as C } from "lit/directives/keyed.js";
|
|
5
|
+
import B from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import T from "@arcgis/core/core/Collection.js";
|
|
7
7
|
import O from "@arcgis/core/popup/Features.js";
|
|
8
|
-
import { LitElement as S, createEvent as
|
|
8
|
+
import { LitElement as S, createEvent as $, renderElement as z, nothing as g, safeClassMap as A } from "@arcgis/lumina";
|
|
9
9
|
import { usePropertyChange as P, bypassReadOnly as k } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { classes as y } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { createRef as v, ref as f } from "lit/directives/ref.js";
|
|
12
12
|
import { g as D } from "../../chunks/feature-utils.js";
|
|
13
13
|
import { initializeProjection as H } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { t as V, z as Z } from "../../chunks/action-utils.js";
|
|
15
15
|
import { m as U } from "../../chunks/useViewModel.js";
|
|
16
16
|
import { renderingSanitizer as m } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
17
17
|
import { stripHTML as I } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
18
18
|
import { substitute as u, formatNumber as _ } from "@arcgis/core/intl.js";
|
|
19
19
|
import { u as j } from "../../chunks/useT9n.js";
|
|
20
20
|
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
import G from "@arcgis/core/popup/support/FeatureAbilities.js";
|
|
22
|
+
const K = N`: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){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)}`;
|
|
23
|
+
function q(p) {
|
|
23
24
|
return p?.declaredClass.startsWith("esri.layers.") ?? !1;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function W(p) {
|
|
26
27
|
if (!(!p || !("featureReduction" in p)))
|
|
27
28
|
return p.featureReduction?.type;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
-
class
|
|
30
|
+
const X = U(O);
|
|
31
|
+
class J extends S {
|
|
31
32
|
constructor() {
|
|
32
|
-
super(...arguments), this._zoomToFeature = new
|
|
33
|
+
super(...arguments), this._zoomToFeature = new B({
|
|
33
34
|
icon: "magnifying-glass-plus",
|
|
34
35
|
id: "zoom-to-feature",
|
|
35
36
|
title: "{messages.zoom}"
|
|
@@ -40,13 +41,13 @@ class X extends S {
|
|
|
40
41
|
}), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = v(), this._featureMenuViewportNode = v(), this._actionBarMenuNode = v(), this._flowContainerNode = v(), this.messages = j(), this._selectedFeatureComponent = v(), this._cancelOpenRelatedFeature = () => {
|
|
41
42
|
const { _openRelatedFeatureAbortController: e } = this;
|
|
42
43
|
e && e.abort(), this._openRelatedFeatureAbortController = null;
|
|
43
|
-
}, this._openRelatedFeatureAbortController = null, this.flowItems = new T(), this._aggregatedFeatureCount = 0, this._aggregatedFeaturesLoading = !1, this.viewModel =
|
|
44
|
+
}, this._openRelatedFeatureAbortController = null, this.flowItems = new T(), this._aggregatedFeatureCount = 0, this._aggregatedFeaturesLoading = !1, this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new T(), this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = P()("active", "collapsed", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = $(), this.arcgisClose = $(), this.arcgisTriggerAction = $();
|
|
44
45
|
}
|
|
45
46
|
static {
|
|
46
|
-
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _aggregatedFeaturesLoading: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureItemAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
47
|
+
this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _aggregatedFeatureCount: 16, _aggregatedFeaturesLoading: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, featureItemAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
|
|
47
48
|
}
|
|
48
49
|
static {
|
|
49
|
-
this.styles =
|
|
50
|
+
this.styles = K;
|
|
50
51
|
}
|
|
51
52
|
get _hideActionText() {
|
|
52
53
|
if (!this.responsiveActionsEnabled)
|
|
@@ -66,6 +67,22 @@ class X extends S {
|
|
|
66
67
|
get _featureFlowItemSelected() {
|
|
67
68
|
return this.initialDisplayMode === "list" ? !!this.selectedFeature : !this.featureMenuOpen;
|
|
68
69
|
}
|
|
70
|
+
get featureViewModelAbilities() {
|
|
71
|
+
const { featureItemAbilities: e } = this.viewModel;
|
|
72
|
+
return e ? {
|
|
73
|
+
attachmentsContent: e.attachmentsContent,
|
|
74
|
+
chartAnimation: e.chartAnimation,
|
|
75
|
+
customContent: e.customContent,
|
|
76
|
+
fieldsContent: e.fieldsContent,
|
|
77
|
+
mediaContent: e.mediaContent,
|
|
78
|
+
relationshipContent: e.relationshipContent,
|
|
79
|
+
textContent: e.textContent,
|
|
80
|
+
utilityNetworkAssociationsContent: e.utilityNetworkAssociationsContent
|
|
81
|
+
} : void 0;
|
|
82
|
+
}
|
|
83
|
+
set featureViewModelAbilities(e) {
|
|
84
|
+
this.viewModel.featureItemAbilities = new G(e ?? {});
|
|
85
|
+
}
|
|
69
86
|
async clear() {
|
|
70
87
|
return this.viewModel.clear();
|
|
71
88
|
}
|
|
@@ -77,16 +94,16 @@ class X extends S {
|
|
|
77
94
|
}
|
|
78
95
|
async fetchFeatures(e, t) {
|
|
79
96
|
this._cancelFetchingFeatures();
|
|
80
|
-
const { signal: i } = t ?? {}, a = new AbortController(), { signal: s } = a,
|
|
97
|
+
const { signal: i } = t ?? {}, a = new AbortController(), { signal: s } = a, n = i ? AbortSignal.any([s, i]) : s;
|
|
81
98
|
if (this._fetchFeaturesController = a, !e && this.view && this.location && (await H(this.location.spatialReference, this.view.spatialReference, null, {
|
|
82
|
-
signal:
|
|
99
|
+
signal: n
|
|
83
100
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
84
101
|
return;
|
|
85
|
-
const
|
|
102
|
+
const o = await this.viewModel.fetchFeatures(e, {
|
|
86
103
|
...t,
|
|
87
|
-
signal:
|
|
104
|
+
signal: n
|
|
88
105
|
});
|
|
89
|
-
this.location =
|
|
106
|
+
this.location = o.location, this.promises = o.pendingFeatures;
|
|
90
107
|
}
|
|
91
108
|
async next() {
|
|
92
109
|
return this.viewModel.next();
|
|
@@ -99,7 +116,7 @@ class X extends S {
|
|
|
99
116
|
}
|
|
100
117
|
async triggerAction(e) {
|
|
101
118
|
if (!e.disabled)
|
|
102
|
-
return e?.type === "toggle" && (e.value = !e.value), await
|
|
119
|
+
return e?.type === "toggle" && (e.value = !e.value), await V(e, this.viewModel);
|
|
103
120
|
}
|
|
104
121
|
loaded() {
|
|
105
122
|
this.manager.onLifecycle(() => [
|
|
@@ -143,9 +160,9 @@ class X extends S {
|
|
|
143
160
|
const a = i?.graphic;
|
|
144
161
|
if (!a)
|
|
145
162
|
return;
|
|
146
|
-
const s = D(a),
|
|
147
|
-
let
|
|
148
|
-
|
|
163
|
+
const s = D(a), n = q(s) ? s : null;
|
|
164
|
+
let o = t.get(n);
|
|
165
|
+
o || (o = [], t.set(n, o)), o.push(i);
|
|
149
166
|
}), t;
|
|
150
167
|
}
|
|
151
168
|
_handleCollapseToggle() {
|
|
@@ -166,8 +183,8 @@ class X extends S {
|
|
|
166
183
|
const s = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
167
184
|
if (this._openRelatedFeatureAbortController !== t)
|
|
168
185
|
return;
|
|
169
|
-
const
|
|
170
|
-
|
|
186
|
+
const n = s.execute(a);
|
|
187
|
+
n != null && (this.location = n), this.features = [i], this.open = !0, await this.setFocus(), this._openRelatedFeatureAbortController === t && (this._openRelatedFeatureAbortController = null);
|
|
171
188
|
}
|
|
172
189
|
_handlePaginationMenuButton() {
|
|
173
190
|
this._updateFeatureMenu();
|
|
@@ -210,8 +227,8 @@ class X extends S {
|
|
|
210
227
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
211
228
|
}
|
|
212
229
|
_getActionTitle(e) {
|
|
213
|
-
const { messages: t, selectedFeature: i } = this, { id: a } = e, s = i?.attributes,
|
|
214
|
-
return
|
|
230
|
+
const { messages: t, selectedFeature: i } = this, { id: a } = e, s = i?.attributes, n = e.title ?? "", o = a === "zoom-to-feature" ? u(n, { messages: t }) : a === "remove-selected-feature" ? u(n, { messages: t }) : a === "zoom-to-clustered-features" ? u(n, { messages: t }) : a === "browse-aggregated-features" ? u(n, { messages: t }) : e.title;
|
|
231
|
+
return o && s ? u(o, s) : o ?? "";
|
|
215
232
|
}
|
|
216
233
|
_onMainKeydown(e) {
|
|
217
234
|
const { key: t } = e;
|
|
@@ -229,7 +246,7 @@ class X extends S {
|
|
|
229
246
|
}
|
|
230
247
|
_viewScaleChange() {
|
|
231
248
|
const { selectedFeature: e } = this;
|
|
232
|
-
!e?.isAggregate ||
|
|
249
|
+
!e?.isAggregate || W(D(e)) !== "cluster" || (this.viewModel.aggregatedFeaturesEnabled = !1, this.open = !1, this.clear());
|
|
233
250
|
}
|
|
234
251
|
_viewChange() {
|
|
235
252
|
this.viewModel.clear(), this.open = !1, this._aggregatedFeatureCount = 0, this._removeFlowItems();
|
|
@@ -308,14 +325,14 @@ class X extends S {
|
|
|
308
325
|
}
|
|
309
326
|
_renderFeatureMenu() {
|
|
310
327
|
const { messages: e, viewModel: t } = this, i = this._groupResultsByLayer(), a = /* @__PURE__ */ new Map();
|
|
311
|
-
t.featureItems.forEach((
|
|
328
|
+
t.featureItems.forEach((n, o) => a.set(n, o));
|
|
312
329
|
const s = this.initialDisplayMode === "list" ? "none" : "single";
|
|
313
|
-
return t.featureItems.length ? r`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i.keys(), (
|
|
314
|
-
const
|
|
330
|
+
return t.featureItems.length ? r`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${s}>${Array.from(i.keys(), (n) => {
|
|
331
|
+
const o = i.get(n)?.map((c) => {
|
|
315
332
|
const l = a.get(c);
|
|
316
333
|
return l == null ? null : this._renderFeatureMenuItem(c, l);
|
|
317
|
-
}), h =
|
|
318
|
-
return !this.hideFeatureListLayerTitle && h !== null ?
|
|
334
|
+
}), h = n ? n.title ?? this.messages.untitled : null;
|
|
335
|
+
return !this.hideFeatureListLayerTitle && h !== null ? C(n ?? "map-graphics", r`<calcite-list-item-group .heading=${h}>${o}</calcite-list-item-group>`) : o;
|
|
319
336
|
})}</calcite-list>` : null;
|
|
320
337
|
}
|
|
321
338
|
_renderHeaderAction(e) {
|
|
@@ -326,41 +343,41 @@ class X extends S {
|
|
|
326
343
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
327
344
|
}
|
|
328
345
|
_renderContentFeature(e) {
|
|
329
|
-
const { headingLevel: t, hideCloseButton: i, _isCollapsed: a, _collapseEnabled: s, featureNavigationTop:
|
|
330
|
-
return
|
|
346
|
+
const { headingLevel: t, hideCloseButton: i, _isCollapsed: a, _collapseEnabled: s, featureNavigationTop: n, initialDisplayMode: o, selectedFeature: h } = this, { active: c } = this.viewModel, l = this._getHeading();
|
|
347
|
+
return o === "list" && !h ? null : r`<calcite-flow-item class=${A(y({
|
|
331
348
|
"content-feature": !0,
|
|
332
349
|
"flow-item-collapsed": a
|
|
333
|
-
}))} .closable=${!i} .closed=${!c} .collapsed=${a} .collapseDirection=${
|
|
350
|
+
}))} .closable=${!i} .closed=${!c} .collapsed=${a} .collapseDirection=${n ? "down" : "up"} .collapsible=${s} .headingLevel=${t} .selected=${e} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${I(l)} ${f(this._rootFlowItemNode)}><div slot=heading><div .innerHTML=${m.sanitize(l ?? "") ?? ""}></div></div>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${A(y("container", "content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
334
351
|
}
|
|
335
352
|
_renderFeatureMenuContainer() {
|
|
336
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: a, initialDisplayMode: s, featureMenuOpen:
|
|
337
|
-
if (s === "feature" && !
|
|
353
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: a, initialDisplayMode: s, featureMenuOpen: n, _featureFlowItemSelected: o, _collapseEnabled: h, _isCollapsed: c, featureNavigationTop: l, headingLevel: w } = this, { active: F, featureItems: b, pendingPromisesCount: M } = e, E = i ?? a.selectFeature;
|
|
354
|
+
if (s === "feature" && !n)
|
|
338
355
|
return null;
|
|
339
|
-
const x = !
|
|
356
|
+
const x = !o;
|
|
340
357
|
return r`<calcite-flow-item class=${A(y({
|
|
341
358
|
"flow-item-collapsed": c
|
|
342
|
-
}))} .closable=${s === "list" && !t} .closed=${!
|
|
359
|
+
}))} .closable=${s === "list" && !t} .closed=${!F} .collapsed=${s === "list" && c} .collapseDirection=${l ? "down" : "up"} .collapsible=${s === "list" && h} .description=${this.hideFeatureMenuHeading ? void 0 : u(a.total ?? "", {
|
|
343
360
|
total: b.length
|
|
344
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : E} .headingLevel=${
|
|
361
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : E} .headingLevel=${w} .loading=${e.waitingForContents} .selected=${x} @calciteFlowItemBack=${(R) => {
|
|
345
362
|
R.preventDefault(), this._handleFeatureMenuBack();
|
|
346
363
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${M > 0 ? r`<calcite-loader class="loader" inline .label=${a.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${x ? this._renderFeatureMenu() : null}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${a.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
347
364
|
}
|
|
348
365
|
_renderFlowItem(e, t) {
|
|
349
|
-
const { messages: i, hideCloseButton: a, hideSelectFeature: s, active:
|
|
350
|
-
return r`<calcite-flow-item .closable=${!a} .closed=${!
|
|
366
|
+
const { messages: i, hideCloseButton: a, hideSelectFeature: s, active: n } = this, o = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, h = o && !s, c = e.flowType === "feature-association", l = i.returnToInitialFeature ?? "", w = i?.selectFeature, F = this._getActionTitle(this._zoomToFeature), b = !this.hideActionBar && c && o;
|
|
367
|
+
return r`<calcite-flow-item .closable=${!a} .closed=${!n} .description=${I(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${this.hideHeading ? void 0 : I(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(M) => {
|
|
351
368
|
M.preventDefault(), this._handleDrillInBackClick();
|
|
352
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${this.hideHeading ? null : r`<div slot=heading><div .innerHTML=${m.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${m.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${h ? r`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${
|
|
369
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${this.hideHeading ? null : r`<div slot=heading><div .innerHTML=${m.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${m.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${h ? r`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${w ?? ""} title=${w ?? g}></calcite-action>` : null}${b ? r`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon ?? void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${F} title=${F ?? g} @click=${() => Z(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
353
370
|
}
|
|
354
371
|
_renderContentContainer() {
|
|
355
|
-
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, a = i && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !i,
|
|
356
|
-
return r`<calcite-flow ${f(this._flowContainerNode)}>${h}${
|
|
372
|
+
const e = this.flowItems?.toArray(), t = e.length > 0, i = this.viewModel.aggregatedFeaturesEnabled && this.viewModel.selectedFeature?.isAggregate && !t, a = i && e.length === 0, s = e.length === 0 && this._featureFlowItemSelected && !i, n = e?.map((c, l) => this._renderFlowItem(c, this._featureFlowItemSelected && l === e.length - 1)), o = this._renderBrowseAggregateContainer(!!a), h = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(s)] : [this._renderContentFeature(s), this._renderFeatureMenuContainer()];
|
|
373
|
+
return r`<calcite-flow ${f(this._flowContainerNode)}>${h}${o}${n}</calcite-flow>`;
|
|
357
374
|
}
|
|
358
375
|
_renderBrowseAggregateContainer(e) {
|
|
359
376
|
const { hideCloseButton: t, active: i, messages: a } = this, { selectedFeature: s } = this.viewModel;
|
|
360
377
|
return this.viewModel.aggregatedFeaturesEnabled && s?.isAggregate ? r`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!i} .description=${this._aggregatedFeatureCount ? u(a.total ?? "", {
|
|
361
378
|
total: this._aggregatedFeatureCount
|
|
362
|
-
}) : ""} .heading=${a.aggregatedFeatures} @calciteFlowItemBack=${(
|
|
363
|
-
|
|
379
|
+
}) : ""} .heading=${a.aggregatedFeatures} @calciteFlowItemBack=${(o) => {
|
|
380
|
+
o.preventDefault(), this.viewModel.aggregatedFeaturesEnabled = !1;
|
|
364
381
|
}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .feature=${s ?? void 0} .flowItems=${this.flowItems} .map=${this.map ?? void 0} .messages=${a} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.view ?? void 0}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${() => this.viewModel.aggregatedFeaturesEnabled = !1} slot=footer-start width=full>${a.back}</calcite-button></calcite-flow-item>` : null;
|
|
365
382
|
}
|
|
366
383
|
_renderActionBar() {
|
|
@@ -375,10 +392,10 @@ class X extends S {
|
|
|
375
392
|
}
|
|
376
393
|
_renderContent() {
|
|
377
394
|
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
378
|
-
return t ?
|
|
395
|
+
return t ? C(t, r`<arcgis-feature .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>`) : typeof e == "string" ? C(e, r`<div .innerHTML=${m.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
379
396
|
}
|
|
380
397
|
}
|
|
381
|
-
L("arcgis-features",
|
|
398
|
+
L("arcgis-features", J);
|
|
382
399
|
export {
|
|
383
|
-
|
|
400
|
+
J as ArcgisFeatures
|
|
384
401
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as $, html as
|
|
3
|
+
import { css as $, html as a } from "lit";
|
|
4
4
|
import { ref as f } from "lit/directives/ref.js";
|
|
5
5
|
import { g as v } from "../../chunks/globalCss.js";
|
|
6
6
|
import S from "@arcgis/core/views/Theme.js";
|
|
@@ -98,15 +98,15 @@ class W extends E {
|
|
|
98
98
|
this._placementModeButtonRefs.clear();
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return
|
|
101
|
+
return a`<div class=${p(g("root", v.widget, v.panel))}><div class="container">${this._viewModel.destroyed ? null : this._renderContent()}</div></div>`;
|
|
102
102
|
}
|
|
103
103
|
_renderContent() {
|
|
104
|
-
const { hideGridEnabledToggle: e, hidePlacementButtons: i, hideNumericInputs: t, hideLineIntervalInput:
|
|
104
|
+
const { hideGridEnabledToggle: e, hidePlacementButtons: i, hideNumericInputs: t, hideLineIntervalInput: r, hideGridSnapEnabledToggle: o, hideDynamicScaleToggle: l, hideRotateWithMapToggle: s, hideColorSelection: c } = this;
|
|
105
105
|
return [
|
|
106
106
|
e ? void 0 : this._renderEnabledToggle(),
|
|
107
107
|
i ? void 0 : this._renderGridPlacementButtons(),
|
|
108
108
|
t ? void 0 : this._renderNumericInputs(),
|
|
109
|
-
|
|
109
|
+
r ? void 0 : this._renderIntervalInput(),
|
|
110
110
|
!o && this.snappingOptions ? this._renderSnappingToggle() : void 0,
|
|
111
111
|
l ? void 0 : this._renderDynamicScaleToggle(),
|
|
112
112
|
s ? void 0 : this._renderRotateToggle(),
|
|
@@ -114,20 +114,20 @@ class W extends E {
|
|
|
114
114
|
];
|
|
115
115
|
}
|
|
116
116
|
_renderGridPlacementButtons() {
|
|
117
|
-
const { interactivePlacementState: e, placementDisabled: i, gridControlsEnabled: t } = this,
|
|
118
|
-
return
|
|
117
|
+
const { interactivePlacementState: e, placementDisabled: i, gridControlsEnabled: t } = this, r = i || !t;
|
|
118
|
+
return a`<calcite-label scale=s>${this._messages.placementOptions}<calcite-action-bar expand-disabled layout=horizontal>${B.map((o) => this._renderPlacementModeButton(o, r, e))}</calcite-action-bar></calcite-label>`;
|
|
119
119
|
}
|
|
120
120
|
_renderPlacementModeButton(e, i, t) {
|
|
121
|
-
const
|
|
122
|
-
return
|
|
121
|
+
const r = this._messages?.placementState?.[e], o = this._placementModeButtonRefs.get(e);
|
|
122
|
+
return a`<div><calcite-action .active=${t === e} alignment=center .disabled=${i} .icon=${h.placementState[e]} data-placement-action=${e ?? m} @click=${() => this._togglePlacementState(e)} .text=${r ?? ""} ${f(this._setPlacementButtonRef)}></calcite-action>${o ? a`<calcite-tooltip overlay-positioning=fixed placement=top .referenceElement=${o}>${r}</calcite-tooltip>` : void 0}</div>`;
|
|
123
123
|
}
|
|
124
124
|
_renderNumericInputs() {
|
|
125
|
-
const { rotation: e, spacing: i, effectiveSpacingAfterDynamicScaling: t, numericSpacingInputShouldBeVisible:
|
|
126
|
-
return
|
|
127
|
-
|
|
125
|
+
const { rotation: e, spacing: i, effectiveSpacingAfterDynamicScaling: t, numericSpacingInputShouldBeVisible: r, gridControlsEnabled: o } = this, l = t != null && t !== i;
|
|
126
|
+
return a`<div class=${p(g("numeric-inputs-container"))}>${[
|
|
127
|
+
r ? a`<calcite-label scale=s><span>${this._messages?.inputLabel?.spacing}${l ? a`<calcite-icon class=${p(g("inline-icon"))} .icon=${h.warning} scale=s tabindex=0 ${f(this._setWarningIconRef)}></calcite-icon>` : void 0}</span><calcite-input-number .disabled=${!o} number-button-type=none .value=${i?.toFixed(2)} @calciteInputNumberChange=${({ currentTarget: s }) => {
|
|
128
128
|
const c = Number.parseFloat(s.value);
|
|
129
129
|
this.spacing = c, c !== this.spacing && (s.value = `${this.spacing}`);
|
|
130
|
-
}}></calcite-input-number>${l && this._warningIconTooltipRef ?
|
|
130
|
+
}}></calcite-input-number>${l && this._warningIconTooltipRef ? a`<calcite-tooltip overlay-positioning=fixed placement=leading .referenceElement=${this._warningIconTooltipRef}>${P(this._messages?.warnings?.dynamicSpacing ?? "", { actualSpacingIncludingUnit: t }, {
|
|
131
131
|
format: {
|
|
132
132
|
actualSpacingIncludingUnit: {
|
|
133
133
|
type: "number",
|
|
@@ -140,55 +140,55 @@ class W extends E {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
})}</calcite-tooltip>` : void 0}</calcite-label>` : void 0,
|
|
143
|
-
|
|
143
|
+
a`<calcite-label scale=s>${this._messages?.inputLabel?.angle}<calcite-input-number .disabled=${!o} integer number-button-type=none suffix-text=\u00B0 .value=${`${L(e)}`} @calciteInputNumberChange=${({ currentTarget: s }) => this.rotation = D(s.value)}></calcite-input-number></calcite-label>`
|
|
144
144
|
]}</div>`;
|
|
145
145
|
}
|
|
146
146
|
_renderIntervalInput() {
|
|
147
147
|
const { majorLineInterval: e, gridControlsEnabled: i } = this;
|
|
148
|
-
return
|
|
149
|
-
const
|
|
150
|
-
this.majorLineInterval =
|
|
148
|
+
return a`<div class=${p(g("numeric-inputs-container"))}><calcite-label scale=s>${this._messages?.inputLabel?.interval}<calcite-input-number .disabled=${!i} integer max=15 min=1 number-button-type=vertical .value=${`${e}`} @calciteInputNumberChange=${({ currentTarget: t }) => {
|
|
149
|
+
const r = Number.parseInt(t.value, 10);
|
|
150
|
+
this.majorLineInterval = r, r !== this.majorLineInterval && (t.value = `${this.majorLineInterval}`);
|
|
151
151
|
}}></calcite-input-number></calcite-label></div>`;
|
|
152
152
|
}
|
|
153
153
|
_renderSnappingToggle() {
|
|
154
154
|
const { snappingOptions: e, gridControlsEnabled: i } = this, t = e?.gridEnabled ?? !1;
|
|
155
|
-
return
|
|
155
|
+
return a`<arcgis-labeled-switch .checked=${t} .disabled=${!(i && !!e)} .label=${this._messages?.switchLabel?.snap} @arcgisCheckedChanged=${(o) => {
|
|
156
156
|
o.stopPropagation(), this.snappingOptions?.set("gridEnabled", o.detail);
|
|
157
157
|
}}></arcgis-labeled-switch>`;
|
|
158
158
|
}
|
|
159
159
|
_renderDynamicScaleToggle() {
|
|
160
|
-
const { _messages: e, gridOutOfScale: i, dynamicScaling: t, gridControlsEnabled:
|
|
161
|
-
return
|
|
160
|
+
const { _messages: e, gridOutOfScale: i, dynamicScaling: t, gridControlsEnabled: r } = this, o = !this.hideOutOfScaleWarning && i;
|
|
161
|
+
return a`<arcgis-labeled-switch .checked=${t} .disabled=${!r} .hint=${o ? e?.warnings?.outOfScale : void 0} .hintIcon=${h.warning} hint-kind=warning .label=${e?.switchLabel?.scaling} @arcgisCheckedChanged=${(l) => {
|
|
162
162
|
l.stopPropagation(), this.dynamicScaling = l.detail;
|
|
163
163
|
}}></arcgis-labeled-switch>`;
|
|
164
164
|
}
|
|
165
165
|
_renderRotateToggle() {
|
|
166
166
|
const { gridControlsEnabled: e, rotateWithMap: i } = this;
|
|
167
|
-
return
|
|
167
|
+
return a`<arcgis-labeled-switch .checked=${i} .disabled=${!e} .label=${this._messages?.switchLabel?.rotateWithMap ?? ""} @arcgisCheckedChanged=${(t) => {
|
|
168
168
|
t.stopPropagation(), this.rotateWithMap = t.detail;
|
|
169
169
|
}}></arcgis-labeled-switch>`;
|
|
170
170
|
}
|
|
171
171
|
_renderEnabledToggle() {
|
|
172
|
-
return
|
|
172
|
+
return a`<div class="switch--bordered"><arcgis-labeled-switch .checked=${this.displayEnabled} .disabled=${!!this.interactivePlacementState} .label=${this._messages?.switchLabel?.display} @arcgisCheckedChanged=${(e) => {
|
|
173
173
|
e.stopPropagation(), this.trySetDisplayEnabled(e.detail);
|
|
174
174
|
}}></arcgis-labeled-switch></div>`;
|
|
175
175
|
}
|
|
176
176
|
_renderColorSelection() {
|
|
177
177
|
const { customColor: e } = this;
|
|
178
|
-
return
|
|
178
|
+
return a`<calcite-label scale=s>${this._messages?.inputLabel?.theme}<div class="tile-group">${[
|
|
179
179
|
this._renderThemeTile({ value: "dark" }),
|
|
180
180
|
this._renderThemeTile({ value: "light" }),
|
|
181
181
|
this._renderThemeTile({ value: "custom" }),
|
|
182
|
-
this._themePopoverRef ?
|
|
182
|
+
this._themePopoverRef ? a`<calcite-popover auto-close .label=${this._messages?.gridLineColorPopoverLabel ?? ""} overlay-positioning=fixed .referenceElement=${this._themePopoverRef}><calcite-color-picker alpha-channel saved-disabled .value=${e?.toHex({ digits: 8 }) ?? "#000000ff"} @calciteColorPickerChange=${(i) => {
|
|
183
183
|
const t = d.fromHex(i.currentTarget.value);
|
|
184
184
|
t && (this.customColor = t, this.theme = "custom");
|
|
185
185
|
}}></calcite-color-picker></calcite-popover>` : void 0
|
|
186
186
|
]}</div></calcite-label>`;
|
|
187
187
|
}
|
|
188
188
|
_renderThemeTile(e) {
|
|
189
|
-
const { theme: i, gridControlsEnabled: t } = this, { value:
|
|
190
|
-
return
|
|
191
|
-
this.theme =
|
|
189
|
+
const { theme: i, gridControlsEnabled: t } = this, { value: r } = e, o = this._messages?.gridTheme?.[r], l = `${this._labelUid}--theme_tile_${r}`, s = `${l}__label`, c = h.gridTheme[r];
|
|
190
|
+
return a`<div class=${p(g({ tile: !0, disabled: !t }))} role=button ${f(r === "custom" ? this._setPopoverRef : this._emptyFunction)}><input aria-labelledby=${s ?? m} .checked=${i === r} .disabled=${!t} id=${l ?? m} .name=${`${this._labelUid}--theme`} @change=${(x) => {
|
|
191
|
+
this.theme = r, x.currentTarget.focus();
|
|
192
192
|
}} tabindex=0 type=radio><div class="content"><calcite-icon .icon=${c} scale=l></calcite-icon><calcite-label .for=${l} id=${s ?? m}>${o}</calcite-label></div></div>`;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -12,7 +12,7 @@ const m = l`.esri-imagery-viewer{width:100%;height:100%}.esri-oriented-imagery-v
|
|
|
12
12
|
class h extends n {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), this.widget = v(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.layerId = c(this, (e) => {
|
|
15
|
-
this.layer = e;
|
|
15
|
+
e && (this.layer = e);
|
|
16
16
|
}), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = t()("imageGalleryEnabled", "layer"), this.arcgisReady = s();
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type NonPanoramicMedia from "./support/NonPanoramicMedia.js";
|
|
3
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
4
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
|
+
import type { NonPanoramicMediaProperties } from "./support/NonPanoramicMedia.js";
|
|
6
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
|
+
|
|
8
|
+
/** @internal */
|
|
9
|
+
export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement {
|
|
10
|
+
/** @internal */
|
|
11
|
+
protected _messages: Partial<{ title: string; }> & T9nMeta<{ title: string; }>;
|
|
12
|
+
/** @default false */
|
|
13
|
+
accessor hideHeader: boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
accessor hideLoader: boolean;
|
|
16
|
+
/** @default false */
|
|
17
|
+
accessor hideZoomControls: boolean;
|
|
18
|
+
get media(): NonPanoramicMediaProperties | undefined;
|
|
19
|
+
set media(value: NonPanoramicMedia | NonPanoramicMediaProperties | undefined);
|
|
20
|
+
/**
|
|
21
|
+
* Replace localized message strings with your own strings.
|
|
22
|
+
*
|
|
23
|
+
* _**Note**: Individual message keys may change between releases._
|
|
24
|
+
*/
|
|
25
|
+
accessor messageOverrides: { title?: string | undefined; };
|
|
26
|
+
/** @default 0 */
|
|
27
|
+
accessor rotation: number;
|
|
28
|
+
/** @param graphic */
|
|
29
|
+
addGraphic(graphic: Graphic): void;
|
|
30
|
+
/** @param graphics */
|
|
31
|
+
addGraphics(graphics: Graphic[]): void;
|
|
32
|
+
clearGraphics(): void;
|
|
33
|
+
mediaOnLoad(): Promise<NonPanoramicMedia | undefined>;
|
|
34
|
+
/** @param graphic */
|
|
35
|
+
removeGraphic(graphic: Graphic): void;
|
|
36
|
+
/** @param graphics */
|
|
37
|
+
removeGraphics(graphics: Graphic[]): void;
|
|
38
|
+
"@setterTypes": {
|
|
39
|
+
media?: NonPanoramicMedia | NonPanoramicMediaProperties | undefined;
|
|
40
|
+
};
|
|
41
|
+
}
|