@arcgis/map-components 5.1.0-next.82 → 5.1.0-next.84
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/2NY3SFXY.js +2 -0
- package/dist/cdn/{W5HIRRIH.js → 3ILSWQHC.js} +1 -1
- package/dist/cdn/66YJK5TN.js +2 -0
- package/dist/cdn/{KMLZW2K6.js → 6V7YOGR4.js} +1 -1
- package/dist/cdn/{HBEEL7IW.js → 6VJBGE5W.js} +1 -1
- package/dist/cdn/{J3EVRJDN.js → 7EBEAMCO.js} +1 -1
- package/dist/cdn/{LDCRZTCS.js → 7VOC4SRD.js} +1 -1
- package/dist/cdn/{254JE3ZB.js → A6P7RDWG.js} +1 -1
- package/dist/cdn/AFAQWPXY.js +2 -0
- package/dist/cdn/{LZEEYR7V.js → AQ77FNME.js} +2 -2
- package/dist/cdn/AU2CHOT7.js +2 -0
- package/dist/cdn/{UYQLS6YT.js → AW7QBRKJ.js} +1 -1
- package/dist/cdn/CLGZBSF4.js +2 -0
- package/dist/cdn/{2HUI7DKS.js → CZKMCZP6.js} +1 -1
- package/dist/cdn/{OZFNTMYH.js → E33LBHQA.js} +1 -1
- package/dist/cdn/{7TRV2EOI.js → ELGQ2B5Q.js} +1 -1
- package/dist/cdn/{3ST3R6TY.js → FMTWGY6C.js} +1 -1
- package/dist/cdn/{TF7MXQLD.js → FPT2UAZM.js} +1 -1
- package/dist/cdn/{MVULTZL6.js → FQY55PPT.js} +1 -1
- package/dist/cdn/{W3OI3KIT.js → GCFIJLPC.js} +1 -1
- package/dist/cdn/{YKQI2WN5.js → GVYS3KF5.js} +1 -1
- package/dist/cdn/{K2RCQ3S4.js → HTNECFCQ.js} +1 -1
- package/dist/cdn/{GDHU6FB7.js → HU4V2LGL.js} +1 -1
- package/dist/cdn/IFMQCWXY.js +2 -0
- package/dist/cdn/{FDR2SJBL.js → IMENOON5.js} +1 -1
- package/dist/cdn/IYYLPWB4.js +2 -0
- package/dist/cdn/{7F7JJMKX.js → K6DM6L64.js} +1 -1
- package/dist/cdn/{ZECK2VWO.js → K7IUUDPU.js} +1 -1
- package/dist/cdn/{FJ56R364.js → KKQWYK3S.js} +1 -1
- package/dist/cdn/{W42FYJ5N.js → LLRYOV3A.js} +1 -1
- package/dist/cdn/{WRSMGKLR.js → MV6B2G3T.js} +1 -1
- package/dist/cdn/{WCUAC5AB.js → NOIIORU5.js} +1 -1
- package/dist/cdn/{CVNE57KC.js → NUXHWUHW.js} +1 -1
- package/dist/cdn/O5ZWXMTJ.js +2 -0
- package/dist/cdn/{VO26UGWY.js → OSKVGOGF.js} +1 -1
- package/dist/cdn/{2AQAVHMV.js → OYSW2K2B.js} +1 -1
- package/dist/cdn/{LZPNTVQS.js → PLVNROBW.js} +1 -1
- package/dist/cdn/{4LQLSE44.js → QCWXVSVT.js} +1 -1
- package/dist/cdn/{EFTBQLWG.js → R643Q3PN.js} +1 -1
- package/dist/cdn/{JYOARMEB.js → RHK3OQ5J.js} +1 -1
- package/dist/cdn/{NVRFQSZB.js → ST5DXIZ6.js} +1 -1
- package/dist/cdn/{EFPJ2MPR.js → TEDPQX2I.js} +1 -1
- package/dist/cdn/{4XFY3WOK.js → U5G4PHA4.js} +1 -1
- package/dist/cdn/{DU2RY2NR.js → V6F3SIA2.js} +1 -1
- package/dist/cdn/{HAABWT7S.js → VEVJEIFK.js} +1 -1
- package/dist/cdn/{VAJP7Z3Y.js → VFIPW22C.js} +1 -1
- package/dist/cdn/{SRBNKXRD.js → X5PGXXNB.js} +1 -1
- package/dist/cdn/XQ5BV7DL.js +2 -0
- package/dist/cdn/{GXOC3E43.js → XWYXHSGO.js} +1 -1
- package/dist/cdn/{IJ4FLOVC.js → YACNPFYK.js} +1 -1
- package/dist/cdn/YHD6DZQT.js +2 -0
- package/dist/cdn/{NNMPXVST.js → ZO7ZJ52E.js} +1 -1
- package/dist/cdn/{7NFLP5PG.js → ZPSJEBD6.js} +1 -1
- package/dist/cdn/{TU7J33HU.js → ZYKCW3VZ.js} +1 -1
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/time-slider/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/time-slider/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +53 -78
- package/dist/chunks/async-utils.js +63 -51
- package/dist/chunks/feature-utils.js +3 -6
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +144 -0
- package/dist/components/arcgis-aggregated-features/index.js +6 -0
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -3
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +20 -14
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +8 -8
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +17 -8
- package/dist/components/arcgis-features/customElement.js +125 -108
- package/dist/components/arcgis-features/index.js +1 -0
- package/dist/components/arcgis-home/customElement.js +4 -4
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +24 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +13 -10
- package/dist/components/arcgis-time-slider/customElement.d.ts +687 -352
- package/dist/components/arcgis-time-slider/customElement.js +678 -26
- package/dist/components/arcgis-time-slider/index.js +7 -0
- package/dist/components/arcgis-time-slider/types.d.ts +147 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +24 -24
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +173 -0
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +208 -0
- package/dist/components/arcgis-utility-network-validate-network-topology/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-validate-network-topology/index.js +9 -0
- package/dist/components/arcgis-zoom/customElement.js +27 -33
- 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 +10 -0
- package/dist/loader.js +5 -3
- package/dist/types/lumina.d.ts +10 -3
- package/dist/types/preact.d.ts +11 -3
- package/dist/types/react.d.ts +12 -3
- package/dist/types/stencil.d.ts +10 -3
- package/dist/utils/async-utils.d.ts +3 -0
- package/package.json +5 -5
- package/dist/cdn/MT4BQEER.js +0 -2
- package/dist/cdn/OZZ7CYLP.js +0 -2
- package/dist/cdn/R6AZRDBD.js +0 -2
- package/dist/cdn/SE77TIOS.js +0 -2
- package/dist/cdn/UZIVX6VP.js +0 -2
- package/dist/cdn/V4RMKJUW.js +0 -2
- package/dist/cdn/VWL5JQZ4.js +0 -2
- package/dist/cdn/XUYGLABO.js +0 -2
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as _, html as s } from "lit";
|
|
4
|
+
import { getOwningPortalUrl as N, hasUserTypeExtension as V } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
5
|
+
import "@arcgis/core/core/Error.js";
|
|
6
|
+
import { on as b, watch as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
+
import T from "@arcgis/core/portal/Portal.js";
|
|
8
|
+
import "@arcgis/core/rest/networks/support/ValidateNetworkTopologyResult.js";
|
|
9
|
+
import { LitElement as A, createEvent as u, nothing as l } from "@arcgis/lumina";
|
|
10
|
+
import { log as d, composeMissingPropertyMessage as y } from "@arcgis/toolkit/log";
|
|
11
|
+
import { generateGuid as E } from "@arcgis/toolkit/string";
|
|
12
|
+
import { u as U } from "../../chunks/useT9n.js";
|
|
13
|
+
import { u as L } from "../../chunks/useView.js";
|
|
14
|
+
import { c as S, i as C, l as I, t as n } from "../../chunks/async-utils.js";
|
|
15
|
+
import { d as O } from "../../chunks/layer-utils.js";
|
|
16
|
+
const D = _`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}calcite-block{margin:0;border-bottom:none}calcite-combobox{margin-bottom:var(--calcite-spacing-sm)}calcite-icon{width:32px}`, p = {
|
|
17
|
+
noDirtyAreasInExtent: -2147208940,
|
|
18
|
+
operationOnlyAllowedByOwner: -2147217144,
|
|
19
|
+
cannotAcquireVersionLockV10: -2147217146,
|
|
20
|
+
cannotAcquireVersionLockV11: -2147220947
|
|
21
|
+
};
|
|
22
|
+
class q extends A {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments), this._messages = U({ blocking: !0 }), this._unVntGuid = `unvnt_${E()}`, this.disabled = !1, this.extentToValidate = "current", this.hideUtilityNetworkSelect = !1, this.state = { type: "disabled" }, this.view = L(this), this.arcgisReady = u(), this.arcgisValidateNetworkTopologyEnd = u(), this.arcgisValidateNetworkTopologyStart = u();
|
|
25
|
+
}
|
|
26
|
+
static {
|
|
27
|
+
this.properties = { beforeValidateNetworkTopologyStart: 0, disabled: 5, extentToValidate: 1, hideUtilityNetworkSelect: 5, label: 1, messageOverrides: 0, referenceElement: 1, result: 0, state: 0, utilityNetwork: 0, view: 0 };
|
|
28
|
+
}
|
|
29
|
+
static {
|
|
30
|
+
this.styles = D;
|
|
31
|
+
}
|
|
32
|
+
async loaded() {
|
|
33
|
+
this.manager.onLifecycle(() => [
|
|
34
|
+
b(() => this.view?.map?.allLayers, "change", (e) => {
|
|
35
|
+
const t = e.added.concat(e.removed);
|
|
36
|
+
this._getDirtyAreasLayer(t) && this._runSetup();
|
|
37
|
+
}),
|
|
38
|
+
b(() => this.view?.map?.utilityNetworks, "change", () => {
|
|
39
|
+
this._runSetup();
|
|
40
|
+
}),
|
|
41
|
+
$(() => this.view, () => {
|
|
42
|
+
this._runSetup();
|
|
43
|
+
}, { initial: !0 })
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
_getDirtyAreasLayer(e) {
|
|
47
|
+
const t = this.utilityNetwork?.networkSystemLayers.dirtyAreasLayerUrl;
|
|
48
|
+
if (t)
|
|
49
|
+
return e.find((i) => O(i) && `${i.url}/${i.layerId}` === t);
|
|
50
|
+
}
|
|
51
|
+
async _handleValidateNetworkTopologyAction() {
|
|
52
|
+
try {
|
|
53
|
+
if (this.result = void 0, !this.view) {
|
|
54
|
+
this.state = { type: "error-disable-component", message: this._messages.errors.noView };
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (!this.utilityNetwork) {
|
|
58
|
+
this.state = { type: "error-disable-component", message: this._messages.errors.noUtilityNetworks };
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.beforeValidateNetworkTopologyStart && await this.beforeValidateNetworkTopologyStart();
|
|
62
|
+
const { view: e, utilityNetwork: t } = this;
|
|
63
|
+
if (!e) {
|
|
64
|
+
this.state = { type: "error-disable-component", message: this._messages.errors.noView };
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!t) {
|
|
68
|
+
this.state = { type: "error-disable-component", message: this._messages.errors.noUtilityNetwork }, d("warn", this, y("utilityNetwork"));
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (this.arcgisValidateNetworkTopologyStart.emit().defaultPrevented) {
|
|
72
|
+
d("info", this, this._messages.info.validateCanceled);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this.state = { type: "executing" };
|
|
76
|
+
const r = {
|
|
77
|
+
outSpatialReference: e.spatialReference?.clone() || null,
|
|
78
|
+
validateArea: this.extentToValidate === "current" || !t.fullExtent ? e.extent.clone() : t.fullExtent.clone()
|
|
79
|
+
};
|
|
80
|
+
this.result = await t.validateTopology(r), this.state = { type: "success", message: this._messages.status.success };
|
|
81
|
+
} catch (e) {
|
|
82
|
+
const { _messages: { errors: { cannotAcquireVersionLock: t, noDirtyAreasInExtent: i, operationOnlyAllowedByOwner: r } } } = this;
|
|
83
|
+
this.result = void 0;
|
|
84
|
+
const o = e, a = o.details?.raw?.extendedCode;
|
|
85
|
+
let c = o.message;
|
|
86
|
+
switch (a) {
|
|
87
|
+
case p.noDirtyAreasInExtent:
|
|
88
|
+
c = i;
|
|
89
|
+
break;
|
|
90
|
+
case p.cannotAcquireVersionLockV10:
|
|
91
|
+
case p.cannotAcquireVersionLockV11:
|
|
92
|
+
c = t;
|
|
93
|
+
break;
|
|
94
|
+
case p.operationOnlyAllowedByOwner:
|
|
95
|
+
c = r;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
this.state = { type: "error-info", message: c };
|
|
99
|
+
} finally {
|
|
100
|
+
this.arcgisValidateNetworkTopologyEnd.emit();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async _runSetup() {
|
|
104
|
+
this._setupTask?.abort();
|
|
105
|
+
const e = S(async (t) => {
|
|
106
|
+
this.state = { type: "loading" }, this.result = void 0;
|
|
107
|
+
const { view: i } = this;
|
|
108
|
+
if (!i) {
|
|
109
|
+
this.utilityNetwork = void 0, this.state = { type: "error-disable-component", message: this._messages.errors.noView }, d("warn", this, y("view"));
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (i.type !== "2d") {
|
|
113
|
+
this.utilityNetwork = void 0, this.state = { type: "error-disable-component", message: this._messages.errors.sceneViewNotSupported };
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const r = i.map;
|
|
117
|
+
await r.load({ signal: t }), n(t);
|
|
118
|
+
const o = r.utilityNetworks ?? null;
|
|
119
|
+
if (!o?.length) {
|
|
120
|
+
this.utilityNetwork = void 0, this.state = { type: "error-disable-component", message: this._messages.errors.noUtilityNetworks };
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
let a = this.utilityNetwork;
|
|
124
|
+
if ((!a || !o.find((f) => f.id === a?.id)) && (a = o.getItemAt(0)), !a) {
|
|
125
|
+
this.state = { type: "error-disable-component", message: this._messages.errors.noUtilityNetworks }, d("warn", this, y("utilityNetwork"));
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
await a.load({ signal: t }), n(t);
|
|
129
|
+
const g = (Number(a.sourceJSON.currentVersion) || 0) <= 11.1 ? "utilityNetwork" : "advediting", w = await N(a.layerUrl, { signal: t }) ?? void 0;
|
|
130
|
+
n(t);
|
|
131
|
+
const h = new T({ url: w });
|
|
132
|
+
await h.load({ signal: t }), n(t);
|
|
133
|
+
const x = h.user?.username ?? "", v = await V(h, x, g);
|
|
134
|
+
if (n(t), this._utilityNetworks = o, this.utilityNetwork = a, !v) {
|
|
135
|
+
this.state = g === "advediting" ? { type: "error-disable-execute", message: this._messages.errors.noAdvancedEditingUserTypeExtension } : {
|
|
136
|
+
type: "error-disable-execute",
|
|
137
|
+
message: this._messages.errors.noUtilityNetworkServiceUserTypeExtension
|
|
138
|
+
};
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const m = this._getDirtyAreasLayer(r.allLayers.toArray());
|
|
142
|
+
if (!m) {
|
|
143
|
+
this.state = { type: "error-disable-execute", message: this._messages.errors.noDirtyAreasLayer };
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
await m.load({ signal: t }), n(t), this.state = { type: "ready" };
|
|
147
|
+
});
|
|
148
|
+
this._setupTask = e;
|
|
149
|
+
try {
|
|
150
|
+
await e.promise;
|
|
151
|
+
} catch (t) {
|
|
152
|
+
if (C(t))
|
|
153
|
+
return;
|
|
154
|
+
this.utilityNetwork = void 0, this.state = { type: "error-disable-component", message: this._messages.errors.setup }, I(t, this, this.state.message);
|
|
155
|
+
} finally {
|
|
156
|
+
this._setupTask === e && (this._setupTask = void 0);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
_renderExtentToValidateCombobox() {
|
|
160
|
+
if (this.state.type !== "error-disable-component")
|
|
161
|
+
return s`<calcite-combobox .disabled=${this.disabled || this.state.type === "disabled" || this.state.type === "executing"} .label=${this._messages.input.selectExtent.label} .labelText=${this._messages.input.selectExtent.label} selection-mode=single-persist @calciteComboboxChange=${(e) => {
|
|
162
|
+
this.extentToValidate = e.target.value;
|
|
163
|
+
}}><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.currentExtent} .selected=${this.extentToValidate === "current"} value=current></calcite-combobox-item><calcite-combobox-item .heading=${this._messages.input.selectExtent.options.entireExtent} .selected=${this.extentToValidate === "entire"} value=entire></calcite-combobox-item></calcite-combobox>`;
|
|
164
|
+
}
|
|
165
|
+
_renderInfoNotice() {
|
|
166
|
+
if (this.state.type === "error-disable-component" || this.state.type === "error-disable-execute" || this.state.type === "error-info" || this.state.type === "success")
|
|
167
|
+
return s`<calcite-notice .closable=${this.state.type === "error-info" || this.state.type === "success"} .kind=${this.state.type === "success" ? "success" : "warning"} open scale=s width=full @calciteNoticeClose=${() => this.state = { type: "ready" }}><div slot=message>${this.state.message}</div></calcite-notice>`;
|
|
168
|
+
}
|
|
169
|
+
_renderStatusIcon() {
|
|
170
|
+
const e = `${this._unVntGuid}_status-icon`;
|
|
171
|
+
switch (this.state.type) {
|
|
172
|
+
case "error-disable-component":
|
|
173
|
+
case "error-disable-execute":
|
|
174
|
+
case "error-info":
|
|
175
|
+
return s`<calcite-icon icon=exclamation-mark-triangle id=${e ?? l} scale=s slot=actions-end></calcite-icon>`;
|
|
176
|
+
case "executing":
|
|
177
|
+
return s`<calcite-action loading disabled slot=actions-end .text=${this._messages.status.executing}></calcite-action>`;
|
|
178
|
+
case "success":
|
|
179
|
+
return s`<calcite-icon icon=check-circle id=${e ?? l} scale=s slot=actions-end></calcite-icon>`;
|
|
180
|
+
default:
|
|
181
|
+
return s`<calcite-icon icon=blank scale=m slot=actions-end></calcite-icon>`;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
_renderUtilityNetworkCombobox() {
|
|
185
|
+
if (!(!this._utilityNetworks || this._utilityNetworks?.length === 1 || this.state.type === "error-disable-component" || this.hideUtilityNetworkSelect))
|
|
186
|
+
return s`<calcite-combobox .disabled=${this.state.type === "executing"} .label=${this._messages.input.selectUtilityNetwork.label} .labelText=${this._messages.input.selectUtilityNetwork.label} selection-mode=single-persist @calciteComboboxChange=${(e) => {
|
|
187
|
+
const t = e.target.value;
|
|
188
|
+
this.utilityNetwork = this._utilityNetworks?.find((i) => i.id === t), this._runSetup();
|
|
189
|
+
}}>${this._utilityNetworks.map((e) => s`<calcite-combobox-item .heading=${e.title} .selected=${e === this.utilityNetwork} .value=${e.id}></calcite-combobox-item>`)}</calcite-combobox>`;
|
|
190
|
+
}
|
|
191
|
+
_renderValidateNetworkTopologyAction() {
|
|
192
|
+
if (this.state.type === "error-disable-component")
|
|
193
|
+
return;
|
|
194
|
+
const e = `${this._unVntGuid}_execute-action`;
|
|
195
|
+
return [
|
|
196
|
+
s`<calcite-action .disabled=${this.disabled || this.state.type === "disabled" || this.state.type === "error-disable-execute" || this.state.type === "executing"} icon=play-f id=${e ?? l} @click=${this._handleValidateNetworkTopologyAction} slot=actions-end .text=${this._messages.actions.validateTopology}></calcite-action>`,
|
|
197
|
+
s`<calcite-tooltip reference-element=${e ?? l}><span>${this._messages.actions.validateTopology}</span></calcite-tooltip>`
|
|
198
|
+
];
|
|
199
|
+
}
|
|
200
|
+
render() {
|
|
201
|
+
const e = this._renderStatusIcon(), t = this._renderValidateNetworkTopologyAction(), i = this._renderUtilityNetworkCombobox(), r = this._renderExtentToValidateCombobox(), o = this._renderInfoNotice();
|
|
202
|
+
return s`<calcite-panel .loading=${this.state.type === "loading"}><calcite-block collapsible expanded .heading=${this.label}>${e}${t}${i}${r}${o}</calcite-block></calcite-panel>`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
k("arcgis-utility-network-validate-network-topology", q);
|
|
206
|
+
export {
|
|
207
|
+
q as ArcgisUtilityNetworkValidateNetworkTopology
|
|
208
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-combobox";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-combobox-item";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-icon";
|
|
5
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-tooltip";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-panel";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-block";
|
|
9
|
+
export * from "./customElement.js";
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as u } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
function n(t) {
|
|
3
|
+
import { css as m, html as d } from "lit";
|
|
4
|
+
import { when as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as f, createEvent as i, nothing as r, safeClassMap as y } from "@arcgis/lumina";
|
|
6
|
+
import { usePropertyChange as g } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { u as b } from "../../chunks/useT9n.js";
|
|
8
|
+
import { u as p } from "../../chunks/useView.js";
|
|
9
|
+
import { g as z } from "../../chunks/globalCss.js";
|
|
10
|
+
function c(t) {
|
|
12
11
|
if (!t)
|
|
13
12
|
return !1;
|
|
14
13
|
if (t.type === "3d")
|
|
15
14
|
return t.ready;
|
|
16
15
|
if (!t?.ready)
|
|
17
16
|
return !1;
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
const a = l(t), o = t.constraints?.effectiveMaxScale;
|
|
18
|
+
return o === 0 || a > o;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function n(t) {
|
|
22
21
|
if (!t)
|
|
23
22
|
return !1;
|
|
24
23
|
if (t.type === "3d")
|
|
25
24
|
return t.ready;
|
|
26
25
|
if (!t?.ready)
|
|
27
26
|
return !1;
|
|
28
|
-
const
|
|
29
|
-
return
|
|
27
|
+
const a = l(t), o = t.constraints?.effectiveMinScale;
|
|
28
|
+
return o === 0 || a < o;
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function l(t) {
|
|
32
31
|
const e = t?.animation?.target;
|
|
33
32
|
return (e && "then" in e ? void 0 : e?.scale) ?? t?.scale ?? 0;
|
|
34
33
|
}
|
|
35
|
-
const
|
|
36
|
-
class
|
|
34
|
+
const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
|
|
35
|
+
class x extends f {
|
|
37
36
|
constructor() {
|
|
38
|
-
super(...arguments), this.messages =
|
|
37
|
+
super(...arguments), this.messages = b({}), this._state = "disabled", this.view = p(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = i(), this.arcgisPropertyChange = g()("state"), this.arcgisReady = i();
|
|
39
38
|
}
|
|
40
39
|
static {
|
|
41
40
|
this.properties = { _state: 16, view: 0, autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, messageOverrides: 0, referenceElement: 1, visualScale: 1, state: 32 };
|
|
42
41
|
}
|
|
43
42
|
static {
|
|
44
|
-
this.styles =
|
|
43
|
+
this.styles = v;
|
|
45
44
|
}
|
|
46
45
|
get state() {
|
|
47
46
|
return this._state;
|
|
@@ -57,29 +56,24 @@ class $ extends y {
|
|
|
57
56
|
}
|
|
58
57
|
loaded() {
|
|
59
58
|
this.manager.onLifecycle(() => [
|
|
60
|
-
|
|
59
|
+
h(() => this.view?.ready ? "ready" : "disabled", (e) => {
|
|
61
60
|
this._state = e;
|
|
62
61
|
}, { sync: !0, initial: !0 })
|
|
63
62
|
]);
|
|
64
63
|
}
|
|
65
64
|
async zoomBy(e) {
|
|
66
|
-
const { view:
|
|
67
|
-
|
|
68
|
-
if (this.arcgisActionZoom.emit({ action: a ? "zoomIn" : "zoomOut" }), o.type === "2d") {
|
|
69
|
-
const s = o.mapViewNavigation;
|
|
70
|
-
a ? await s.zoomIn() : await s.zoomOut();
|
|
71
|
-
} else
|
|
72
|
-
await f(o.goTo({ zoom: o.zoom + e }));
|
|
65
|
+
const { view: a } = this, o = e === 1;
|
|
66
|
+
!(o ? c(a) : n(a)) || !a || (this.arcgisActionZoom.emit({ action: o ? "zoomIn" : "zoomOut" }), o ? await a.zoomIn() : await a.zoomOut());
|
|
73
67
|
}
|
|
74
68
|
render() {
|
|
75
|
-
const e =
|
|
76
|
-
return
|
|
77
|
-
[
|
|
69
|
+
const e = c(this.view), a = n(this.view), { zoomIn: o, zoomOut: s } = this.messages;
|
|
70
|
+
return d`<div class=${y({
|
|
71
|
+
[z.arcgisButton]: !0,
|
|
78
72
|
horizontal: this.layout === "horizontal"
|
|
79
|
-
})}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${
|
|
73
|
+
})}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${o} @click=${this.zoomIn} .scale=${this.visualScale} title=${o ?? r}></calcite-button><calcite-button class="zoom-out" .disabled=${!a} icon-start=minus kind=neutral .label=${s} @click=${this.zoomOut} .scale=${this.visualScale} title=${s ?? r}></calcite-button></div>`;
|
|
80
74
|
}
|
|
81
75
|
}
|
|
82
|
-
u("arcgis-zoom",
|
|
76
|
+
u("arcgis-zoom", x);
|
|
83
77
|
export {
|
|
84
|
-
|
|
78
|
+
x as ArcgisZoom
|
|
85
79
|
};
|