@arcgis/map-components 5.2.0-next.129 → 5.2.0-next.130
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/{XHF3WRCS.js → 4IQGYUKD.js} +1 -1
- package/dist/cdn/{EFTRT3PC.js → 4J5X3RUS.js} +1 -1
- package/dist/cdn/{ZNFXHSNB.js → 4XLFPSJA.js} +1 -1
- package/dist/cdn/{2FXJBJQN.js → 5F5KCXDO.js} +1 -1
- package/dist/cdn/5S4BCDOW.js +2 -0
- package/dist/cdn/{4Q5CHT35.js → 5W3B6N7U.js} +1 -1
- package/dist/cdn/{YXFHYEU3.js → 7EJR45XN.js} +1 -1
- package/dist/cdn/{Q6QM5JFF.js → 7YFZUDWN.js} +1 -1
- package/dist/cdn/{S5NMZQ7S.js → AB5ED2JR.js} +1 -1
- package/dist/cdn/{XIU3BXC4.js → BAHKHMBR.js} +1 -1
- package/dist/cdn/BAOWXZTE.js +2 -0
- package/dist/cdn/BEAV4EJ5.js +2 -0
- package/dist/cdn/{SI275RZJ.js → BMMTFWDL.js} +1 -1
- package/dist/cdn/{YPW4CF4Y.js → BQ7NE3DK.js} +1 -1
- package/dist/cdn/{B62BAX3X.js → CWCTE5IC.js} +1 -1
- package/dist/cdn/{3AHZESDA.js → EF7GIYDU.js} +1 -1
- package/dist/cdn/EL7UV72L.js +2 -0
- package/dist/cdn/{FJREYXK7.js → ERHYWMHC.js} +1 -1
- package/dist/cdn/{XPIYOTEC.js → EV3HM55D.js} +1 -1
- package/dist/cdn/{5S3AIVW2.js → F3I3X5LJ.js} +1 -1
- package/dist/cdn/{JALZMYVE.js → F6AE2AOX.js} +1 -1
- package/dist/cdn/{WWASAY4M.js → I2ADFUKC.js} +1 -1
- package/dist/cdn/{UCX6CLDZ.js → JDF3QJHI.js} +1 -1
- package/dist/cdn/{ML3CEDNN.js → JMKQ5ZE3.js} +1 -1
- package/dist/cdn/{DFPVC4EG.js → JNNG6SGW.js} +1 -1
- package/dist/cdn/{HOBKD5P4.js → JXXITWQ3.js} +1 -1
- package/dist/cdn/JYFFD5QA.js +2 -0
- package/dist/cdn/{XFD7GEAG.js → K3TUMGVI.js} +1 -1
- package/dist/cdn/{GK6NLJ6Q.js → MCU53PRF.js} +1 -1
- package/dist/cdn/{Q2MFXSAM.js → N6IIYBKZ.js} +1 -1
- package/dist/cdn/{L5FBV74B.js → NST47N4L.js} +1 -1
- package/dist/cdn/{7XKNWVD4.js → ORZZVKYZ.js} +1 -1
- package/dist/cdn/OSMCEUNX.js +2 -0
- package/dist/cdn/{3FO2I44H.js → QAXZ4V3U.js} +1 -1
- package/dist/cdn/{VLDII7DK.js → QJWPUYT2.js} +1 -1
- package/dist/cdn/{3NUE2TJM.js → R54YGQ26.js} +1 -1
- package/dist/cdn/{2DJC25HT.js → RQ3C7MN3.js} +1 -1
- package/dist/cdn/{D2ILHVVB.js → RXRZKDP2.js} +1 -1
- package/dist/cdn/{2RYNWWMR.js → T6GHF2C6.js} +1 -1
- package/dist/cdn/{XUSJST2P.js → U3MXAIIV.js} +1 -1
- package/dist/cdn/{RA5SRNJJ.js → UGZMQPKL.js} +1 -1
- package/dist/cdn/{3QZFSJJZ.js → UONIIMIO.js} +1 -1
- package/dist/cdn/{7QUUVOSA.js → WH6A6PWO.js} +1 -1
- package/dist/cdn/{TWR7AJTM.js → WO4RKS5X.js} +1 -1
- package/dist/cdn/{JXODHIWF.js → WSJLW4KK.js} +1 -1
- package/dist/cdn/{EQ4D5HAS.js → XR33HMFY.js} +1 -1
- package/dist/cdn/XUUOPL4Q.js +2 -0
- package/dist/cdn/{7AM3AAIM.js → YIXQRLNL.js} +1 -1
- package/dist/cdn/YPRBAWD7.js +2 -0
- package/dist/cdn/{GE5OI5A7.js → ZTJ5RKET.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/time-bar/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/measurementUtils.js +35 -27
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/utils.js +75 -7
- package/dist/chunks/utils2.js +50 -74
- package/dist/chunks/utils3.js +13 -50
- package/dist/chunks/utils4.js +45 -13
- package/dist/chunks/utils5.js +48 -44
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +9 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +18 -12
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +9 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +18 -12
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.js +79 -79
- package/dist/components/arcgis-building-explorer/customElement.js +22 -22
- package/dist/components/arcgis-building-level-item/customElement.js +9 -9
- package/dist/components/arcgis-building-level-picker/customElement.js +16 -16
- package/dist/components/arcgis-building-phase-picker/customElement.js +25 -22
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +9 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +15 -9
- package/dist/components/arcgis-directional-pad/DirectionalPadViewModel.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
- package/dist/components/arcgis-directional-pad/customElement.js +190 -46
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +9 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +34 -28
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +18 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +27 -25
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- 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-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-search/customElement.js +1 -1
- package/dist/components/arcgis-selection-list/customElement.js +28 -28
- package/dist/components/arcgis-sketch/customElement.d.ts +0 -4
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +48 -5
- package/dist/components/arcgis-volume-measurement/customElement.js +47 -46
- 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/package.json +6 -6
- package/dist/cdn/35M4DQZK.js +0 -2
- package/dist/cdn/6PE3IB3H.js +0 -2
- package/dist/cdn/G5VPRDMX.js +0 -2
- package/dist/cdn/JF4LCL3J.js +0 -2
- package/dist/cdn/JNQEJQFS.js +0 -2
- package/dist/cdn/MRFX6GG4.js +0 -2
- package/dist/cdn/SLLE4XAR.js +0 -2
- package/dist/cdn/WQISNLF7.js +0 -2
- /package/dist/cdn/{7DI2ZSB3.js → 3ZXNGXHC.js} +0 -0
- /package/dist/cdn/{SKNX46RX.js → DL57EVZ4.js} +0 -0
- /package/dist/cdn/{FUQUIU52.js → E6IRF6JO.js} +0 -0
- /package/dist/cdn/{MDTNPISF.js → VDTRRLON.js} +0 -0
|
@@ -5,22 +5,22 @@ import { LitElement as b, createEvent as x, safeClassMap as y } from "@arcgis/lu
|
|
|
5
5
|
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
6
6
|
import { u as O } from "../../chunks/useT9n.js";
|
|
7
7
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
8
|
-
import { t as z, a as
|
|
8
|
+
import { t as z, a as U } from "../../chunks/async-utils.js";
|
|
9
9
|
import { g as p } from "../../chunks/globalCss.js";
|
|
10
10
|
import { V as g } from "../../chunks/visible-element.js";
|
|
11
|
-
import
|
|
12
|
-
import { property as n, subclass as
|
|
11
|
+
import V from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
12
|
+
import { property as n, subclass as D } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
13
13
|
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
14
|
import _ from "@arcgis/core/views/interactive/options/SnappingOptions.js";
|
|
15
|
-
import { A as
|
|
16
|
-
import { g as
|
|
15
|
+
import { A as S } from "../../chunks/AnalysisViewModel.js";
|
|
16
|
+
import { g as $, a as A, b as m, r as C, m as h, c as E } from "../../chunks/measurementUtils.js";
|
|
17
17
|
const j = v`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`;
|
|
18
18
|
var P = Object.defineProperty, L = Object.getOwnPropertyDescriptor, s = (t, e, l, a) => {
|
|
19
19
|
for (var i = a > 1 ? void 0 : a ? L(e, l) : e, o = t.length - 1, d; o >= 0; o--)
|
|
20
20
|
(d = t[o]) && (i = (a ? d(e, l, i) : d(i)) || i);
|
|
21
21
|
return a && i && P(e, l, i), i;
|
|
22
22
|
};
|
|
23
|
-
let r = class extends
|
|
23
|
+
let r = class extends S {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments), this.snappingOptions = new _(), this.supportedViewType = "2d", this.unsupportedErrorMessage = "The Area Measurement 2D component is only supported in 2D views.", this.shouldForceInteractive = !1;
|
|
26
26
|
}
|
|
@@ -50,10 +50,10 @@ let r = class extends $ {
|
|
|
50
50
|
}
|
|
51
51
|
get state() {
|
|
52
52
|
const { analysis: t, disabled: e, operationState: l, ready: a, supported: i } = this, { valid: o } = t;
|
|
53
|
-
return
|
|
53
|
+
return $({ supported: i, disabled: e, ready: a, operationState: l, valid: o });
|
|
54
54
|
}
|
|
55
55
|
get displayState() {
|
|
56
|
-
return
|
|
56
|
+
return A(this.state, !!this.analysis.geometry);
|
|
57
57
|
}
|
|
58
58
|
get measurement() {
|
|
59
59
|
return {
|
|
@@ -69,7 +69,13 @@ let r = class extends $ {
|
|
|
69
69
|
this._userUnitOptions = t;
|
|
70
70
|
}
|
|
71
71
|
get unit() {
|
|
72
|
-
return E(
|
|
72
|
+
return E({
|
|
73
|
+
userUnit: this._userUnit,
|
|
74
|
+
analysisUnit: this.analysis.unit,
|
|
75
|
+
options: this.unitOptions,
|
|
76
|
+
defaultUnit: this.defaultMeasurementSystem,
|
|
77
|
+
viewUnit: this.view?.options.displayUnits.area
|
|
78
|
+
});
|
|
73
79
|
}
|
|
74
80
|
set unit(t) {
|
|
75
81
|
this._userUnit = t;
|
|
@@ -82,7 +88,7 @@ let r = class extends $ {
|
|
|
82
88
|
this.analysis.geometry = null;
|
|
83
89
|
}
|
|
84
90
|
constructAnalysis() {
|
|
85
|
-
return new
|
|
91
|
+
return new V();
|
|
86
92
|
}
|
|
87
93
|
};
|
|
88
94
|
s([
|
|
@@ -110,7 +116,7 @@ s([
|
|
|
110
116
|
n()
|
|
111
117
|
], r.prototype, "_userUnit", 2);
|
|
112
118
|
r = s([
|
|
113
|
-
|
|
119
|
+
D("components.area-measurement-2d.AreaMeasurement2dViewModel")
|
|
114
120
|
], r);
|
|
115
121
|
const B = k(r);
|
|
116
122
|
class T extends b {
|
|
@@ -130,7 +136,7 @@ class T extends b {
|
|
|
130
136
|
await this.manager.destroy();
|
|
131
137
|
}
|
|
132
138
|
async start() {
|
|
133
|
-
|
|
139
|
+
U(this.viewModel.start());
|
|
134
140
|
}
|
|
135
141
|
render() {
|
|
136
142
|
const { messages: e, unit: l, unitOptions: a, viewModel: i } = this, { measurement: o, state: d } = i;
|
|
@@ -238,12 +238,20 @@ export abstract class ArcgisAreaMeasurement3d extends LitElement {
|
|
|
238
238
|
/**
|
|
239
239
|
* Unit system (imperial, metric) or specific unit used for displaying the area values. Possible values are listed in
|
|
240
240
|
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions).
|
|
241
|
+
*
|
|
242
|
+
* When no unit is explicitly set on the component or its analysis, this property uses the area unit configured in the view through
|
|
243
|
+
* [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits).
|
|
244
|
+
* This property overrides the area unit on this component's analysis without changing the units configured in the view.
|
|
241
245
|
*/
|
|
242
246
|
accessor unit: SystemOrAreaUnit;
|
|
243
247
|
/**
|
|
244
248
|
* List of available units and unit systems (imperial, metric) that are shown in the component's dropdown.
|
|
245
249
|
* By default, the following units are included: `metric`, `imperial`, `square-inches`, `square-feet`, `square-us-feet`, `square-yards`, `square-miles`, `square-meters`, `square-kilometers`, `acres`, `ares`, `hectares`.
|
|
246
|
-
*
|
|
250
|
+
* If the unit inherited from the view through
|
|
251
|
+
* [view.options.displayUnits.area](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#displayUnits)
|
|
252
|
+
* is not listed in [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions), the component checks whether its default unit is listed there.
|
|
253
|
+
* If it is, the component uses that default. If neither unit is listed, it uses the first entry in
|
|
254
|
+
* [unitOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-area-measurement-3d/#unitOptions).
|
|
247
255
|
*/
|
|
248
256
|
accessor unitOptions: Array<SystemOrAreaUnit>;
|
|
249
257
|
/**
|
|
@@ -9,25 +9,25 @@ import { a as z } from "../../chunks/async-utils.js";
|
|
|
9
9
|
import { g } from "../../chunks/globalCss.js";
|
|
10
10
|
import { V as p } from "../../chunks/visible-element.js";
|
|
11
11
|
import O from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
12
|
-
import { hasValidAreaResult as
|
|
13
|
-
import { property as l, subclass as
|
|
14
|
-
import { watch as
|
|
15
|
-
import { A
|
|
16
|
-
import { g as
|
|
12
|
+
import { hasValidAreaResult as U } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
13
|
+
import { property as l, subclass as V } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
14
|
+
import { watch as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
|
+
import { A } from "../../chunks/AnalysisViewModel.js";
|
|
16
|
+
import { g as D, a as S, b as u, r as C, m, c as E } from "../../chunks/measurementUtils.js";
|
|
17
17
|
const j = w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px;.esri-widget--panel{min-width:0}}`;
|
|
18
18
|
var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (t, e, a, r) => {
|
|
19
19
|
for (var i = r > 1 ? void 0 : r ? P(e, a) : e, s = t.length - 1, d; s >= 0; s--)
|
|
20
20
|
(d = t[s]) && (i = (r ? d(e, a, i) : d(i)) || i);
|
|
21
21
|
return r && i && L(e, a, i), i;
|
|
22
22
|
};
|
|
23
|
-
let o = class extends
|
|
23
|
+
let o = class extends A {
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Area Measurement 3D component is only supported in 3D views.";
|
|
26
26
|
}
|
|
27
27
|
initialize() {
|
|
28
28
|
this.addHandles(
|
|
29
29
|
// Make sure the analysis and view model units are in sync.
|
|
30
|
-
|
|
30
|
+
$(
|
|
31
31
|
() => ({
|
|
32
32
|
analysis: this.analysis,
|
|
33
33
|
unit: this._userUnit
|
|
@@ -41,13 +41,13 @@ let o = class extends D {
|
|
|
41
41
|
}
|
|
42
42
|
get state() {
|
|
43
43
|
const { analysis: t, disabled: e, operationState: a, ready: r, supported: i } = this, { valid: s } = t;
|
|
44
|
-
return
|
|
44
|
+
return D({ supported: i, disabled: e, ready: r, operationState: a, valid: s });
|
|
45
45
|
}
|
|
46
46
|
get displayState() {
|
|
47
|
-
return
|
|
47
|
+
return S(this.state, !!this.analysis.geometry);
|
|
48
48
|
}
|
|
49
49
|
get measurement() {
|
|
50
|
-
const { analysisView: t } = this, e = t?.result, a = e?.mode ?? "euclidean", r = t?.type === "area-measurement-view-3d" &&
|
|
50
|
+
const { analysisView: t } = this, e = t?.result, a = e?.mode ?? "euclidean", r = t?.type === "area-measurement-view-3d" && U(t);
|
|
51
51
|
return {
|
|
52
52
|
mode: a,
|
|
53
53
|
area: u(e?.area, r),
|
|
@@ -61,7 +61,13 @@ let o = class extends D {
|
|
|
61
61
|
this._userUnitOptions = t;
|
|
62
62
|
}
|
|
63
63
|
get unit() {
|
|
64
|
-
return E(
|
|
64
|
+
return E({
|
|
65
|
+
userUnit: this._userUnit,
|
|
66
|
+
analysisUnit: this.analysis.unit,
|
|
67
|
+
options: this.unitOptions,
|
|
68
|
+
defaultUnit: this.defaultMeasurementSystem,
|
|
69
|
+
viewUnit: this.view?.options.displayUnits.area
|
|
70
|
+
});
|
|
65
71
|
}
|
|
66
72
|
set unit(t) {
|
|
67
73
|
this._userUnit = t;
|
|
@@ -98,7 +104,7 @@ n([
|
|
|
98
104
|
l()
|
|
99
105
|
], o.prototype, "_userUnit", 2);
|
|
100
106
|
o = n([
|
|
101
|
-
|
|
107
|
+
V("components.area-measurement-3d.AreaMeasurement3dViewModel")
|
|
102
108
|
], o);
|
|
103
109
|
const B = k(o);
|
|
104
110
|
class R extends f {
|
|
@@ -19,7 +19,7 @@ import { g as b } from "../../chunks/globalCss.js";
|
|
|
19
19
|
import { g as h, a as F, b as Q, r as W, s as T, c as X, d as Y, e as Z } from "../../chunks/layer-list-utils.js";
|
|
20
20
|
import { ArcgisLayerListItem as ee } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
|
|
21
21
|
import { s as te, a as se } from "../../chunks/layer-list-next.js";
|
|
22
|
-
import { r as ie } from "../../chunks/
|
|
22
|
+
import { r as ie } from "../../chunks/utils.js";
|
|
23
23
|
import { c as ae } from "../../chunks/css.js";
|
|
24
24
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
25
25
|
import "../arcgis-layer-list-item-panel/customElement.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
2
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as C, html as p } from "lit";
|
|
4
|
+
import { LitElement as S, nothing as V } from "@arcgis/lumina";
|
|
5
|
+
import g from "@arcgis/core/core/Collection.js";
|
|
6
6
|
import m from "@arcgis/core/core/Accessor.js";
|
|
7
7
|
import { property as a, subclass as v } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import { watch as b, on as
|
|
10
|
-
import { i as
|
|
11
|
-
var
|
|
12
|
-
for (var s = l > 1 ? void 0 : l ?
|
|
13
|
-
(o = e[r]) && (s = (l ? o(
|
|
14
|
-
return l && s &&
|
|
8
|
+
import { c as L, f as O } from "../../chunks/layer-utils2.js";
|
|
9
|
+
import { watch as b, on as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
10
|
+
import { i as E } from "../../chunks/async-utils.js";
|
|
11
|
+
var A = Object.defineProperty, D = Object.getOwnPropertyDescriptor, c = (e, t, i, l) => {
|
|
12
|
+
for (var s = l > 1 ? void 0 : l ? D(t, i) : t, r = e.length - 1, o; r >= 0; r--)
|
|
13
|
+
(o = e[r]) && (s = (l ? o(t, i, s) : o(s)) || s);
|
|
14
|
+
return l && s && A(t, i, s), s;
|
|
15
15
|
};
|
|
16
16
|
let n = class extends m {
|
|
17
17
|
constructor(e) {
|
|
18
|
-
super(e), this.id = "root", this.children = new
|
|
18
|
+
super(e), this.id = "root", this.children = new g(), this.layers = new g(), this.level = 0, this.childIds = /* @__PURE__ */ new Set(), this.layerUniqueIds = /* @__PURE__ */ new Set();
|
|
19
19
|
}
|
|
20
20
|
initialize() {
|
|
21
21
|
this.addHandles([
|
|
@@ -72,10 +72,10 @@ let n = class extends m {
|
|
|
72
72
|
* The value to which the `visible` property of each layer is to be set.
|
|
73
73
|
*/
|
|
74
74
|
toggleVisibility(e) {
|
|
75
|
-
const
|
|
76
|
-
this.layers.forEach((
|
|
77
|
-
|
|
78
|
-
}),
|
|
75
|
+
const t = e === void 0 ? !this.visible : e;
|
|
76
|
+
this.layers.forEach((i) => {
|
|
77
|
+
i.visible = t;
|
|
78
|
+
}), t && this.parent != null && this.parent.toggleVisibility(!0);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Toggles the visibility of all the layers controlled by this node,
|
|
@@ -85,64 +85,64 @@ let n = class extends m {
|
|
|
85
85
|
* The value to which the `visible` property of each layer and siblings is to be set.
|
|
86
86
|
*/
|
|
87
87
|
toggleAllSiblingsVisibility(e) {
|
|
88
|
-
const
|
|
89
|
-
this.toggleVisibility(
|
|
88
|
+
const t = e === void 0 ? !this.visible : e;
|
|
89
|
+
this.toggleVisibility(t), this.parent != null && (this.parent.toggleVisibility(t), this.parent.children.forEach((i) => i.toggleVisibility(t)));
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
c([
|
|
93
93
|
a({})
|
|
94
94
|
], n.prototype, "id", 2);
|
|
95
|
-
|
|
95
|
+
c([
|
|
96
96
|
a()
|
|
97
97
|
], n.prototype, "parent", 2);
|
|
98
|
-
|
|
98
|
+
c([
|
|
99
99
|
a({ readOnly: !0 })
|
|
100
100
|
], n.prototype, "children", 2);
|
|
101
|
-
|
|
101
|
+
c([
|
|
102
102
|
a({ readOnly: !0 })
|
|
103
103
|
], n.prototype, "layers", 2);
|
|
104
|
-
|
|
104
|
+
c([
|
|
105
105
|
a({})
|
|
106
106
|
], n.prototype, "level", 2);
|
|
107
|
-
|
|
107
|
+
c([
|
|
108
108
|
a({ readOnly: !0 })
|
|
109
109
|
], n.prototype, "hasChildren", 1);
|
|
110
|
-
|
|
110
|
+
c([
|
|
111
111
|
a({ readOnly: !0 })
|
|
112
112
|
], n.prototype, "isDiscipline", 1);
|
|
113
|
-
|
|
113
|
+
c([
|
|
114
114
|
a({ readOnly: !0 })
|
|
115
115
|
], n.prototype, "visible", 1);
|
|
116
|
-
|
|
116
|
+
c([
|
|
117
117
|
a({ readOnly: !0 })
|
|
118
118
|
], n.prototype, "title", 1);
|
|
119
|
-
n =
|
|
119
|
+
n = c([
|
|
120
120
|
v("esri.widgets.BuildingExplorer.support.LayerTreeNode")
|
|
121
121
|
], n);
|
|
122
|
-
function f(e,
|
|
123
|
-
let
|
|
122
|
+
function f(e, t) {
|
|
123
|
+
let i = null;
|
|
124
124
|
for (const l of e) {
|
|
125
|
-
const s =
|
|
126
|
-
if (
|
|
125
|
+
const s = t(l);
|
|
126
|
+
if (i != null && i !== s)
|
|
127
127
|
return null;
|
|
128
|
-
|
|
128
|
+
i = s;
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return i;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var M = Object.defineProperty, N = Object.getOwnPropertyDescriptor, _ = (e) => {
|
|
133
133
|
throw TypeError(e);
|
|
134
|
-
},
|
|
135
|
-
for (var s = l > 1 ? void 0 : l ?
|
|
136
|
-
(o = e[r]) && (s = (l ? o(
|
|
137
|
-
return l && s &&
|
|
138
|
-
},
|
|
139
|
-
let
|
|
134
|
+
}, y = (e, t, i, l) => {
|
|
135
|
+
for (var s = l > 1 ? void 0 : l ? N(t, i) : t, r = e.length - 1, o; r >= 0; r--)
|
|
136
|
+
(o = e[r]) && (s = (l ? o(t, i, s) : o(s)) || s);
|
|
137
|
+
return l && s && M(t, i, s), s;
|
|
138
|
+
}, P = (e, t, i) => t.has(e) || _("Cannot " + i), u = (e, t, i) => (P(e, t, "read from private field"), i ? i.call(e) : t.get(e)), F = (e, t, i) => t.has(e) ? _("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), h;
|
|
139
|
+
let d = class extends m {
|
|
140
140
|
constructor(e) {
|
|
141
|
-
super(e), this.root = new n(), F(this,
|
|
141
|
+
super(e), this.root = new n(), F(this, h, new g()), this.state = "disabled", this.loadLayers = L();
|
|
142
142
|
}
|
|
143
143
|
initialize() {
|
|
144
144
|
this.addHandles(
|
|
145
|
-
|
|
145
|
+
$(
|
|
146
146
|
() => this.layers,
|
|
147
147
|
"change",
|
|
148
148
|
() => {
|
|
@@ -163,10 +163,10 @@ let h = class extends m {
|
|
|
163
163
|
this._set("state", "disabled"), this.root.destroy();
|
|
164
164
|
}
|
|
165
165
|
get layers() {
|
|
166
|
-
return u(this,
|
|
166
|
+
return u(this, h);
|
|
167
167
|
}
|
|
168
168
|
set layers(e) {
|
|
169
|
-
u(this,
|
|
169
|
+
u(this, h).removeAll(), u(this, h).addMany(e);
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Initializes our internal tree with all the categories and disciplines from
|
|
@@ -174,10 +174,10 @@ let h = class extends m {
|
|
|
174
174
|
*/
|
|
175
175
|
updateLayerTree() {
|
|
176
176
|
this.root.destroy(), this._set("root", new n());
|
|
177
|
-
const e = /* @__PURE__ */ new Map(),
|
|
178
|
-
return this.layers.forEach((
|
|
179
|
-
const l =
|
|
180
|
-
this.addNodesForSublayers(l ??
|
|
177
|
+
const e = /* @__PURE__ */ new Map(), t = this.layers.length > 1 ? "modelName" : "id";
|
|
178
|
+
return this.layers.forEach((i) => {
|
|
179
|
+
const l = O(i);
|
|
180
|
+
this.addNodesForSublayers(l ?? i, this.root, e, t);
|
|
181
181
|
}), this;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
@@ -194,13 +194,13 @@ let h = class extends m {
|
|
|
194
194
|
* @param matchBy
|
|
195
195
|
* The sublayer property used to deduplicate sublayers.
|
|
196
196
|
*/
|
|
197
|
-
addNodeForLayer(e,
|
|
197
|
+
addNodeForLayer(e, t, i, l) {
|
|
198
198
|
const s = String(e[l]).toLowerCase();
|
|
199
199
|
if (s == null || e.isEmpty)
|
|
200
200
|
return;
|
|
201
|
-
const r = `${
|
|
202
|
-
let o =
|
|
203
|
-
o || (o = new n({ id: s, level:
|
|
201
|
+
const r = `${t.id}/${s}`;
|
|
202
|
+
let o = i.get(r);
|
|
203
|
+
o || (o = new n({ id: s, level: t.level + 1 }), i.set(r, o)), o.layers.push(e), t.children.push(o), this.addNodesForSublayers(e, o, i, l);
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* Adds nodes for all the sublayers of the specified layer.
|
|
@@ -214,8 +214,8 @@ let h = class extends m {
|
|
|
214
214
|
* @param matchBy
|
|
215
215
|
* The sublayer property used to deduplicate sublayers.
|
|
216
216
|
*/
|
|
217
|
-
addNodesForSublayers(e,
|
|
218
|
-
(e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s,
|
|
217
|
+
addNodesForSublayers(e, t, i, l) {
|
|
218
|
+
(e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s, t, i, l));
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
221
|
* Called when the layers are changed.
|
|
@@ -225,27 +225,27 @@ let h = class extends m {
|
|
|
225
225
|
try {
|
|
226
226
|
await this.loadLayers(this.layers), this.updateLayerTree(), this._set("state", "ready");
|
|
227
227
|
} catch (e) {
|
|
228
|
-
|
|
228
|
+
E(e) || this._set("state", "failed");
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
h = /* @__PURE__ */ new WeakMap();
|
|
233
|
+
y([
|
|
234
234
|
a()
|
|
235
|
-
],
|
|
236
|
-
|
|
235
|
+
], d.prototype, "root", 2);
|
|
236
|
+
y([
|
|
237
237
|
a()
|
|
238
|
-
],
|
|
239
|
-
|
|
238
|
+
], d.prototype, "layers", 1);
|
|
239
|
+
y([
|
|
240
240
|
a()
|
|
241
|
-
],
|
|
242
|
-
|
|
241
|
+
], d.prototype, "state", 2);
|
|
242
|
+
d = y([
|
|
243
243
|
v("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")
|
|
244
|
-
],
|
|
245
|
-
const I =
|
|
246
|
-
class T extends
|
|
244
|
+
], d);
|
|
245
|
+
const I = C`.label{--calcite-label-text-color: var(--arcgis-internal-building-explorer-content-text-color, var(--calcite-color-text-1));--calcite-label-margin-bottom: 0}calcite-tree{--calcite-color-text-3: var(--arcgis-internal-building-explorer-content-text-color, inherit);--calcite-tree-text-color: var(--arcgis-internal-building-explorer-content-text-color, var(--calcite-color-text-1))}calcite-checkbox{--calcite-color-brand: var(--arcgis-internal-building-explorer-selected-button-background-color);--calcite-checkbox-icon-color: var(--arcgis-internal-building-explorer-selected-button-text-color)}`;
|
|
246
|
+
class T extends S {
|
|
247
247
|
constructor() {
|
|
248
|
-
super(...arguments), this.#e = new
|
|
248
|
+
super(...arguments), this.#e = new d(), this.toggleSiblingsVisibility = !1;
|
|
249
249
|
}
|
|
250
250
|
static {
|
|
251
251
|
this.properties = { layers: 0, messages: 0, toggleSiblingsVisibility: 5 };
|
|
@@ -257,26 +257,26 @@ class T extends V {
|
|
|
257
257
|
get layers() {
|
|
258
258
|
return this.#e.layers.toArray();
|
|
259
259
|
}
|
|
260
|
-
set layers(
|
|
261
|
-
this.#e.layers = new
|
|
260
|
+
set layers(t) {
|
|
261
|
+
this.#e.layers = new g(t);
|
|
262
262
|
}
|
|
263
263
|
render() {
|
|
264
|
-
const
|
|
265
|
-
return
|
|
264
|
+
const t = this.messages, i = this.#e;
|
|
265
|
+
return t == null ? null : p`<calcite-tree lines selection-mode=none>${w({ node: i.root, messages: t, toggleSiblingsVisibility: this.toggleSiblingsVisibility })}</calcite-tree>`;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
function B(e) {
|
|
269
|
-
const
|
|
270
|
-
return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${
|
|
271
|
-
r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (r.stopImmediatePropagation(),
|
|
272
|
-
}} title=${s ??
|
|
273
|
-
|
|
269
|
+
const t = e.node, i = t.visible === !0, l = t.visible === null, s = i ? e.messages.hideSublayer : e.messages.showSublayer;
|
|
270
|
+
return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${i} .indeterminate=${l} .label=${s} @click=${(r) => {
|
|
271
|
+
r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (r.stopImmediatePropagation(), t.toggleAllSiblingsVisibility());
|
|
272
|
+
}} title=${s ?? V} @calciteCheckboxChange=${(r) => {
|
|
273
|
+
t.toggleVisibility(r.currentTarget.checked);
|
|
274
274
|
}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren ? p`<calcite-tree lines selection-mode=none slot=children>${w({ node: e.node, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility })}</calcite-tree>` : null}</calcite-tree-item>`;
|
|
275
275
|
}
|
|
276
276
|
function w(e) {
|
|
277
|
-
return e.node.children.toArray().reverse().map((
|
|
277
|
+
return e.node.children.toArray().reverse().map((i) => B({ node: i, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility }));
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
x("arcgis-building-discipline-tree", T);
|
|
280
280
|
export {
|
|
281
281
|
T as BuildingDisciplineTree
|
|
282
282
|
};
|