@arcgis/map-components 5.2.0-next.95 → 5.2.0-next.97
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/22TB66OC.js +2 -0
- package/dist/cdn/{GIQDIWW4.js → 22VFTYTN.js} +1 -1
- package/dist/cdn/367Z3TKY.js +2 -0
- package/dist/cdn/{AY2PVEY5.js → 3AIQYNSA.js} +1 -1
- package/dist/cdn/{QTGJ2TIJ.js → 454H3MLO.js} +1 -1
- package/dist/cdn/{FRAZUJ7K.js → 4MSBOUHQ.js} +1 -1
- package/dist/cdn/{SK4OCYH7.js → 4YU2AF7S.js} +1 -1
- package/dist/cdn/5FWT3N7B.js +2 -0
- package/dist/cdn/6KYWLAYH.js +2 -0
- package/dist/cdn/6SEM26SM.js +2 -0
- package/dist/cdn/6ZE7BJTS.js +2 -0
- package/dist/cdn/72HH6FSN.js +2 -0
- package/dist/cdn/{SSJBKHEN.js → 77NK4UBY.js} +1 -1
- package/dist/cdn/{LPB2JMJ5.js → 7F2DXC54.js} +1 -1
- package/dist/cdn/{Y56FOEA4.js → A3KD2UAY.js} +1 -1
- package/dist/cdn/AJBOKAK6.js +2 -0
- package/dist/cdn/{2HYRTMJ6.js → AOBYM5ZK.js} +1 -1
- package/dist/cdn/{MXYWUI34.js → ASVNFERZ.js} +1 -1
- package/dist/cdn/AZ6IOGGT.js +2 -0
- package/dist/cdn/{PWY44JI6.js → B4KOVXN3.js} +1 -1
- package/dist/cdn/{7TTSWTGP.js → BHENVS42.js} +1 -1
- package/dist/cdn/BOPKJR3D.js +2 -0
- package/dist/cdn/{K2FKS4AS.js → BZGHEINJ.js} +1 -1
- package/dist/cdn/{VHHRBGXN.js → CJLML2XS.js} +1 -1
- package/dist/cdn/CKO4VE36.js +2 -0
- package/dist/cdn/{2F6NRCC5.js → DVGE5VPK.js} +1 -1
- package/dist/cdn/{I3VQ46FA.js → EAQV7AZQ.js} +1 -1
- package/dist/cdn/EDGLEFG3.js +2 -0
- package/dist/cdn/{CEMBX25Q.js → EXIPQBCY.js} +1 -1
- package/dist/cdn/FCNNRX3Q.js +2 -0
- package/dist/cdn/FCVLHRLJ.js +2 -0
- package/dist/cdn/G743AW46.js +2 -0
- package/dist/cdn/{XZGU6TR6.js → GGKOLSCH.js} +1 -1
- package/dist/cdn/{3CHIGFZL.js → GLMK45AB.js} +1 -1
- package/dist/cdn/H7KG55LR.js +2 -0
- package/dist/cdn/{S5XIZ2L4.js → HXNLIDLQ.js} +1 -1
- package/dist/cdn/{7ZZWKH2U.js → IPT3YBSG.js} +2 -2
- package/dist/cdn/{UAGCCYQB.js → IXDLJKJA.js} +1 -1
- package/dist/cdn/{B5FTF7WR.js → J624KHFL.js} +1 -1
- package/dist/cdn/{G2BLA5NQ.js → JAQYZZRT.js} +1 -1
- package/dist/cdn/{KZPPV365.js → JMYDF3AT.js} +1 -1
- package/dist/cdn/L4DWZT4V.js +2 -0
- package/dist/cdn/{XAZNEI2W.js → LCG5BEEY.js} +1 -1
- package/dist/cdn/{VWV6XWSU.js → LW6SRLBI.js} +1 -1
- package/dist/cdn/{5SVULVBJ.js → MAILUSIQ.js} +1 -1
- package/dist/cdn/N2RLGXGJ.js +2 -0
- package/dist/cdn/NRT2ZCWC.js +2 -0
- package/dist/cdn/{HOKDRJ4R.js → NSUQXUWH.js} +1 -1
- package/dist/cdn/{V42KBFW7.js → OCAPESF3.js} +1 -1
- package/dist/cdn/{F3JDX4A7.js → OMEJFPK7.js} +1 -1
- package/dist/cdn/P2JBFLSB.js +2 -0
- package/dist/cdn/{D6BWGR3Z.js → P5CQYFPA.js} +1 -1
- package/dist/cdn/R5GMCIAH.js +2 -0
- package/dist/cdn/{AKNAVXKD.js → RC7BSNQ3.js} +1 -1
- package/dist/cdn/{O6CGTOAO.js → S7JDLOX2.js} +1 -1
- package/dist/cdn/SA4IYYIE.js +2 -0
- package/dist/cdn/{QD3GVN2C.js → SDY4E3WA.js} +1 -1
- package/dist/cdn/{CJ536VHT.js → SGU4TP7V.js} +1 -1
- package/dist/cdn/TDGEDT35.js +2 -0
- package/dist/cdn/{66PT52ED.js → TZEAPNBI.js} +1 -1
- package/dist/cdn/{CA5LXWO6.js → UOZG2EH7.js} +1 -1
- package/dist/cdn/{GMSIYMNC.js → UPJTKQR3.js} +1 -1
- package/dist/cdn/{2JLMOWRT.js → VULA5TJD.js} +1 -1
- package/dist/cdn/VZXCU47M.js +2 -0
- package/dist/cdn/{FRSROWP4.js → W6IFUQTQ.js} +1 -1
- package/dist/cdn/{SVJ7AEMP.js → WAFRMU5C.js} +1 -1
- package/dist/cdn/WLGR4IHZ.js +2 -0
- package/dist/cdn/{CX3OZJEH.js → WMK7RLBA.js} +1 -1
- package/dist/cdn/{4FVOBVTD.js → YEN7K65V.js} +2 -2
- package/dist/cdn/YVQJ4XD4.js +2 -0
- package/dist/cdn/{FZDURX2Y.js → YWOTHCBH.js} +1 -1
- package/dist/cdn/{N5VJ4SAX.js → ZCRUGROJ.js} +1 -1
- package/dist/cdn/{VT2IDAHB.js → ZUWNZX6G.js} +1 -1
- package/dist/cdn/assets/layer-list-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/selection-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/layer-list-utils.js +23 -17
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/utils2.js +66 -50
- package/dist/chunks/utils3.js +50 -13
- package/dist/chunks/utils4.js +13 -45
- package/dist/chunks/utils5.js +51 -0
- package/dist/components/arcgis-aggregated-features/customElement.js +7 -7
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +21 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +16 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +5 -6
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +6 -5
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +11 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +18 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +19 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +5 -5
- package/dist/components/arcgis-feature/customElement.js +27 -27
- package/dist/components/arcgis-feature-attachments/customElement.js +73 -60
- package/dist/components/arcgis-feature-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-next/customElement.js +12 -12
- package/dist/components/arcgis-feature-relationship/customElement.js +54 -45
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -0
- package/dist/components/arcgis-features-next/customElement.js +16 -16
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +6 -6
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +20 -16
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +41 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +49 -45
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +134 -10
- package/dist/components/arcgis-layer-list-next/types.d.ts +5 -0
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +7 -0
- package/dist/components/arcgis-popup/customElement.js +15 -15
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +2 -2
- package/dist/components/arcgis-selection-list/customElement.d.ts +421 -0
- package/dist/components/arcgis-selection-list/customElement.js +279 -0
- package/dist/components/arcgis-selection-list/index.d.ts +1 -0
- package/dist/components/arcgis-selection-list/index.js +16 -0
- package/dist/components/arcgis-selection-list/types.d.ts +85 -0
- package/dist/components/arcgis-table-list-next/customElement.js +5 -5
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +2 -1
- package/dist/components/arcgis-utility-network-elements-result-item/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +11 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +76 -78
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +17 -25
- package/dist/components/arcgis-video-player/customElement.d.ts +3 -0
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +9 -9
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +37 -0
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +15 -14
- package/dist/types/lumina.d.ts +19 -12
- package/dist/types/preact.d.ts +20 -12
- package/dist/types/react.d.ts +21 -12
- package/dist/types/stencil.d.ts +19 -12
- package/dist/utils/layer-list-utils.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/2GDWXNYN.js +0 -2
- package/dist/cdn/376WTHOL.js +0 -2
- package/dist/cdn/4YFREAQ2.js +0 -2
- package/dist/cdn/A6Z7H75I.js +0 -2
- package/dist/cdn/CDMVB72W.js +0 -2
- package/dist/cdn/D5TJRWW3.js +0 -2
- package/dist/cdn/ECXHREHJ.js +0 -2
- package/dist/cdn/FIIA3N5X.js +0 -2
- package/dist/cdn/FY6IGGPV.js +0 -2
- package/dist/cdn/G7HOUS4O.js +0 -2
- package/dist/cdn/HF3GCBAI.js +0 -2
- package/dist/cdn/HISWL3K3.js +0 -2
- package/dist/cdn/HPLMTKLF.js +0 -2
- package/dist/cdn/JKOIMKKL.js +0 -2
- package/dist/cdn/JOPAUFUX.js +0 -2
- package/dist/cdn/LDDAJOTV.js +0 -2
- package/dist/cdn/LKCX5SXM.js +0 -2
- package/dist/cdn/LMNH2RHA.js +0 -2
- package/dist/cdn/MBFY4GDJ.js +0 -2
- package/dist/cdn/PI55I5L7.js +0 -2
- package/dist/cdn/S3QMZKDY.js +0 -2
- package/dist/cdn/XQH6U57U.js +0 -2
- package/dist/cdn/YDP5A3EP.js +0 -2
- package/dist/cdn/ZSDNX326.js +0 -2
- package/dist/chunks/layer-list-item.js +0 -181
- /package/dist/cdn/{WKBILCAY.js → 2ZG7S6GM.js} +0 -0
- /package/dist/cdn/{4WURS3DM.js → 3VWL4SN7.js} +0 -0
- /package/dist/cdn/{4GIRSQMC.js → 4F6FNH6V.js} +0 -0
- /package/dist/cdn/{KYWZUC6M.js → 4J6DMRVO.js} +0 -0
- /package/dist/cdn/{FVZJPOWC.js → 5OBSJYCP.js} +0 -0
- /package/dist/cdn/{5CB7FWG6.js → 657KH5W3.js} +0 -0
- /package/dist/cdn/{ESYSNSNH.js → 6B4ROFUM.js} +0 -0
- /package/dist/cdn/{RKXHWHFR.js → 6RT7GRX4.js} +0 -0
- /package/dist/cdn/{3ZXNGXHC.js → 7DI2ZSB3.js} +0 -0
- /package/dist/cdn/{4AEFZEGM.js → 7JKYXV7H.js} +0 -0
- /package/dist/cdn/{NDWLSQ4W.js → 7NO3F7GQ.js} +0 -0
- /package/dist/cdn/{4KYPBCNM.js → AA2HLLIM.js} +0 -0
- /package/dist/cdn/{BU5HRIOW.js → ADZF7IHV.js} +0 -0
- /package/dist/cdn/{B4RNNO6A.js → B6JLKBMG.js} +0 -0
- /package/dist/cdn/{ZOGRVFHK.js → D2FVI5JG.js} +0 -0
- /package/dist/cdn/{HW5YYDPC.js → D5LP3DJA.js} +0 -0
- /package/dist/cdn/{OJOQP2IU.js → DNQGXWL3.js} +0 -0
- /package/dist/cdn/{QU5PA5MZ.js → DSPV4EIK.js} +0 -0
- /package/dist/cdn/{FV7FUSTO.js → E3AEBH36.js} +0 -0
- /package/dist/cdn/{2EDZ2LNR.js → FRGVEQAZ.js} +0 -0
- /package/dist/cdn/{ZXEH6MEU.js → G7DHB4QN.js} +0 -0
- /package/dist/cdn/{MGILHYX4.js → GJAC7GKP.js} +0 -0
- /package/dist/cdn/{G42D353L.js → GLZMKGGW.js} +0 -0
- /package/dist/cdn/{WRKX7F2G.js → H3RDAWS7.js} +0 -0
- /package/dist/cdn/{YFM2SKWI.js → HDYBFSI5.js} +0 -0
- /package/dist/cdn/{NGQUETWM.js → HH4A44WX.js} +0 -0
- /package/dist/cdn/{5EU3QVP7.js → HRTVHZHG.js} +0 -0
- /package/dist/cdn/{7427KHVF.js → IU63DGNP.js} +0 -0
- /package/dist/cdn/{O3SPKYBG.js → J3KTKVLP.js} +0 -0
- /package/dist/cdn/{BV52G5DA.js → JHF7SGKM.js} +0 -0
- /package/dist/cdn/{GLKTAVV5.js → JU4MCJPU.js} +0 -0
- /package/dist/cdn/{77ZD2RFI.js → KVIE42LT.js} +0 -0
- /package/dist/cdn/{W2UZH6QI.js → LG3G4BFF.js} +0 -0
- /package/dist/cdn/{VDTRRLON.js → MDTNPISF.js} +0 -0
- /package/dist/cdn/{XYRTRBXU.js → OO4SKY7C.js} +0 -0
- /package/dist/cdn/{SNX6WY7J.js → OTTKYEPK.js} +0 -0
- /package/dist/cdn/{J4VKIBXE.js → QH4RNPEX.js} +0 -0
- /package/dist/cdn/{IHWFNEBS.js → QJBQ3JLC.js} +0 -0
- /package/dist/cdn/{KG3HVAZY.js → SE4NXMGA.js} +0 -0
- /package/dist/cdn/{AZWQWNTK.js → SOOVHYLT.js} +0 -0
- /package/dist/cdn/{KMNELKA3.js → T5QDEAAE.js} +0 -0
- /package/dist/cdn/{W2YB27M6.js → TKEBTPPA.js} +0 -0
- /package/dist/cdn/{6URW6H47.js → TTBQBEDS.js} +0 -0
- /package/dist/cdn/{BIKEUMV7.js → VFHHDNXC.js} +0 -0
- /package/dist/cdn/{QZHFPTSI.js → X2MAQDWV.js} +0 -0
- /package/dist/cdn/{LGNLLGA6.js → YWQU6EBN.js} +0 -0
|
@@ -6,157 +6,155 @@ import { keyed as l } from "lit/directives/keyed.js";
|
|
|
6
6
|
import p from "@arcgis/core/Color.js";
|
|
7
7
|
import { when as m } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
8
|
import f from "@arcgis/core/networks/UtilityNetworkTraceAnalysis.js";
|
|
9
|
-
import { LitElement as y, createEvent as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
import { LitElement as y, createEvent as n } from "@arcgis/lumina";
|
|
10
|
+
import { usePropertyChange as b } from "@arcgis/lumina/controllers";
|
|
11
|
+
import { log as w } from "@arcgis/toolkit/log";
|
|
12
|
+
import { u as v } from "../../chunks/useT9n.js";
|
|
13
|
+
import { m as T } from "../../chunks/useViewModel.js";
|
|
14
|
+
import { l as $ } from "../../chunks/async-utils.js";
|
|
15
|
+
const R = 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%)}arcgis-utility-network-trace-inputs-next[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-tab:not([selected]){flex:0}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`, _ = T(f);
|
|
16
|
+
class x extends y {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(...arguments), this._messages =
|
|
18
|
+
super(...arguments), this._messages = v({ blocking: !0 }), this.#t = _(this), this._activeTab = "input", this._showMissingTerminalWarning = !1, this._showNoStartingPointsWarning = !1, this._mode = "default", this.autoDestroyDisabled = !1, this.aggregatedGeometryGraphicsColor = new p([255, 255, 0, 0.6]), this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.state = this.#t.state, this.view = this.#t.view, this.arcgisHideGraphicsChange = n(), this.arcgisPropertyChange = b()("aggregatedGeometryGraphicsColor", "hideGraphics"), this.arcgisReady = n(), this.arcgisTriggerAction = n(), this.arcgisTraceLocationSelectEnd = n(), this.arcgisTraceLocationSelectStart = n(), this.arcgisTraceResultClear = n(), this.arcgisTraceResultFeaturesReady = n();
|
|
18
19
|
}
|
|
19
20
|
static {
|
|
20
|
-
this.properties = { _activeTab: 16, _traceError: 16, _traceResult: 16, _showMissingTerminalWarning: 16, _showNoStartingPointsWarning: 16, _mode: 16, actions: 0, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
21
|
+
this.properties = { _activeTab: 16, _traceError: 16, _traceResult: 16, _showMissingTerminalWarning: 16, _showNoStartingPointsWarning: 16, _mode: 16, actions: 0, autoDestroyDisabled: 5, beforeTraceLocationSelectStart: 0, aggregatedGeometryGraphicsColor: 0, disableHighlightFeatureResults: 5, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, label: 3, messageOverrides: 0, traceResultFeatures: 32, referenceElement: 1, state: 32, view: 0 };
|
|
21
22
|
}
|
|
22
23
|
static {
|
|
23
|
-
this.styles =
|
|
24
|
+
this.styles = R;
|
|
24
25
|
}
|
|
25
|
-
#e;
|
|
26
26
|
#t;
|
|
27
|
+
#e;
|
|
27
28
|
#i;
|
|
28
29
|
get #r() {
|
|
29
|
-
const { view:
|
|
30
|
-
return
|
|
30
|
+
const { view: e } = this;
|
|
31
|
+
return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
|
|
31
32
|
}
|
|
32
33
|
#n;
|
|
33
34
|
get traceResultFeatures() {
|
|
34
35
|
return this.#i?.traceResultFeatures ?? [];
|
|
35
36
|
}
|
|
36
37
|
async destroy() {
|
|
37
|
-
await this.#i?.destroy(), await this.#
|
|
38
|
+
await this.#i?.destroy(), await this.#e?.destroy(), await this.manager.destroy();
|
|
38
39
|
}
|
|
39
40
|
load() {
|
|
40
41
|
this.manager.onLifecycle(() => [
|
|
41
|
-
m(() => !this.#
|
|
42
|
+
m(() => !this.#t.utilityNetwork, () => this.#a("input"))
|
|
42
43
|
]);
|
|
43
44
|
}
|
|
44
45
|
#s() {
|
|
45
46
|
this._traceResult = void 0, this.#i?.clearResults();
|
|
46
47
|
}
|
|
47
48
|
#o() {
|
|
48
|
-
if (!this.#
|
|
49
|
+
if (!this.#e)
|
|
49
50
|
return;
|
|
50
|
-
const { traceLocations:
|
|
51
|
-
this._traceError = void 0, this._showNoStartingPointsWarning = !a && !h || a && !
|
|
51
|
+
const { traceLocations: e, traceLocationFlagInfos: t, traceConfiguration: s, isSubnetworkNameTraceSelected: a } = this.#e, r = !!s?.subnetworkName, h = e?.some((o) => o.type === "starting-point"), g = t?.some((o) => !!o.flagProperties.terminalConfiguration && !o.flagProperties.selectedTerminals?.size) ?? !1;
|
|
52
|
+
this._traceError = void 0, this._showNoStartingPointsWarning = !a && !h || a && !r, this._showMissingTerminalWarning = g;
|
|
52
53
|
}
|
|
53
|
-
#a(
|
|
54
|
-
this._activeTab =
|
|
54
|
+
#a(e) {
|
|
55
|
+
this._activeTab = e;
|
|
55
56
|
}
|
|
56
|
-
#c(
|
|
57
|
-
const { _messages:
|
|
58
|
-
switch (
|
|
57
|
+
#c(e) {
|
|
58
|
+
const { _messages: t } = this;
|
|
59
|
+
switch (e) {
|
|
59
60
|
case "no-user-type-extension":
|
|
60
|
-
return
|
|
61
|
+
return t.errors.loadErrors.noUserTypeExtension;
|
|
61
62
|
case "no-utility-network":
|
|
62
|
-
return
|
|
63
|
+
return t.errors.loadErrors.noUtilityNetwork;
|
|
63
64
|
case "no-view":
|
|
64
|
-
return
|
|
65
|
+
return t.errors.loadErrors.noView;
|
|
65
66
|
case "sceneView-not-supported":
|
|
66
|
-
return
|
|
67
|
+
return t.errors.loadErrors.sceneViewNotSupported;
|
|
67
68
|
default:
|
|
68
|
-
return
|
|
69
|
+
return e;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
async #l() {
|
|
72
|
-
const
|
|
73
|
-
if (!(
|
|
74
|
-
|
|
73
|
+
const e = this.#e?.selectedNamedTraceConfiguration, t = this.#e?.traceConfiguration;
|
|
74
|
+
if (!(e?.traceType && t)) {
|
|
75
|
+
w("error", this, "Trace configuration not found");
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
77
|
-
const
|
|
78
|
+
const s = this.#e?.traceLocations;
|
|
78
79
|
try {
|
|
79
|
-
this._traceResult = await this.#
|
|
80
|
-
traceType:
|
|
81
|
-
traceConfiguration:
|
|
82
|
-
traceLocations:
|
|
83
|
-
resultTypes:
|
|
80
|
+
this._traceResult = await this.#t.executeTraceConfiguration({
|
|
81
|
+
traceType: e.traceType,
|
|
82
|
+
traceConfiguration: t,
|
|
83
|
+
traceLocations: s ?? [],
|
|
84
|
+
resultTypes: e.resultTypes,
|
|
84
85
|
outSpatialReference: this.view?.spatialReference
|
|
85
86
|
});
|
|
86
87
|
} catch (a) {
|
|
87
|
-
|
|
88
|
+
$(a, this, "Error while running trace"), this._traceError = a, this._traceResult = void 0;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
#h() {
|
|
91
92
|
this.#o(), !(this._showNoStartingPointsWarning || this._showMissingTerminalWarning) && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1, this.#s(), this.#a("results"), this.#l());
|
|
92
93
|
}
|
|
93
|
-
#g(
|
|
94
|
-
|
|
94
|
+
#g(e) {
|
|
95
|
+
e && (this.#e = e);
|
|
95
96
|
}
|
|
96
|
-
#u(
|
|
97
|
-
|
|
97
|
+
#u(e) {
|
|
98
|
+
e && (this.#i = e);
|
|
98
99
|
}
|
|
99
|
-
#d(
|
|
100
|
-
t
|
|
100
|
+
#d(e) {
|
|
101
|
+
const { detail: t, target: s } = e;
|
|
102
|
+
t.name === "aggregatedGeometryGraphicsColor" ? (e.stopPropagation(), this.aggregatedGeometryGraphicsColor = s[t.name]) : t.name === "hideGraphics" && (e.stopPropagation(), this.hideGraphics = s[t.name], this.arcgisHideGraphicsChange.emit(this.hideGraphics));
|
|
101
103
|
}
|
|
102
|
-
#p(
|
|
103
|
-
|
|
104
|
+
#p(e) {
|
|
105
|
+
e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented && e.preventDefault();
|
|
104
106
|
}
|
|
105
|
-
#m(
|
|
106
|
-
|
|
107
|
+
#m(e) {
|
|
108
|
+
e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit();
|
|
107
109
|
}
|
|
108
|
-
#f(
|
|
109
|
-
|
|
110
|
+
#f(e) {
|
|
111
|
+
e.stopPropagation(), this.arcgisTraceResultFeaturesReady.emit();
|
|
110
112
|
}
|
|
111
|
-
#y(
|
|
112
|
-
|
|
113
|
+
#y(e) {
|
|
114
|
+
e.stopPropagation(), this.arcgisTriggerAction.emit(e.detail);
|
|
113
115
|
}
|
|
114
|
-
#b(
|
|
115
|
-
|
|
116
|
-
this.aggregatedGeometryGraphicsColor = e;
|
|
116
|
+
#b() {
|
|
117
|
+
this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1;
|
|
117
118
|
}
|
|
118
119
|
#w() {
|
|
119
|
-
this.
|
|
120
|
+
this.#t.utilityNetwork = this.#e?.selectedUtilityNetwork;
|
|
120
121
|
}
|
|
121
122
|
#v() {
|
|
122
|
-
|
|
123
|
+
const { _messages: e } = this;
|
|
124
|
+
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this._showMissingTerminalWarning = !1}><div slot=title>${e.errors.missingTerminalTitle}</div><div slot=message>${e.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`;
|
|
123
125
|
}
|
|
124
126
|
#T() {
|
|
125
|
-
const { _messages:
|
|
126
|
-
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this.
|
|
127
|
+
const { _messages: e } = this;
|
|
128
|
+
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this._showNoStartingPointsWarning = !1}><div slot=title>${e.errors.noStartingPointsTitle}</div><div slot=message>${e.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
127
129
|
}
|
|
128
130
|
#$() {
|
|
129
|
-
|
|
130
|
-
return i`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${() => this._showNoStartingPointsWarning = !1}><div slot=title>${t.errors.noStartingPointsTitle}</div><div slot=message>${t.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`;
|
|
131
|
-
}
|
|
132
|
-
#_() {
|
|
133
|
-
return l(`${this.el.id}__results-tab-item`, i`<calcite-tab .selected=${this._activeTab === "results"}>${this.state === "executing" ? i`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : i`<arcgis-utility-network-trace-results-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#r} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .heading=${this.#n?.title} .traceError=${this._traceError} .traceResult=${this._traceResult} .utilityNetwork=${this.#e.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisAggregatedGeometryGraphicsColorChange=${this.#b} @arcgisHideGraphicsChange=${this.#d} @arcgisTraceResultFeaturesReady=${this.#f} @arcgisTriggerAction=${this.#y} ${c(this.#u)}></arcgis-utility-network-trace-results-next>`}</calcite-tab>`);
|
|
131
|
+
return l(`${this.el.id}__results-tab-item`, i`<calcite-tab .selected=${this._activeTab === "results"}>${this.state === "executing" ? i`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>` : i`<arcgis-utility-network-trace-results-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryGraphicsColor=${this.aggregatedGeometryGraphicsColor} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} .heading=${this.#n?.title} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#r} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this._traceError} .traceResult=${this._traceResult} .utilityNetwork=${this.#t.utilityNetwork ?? void 0} .view=${this.view ?? void 0} @arcgisPropertyChange=${this.#d} @arcgisTraceResultFeaturesReady=${this.#f} @arcgisTriggerAction=${this.#y} ${c(this.#u)}></arcgis-utility-network-trace-results-next>`}</calcite-tab>`);
|
|
134
132
|
}
|
|
135
133
|
#R() {
|
|
136
|
-
const { _messages:
|
|
134
|
+
const { _messages: e, _traceResult: t } = this, a = !!(t?.elements.length || t?.globalFunctionResults.length || t?.aggregatedGeometry) && this.#i?.state === "ready", r = this.#i?.numFeatureResults ?? 0;
|
|
137
135
|
return i`<calcite-button appearance=outline width=full @click=${() => {
|
|
138
136
|
this.#a("input"), this.#s(), this.arcgisTraceResultClear.emit();
|
|
139
|
-
}} .disabled=${!a} slot=footer>${
|
|
137
|
+
}} .disabled=${!a} slot=footer>${r > 0 && !this.hideFeatureResults && this.state !== "executing" ? e.buttons.clearResultsCustom.replace("{number}", r.toString()) : e.buttons.clearResultsGeneric}</calcite-button>`;
|
|
140
138
|
}
|
|
141
|
-
#
|
|
142
|
-
const { _mode:
|
|
143
|
-
|
|
144
|
-
}} @arcgisSelectedNamedTraceConfigurationChange=${this.#
|
|
139
|
+
#_() {
|
|
140
|
+
const { _mode: e } = this, { loadError: t } = this.#t, a = (t === "no-user-type-extension" || t === "sceneView-not-supported" ? i`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#c(t)}</div></calcite-notice>` : void 0) ?? i`${this._showNoStartingPointsWarning && e === "default" && this.#T() || ""}${this._showMissingTerminalWarning && e === "default" && this.#v() || ""}<arcgis-utility-network-trace-inputs-next .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .referenceElement=${this.referenceElement} .view=${this.view ?? void 0} .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisPropertyChange=${(r) => {
|
|
141
|
+
r.stopPropagation(), r.detail.name === "mode" && (this._mode = r.target.mode);
|
|
142
|
+
}} @arcgisSelectedNamedTraceConfigurationChange=${this.#b} @arcgisTraceLocationSelectEnd=${this.#m} @arcgisTraceLocationSelectStart=${this.#p} @arcgisUtilityNetworkChange=${this.#w} ${c(this.#g)}></arcgis-utility-network-trace-inputs-next>`;
|
|
145
143
|
return l(`${this.el.id}__inputs-tab-item`, i`<calcite-tab .selected=${this._activeTab === "input"}><div class="inputs-tab-container">${a}</div></calcite-tab>`);
|
|
146
144
|
}
|
|
147
|
-
#
|
|
148
|
-
const { state:
|
|
145
|
+
#x() {
|
|
146
|
+
const { state: e } = this;
|
|
149
147
|
if (this._mode !== "default")
|
|
150
148
|
return null;
|
|
151
|
-
const
|
|
152
|
-
return i`<calcite-button appearance=solid width=full @click=${this.#h} slot=footer .disabled=${
|
|
149
|
+
const t = e === "disabled" || e === "loading" || !this.#e?.traceConfiguration;
|
|
150
|
+
return i`<calcite-button appearance=solid width=full @click=${this.#h} slot=footer .disabled=${t}>${this._messages.buttons.getResults}</calcite-button>`;
|
|
153
151
|
}
|
|
154
152
|
render() {
|
|
155
|
-
const { _activeTab:
|
|
156
|
-
return i`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this.#a("input")} .selected=${
|
|
153
|
+
const { _activeTab: e, state: t } = this;
|
|
154
|
+
return i`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @click=${() => this.#a("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @click=${() => this.#a("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#_()}${this.#$()}</calcite-tabs>${e === "input" ? this.#x() : null}${e === "results" ? this.#R() : null}</calcite-panel>`;
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
|
-
u("arcgis-utility-network-trace-analysis-next",
|
|
157
|
+
u("arcgis-utility-network-trace-analysis-next", x);
|
|
160
158
|
export {
|
|
161
|
-
|
|
159
|
+
x as ArcgisUtilityNetworkTraceAnalysisNext
|
|
162
160
|
};
|
|
@@ -117,6 +117,13 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
117
117
|
accessor hideActionBar: boolean;
|
|
118
118
|
/** @default false */
|
|
119
119
|
accessor hideFeatureResults: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Whether to hide the aggregated geometry [graphics](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-aggregated-geometry-result-item/#geometryGraphics)
|
|
122
|
+
* from the map when the trace result contains aggregated geometry results.
|
|
123
|
+
*
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
accessor hideGraphics: boolean;
|
|
120
127
|
/**
|
|
121
128
|
* Whether to hide the placeholder string when feature results are hidden.
|
|
122
129
|
*
|
|
@@ -194,14 +201,13 @@ export abstract class ArcgisUtilityNetworkTraceResultsNext extends LitElement {
|
|
|
194
201
|
clearResults(): void;
|
|
195
202
|
/** Permanently destroy the component. */
|
|
196
203
|
destroy(): Promise<void>;
|
|
197
|
-
|
|
198
|
-
readonly
|
|
204
|
+
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
205
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "aggregatedGeometryGraphicsColor" | "hideGraphics" | "state" | "traceError"; }>;
|
|
199
206
|
readonly arcgisTraceResultFeaturesReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
200
207
|
/** Emitted when an action is triggered on the component. */
|
|
201
208
|
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, ActionEvent>;
|
|
202
209
|
readonly "@eventTypes": {
|
|
203
|
-
|
|
204
|
-
arcgisHideGraphicsChange: ArcgisUtilityNetworkTraceResultsNext["arcgisHideGraphicsChange"]["detail"];
|
|
210
|
+
arcgisPropertyChange: ArcgisUtilityNetworkTraceResultsNext["arcgisPropertyChange"]["detail"];
|
|
205
211
|
arcgisTraceResultFeaturesReady: ArcgisUtilityNetworkTraceResultsNext["arcgisTraceResultFeaturesReady"]["detail"];
|
|
206
212
|
arcgisTriggerAction: ArcgisUtilityNetworkTraceResultsNext["arcgisTriggerAction"]["detail"];
|
|
207
213
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as d, html as i } from "lit";
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as n } from "lit/directives/ref.js";
|
|
5
5
|
import g from "@arcgis/core/Color.js";
|
|
6
|
-
import { LitElement as h, createEvent as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { LitElement as h, createEvent as c } from "@arcgis/lumina";
|
|
7
|
+
import { usePropertyChange as u } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { log as m, composeMissingPropertyMessage as p } from "@arcgis/toolkit/log";
|
|
9
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
10
|
+
const v = d`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.no-selectable-results{margin:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`, l = {
|
|
10
11
|
dirtyAreasDiscovered: -2147208511,
|
|
11
12
|
noValidControllers: -2147208935,
|
|
12
13
|
pathNotFound: -2147208444
|
|
13
14
|
};
|
|
14
15
|
class y extends h {
|
|
15
16
|
constructor() {
|
|
16
|
-
super(...arguments), this._messages =
|
|
17
|
+
super(...arguments), this._messages = f({ blocking: !0 }), this.aggregatedGeometryGraphicsColor = new g([255, 255, 0, 0.6]), this.autoDestroyDisabled = !1, this.disableHighlightFeatureResults = !1, this.hideActionBar = !1, this.hideGraphics = !1, this.hidePlaceholder = !1, this.hideFeatureResults = !1, this.includeDefaultActionsDisabled = !1, this.layers = [], this.state = "loading", this.arcgisTraceResultFeaturesReady = c(), this.arcgisTriggerAction = c(), this.arcgisPropertyChange = u()("aggregatedGeometryGraphicsColor", "hideGraphics", "state", "traceError");
|
|
17
18
|
}
|
|
18
19
|
static {
|
|
19
|
-
this.properties = { actions: 0, aggregatedGeometryGraphicsColor: 0, autoDestroyDisabled: 5, disableHighlightFeatureResults: 5, heading: 1, hideActionBar: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, layers: 0, messageOverrides: 0, numFeatureResults: 32, referenceElement: 1, state: 1, traceError: 0, traceResult: 0, traceResultFeatures: 32, utilityNetwork: 0, view: 0 };
|
|
20
|
+
this.properties = { actions: 0, aggregatedGeometryGraphicsColor: 0, autoDestroyDisabled: 5, disableHighlightFeatureResults: 5, heading: 1, hideActionBar: 5, hideGraphics: 5, hidePlaceholder: 5, hideFeatureResults: 5, includeDefaultActionsDisabled: 5, layers: 0, messageOverrides: 0, numFeatureResults: 32, referenceElement: 1, state: 1, traceError: 0, traceResult: 0, traceResultFeatures: 32, utilityNetwork: 0, view: 0 };
|
|
20
21
|
}
|
|
21
22
|
static {
|
|
22
23
|
this.styles = v;
|
|
@@ -36,7 +37,7 @@ class y extends h {
|
|
|
36
37
|
await this.#s?.destroy(), await this.#e?.destroy(), await this.manager.destroy();
|
|
37
38
|
}
|
|
38
39
|
load() {
|
|
39
|
-
this.traceResult && (this.view ||
|
|
40
|
+
this.traceResult && (this.view || m("warn", this, p("view")));
|
|
40
41
|
}
|
|
41
42
|
#i(e) {
|
|
42
43
|
e && (this.#s = e);
|
|
@@ -56,16 +57,7 @@ class y extends h {
|
|
|
56
57
|
}
|
|
57
58
|
#c(e) {
|
|
58
59
|
const { detail: t, target: s } = e;
|
|
59
|
-
|
|
60
|
-
e.stopPropagation();
|
|
61
|
-
const a = s[t.name];
|
|
62
|
-
this.arcgisHideGraphicsChange.emit(a);
|
|
63
|
-
}
|
|
64
|
-
if (t.name === "graphicsColor") {
|
|
65
|
-
e.stopPropagation();
|
|
66
|
-
const a = s[t.name];
|
|
67
|
-
this.aggregatedGeometryGraphicsColor = a, this.arcgisAggregatedGeometryGraphicsColorChange.emit(a);
|
|
68
|
-
}
|
|
60
|
+
t.name === "hideGraphics" ? (e.stopPropagation(), this.hideGraphics = s[t.name]) : t.name === "graphicsColor" && (e.stopPropagation(), this.aggregatedGeometryGraphicsColor = s[t.name]);
|
|
69
61
|
}
|
|
70
62
|
render() {
|
|
71
63
|
const { traceError: e, traceResult: t } = this;
|
|
@@ -73,15 +65,15 @@ class y extends h {
|
|
|
73
65
|
return this.#h(e);
|
|
74
66
|
if (!t)
|
|
75
67
|
return this.#m();
|
|
76
|
-
const { elements: s, globalFunctionResults: a, aggregatedGeometry:
|
|
77
|
-
return !s.length && !a.length && !
|
|
68
|
+
const { elements: s, globalFunctionResults: a, aggregatedGeometry: r } = t;
|
|
69
|
+
return !s.length && !a.length && !r ? this.#u() : i`<calcite-panel class="white-panel-background">${this.state === "loading" ? this.#o() : null}${this.#d(t)}</calcite-panel>`;
|
|
78
70
|
}
|
|
79
71
|
#o() {
|
|
80
72
|
return i`<calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader>`;
|
|
81
73
|
}
|
|
82
74
|
#d(e) {
|
|
83
|
-
const t = this.#e?.isFeaturesListShown, { elements: s, globalFunctionResults: a, aggregatedGeometry:
|
|
84
|
-
return i`<div .hidden=${this.state === "loading"}>${t ? null : this.#t()}${
|
|
75
|
+
const t = this.#e?.isFeaturesListShown, { elements: s, globalFunctionResults: a, aggregatedGeometry: r } = e;
|
|
76
|
+
return i`<div .hidden=${this.state === "loading"}>${t ? null : this.#t()}${r != null ? i`<arcgis-utility-network-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${t} .traceResult=${e} .view=${this.view} @arcgisPropertyChange=${this.#c} ${n(this.#i)}></arcgis-utility-network-aggregated-geometry-result-item>${!s.length && !t ? this.#g() : null}` : null}${s != null ? i`<arcgis-utility-network-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!s.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceResult=${e} .utilityNetwork=${this.utilityNetwork} .view=${this.view} @arcgisPropertyChange=${this.#r} @arcgisResultReady=${this.#l} @arcgisTriggerAction=${this.#n} ${n(this.#a)}></arcgis-utility-network-elements-result-item>` : null}${a.length > 0 ? i`<arcgis-utility-network-trace-functions-result-item .heading=${this._messages.headings.functions} .hidden=${t} .traceResult=${e}></arcgis-utility-network-trace-functions-result-item>` : null}</div>`;
|
|
85
77
|
}
|
|
86
78
|
#g() {
|
|
87
79
|
return i`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`;
|
|
@@ -93,13 +85,13 @@ class y extends h {
|
|
|
93
85
|
const { _messages: t } = this;
|
|
94
86
|
let s = e.message;
|
|
95
87
|
switch (e.details?.raw?.extendedCode) {
|
|
96
|
-
case
|
|
88
|
+
case l.dirtyAreasDiscovered:
|
|
97
89
|
s = t.traceErrors.dirtyAreasDiscovered;
|
|
98
90
|
break;
|
|
99
|
-
case
|
|
91
|
+
case l.noValidControllers:
|
|
100
92
|
s = t.traceErrors.noValidControllers;
|
|
101
93
|
break;
|
|
102
|
-
case
|
|
94
|
+
case l.pathNotFound:
|
|
103
95
|
s = t.traceErrors.pathNotFound;
|
|
104
96
|
break;
|
|
105
97
|
}
|
|
@@ -150,6 +150,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
150
150
|
pause?: string | undefined;
|
|
151
151
|
platformInfo?: string | undefined;
|
|
152
152
|
play?: string | undefined;
|
|
153
|
+
playbackProgress?: string | undefined;
|
|
153
154
|
playbackSpeed?: string | undefined;
|
|
154
155
|
quality?: string | undefined;
|
|
155
156
|
reverse?: string | undefined;
|
|
@@ -188,6 +189,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
188
189
|
pause: string;
|
|
189
190
|
platformInfo: string;
|
|
190
191
|
play: string;
|
|
192
|
+
playbackProgress: string;
|
|
191
193
|
playbackSpeed: string;
|
|
192
194
|
quality: string;
|
|
193
195
|
reverse: string;
|
|
@@ -224,6 +226,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
224
226
|
pause: string;
|
|
225
227
|
platformInfo: string;
|
|
226
228
|
play: string;
|
|
229
|
+
playbackProgress: string;
|
|
227
230
|
playbackSpeed: string;
|
|
228
231
|
quality: string;
|
|
229
232
|
reverse: string;
|
|
@@ -64,7 +64,7 @@ class T extends g {
|
|
|
64
64
|
}} ${y(this._videoViewRef)}></arcgis-video>`;
|
|
65
65
|
}
|
|
66
66
|
_renderSlider() {
|
|
67
|
-
return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
|
|
67
|
+
return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
|
|
68
68
|
}
|
|
69
69
|
_renderActionBar() {
|
|
70
70
|
return e`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as i } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
const l =
|
|
6
|
-
class
|
|
3
|
+
import { css as o, html as t } from "lit";
|
|
4
|
+
import { LitElement as a } from "@arcgis/lumina";
|
|
5
|
+
const l = o`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`;
|
|
6
|
+
class c extends a {
|
|
7
7
|
static {
|
|
8
|
-
this.properties = { viewModel: 0, buffered: 9, value: 9 };
|
|
8
|
+
this.properties = { viewModel: 0, buffered: 9, messages: 0, value: 9 };
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
11
|
this.styles = l;
|
|
@@ -17,11 +17,11 @@ class a extends t {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
const {
|
|
21
|
-
return
|
|
20
|
+
const { buffered: e, messages: r, value: s } = this;
|
|
21
|
+
return t`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider .label=${r.playbackProgress} max=100 min=0 .value=${s} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
i("arcgis-video-player-slider",
|
|
24
|
+
i("arcgis-video-player-slider", c);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
c as VideoPlayerSlider
|
|
27
27
|
};
|
|
@@ -308,6 +308,43 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
|
|
|
308
308
|
accessor icon: Icon["icon"] | undefined;
|
|
309
309
|
/** The component's default label. */
|
|
310
310
|
accessor label: string | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* Replace localized message strings with your own strings.
|
|
313
|
+
*
|
|
314
|
+
* _**Note**: Individual message keys may change between releases._
|
|
315
|
+
*/
|
|
316
|
+
accessor messageOverrides: {
|
|
317
|
+
componentLabel?: string | undefined;
|
|
318
|
+
title?: string | undefined;
|
|
319
|
+
hint?: string | undefined;
|
|
320
|
+
measurementMode?: string | undefined;
|
|
321
|
+
newMeasurement?: string | undefined;
|
|
322
|
+
cutAndFillMode?: string | undefined;
|
|
323
|
+
stockpileMode?: string | undefined;
|
|
324
|
+
cutVolume?: string | undefined;
|
|
325
|
+
totalVolume?: string | undefined;
|
|
326
|
+
fillVolume?: string | undefined;
|
|
327
|
+
netVolume?: string | undefined;
|
|
328
|
+
perimeter?: string | undefined;
|
|
329
|
+
area?: string | undefined;
|
|
330
|
+
snappingDisablePrompt?: string | undefined;
|
|
331
|
+
snappingDisablePromptAlternate?: string | undefined;
|
|
332
|
+
showSettings?: string | undefined;
|
|
333
|
+
hideSettings?: string | undefined;
|
|
334
|
+
unsupported?: string | undefined;
|
|
335
|
+
errorInsufficientData?: string | undefined;
|
|
336
|
+
errorPerimeterTooLarge?: string | undefined;
|
|
337
|
+
errorUnsupportedCoordinateSystem?: string | undefined;
|
|
338
|
+
errorUnsupportedLayerTransparency?: string | undefined;
|
|
339
|
+
errorUnknown?: string | undefined;
|
|
340
|
+
inputUnits?: string | undefined;
|
|
341
|
+
displayUnits?: string | undefined;
|
|
342
|
+
elevationInputUnit?: string | undefined;
|
|
343
|
+
elevationDisplayUnit?: string | undefined;
|
|
344
|
+
volumeDisplayUnit?: string | undefined;
|
|
345
|
+
areaDisplayUnit?: string | undefined;
|
|
346
|
+
perimeterDisplayUnit?: string | undefined;
|
|
347
|
+
};
|
|
311
348
|
/** @internal */
|
|
312
349
|
protected messages: {
|
|
313
350
|
componentLabel: string;
|
|
@@ -259,7 +259,7 @@ class le extends R {
|
|
|
259
259
|
super(...arguments), this.viewModel = oe(this), this.messages = G({ blocking: !0 }), this.#e = X(), this._settingsPopoverIsOpen = !1, this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.icon = "measure-area", this.state = this.viewModel.state, this.volumeDisplayUnit = this.viewModel.volumeDisplayUnit, this.volumeDisplayUnitOptions = this.viewModel.volumeDisplayUnitOptions, this.elevationDisplayUnit = this.viewModel.elevationDisplayUnit, this.elevationDisplayUnitOptions = this.viewModel.elevationDisplayUnitOptions, this.elevationInputUnit = this.viewModel.elevationInputUnit, this.elevationInputUnitOptions = this.viewModel.elevationInputUnitOptions, this.areaDisplayUnit = this.viewModel.areaDisplayUnit, this.areaDisplayUnitOptions = this.viewModel.areaDisplayUnitOptions, this.perimeterDisplayUnit = this.viewModel.perimeterDisplayUnit, this.perimeterDisplayUnitOptions = this.viewModel.perimeterDisplayUnitOptions, this.hideHeader = !1, this.hideSettingsButton = !1, this.hideElevationDisplayUnitSelect = !1, this.hideElevationInputUnitSelect = !1, this.hideVolumeDisplayUnitSelect = !1, this.hideModeSelect = !1, this.hideStartButton = !1, this.hideVisualization = this.viewModel.hideVisualization, this.headingLevel = 2, this.hideAreaDisplayUnitSelect = !1, this.hidePerimeterDisplayUnitSelect = !1, this.arcgisPropertyChange = Z()("analysis", "state"), this.arcgisReady = F();
|
|
260
260
|
}
|
|
261
261
|
static {
|
|
262
|
-
this.properties = { _settingsPopoverIsOpen: 16, view: 0, analysis: 0, autoDestroyDisabled: 5, icon: 3, label: 1, referenceElement: 1, mode: 1, state: 32, volumeDisplayUnit: 1, volumeDisplayUnitOptions: 0, elevationDisplayUnit: 1, elevationDisplayUnitOptions: 0, elevationInputUnit: 1, elevationInputUnitOptions: 0, areaDisplayUnit: 1, areaDisplayUnitOptions: 0, perimeterDisplayUnit: 1, perimeterDisplayUnitOptions: 0, hideHeader: 5, hideSettingsButton: 5, hideElevationDisplayUnitSelect: 5, hideElevationInputUnitSelect: 5, hideVolumeDisplayUnitSelect: 5, hideModeSelect: 5, hideStartButton: 5, hideVisualization: 5, headingLevel: 9, hideAreaDisplayUnitSelect: 5, hidePerimeterDisplayUnitSelect: 5 };
|
|
262
|
+
this.properties = { _settingsPopoverIsOpen: 16, view: 0, analysis: 0, autoDestroyDisabled: 5, icon: 3, label: 1, messageOverrides: 0, referenceElement: 1, mode: 1, state: 32, volumeDisplayUnit: 1, volumeDisplayUnitOptions: 0, elevationDisplayUnit: 1, elevationDisplayUnitOptions: 0, elevationInputUnit: 1, elevationInputUnitOptions: 0, areaDisplayUnit: 1, areaDisplayUnitOptions: 0, perimeterDisplayUnit: 1, perimeterDisplayUnitOptions: 0, hideHeader: 5, hideSettingsButton: 5, hideElevationDisplayUnitSelect: 5, hideElevationInputUnitSelect: 5, hideVolumeDisplayUnitSelect: 5, hideModeSelect: 5, hideStartButton: 5, hideVisualization: 5, headingLevel: 9, hideAreaDisplayUnitSelect: 5, hidePerimeterDisplayUnitSelect: 5 };
|
|
263
263
|
}
|
|
264
264
|
static {
|
|
265
265
|
this.styles = se;
|