@arcgis/map-components 5.2.0-next.90 → 5.2.0-next.91
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/2AKHVAG7.js +2 -0
- package/dist/cdn/2GM4O42V.js +2 -0
- package/dist/cdn/{2LDYIMCE.js → 2U6EB7BN.js} +1 -1
- package/dist/cdn/{HOUQ3XZ3.js → 34CXVCB3.js} +1 -1
- package/dist/cdn/{NWLNFKT6.js → 3TRAIJXM.js} +1 -1
- package/dist/cdn/{YLXNHUYF.js → 3VFBYBX4.js} +1 -1
- package/dist/cdn/{JGMSDKM3.js → 43XQKUF6.js} +1 -1
- package/dist/cdn/{AYRZUPV2.js → 5IXZDVTF.js} +1 -1
- package/dist/cdn/{RTUHTKTO.js → 5OQPTYP5.js} +1 -1
- package/dist/cdn/{SOOJLVZP.js → 73N362E5.js} +1 -1
- package/dist/cdn/{CEY5WBEU.js → 7BOYQGKF.js} +1 -1
- package/dist/cdn/{67ZLFQ5D.js → A5ZHWVI3.js} +1 -1
- package/dist/cdn/{HRX3VZC6.js → AF65YZXZ.js} +1 -1
- package/dist/cdn/{M7ARKSCG.js → AL52T6VH.js} +1 -1
- package/dist/cdn/{C32RBBXZ.js → B23TN7FG.js} +1 -1
- package/dist/cdn/{S474C2LJ.js → B2FQHBTX.js} +1 -1
- package/dist/cdn/{HXOGSZ3H.js → BSLVN2NW.js} +1 -1
- package/dist/cdn/{3RKXZISX.js → BXDUMWWE.js} +1 -1
- package/dist/cdn/{SD5FKQFO.js → CH6EWFKV.js} +1 -1
- package/dist/cdn/{ZFLMRC4G.js → CQ7HNSA2.js} +1 -1
- package/dist/cdn/{JK4KRK6P.js → CYWMBY4Y.js} +1 -1
- package/dist/cdn/{2VSQARQL.js → DDGANMOY.js} +1 -1
- package/dist/cdn/{BPB6FTQK.js → DMFYRFSD.js} +1 -1
- package/dist/cdn/{PUNT3Q36.js → EEVHASMU.js} +1 -1
- package/dist/cdn/{M6FA6DZH.js → EVKOQOVV.js} +1 -1
- package/dist/cdn/{II5MODDO.js → FR3EHEIV.js} +1 -1
- package/dist/cdn/{MJRXLGST.js → GC65JYR2.js} +1 -1
- package/dist/cdn/{IBOB5TYX.js → H32EDCZG.js} +1 -1
- package/dist/cdn/{5EOKOS52.js → H4FPSA53.js} +1 -1
- package/dist/cdn/{O6F37YLT.js → HAUHWMHN.js} +1 -1
- package/dist/cdn/{6HSLIZLD.js → I22IJPSN.js} +1 -1
- package/dist/cdn/{WQQVESNN.js → I5DFLVVJ.js} +1 -1
- package/dist/cdn/IGFJHWQN.js +2 -0
- package/dist/cdn/{L66K2IBM.js → IORWRMMG.js} +1 -1
- package/dist/cdn/{3VZGQUZE.js → IXS5O6G4.js} +1 -1
- package/dist/cdn/{MZ2KYVWD.js → J3743ZYD.js} +1 -1
- package/dist/cdn/{JTBVK3AS.js → JFHEHJOQ.js} +1 -1
- package/dist/cdn/{AACTDN7T.js → KGXZG3YI.js} +1 -1
- package/dist/cdn/{LKAMRNMI.js → KX3XJGXZ.js} +1 -1
- package/dist/cdn/{VRRD4HXH.js → LBYKVAQ2.js} +1 -1
- package/dist/cdn/MAPYP35W.js +2 -0
- package/dist/cdn/{CFANWKE6.js → NMQLILVV.js} +1 -1
- package/dist/cdn/{UBD7D3LO.js → NO6MFBNV.js} +1 -1
- package/dist/cdn/{B3W2SZIJ.js → NP5NJFWN.js} +1 -1
- package/dist/cdn/{FQTVI2JC.js → NQ5OGG4I.js} +1 -1
- package/dist/cdn/NUPOLDDX.js +2 -0
- package/dist/cdn/{4SV6HHMC.js → O7RSAJOS.js} +1 -1
- package/dist/cdn/{WE2GHP5E.js → Q6TYHAOA.js} +1 -1
- package/dist/cdn/{D325DZEQ.js → QVM6UFNB.js} +1 -1
- package/dist/cdn/{BBFLUSKF.js → QX7CIDD3.js} +1 -1
- package/dist/cdn/{OEGPO4V4.js → R6ZUE6GP.js} +1 -1
- package/dist/cdn/RJSJ53UD.js +2 -0
- package/dist/cdn/{OWT2YYBJ.js → RJZ424ZP.js} +1 -1
- package/dist/cdn/{CS5IVOG4.js → TTDOV3LD.js} +1 -1
- package/dist/cdn/{K43HEYQI.js → U2ZQWROE.js} +1 -1
- package/dist/cdn/UVD3M6B5.js +2 -0
- package/dist/cdn/VIHVSV4P.js +2 -0
- package/dist/cdn/{CJLQURQH.js → VLKHH2Y6.js} +1 -1
- package/dist/cdn/VNX2AHM5.js +2 -0
- package/dist/cdn/{5KXZQI7G.js → VY2FRIAX.js} +1 -1
- package/dist/cdn/{PPTHUNKC.js → W2HQAUUA.js} +1 -1
- package/dist/cdn/WTTWWX57.js +2 -0
- package/dist/cdn/{KEE5SJGE.js → ZTRUEI25.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +45 -45
- package/dist/chunks/async-utils.js +18 -14
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/time-utils.js +2 -2
- package/dist/components/arcgis-building-phase-picker/customElement.js +13 -13
- package/dist/components/arcgis-color-select/customElement.js +6 -6
- package/dist/components/arcgis-coordinate-conversion/customElement.js +18 -17
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +11 -10
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -0
- package/dist/components/arcgis-daylight/customElement.js +135 -135
- package/dist/components/arcgis-feature/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +24 -24
- package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +42 -41
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +15 -14
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +32 -31
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +9 -8
- package/dist/components/arcgis-link-chart/customElement.d.ts +19 -7
- package/dist/components/arcgis-link-chart/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +19 -7
- package/dist/components/arcgis-map/customElement.js +3 -3
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +72 -72
- package/dist/components/arcgis-paste/customElement.d.ts +23 -3
- package/dist/components/arcgis-paste/customElement.js +102 -101
- package/dist/components/arcgis-presentation/customElement.js +43 -40
- package/dist/components/arcgis-scene/customElement.d.ts +42 -7
- package/dist/components/arcgis-scene/customElement.js +5 -5
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +8 -3
- package/dist/components/arcgis-time-bar/customElement.d.ts +14 -5
- package/dist/components/arcgis-time-bar/customElement.js +29 -29
- package/dist/components/arcgis-time-bar/types.d.ts +3 -1
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +3 -3
- package/dist/components/arcgis-video/customElement.d.ts +19 -7
- package/dist/components/arcgis-volume-measurement/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FTL6T53.js +0 -2
- package/dist/cdn/2XHGISYY.js +0 -2
- package/dist/cdn/4CJBWGTY.js +0 -2
- package/dist/cdn/5GIJFUEJ.js +0 -2
- package/dist/cdn/HASESZDN.js +0 -2
- package/dist/cdn/LMBTPOT3.js +0 -2
- package/dist/cdn/OU7XFISZ.js +0 -2
- package/dist/cdn/UU4FSZYG.js +0 -2
- package/dist/cdn/YVZI2KY2.js +0 -2
- package/dist/cdn/Z3XLCKLP.js +0 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { watch as
|
|
2
|
+
import { c as T } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as x, html as l } from "lit";
|
|
4
|
+
import { LitElement as y } from "@arcgis/lumina";
|
|
5
|
+
import { watch as $, when as k } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { a as u } from "../../chunks/maybe.js";
|
|
7
|
-
import {
|
|
8
|
-
import { throttle as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { compileExpression as
|
|
13
|
-
import { b as
|
|
14
|
-
const
|
|
15
|
-
class
|
|
7
|
+
import { g as m, c as v, t as d } from "../../chunks/async-utils.js";
|
|
8
|
+
import { throttle as g } from "lodash-es";
|
|
9
|
+
import I from "@arcgis/core/popup/content/MediaContent.js";
|
|
10
|
+
import w from "@arcgis/core/popup/content/FieldsContent.js";
|
|
11
|
+
import L from "@arcgis/core/popup/content/TextContent.js";
|
|
12
|
+
import { compileExpression as E } from "@arcgis/core/applications/Components/arcadeFeatureUtils.js";
|
|
13
|
+
import { b as A } from "../../chunks/feature-utils.js";
|
|
14
|
+
const b = x`.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`, _ = 1;
|
|
15
|
+
class C extends y {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._compileThrottled =
|
|
17
|
+
super(...arguments), this._compileThrottled = g(this._startCompile, m(_)), this._evaluateThrottled = g(this._startEvaluate, m(_)), this.headingLevel = 2;
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.properties = { _compileTask: 16, _evaluateTask: 16, values: 0, fieldInfoMap: 0, expressionInfo: 0, expressionInfos: 0, layer: 0, graphic: 0, headingLevel: 9, interceptor: 0, location: 0, messages: 0, spatialReference: 0, map: 0, view: 0 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.styles =
|
|
23
|
+
this.styles = b;
|
|
24
24
|
}
|
|
25
25
|
loaded() {
|
|
26
26
|
this.manager.onLifecycle(() => [
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
$(() => [this.expressionInfo, this.graphic], () => this._compileThrottled(), { initial: !0 }),
|
|
28
|
+
k(() => {
|
|
29
29
|
if (!this._compileTask?.finished)
|
|
30
30
|
return null;
|
|
31
31
|
const t = this._compileTask.value, s = t?.dependencies, { view: e } = this;
|
|
@@ -48,11 +48,11 @@ class b extends x {
|
|
|
48
48
|
this._compileThrottled.cancel(), this._evaluateThrottled.cancel();
|
|
49
49
|
}
|
|
50
50
|
_startCompile() {
|
|
51
|
-
this._evaluateTask = u(this._evaluateTask), this._compileTask = u(this._compileTask), this._compileTask =
|
|
51
|
+
this._evaluateTask = u(this._evaluateTask), this._compileTask = u(this._compileTask), this._compileTask = v(async (t) => {
|
|
52
52
|
const { expressionInfo: s, graphic: e } = this, a = s?.expression;
|
|
53
53
|
if (!a || !e)
|
|
54
54
|
return null;
|
|
55
|
-
const n = await
|
|
55
|
+
const n = await E({
|
|
56
56
|
expression: a,
|
|
57
57
|
graphic: e
|
|
58
58
|
});
|
|
@@ -60,7 +60,7 @@ class b extends x {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
_startEvaluate(t) {
|
|
63
|
-
this._evaluateTask = u(this._evaluateTask), this._evaluateTask =
|
|
63
|
+
this._evaluateTask = u(this._evaluateTask), this._evaluateTask = v(async (s) => {
|
|
64
64
|
const { graphic: e } = this;
|
|
65
65
|
if (!t || !e)
|
|
66
66
|
return null;
|
|
@@ -80,7 +80,7 @@ class b extends x {
|
|
|
80
80
|
const h = await f.castAsJsonAsync(s);
|
|
81
81
|
d(s);
|
|
82
82
|
const p = h?.type;
|
|
83
|
-
return p === "media" ?
|
|
83
|
+
return p === "media" ? I.fromJSON(h) : p === "text" ? L.fromJSON(h) : p === "fields" ? w.fromJSON(h) : null;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
@@ -95,7 +95,7 @@ class b extends x {
|
|
|
95
95
|
const { text: i } = e;
|
|
96
96
|
if (!i)
|
|
97
97
|
return null;
|
|
98
|
-
const r =
|
|
98
|
+
const r = A({
|
|
99
99
|
values: n,
|
|
100
100
|
fieldInfoMap: s ?? /* @__PURE__ */ new Map(),
|
|
101
101
|
globalValues: n,
|
|
@@ -116,7 +116,7 @@ class b extends x {
|
|
|
116
116
|
return l`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
T("arcgis-feature-expression", C);
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
C as ArcgisFeatureExpression
|
|
122
122
|
};
|
|
@@ -379,7 +379,7 @@ export abstract class ArcgisFeatureNext extends LitElement {
|
|
|
379
379
|
get state(): State;
|
|
380
380
|
/**
|
|
381
381
|
* Dates and times displayed in the component will be displayed in this time zone. By default this time zone is
|
|
382
|
-
* inherited from [MapView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone). When a
|
|
382
|
+
* inherited from the associated [MapView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#timeZone) or [SceneView.timeZone](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#timeZone). When a view is not associated with the component,
|
|
383
383
|
* then the property will fallback to the `system` time zone.
|
|
384
384
|
*
|
|
385
385
|
* **Possible Values**
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as H } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as k, html as o } from "lit";
|
|
4
4
|
import { debounce as A } from "@arcgis/toolkit/function";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { templateHasKey as
|
|
7
|
-
import { renderingSanitizer as
|
|
8
|
-
import { isRelatableFeatureSupportedLayer as
|
|
9
|
-
import { substitute as
|
|
10
|
-
import { watch as f, on as
|
|
11
|
-
import { o as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
5
|
+
import { LitElement as K, renderElement as q, safeClassMap as x } from "@arcgis/lumina";
|
|
6
|
+
import { templateHasKey as E, stripHTML as N } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
7
|
+
import { renderingSanitizer as O } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
8
|
+
import { isRelatableFeatureSupportedLayer as W, findRelatedLayer as Z } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
9
|
+
import { substitute as z, formatNumber as V } from "@arcgis/core/intl.js";
|
|
10
|
+
import { watch as f, on as G } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
|
+
import { o as J } from "../../chunks/feature-utils.js";
|
|
12
|
+
import M from "@arcgis/core/core/Collection.js";
|
|
13
|
+
import S from "@arcgis/core/rest/support/RelationshipQuery.js";
|
|
14
14
|
import { ignoreAbortErrors as L } from "@arcgis/core/core/promiseUtils.js";
|
|
15
|
-
import { classes as
|
|
16
|
-
import { createRef as
|
|
17
|
-
import
|
|
18
|
-
|
|
15
|
+
import { classes as Q } from "@arcgis/toolkit/dom";
|
|
16
|
+
import { createRef as U, ref as X } from "lit/directives/ref.js";
|
|
17
|
+
import Y from "@arcgis/core/popup/FeatureContent.js";
|
|
18
|
+
import { g as R } from "../../chunks/async-utils.js";
|
|
19
|
+
const ee = k`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`, te = (h) => {
|
|
19
20
|
const e = [];
|
|
20
21
|
if (h.formTemplate) {
|
|
21
22
|
const { description: t, title: r } = h.formTemplate;
|
|
22
23
|
h.fields?.forEach((i) => {
|
|
23
|
-
const s = r &&
|
|
24
|
+
const s = r && E(r, i.name), a = t && E(t, i.name);
|
|
24
25
|
(s || a) && e.push(i.name);
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
return e;
|
|
28
|
-
},
|
|
29
|
-
function
|
|
29
|
+
}, P = 100;
|
|
30
|
+
function re(h) {
|
|
30
31
|
return typeof h == "string" && h.trim().length > 0;
|
|
31
32
|
}
|
|
32
|
-
class
|
|
33
|
+
class ie extends K {
|
|
33
34
|
constructor() {
|
|
34
35
|
super(...arguments), this._increaseFeaturePage = () => {
|
|
35
36
|
const { state: e, showAllEnabled: t, relatedFeatures: r, featuresPerPage: i, featurePage: s } = this;
|
|
@@ -58,24 +59,24 @@ class re extends k {
|
|
|
58
59
|
}, this._queryPageController = async () => {
|
|
59
60
|
const e = new AbortController();
|
|
60
61
|
this._queryPageAbortController = e, await L(this._queryPage()), this._queryPageAbortController === e && (this._queryPageAbortController = null);
|
|
61
|
-
}, this._queryDebounced = A(this._queryController, R), this._queryFeatureCountDebounced = A(this._queryFeatureCountController, R), this._queryPageDebounced = A(this._queryPageController, R), this._query = async () => {
|
|
62
|
+
}, this._queryDebounced = A(this._queryController, R(P)), this._queryFeatureCountDebounced = A(this._queryFeatureCountController, R(P)), this._queryPageDebounced = A(this._queryPageController, R(P)), this._query = async () => {
|
|
62
63
|
const { _queryAbortController: e, relatedFeatures: t } = this;
|
|
63
64
|
!this.featureCount || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || (this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, t.destroyAll(), t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({ signal: e?.signal }))));
|
|
64
65
|
}, this._addFlowItem = (e) => {
|
|
65
66
|
e && this.flowItems?.push(e);
|
|
66
|
-
}, this._relatedFeatureIntersectionObserverNode =
|
|
67
|
+
}, this._relatedFeatureIntersectionObserverNode = U(), this.relatedFeatures = new M(), this._queryAbortController = null, this._queryPageAbortController = null, this._queryFeatureCountAbortController = null, this.featureCount = 0, this._loaded = !1, this.relatedFeatureViewModels = new M(), this.autoDestroyDisabled = !1, this.featuresPerPage = 10, this.useFeatureNextFlowItem = !1, this.flowType = "feature-relationship", this.headingLevel = 2, this.hideHeading = !1, this.hideDescription = !1, this.showAllEnabled = !1;
|
|
67
68
|
}
|
|
68
69
|
static {
|
|
69
70
|
this.properties = { allCategories: 16, _queryAbortController: 16, _queryPageAbortController: 16, _queryFeatureCountAbortController: 16, featureCount: 16, _loaded: 16, canLoad: 16, canQuery: 16, displayShowAllButton: 16, displayListItems: 16, categories: 16, itemDescriptionFieldName: 16, relatedFeatureViewModels: 16, state: 16, autoDestroyDisabled: 5, allItemsDescription: 32, featurePage: 9, featuresPerPage: 9, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, headingLevel: 9, messages: 0, heading: 1, description: 1, values: 0, activeCategory: 0, hideHeading: 5, hideDescription: 5, displayCount: 9, graphic: 0, layer: 0, map: 0, view: 0, spatialReference: 0, timeZone: 1, orderByFields: 0, relationshipId: 9, showAllEnabled: 5, label: 3 };
|
|
70
71
|
}
|
|
71
72
|
static {
|
|
72
|
-
this.styles =
|
|
73
|
+
this.styles = ee;
|
|
73
74
|
}
|
|
74
75
|
get orderByFieldsFixedCasing() {
|
|
75
76
|
const { orderByFields: e, relatedLayer: t } = this;
|
|
76
77
|
return e && t?.loaded ? e.map((r) => {
|
|
77
78
|
const i = r.clone();
|
|
78
|
-
return i.field =
|
|
79
|
+
return i.field = J(r.field, t), i;
|
|
79
80
|
}) : e ?? [];
|
|
80
81
|
}
|
|
81
82
|
get supportsCacheHint() {
|
|
@@ -94,8 +95,8 @@ class re extends k {
|
|
|
94
95
|
const { layer: e, map: t, relationship: r } = this;
|
|
95
96
|
if (!e?.loaded || !t || !r)
|
|
96
97
|
return null;
|
|
97
|
-
const i = e.type === "subtype-sublayer" && e.parent &&
|
|
98
|
-
return
|
|
98
|
+
const i = e.type === "subtype-sublayer" && e.parent && W(e.parent) ? e.parent : e;
|
|
99
|
+
return Z(t, i, r) ?? null;
|
|
99
100
|
}
|
|
100
101
|
get relatedLayerKeyField() {
|
|
101
102
|
const { relatedLayer: e, relationshipId: t } = this;
|
|
@@ -144,8 +145,8 @@ class re extends k {
|
|
|
144
145
|
}
|
|
145
146
|
get allItemsDescription() {
|
|
146
147
|
const { messages: e, featureCount: t, allCategories: r, allCategoriesCount: i } = this;
|
|
147
|
-
return
|
|
148
|
-
number:
|
|
148
|
+
return z(e?.numberRecords ?? "", {
|
|
149
|
+
number: V(r ? i : t)
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
get featurePage() {
|
|
@@ -190,7 +191,7 @@ class re extends k {
|
|
|
190
191
|
f(() => [this.featurePage, this.showAllEnabled], () => this._queryPageDebounced()),
|
|
191
192
|
f(() => [this.layer, this.relationshipId, this.objectId, this.canQuery, this.activeCategory], () => this._queryFeatureCountDebounced(), { initial: !0 }),
|
|
192
193
|
f(() => [this.state, this.showAllEnabled, this._relatedFeatureIntersectionObserverNode], () => this._handleRelatedFeatureObserverChange()),
|
|
193
|
-
|
|
194
|
+
G(() => this.relatedFeatures, "change", () => this._setRelatedFeaturesViewModels())
|
|
194
195
|
]), this.manager.onDestroy(() => {
|
|
195
196
|
this.relatedFeatureViewModels.destroyAll(), this.relatedFeatures.destroyAll(), this._cancelQuery(), this._cancelQueryFeatureCount(), this._cancelQueryPage(), this._unobserveRelatedFeatureObserver();
|
|
196
197
|
});
|
|
@@ -222,7 +223,7 @@ class re extends k {
|
|
|
222
223
|
}
|
|
223
224
|
return;
|
|
224
225
|
}
|
|
225
|
-
const { historicMoment: p, gdbVersion: F } = e, _ = new
|
|
226
|
+
const { historicMoment: p, gdbVersion: F } = e, _ = new S({
|
|
226
227
|
cacheHint: b,
|
|
227
228
|
gdbVersion: F,
|
|
228
229
|
historicMoment: p,
|
|
@@ -253,18 +254,18 @@ class re extends k {
|
|
|
253
254
|
return [];
|
|
254
255
|
const C = p ? ((i - 1) * s + r) % r : 0, w = p ? s : t, v = l.objectIdField, c = "subtypeField" in l ? l.subtypeField : void 0, g = [
|
|
255
256
|
...n.map((u) => u.field),
|
|
256
|
-
...
|
|
257
|
+
...te(l),
|
|
257
258
|
...d,
|
|
258
259
|
v,
|
|
259
260
|
c
|
|
260
|
-
].filter(
|
|
261
|
+
].filter(re), m = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: T } = a, j = new S({
|
|
261
262
|
orderByFields: m,
|
|
262
263
|
start: C,
|
|
263
264
|
num: w,
|
|
264
265
|
outFields: g,
|
|
265
266
|
cacheHint: F,
|
|
266
267
|
historicMoment: I,
|
|
267
|
-
gdbVersion:
|
|
268
|
+
gdbVersion: T,
|
|
268
269
|
relationshipId: b,
|
|
269
270
|
returnGeometry: !1,
|
|
270
271
|
objectIds: [y],
|
|
@@ -273,8 +274,8 @@ class re extends k {
|
|
|
273
274
|
signal: e?.signal
|
|
274
275
|
}))[y]?.features || [];
|
|
275
276
|
return l.type === "subtype-group" && c ? $.forEach((u) => {
|
|
276
|
-
const
|
|
277
|
-
u.sourceLayer =
|
|
277
|
+
const B = u.attributes[c], D = l.findSublayerForSubtypeCode?.(B);
|
|
278
|
+
u.sourceLayer = D, u.layer = D;
|
|
278
279
|
}) : $.forEach((u) => {
|
|
279
280
|
u.sourceLayer = l, u.layer = l;
|
|
280
281
|
}), $;
|
|
@@ -312,7 +313,7 @@ class re extends k {
|
|
|
312
313
|
_setRelatedFeaturesViewModels() {
|
|
313
314
|
const { relatedFeatures: e, relatedFeatureViewModels: t, map: r, view: i, spatialReference: s, timeZone: a } = this;
|
|
314
315
|
e?.filter(Boolean).forEach((n) => {
|
|
315
|
-
t.some((d) => this._matchesFeature(d, n)) || t.add(new
|
|
316
|
+
t.some((d) => this._matchesFeature(d, n)) || t.add(new Y({
|
|
316
317
|
abilities: { relationshipContent: !1 },
|
|
317
318
|
map: r,
|
|
318
319
|
view: i,
|
|
@@ -344,7 +345,7 @@ class re extends k {
|
|
|
344
345
|
return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
|
|
345
346
|
}
|
|
346
347
|
_renderCategory(e) {
|
|
347
|
-
const { count: t, name: r } = e, i =
|
|
348
|
+
const { count: t, name: r } = e, i = V(t);
|
|
348
349
|
return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`;
|
|
349
350
|
}
|
|
350
351
|
_renderRelatedFeature(e) {
|
|
@@ -352,7 +353,7 @@ class re extends k {
|
|
|
352
353
|
...r,
|
|
353
354
|
...i?.global
|
|
354
355
|
}, l = (t && n?.[t]) ?? "";
|
|
355
|
-
return o`<calcite-list-item class=${x(
|
|
356
|
+
return o`<calcite-list-item class=${x(Q("list-item", { "list-item-hidden": s === "loading" }))} .description=${N(l.toString())} .label=${N(a)} @calciteListItemSelect=${() => this._selectRecord(e)}><div slot=heading><div .innerHTML=${O.sanitize(a ?? "") ?? ""}></div></div><div slot=description><div .innerHTML=${O.sanitize(l ?? "") ?? ""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`;
|
|
356
357
|
}
|
|
357
358
|
_renderShowAllListItem() {
|
|
358
359
|
return this.displayShowAllButton ? o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${() => this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>` : null;
|
|
@@ -361,7 +362,7 @@ class re extends k {
|
|
|
361
362
|
return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`;
|
|
362
363
|
}
|
|
363
364
|
_renderFeatureObserver() {
|
|
364
|
-
return o`<div class="feature-observer" ${
|
|
365
|
+
return o`<div class="feature-observer" ${X(this._relatedFeatureIntersectionObserverNode)}></div>`;
|
|
365
366
|
}
|
|
366
367
|
_renderList() {
|
|
367
368
|
const { relatedFeatureViewModels: e, categories: t } = this;
|
|
@@ -369,7 +370,7 @@ class re extends k {
|
|
|
369
370
|
}
|
|
370
371
|
_renderRelatedFeatures() {
|
|
371
372
|
const { displayListItems: e } = this, { state: t } = this;
|
|
372
|
-
return o`<div class=${x(
|
|
373
|
+
return o`<div class=${x(Q("list", {
|
|
373
374
|
"list-querying": t === "querying"
|
|
374
375
|
}))}>${e ? this._renderList() : t === "ready" ? this._renderNoRelatedFeaturesMessage() : null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`;
|
|
375
376
|
}
|
|
@@ -377,7 +378,7 @@ class re extends k {
|
|
|
377
378
|
return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`;
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
|
-
|
|
381
|
+
H("arcgis-feature-relationship", ie);
|
|
381
382
|
export {
|
|
382
|
-
|
|
383
|
+
ie as ArcgisFeatureRelationship
|
|
383
384
|
};
|
|
@@ -1076,7 +1076,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
1076
1076
|
* >
|
|
1077
1077
|
* > The following considerations apply when working with date, time, and big integer field types:
|
|
1078
1078
|
* >
|
|
1079
|
-
* > By default, the [FeatureTable](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/) displays
|
|
1079
|
+
* > By default, the [FeatureTable](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/) displays time zones for `date` and `timestamp-offset` field [types](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/#type) using the associated view's time zone. This time zone can be overridden by setting the table's [timeZone](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#timeZone) property.
|
|
1080
1080
|
* > If the table's [view](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#view) isn't set, and the table's [Feature#timeZone](https://developers.arcgis.com/javascript/latest/references/core/widgets/Feature/#timeZone) isn't set, the table defaults to `system` time. The only time that this is not the case is when there is a [FeatureLayer#preferredTimeZone](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#preferredTimeZone) set on the table's layer. If the latter is true, the preferred time zone is used as opposed to `system`.
|
|
1081
1081
|
*
|
|
1082
1082
|
* @since 4.28
|
|
@@ -14,13 +14,14 @@ import { isTable as m, getEffectiveLayerCapabilities as B } from "@arcgis/core/a
|
|
|
14
14
|
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
15
15
|
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
16
16
|
import { debounce as L } from "@arcgis/toolkit/function";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
import { g as E } from "../../chunks/async-utils.js";
|
|
18
|
+
const U = g`:host{display:flex;position:relative;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}.root>*{width:100%;box-sizing:border-box}.feature-template-tabs{--calcite-tab-background-color: transparent}`;
|
|
19
|
+
var I = Object.defineProperty, C = Object.getOwnPropertyDescriptor, a = (t, e, i, r) => {
|
|
20
|
+
for (var n = r > 1 ? void 0 : r ? C(e, i) : e, p = t.length - 1, c; p >= 0; p--)
|
|
20
21
|
(c = t[p]) && (n = (r ? c(e, i, n) : c(n)) || n);
|
|
21
|
-
return r && n &&
|
|
22
|
+
return r && n && I(e, i, n), n;
|
|
22
23
|
};
|
|
23
|
-
function
|
|
24
|
+
function R(t) {
|
|
24
25
|
switch (t) {
|
|
25
26
|
case "point":
|
|
26
27
|
case "multipoint":
|
|
@@ -32,7 +33,7 @@ function C(t) {
|
|
|
32
33
|
}
|
|
33
34
|
return "noneSpecified";
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
+
const A = (t) => R(t.layer.geometryType ?? "");
|
|
36
37
|
let s = class extends _ {
|
|
37
38
|
//#region Lifecycle
|
|
38
39
|
constructor(t) {
|
|
@@ -248,7 +249,7 @@ let s = class extends _ {
|
|
|
248
249
|
}
|
|
249
250
|
get organizedMapTemplates() {
|
|
250
251
|
if (this.groupByFunction || this.groupBy === "geometry") {
|
|
251
|
-
const t = !this.groupByFunction, e = this.groupByFunction ??
|
|
252
|
+
const t = !this.groupByFunction, e = this.groupByFunction ?? A, i = /* @__PURE__ */ new Map();
|
|
252
253
|
for (const r of this.mapTemplates ?? [])
|
|
253
254
|
for (const n of r.templates) {
|
|
254
255
|
const p = new u({ template: n, layer: r.layer }), c = e(p);
|
|
@@ -427,16 +428,16 @@ a([
|
|
|
427
428
|
s = a([
|
|
428
429
|
S("components.feature-templates.FeatureTemplatesViewModel")
|
|
429
430
|
], s);
|
|
430
|
-
const
|
|
431
|
-
class
|
|
431
|
+
const P = M(s);
|
|
432
|
+
class V extends b {
|
|
432
433
|
constructor() {
|
|
433
|
-
super(...arguments), this._messages = w(), this.viewModel =
|
|
434
|
+
super(...arguments), this._messages = w(), this.viewModel = P(this), this.favoritesEnabled = this.viewModel.favoritesEnabled, this.favorites = this.viewModel.favorites, this.restoreFavorites = this.viewModel.restoreFavorites, this.restoreRecentlyUsed = this.viewModel.restoreRecentlyUsed, this.recentlyUsed = this.viewModel.recentlyUsed, this.sharedTemplatesDisabled = this.viewModel.sharedTemplatesDisabled, this.filterText = this.viewModel.filterText, this.recentFilterText = this.viewModel.recentFilterText, this.favoritesFilterText = this.viewModel.favoritesFilterText, this.recentlyUsedEnabled = this.viewModel.recentlyUsedEnabled, this.excludeTables = this.viewModel.excludeTables, this.effectiveTemplates = this.viewModel.effectiveTemplates, this.applicationTemplates = this.viewModel.applicationTemplates, this.selectedTemplateId = this.viewModel.selectedTemplateId, this.selectedTemplate = this.viewModel.selectedTemplate, this.applicationFilterFunction = this.viewModel.applicationFilterFunction, this.applicationDisabledFunction = this.viewModel.applicationDisabledFunction, this.display = this.viewModel.display, this.groupBy = this.viewModel.groupBy, this.sectionSortBy = this.viewModel.sectionSortBy, this.templateSortBy = this.viewModel.templateSortBy, this.templateSortByFunction = this.viewModel.templateSortByFunction, this.sectionSortByFunction = this.viewModel.sectionSortByFunction, this.hideTemplatesMode = this.viewModel.hideTemplatesMode, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.groupByFunction = this.viewModel.groupByFunction, this.hideTemplateDescription = this.viewModel.hideTemplateDescription, this.layers = this.viewModel.layers, this.view = F(this), this.autoDestroyDisabled = !1, this.updating = this.viewModel.updating, this.disabled = !1, this.showCollapseButton = !1, this.showFilter = !1, this.minRequiredFilterCount = 2, this.arcgisPropertyChange = D()("effectiveTemplates", "filterText", "recentlyUsed", "favorites"), this.arcgisReady = h(), this.arcgisTemplatesChanged = h(), this.arcgisSelectTemplate = h();
|
|
434
435
|
}
|
|
435
436
|
static {
|
|
436
437
|
this.properties = { favoritesEnabled: 5, favorites: 32, restoreFavorites: 0, restoreRecentlyUsed: 0, recentlyUsed: 32, sharedTemplatesDisabled: 5, filterText: 1, recentFilterText: 1, favoritesFilterText: 1, recentlyUsedEnabled: 5, excludeTables: 5, effectiveTemplates: 32, applicationTemplates: 0, selectedTemplateId: 1, selectedTemplate: 32, applicationFilterFunction: 0, applicationDisabledFunction: 0, display: 1, groupBy: 1, sectionSortBy: 1, templateSortBy: 1, templateSortByFunction: 0, sectionSortByFunction: 0, hideTemplatesMode: 1, disableTemplatesMode: 1, groupByFunction: 0, hideTemplateDescription: 5, layers: 0, view: 0, referenceElement: 1, autoDestroyDisabled: 5, updating: 32, disabled: 5, showCollapseButton: 5, showFilter: 5, minRequiredFilterCount: 9 };
|
|
437
438
|
}
|
|
438
439
|
static {
|
|
439
|
-
this.styles =
|
|
440
|
+
this.styles = U;
|
|
440
441
|
}
|
|
441
442
|
async destroy() {
|
|
442
443
|
await this.manager.destroy();
|
|
@@ -458,7 +459,7 @@ class P extends b {
|
|
|
458
459
|
], L(() => (
|
|
459
460
|
// Trigger refetching of templates
|
|
460
461
|
this.viewModel.handleTemplateSourceDefinitionChanged()
|
|
461
|
-
), 10), { initial: !0 })
|
|
462
|
+
), E(10)), { initial: !0 })
|
|
462
463
|
]);
|
|
463
464
|
}
|
|
464
465
|
_handleSelectTemplate(e) {
|
|
@@ -505,7 +506,7 @@ class P extends b {
|
|
|
505
506
|
return o`<div class="root">${this._renderContent()}${this.viewModel.updating || this.disabled ? o`<calcite-scrim><calcite-loader scale=s label .hidden=${!this.viewModel.updating}></calcite-loader></calcite-scrim>` : null}</div>`;
|
|
506
507
|
}
|
|
507
508
|
}
|
|
508
|
-
T("arcgis-feature-templates",
|
|
509
|
+
T("arcgis-feature-templates", V);
|
|
509
510
|
export {
|
|
510
|
-
|
|
511
|
+
V as ArcgisFeatureTemplates
|
|
511
512
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as M } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as D, html as m } from "lit";
|
|
4
4
|
import { keyed as C } from "lit/directives/keyed.js";
|
|
5
|
-
import { b as k, q as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { b as k, q as V } from "../../chunks/layer-utils.js";
|
|
6
|
+
import { g as v } from "../../chunks/async-utils.js";
|
|
7
|
+
import { createReactiveMap as I, findUtilityNetwork as j, getOrCreateMapValue as x } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
8
|
+
import { stripHTML as E } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
8
9
|
import w from "@arcgis/core/core/Collection.js";
|
|
9
|
-
import { ignoreAbortErrors as
|
|
10
|
+
import { ignoreAbortErrors as q } from "@arcgis/core/core/promiseUtils.js";
|
|
10
11
|
import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
11
|
-
import * as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { LitElement as
|
|
15
|
-
import { debounce as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
12
|
+
import * as P from "@arcgis/core/core/sql.js";
|
|
13
|
+
import U from "@arcgis/core/rest/networks/support/NetworkElement.js";
|
|
14
|
+
import Q from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
|
|
15
|
+
import { LitElement as G, renderElement as T } from "@arcgis/lumina";
|
|
16
|
+
import { debounce as L } from "@arcgis/toolkit/function";
|
|
17
|
+
import B from "@arcgis/core/popup/FeatureContent.js";
|
|
18
|
+
const R = D`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, $ = 100, N = {
|
|
18
19
|
assetGroup: "assetgroup",
|
|
19
20
|
assetType: "assettype"
|
|
20
|
-
},
|
|
21
|
-
class
|
|
21
|
+
}, S = "{00000000-0000-0000-0000-000000000000}";
|
|
22
|
+
class O extends G {
|
|
22
23
|
constructor() {
|
|
23
24
|
super(...arguments), this._addFlowItem = (t) => {
|
|
24
25
|
t && this.flowItems?.push(t);
|
|
@@ -37,12 +38,12 @@ class R extends Q {
|
|
|
37
38
|
}, this._queryController = async (t) => {
|
|
38
39
|
this._cancelQuery();
|
|
39
40
|
const e = new AbortController();
|
|
40
|
-
this._queryAbortController = e, await
|
|
41
|
+
this._queryAbortController = e, await q(this._query(t)), this._queryAbortController === e && (this._queryAbortController = null);
|
|
41
42
|
}, this._queryFeatureCountController = async () => {
|
|
42
43
|
this._loaded = !1, this._cancelQueryFeatureCount();
|
|
43
44
|
const t = new AbortController();
|
|
44
|
-
this._queryFeatureCountAbortController = t, await
|
|
45
|
-
}, this._queryDebounced =
|
|
45
|
+
this._queryFeatureCountAbortController = t, await q(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
|
|
46
|
+
}, this._queryDebounced = L(this._queryController, v($)), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, v($)), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
|
|
46
47
|
this._activeAssociationType && this._queryDebounced(this._activeAssociationType);
|
|
47
48
|
}, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.useFeatureNextFlowItem = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
|
|
48
49
|
}
|
|
@@ -50,7 +51,7 @@ class R extends Q {
|
|
|
50
51
|
this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
|
|
51
52
|
}
|
|
52
53
|
static {
|
|
53
|
-
this.styles =
|
|
54
|
+
this.styles = R;
|
|
54
55
|
}
|
|
55
56
|
get _globalId() {
|
|
56
57
|
return (this._globalIdField && this.graphic?.attributes?.[this._globalIdField]) ?? null;
|
|
@@ -72,7 +73,7 @@ class R extends Q {
|
|
|
72
73
|
if (!t?.loaded || !e)
|
|
73
74
|
return null;
|
|
74
75
|
const s = k(t) ? t.parent : t;
|
|
75
|
-
return
|
|
76
|
+
return j(e, s);
|
|
76
77
|
}
|
|
77
78
|
get _canLoad() {
|
|
78
79
|
return !!this.map;
|
|
@@ -117,7 +118,7 @@ class R extends Q {
|
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
120
|
_addAssociationTypeFlowItem(t) {
|
|
120
|
-
const e = this.useFeatureNextFlowItem ?
|
|
121
|
+
const e = this.useFeatureNextFlowItem ? T(m`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`) : T(m`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);
|
|
121
122
|
this._addFlowItem(e);
|
|
122
123
|
}
|
|
123
124
|
_clearAssociations() {
|
|
@@ -180,7 +181,7 @@ class R extends Q {
|
|
|
180
181
|
this._associationViewModels.forEach((t) => t.destroyAll());
|
|
181
182
|
}
|
|
182
183
|
_equals(t, e) {
|
|
183
|
-
if (t.globalId ===
|
|
184
|
+
if (t.globalId === S && e.globalId === S) {
|
|
184
185
|
let s = function(d, u) {
|
|
185
186
|
return d.networkSourceId === u.networkSourceId && d.globalId === u.globalId && d.terminalId === u.terminalId && d.firstUnit === u.firstUnit && d.numUnits === u.numUnits;
|
|
186
187
|
};
|
|
@@ -241,7 +242,7 @@ class R extends Q {
|
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
244
|
_getFeatureQueryWhereClause(t, e, s, o) {
|
|
244
|
-
const i = t.globalIdField, a = t.fieldsIndex.get(
|
|
245
|
+
const i = t.globalIdField, a = t.fieldsIndex.get(N.assetGroup), r = t.fieldsIndex.get(N.assetType), c = s != null, l = o != null, d = i ? P.sqlIn(i, e) : null, u = c ? `(${a?.name} = ${s})` : null, y = c && l ? `(${r?.name} = ${o})` : null;
|
|
245
246
|
return [d, u, y].filter(Boolean).join(" AND ");
|
|
246
247
|
}
|
|
247
248
|
_getFeatureTitle(t) {
|
|
@@ -305,7 +306,7 @@ class R extends Q {
|
|
|
305
306
|
const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: a } = this;
|
|
306
307
|
if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !a || !e || !o || !i || !s)
|
|
307
308
|
return;
|
|
308
|
-
const r = k(e) ? e.parent : e, c = new
|
|
309
|
+
const r = k(e) ? e.parent : e, c = new U({
|
|
309
310
|
globalId: s,
|
|
310
311
|
networkSourceId: i.getSourceIdByLayerId(r.layerId)
|
|
311
312
|
}), l = /* @__PURE__ */ new Set();
|
|
@@ -324,7 +325,7 @@ class R extends Q {
|
|
|
324
325
|
break;
|
|
325
326
|
}
|
|
326
327
|
});
|
|
327
|
-
const d = await i?.queryAssociations(new
|
|
328
|
+
const d = await i?.queryAssociations(new Q({
|
|
328
329
|
elements: [c],
|
|
329
330
|
types: Array.from(l)
|
|
330
331
|
}), {
|
|
@@ -409,14 +410,14 @@ class R extends Q {
|
|
|
409
410
|
async _queryLayer(t, e, s, o, i) {
|
|
410
411
|
const a = this._getFeatureQueryWhereClause(t, e, s, o), r = t.createQuery();
|
|
411
412
|
r.where = a, r.outFields = ["*"], r.returnGeometry = !1, r.cacheHint = this._supportsCacheHint;
|
|
412
|
-
const { features: c } = await
|
|
413
|
+
const { features: c } = await V(t, r, i);
|
|
413
414
|
return c;
|
|
414
415
|
}
|
|
415
416
|
_parseFeatureObjects(t, e) {
|
|
416
417
|
const s = I();
|
|
417
418
|
t.forEach((o) => {
|
|
418
419
|
const a = (o?.feature).sourceLayer;
|
|
419
|
-
|
|
420
|
+
x(s, a, () => new w()).add(o);
|
|
420
421
|
});
|
|
421
422
|
for (const [o, i] of s)
|
|
422
423
|
this._sortFeatureObjectsByTitle(i), e.set(o, i);
|
|
@@ -441,7 +442,7 @@ class R extends Q {
|
|
|
441
442
|
r.add({
|
|
442
443
|
title: n,
|
|
443
444
|
association: u,
|
|
444
|
-
featureViewModel: new
|
|
445
|
+
featureViewModel: new B({
|
|
445
446
|
abilities: { utilityNetworkAssociationsContent: !1 },
|
|
446
447
|
map: t,
|
|
447
448
|
view: e,
|
|
@@ -476,7 +477,7 @@ class R extends Q {
|
|
|
476
477
|
}
|
|
477
478
|
_renderAssociationTypeListItem(t) {
|
|
478
479
|
const e = this._getAssociationTypeTitle(t);
|
|
479
|
-
return C(`association-type-${t.type}`, m`<calcite-list-item .description=${
|
|
480
|
+
return C(`association-type-${t.type}`, m`<calcite-list-item .description=${E(t.description)} .label=${E(e)} .value=${t.type} @calciteListItemSelect=${() => this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`);
|
|
480
481
|
}
|
|
481
482
|
_renderContent() {
|
|
482
483
|
const { _state: t, associationTypes: e, messages: s } = this, o = s?.associationsList ?? s?.noTitle ?? "";
|
|
@@ -492,7 +493,7 @@ class R extends Q {
|
|
|
492
493
|
return this._state === "querying" ? m`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
+
M("arcgis-feature-utility-network-associations", O);
|
|
496
497
|
export {
|
|
497
|
-
|
|
498
|
+
O as ArcgisFeatureUtilityNetworkAssociations
|
|
498
499
|
};
|
|
@@ -586,7 +586,7 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
586
586
|
get state(): State;
|
|
587
587
|
/**
|
|
588
588
|
* Dates and times displayed in the component will be displayed in this time zone. By default this time zone is
|
|
589
|
-
* inherited from [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone) if the [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#view) property is set. When a
|
|
589
|
+
* inherited from the associated [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone) or [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone) if the [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#view) property is set. When a view is not associated with the component
|
|
590
590
|
* then the property will fallback to the `system` time zone.
|
|
591
591
|
*
|
|
592
592
|
* **Possible Values**
|
|
@@ -580,7 +580,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
580
580
|
get state(): State;
|
|
581
581
|
/**
|
|
582
582
|
* Dates and times displayed in the component will be displayed in this time zone. By default this time zone is
|
|
583
|
-
* inherited from [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone) if the [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#view) property is set. When a
|
|
583
|
+
* inherited from the associated [arcgis-map.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeZone) or [arcgis-scene.timeZone](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#timeZone) if the [view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#view) property is set. When a view is not associated with the component
|
|
584
584
|
* then the property will fallback to the `system` time zone.
|
|
585
585
|
*
|
|
586
586
|
* **Possible Values**
|