@arcgis/map-components 6.0.0-next.22 → 6.0.0-next.24
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/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
- package/dist/cdn/{GQQTIX2X.js → 3HI5IZSQ.js} +1 -1
- package/dist/cdn/3KAC2MKA.js +2 -0
- package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
- package/dist/cdn/4N4XDCDQ.js +2 -0
- package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
- package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
- package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
- package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
- package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
- package/dist/cdn/6GE2WBKV.js +2 -0
- package/dist/cdn/6GGKA7MT.js +2 -0
- package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
- package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
- package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
- package/dist/cdn/{4I6F64B2.js → 7U2V3LDM.js} +1 -1
- package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
- package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
- package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
- package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
- package/dist/cdn/CVLOQWUD.js +2 -0
- package/dist/cdn/{NORQIOSX.js → DGXTCH6B.js} +1 -1
- package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
- package/dist/cdn/E5X5BYWA.js +2 -0
- package/dist/cdn/ECF4B24M.js +2 -0
- package/dist/cdn/EJVFK7JX.js +2 -0
- package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
- package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
- package/dist/cdn/GIQT67VT.js +2 -0
- package/dist/cdn/{V7DMA5ZO.js → GZ6UBR6R.js} +1 -1
- package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
- package/dist/cdn/HADZXZIE.js +2 -0
- package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
- package/dist/cdn/HTCPPGCR.js +2 -0
- package/dist/cdn/HTONXZBP.js +2 -0
- package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
- package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
- package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
- package/dist/cdn/KXDLX4RE.js +2 -0
- package/dist/cdn/LHYI2QBZ.js +2 -0
- package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
- package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
- package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
- package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
- package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
- package/dist/cdn/{UFK7DHVC.js → QBRGIFBY.js} +1 -1
- package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
- package/dist/cdn/QXEOEFF3.js +2 -0
- package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
- package/dist/cdn/RFO3M46K.js +2 -0
- package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
- package/dist/cdn/{CNJSDHZI.js → RT53VCER.js} +1 -1
- package/dist/cdn/{AIF4MCBB.js → RXKIZFNQ.js} +1 -1
- package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
- package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
- package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
- package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
- package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
- package/dist/cdn/{IQGL3AGV.js → WU4NDBMC.js} +1 -1
- package/dist/cdn/{FRX4ZT35.js → XKGD4N75.js} +1 -1
- package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
- package/dist/cdn/{PFMWLSWQ.js → XWBR6FXI.js} +1 -1
- package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
- package/dist/cdn/YITBBUPR.js +2 -0
- package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
- package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
- package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
- 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/useArcgisViewReadyError.js +155 -151
- package/dist/chunks/useViewModel.js +7 -7
- package/dist/chunks/utils.js +17 -17
- package/dist/chunks/utils5.js +2 -2
- package/dist/components/arcgis-basemap-gallery/customElement.js +17 -17
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
- package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
- package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +14 -15
- package/dist/components/arcgis-scale-bar/customElement.js +11 -11
- package/dist/components/arcgis-search/customElement.d.ts +12 -0
- package/dist/components/arcgis-search/customElement.js +3 -0
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
- package/dist/components/arcgis-swipe/customElement.js +47 -65
- package/dist/components/arcgis-time-bar/customElement.d.ts +486 -409
- package/dist/components/arcgis-time-bar/types.d.ts +36 -15
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-slider/customElement.js +8 -7
- package/dist/components/arcgis-track/customElement.d.ts +12 -3
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +45 -2
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +23 -20
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
- package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +9 -73
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
- package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
- package/dist/components/arcgis-video-player/customElement.js +72 -72
- package/dist/components/arcgis-video-player/index.js +4 -4
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
- package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
- package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
- package/dist/components/arcgis-video-player-slider/index.js +1 -0
- 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 +0 -20
- package/dist/loader.js +6 -7
- package/dist/types/lumina.d.ts +2 -23
- package/dist/types/preact.d.ts +2 -25
- package/dist/types/react.d.ts +2 -27
- package/dist/types/stencil.d.ts +2 -23
- package/package.json +6 -6
- package/dist/cdn/2WJ53TNR.js +0 -2
- package/dist/cdn/5A7LDBDR.js +0 -2
- package/dist/cdn/COSETVX4.js +0 -2
- package/dist/cdn/F74YQZ2X.js +0 -2
- package/dist/cdn/H4BTVLCG.js +0 -2
- package/dist/cdn/KXD4VEKE.js +0 -2
- package/dist/cdn/MNL7ONFB.js +0 -2
- package/dist/cdn/NHMHVWNB.js +0 -2
- package/dist/cdn/NQ3COROI.js +0 -2
- package/dist/cdn/OJJSIN3V.js +0 -2
- package/dist/cdn/P3565WG3.js +0 -2
- package/dist/cdn/QAOT2TJ6.js +0 -2
- package/dist/cdn/QVJ2FUNW.js +0 -2
- package/dist/cdn/SIT5NBLS.js +0 -2
- package/dist/cdn/SU2SAOBL.js +0 -2
- package/dist/cdn/UI4IEVSV.js +0 -2
- package/dist/cdn/VEV3AAVP.js +0 -2
- package/dist/cdn/YYCTSS52.js +0 -2
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
- package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
- package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
- package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
- package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
- package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
- package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
- /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
|
@@ -6,7 +6,7 @@ import { getDefaultUnitForView as w } from "@arcgis/core/applications/Components
|
|
|
6
6
|
import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
7
|
import { formatNumber as y } from "@arcgis/core/intl.js";
|
|
8
8
|
import k from "@arcgis/core/widgets/ScaleBar/ScaleBarViewModel.js";
|
|
9
|
-
import { LitElement as z, createEvent as C, safeClassMap as
|
|
9
|
+
import { LitElement as z, createEvent as C, safeClassMap as n, safeStyleMap as f } from "@arcgis/lumina";
|
|
10
10
|
import { classes as c } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { u as M } from "../../chunks/useT9n.js";
|
|
12
12
|
import { m as S } from "../../chunks/useViewModel.js";
|
|
@@ -14,7 +14,7 @@ import { g as b } from "../../chunks/globalCss.js";
|
|
|
14
14
|
function $(h = 0, e = 0) {
|
|
15
15
|
return { x: h, y: e };
|
|
16
16
|
}
|
|
17
|
-
const D = _`.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}.root{box-shadow:none!important;background:0 0}.root.esri-widget{box-shadow:none;background:0 0}.bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.bar-container-ruler{flex-direction:column}.ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-foreground-1);height:var(--calcite-spacing-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-foreground-1)}.ruler:before,.ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.ruler:after{transform:scaleX(-1)}.bar-container-line:last-child{align-items:flex-start}.line{--line-thickness: var(--calcite-border-width-md);--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);height:var(--tic-height);position:relative;left:0}.line-top{border-bottom:var(--border-style)}.line-bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.line-top:before,.line-top:after,.line-bottom:before,.line-bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-foreground-1) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.line-top:before{bottom:calc(-1 * var(--line-thickness));left:0}.line-top:after{bottom:calc(-1 * var(--line-thickness));right:0}.line-bottom:before{top:calc(-1 * var(--line-thickness));left:0}.line-bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.label-container-line{position:absolute;left:0}.label-container-ruler{justify-content:space-between;width:100%;display:flex;position:relative}.label-container-ruler .label{text-shadow:1px 0 var(--calcite-color-foreground-1),0 1px var(--calcite-color-foreground-1),1px 1px var(--calcite-color-foreground-1),-1px 0 var(--calcite-color-foreground-1),0 -1px var(--calcite-color-foreground-1),-1px -1px var(--calcite-color-foreground-1);padding:6px 0 0}.label-container-top{bottom:0}.label-container-bottom{top:1px}.label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .ruler{margin:0 .5ch 0 2ch}:dir(rtl) .label-container-line{left:auto;right:0}`, R = S(k);
|
|
17
|
+
const D = _`.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}.root{box-shadow:none!important;background:0 0}.root.esri-widget{box-shadow:none;background:0 0}.bar-container{align-items:flex-end;font-size:var(--calcite-font-size-sm);transition:width .25s ease-in-out;display:flex;position:relative}.bar-container-ruler{flex-direction:column}.ruler{--color-ruler-background: var(--calcite-color-inverse);--color-ruler-foreground: var(--calcite-color-surface-2);height:var(--calcite-space-xs);box-shadow:0 0 0 1px var(--calcite-color-text-1),0 1px 2px var(--calcite-color-surface-2)}.ruler:before,.ruler:after{content:"";display:block;height:50%;background-image:linear-gradient(to right,var(--color-ruler-foreground) 0%,var(--color-ruler-foreground) 25%,var(--color-ruler-background) 25%,var(--color-ruler-background) 50%,var(--color-ruler-foreground) 50%,var(--color-ruler-foreground) 75%,var(--color-ruler-background) 75%,var(--color-ruler-background) 100%)}.ruler:after{transform:scaleX(-1)}.bar-container-line:last-child{align-items:flex-start}.line{--line-thickness: var(--calcite-border-width-md);--tic-height: 1.5em;--border-style: var(--line-thickness) solid var(--calcite-color-text-1);background-color:color-mix(in srgb,var(--calcite-color-surface-2) 50%,transparent);height:var(--tic-height);position:relative;left:0}.line-top{border-bottom:var(--border-style)}.line-bottom{border-top:var(--border-style);top:calc(-1 * var(--line-thickness))}.line-top:before,.line-top:after,.line-bottom:before,.line-bottom:after{content:"";background-color:color-mix(in srgb,var(--calcite-color-surface-2) 50%,transparent);border-right:var(--border-style);width:1px;height:var(--tic-height);display:block;position:absolute}.line-top:before{bottom:calc(-1 * var(--line-thickness));left:0}.line-top:after{bottom:calc(-1 * var(--line-thickness));right:0}.line-bottom:before{top:calc(-1 * var(--line-thickness));left:0}.line-bottom:after{height:var(--tic-height);top:calc(-1 * var(--line-thickness));right:0}.label-container-line{position:absolute;left:0}.label-container-ruler{justify-content:space-between;width:100%;display:flex;position:relative}.label-container-ruler .label{text-shadow:1px 0 var(--calcite-color-surface-2),0 1px var(--calcite-color-surface-2),1px 1px var(--calcite-color-surface-2),-1px 0 var(--calcite-color-surface-2),0 -1px var(--calcite-color-surface-2),-1px -1px var(--calcite-color-surface-2);padding:6px 0 0}.label-container-top{bottom:0}.label-container-bottom{top:1px}.label{white-space:nowrap;color:var(--calcite-color-text-1);font-size:inherit;padding:0 7px;font-weight:var(--calcite-font-weight-semibold)}:dir(rtl) .ruler{margin:0 .5ch 0 2ch}:dir(rtl) .label-container-line{left:auto;right:0}`, R = S(k);
|
|
18
18
|
class B extends z {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments), this._defaultUnit = "metric", this.messages = M(), this.viewModel = R(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.barStyle = "line", this.icon = "actual-size", this.arcgisReady = C();
|
|
@@ -58,7 +58,7 @@ class B extends z {
|
|
|
58
58
|
const i = e.childElem?.getBoundingClientRect();
|
|
59
59
|
if (!i)
|
|
60
60
|
return;
|
|
61
|
-
const { scaleComputedFrom: r } = this.viewModel,
|
|
61
|
+
const { scaleComputedFrom: r } = this.viewModel, l = i.left + window.pageXOffset, t = i.top + window.pageYOffset, o = $(l, t);
|
|
62
62
|
(o.x !== r.x || o.y !== r.y) && (this.viewModel.scaleComputedFrom = o);
|
|
63
63
|
}
|
|
64
64
|
_formatDistance(e, i) {
|
|
@@ -72,33 +72,33 @@ class B extends z {
|
|
|
72
72
|
const e = this.viewModel.state === "disabled", i = {
|
|
73
73
|
[b.disabled]: e
|
|
74
74
|
};
|
|
75
|
-
let r,
|
|
75
|
+
let r, l;
|
|
76
76
|
if (!e) {
|
|
77
77
|
const { unit: t, barStyle: o } = this, d = t === "imperial" || t === "dual", u = t === "metric" || t === "dual", g = 100, p = t === "dual" ? "line" : o;
|
|
78
78
|
if (d) {
|
|
79
79
|
const a = this.viewModel.getScaleBarProperties(g, "imperial");
|
|
80
|
-
a && (
|
|
80
|
+
a && (l = p === "ruler" ? this._renderRuler(a) : this._renderLine(a, "bottom"));
|
|
81
81
|
}
|
|
82
82
|
if (u) {
|
|
83
83
|
const a = this.viewModel.getScaleBarProperties(g, "metric");
|
|
84
84
|
a && (r = p === "ruler" ? this._renderRuler(a) : this._renderLine(a, "top"));
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
return s`<div class=${
|
|
87
|
+
return s`<div class=${n(c("root", b.widget, i))} ${v(this._handleContainerRef)}>${r}${l}</div>`;
|
|
88
88
|
}
|
|
89
89
|
_renderRuler(e) {
|
|
90
|
-
const { length: i, unit: r, value:
|
|
91
|
-
return s`<div class=${
|
|
90
|
+
const { length: i, unit: r, value: l } = e, t = Math.round(i), o = this._formatDistance(l, r);
|
|
91
|
+
return s`<div class=${n(c("bar-container", "bar-container-ruler"))}><div class="ruler" style=${f({ width: `${t}px` })}></div><div class=${n(c("label-container", "label-container-ruler"))}><div class="label">0</div><div class="label">${o}</div></div></div>`;
|
|
92
92
|
}
|
|
93
93
|
_renderLine(e, i) {
|
|
94
|
-
const { length: r, unit:
|
|
94
|
+
const { length: r, unit: l, value: t } = e, o = Math.round(r), d = this._formatDistance(t, l), g = s`<div class=${n(c("label-container", "label-container-line", {
|
|
95
95
|
"label-container-top": i === "top",
|
|
96
96
|
"label-container-bottom": i === "bottom"
|
|
97
|
-
}))}><div class="label">${d}</div></div>`, a = s`<div class=${
|
|
97
|
+
}))}><div class="label">${d}</div></div>`, a = s`<div class=${n(c("line", {
|
|
98
98
|
"line-top": i === "top",
|
|
99
99
|
"line-bottom": i === "bottom"
|
|
100
100
|
}))} style=${f({ width: `${o}px` })}></div>`;
|
|
101
|
-
return s`<div class=${
|
|
101
|
+
return s`<div class=${n(c("bar-container", "bar-container-line"))}>${[a, g]}</div>`;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
m("arcgis-scale-bar", B);
|
|
@@ -474,6 +474,18 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
474
474
|
clear(): void;
|
|
475
475
|
/** Permanently destroy the component. */
|
|
476
476
|
destroy(): Promise<void>;
|
|
477
|
+
/**
|
|
478
|
+
* Returns a promise that resolves when the Search component has finished updating its default sources.
|
|
479
|
+
*
|
|
480
|
+
* Custom sources assigned through [sources](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/#sources) are not loaded by this method.
|
|
481
|
+
* Unavailable layer and table sources are omitted, so the promise may resolve with no default sources.
|
|
482
|
+
*
|
|
483
|
+
* @since 5.2
|
|
484
|
+
* @example
|
|
485
|
+
* const search = document.querySelector("arcgis-search");
|
|
486
|
+
* await search.onSourcesReady();
|
|
487
|
+
*/
|
|
488
|
+
onSourcesReady(): Promise<void>;
|
|
477
489
|
/**
|
|
478
490
|
* Depending on the sources specified, search() queries the feature layer(s) and/or performs
|
|
479
491
|
* address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/references/core/rest/locator/) and
|
|
@@ -86,6 +86,9 @@ class z extends f {
|
|
|
86
86
|
return this._suggestController !== t || (this._suggestController = void 0), null;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
async onSourcesReady() {
|
|
90
|
+
await this.viewModel.when();
|
|
91
|
+
}
|
|
89
92
|
loaded() {
|
|
90
93
|
this.listen("arcgisSelectResult", this._handleSelectResult), this.manager.onLifecycle(() => [
|
|
91
94
|
u(() => [this._searchResultRendererEl, this.viewModel?.defaultPopupTemplate], () => {
|
|
@@ -1229,7 +1229,7 @@ class Ve extends ee {
|
|
|
1229
1229
|
super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new Y({ title: "Sketch Layer" }), this.layer = this._defaultGraphicsLayer, this.view?.map?.add(this.layer), this.viewModel.layer = this._defaultGraphicsLayer);
|
|
1230
1230
|
}
|
|
1231
1231
|
disconnectedCallback() {
|
|
1232
|
-
this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
|
|
1232
|
+
this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), this.cancel(), super.disconnectedCallback();
|
|
1233
1233
|
}
|
|
1234
1234
|
render() {
|
|
1235
1235
|
const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: c, relativePosition: d, _contextualToolLocation: r } = this, n = t.find(({ name: g }) => g === "selectionSet"), u = t.filter(({ name: g }) => g !== "selectionSet");
|
|
@@ -91,13 +91,6 @@ export abstract class ArcgisSwipe extends LitElement {
|
|
|
91
91
|
* @default "Swipe"
|
|
92
92
|
*/
|
|
93
93
|
accessor label: string | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* A collection of layers that will show on the left or top side of the Swipe component.
|
|
96
|
-
*
|
|
97
|
-
* @deprecated since 5.0, use [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers) instead.
|
|
98
|
-
* @see [leadingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#leadingLayers)
|
|
99
|
-
*/
|
|
100
|
-
accessor leadingLayers: Collection<Layer>;
|
|
101
94
|
/**
|
|
102
95
|
* Replace localized message strings with your own strings.
|
|
103
96
|
*
|
|
@@ -142,21 +135,6 @@ export abstract class ArcgisSwipe extends LitElement {
|
|
|
142
135
|
* @default "disabled"
|
|
143
136
|
*/
|
|
144
137
|
get state(): SwipeState;
|
|
145
|
-
/**
|
|
146
|
-
* The position of the Swipe component. This determines what percentage
|
|
147
|
-
* of the view will be taken up by the [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers).
|
|
148
|
-
*
|
|
149
|
-
* @deprecated since 5.0, use [position](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#position) instead.
|
|
150
|
-
* @default 25
|
|
151
|
-
*/
|
|
152
|
-
accessor swipePosition: number;
|
|
153
|
-
/**
|
|
154
|
-
* A collection of layers that will show on the right or bottom side of the Swipe component.
|
|
155
|
-
*
|
|
156
|
-
* @deprecated since 5.0, use [endLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#endLayers) instead.
|
|
157
|
-
* @see [trailingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#trailingLayers)
|
|
158
|
-
*/
|
|
159
|
-
accessor trailingLayers: Collection<Layer>;
|
|
160
138
|
/**
|
|
161
139
|
* The view associated with the component.
|
|
162
140
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-swipe component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as z } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as A, html as
|
|
3
|
+
import { css as A, html as m } from "lit";
|
|
4
4
|
import { classes as b } from "@arcgis/toolkit/dom";
|
|
5
|
-
import { LitElement as K, createEvent as
|
|
5
|
+
import { LitElement as K, createEvent as C, safeClassMap as L, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
|
|
6
6
|
import { usePropertyChange as O } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { createRef as S, ref as H } from "lit/directives/ref.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { m as
|
|
10
|
-
import { g as
|
|
11
|
-
import { l as
|
|
8
|
+
import { u as U } from "../../chunks/useT9n.js";
|
|
9
|
+
import { m as k } from "../../chunks/useViewModel.js";
|
|
10
|
+
import { g as $ } from "../../chunks/globalCss.js";
|
|
11
|
+
import { l as P } from "../../chunks/legacyIcon.js";
|
|
12
12
|
import I from "@arcgis/core/core/Accessor.js";
|
|
13
13
|
import f from "@arcgis/core/core/Collection.js";
|
|
14
14
|
import T from "@arcgis/core/core/Error.js";
|
|
@@ -16,11 +16,11 @@ import { property as p, subclass as j } from "@arcgis/core/core/accessorSupport/
|
|
|
16
16
|
import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
17
|
import { c as R, i as X, l as Y } from "../../chunks/async-utils.js";
|
|
18
18
|
var B = Object.defineProperty, N = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
|
|
19
|
-
for (var s = r > 1 ? void 0 : r ? N(e, i) : e,
|
|
20
|
-
(a = t[
|
|
19
|
+
for (var s = r > 1 ? void 0 : r ? N(e, i) : e, n = t.length - 1, a; n >= 0; n--)
|
|
20
|
+
(a = t[n]) && (s = (r ? a(e, i, s) : a(s)) || s);
|
|
21
21
|
return r && s && B(e, i, s), s;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
23
|
+
const y = {
|
|
24
24
|
left: 0,
|
|
25
25
|
right: 0,
|
|
26
26
|
top: 0,
|
|
@@ -118,11 +118,11 @@ let l = class extends I {
|
|
|
118
118
|
const { position: e } = this;
|
|
119
119
|
return t === "leading" ? {
|
|
120
120
|
type: "rect",
|
|
121
|
-
...
|
|
121
|
+
...y,
|
|
122
122
|
bottom: `${100 - e}%`
|
|
123
123
|
} : t === "trailing" ? {
|
|
124
124
|
type: "rect",
|
|
125
|
-
...
|
|
125
|
+
...y,
|
|
126
126
|
top: `${e}%`
|
|
127
127
|
} : null;
|
|
128
128
|
}
|
|
@@ -130,11 +130,11 @@ let l = class extends I {
|
|
|
130
130
|
const { position: e } = this;
|
|
131
131
|
return t === "leading" ? {
|
|
132
132
|
type: "rect",
|
|
133
|
-
...
|
|
133
|
+
...y,
|
|
134
134
|
right: `${100 - e}%`
|
|
135
135
|
} : t === "trailing" ? {
|
|
136
136
|
type: "rect",
|
|
137
|
-
...
|
|
137
|
+
...y,
|
|
138
138
|
left: `${e}%`
|
|
139
139
|
} : null;
|
|
140
140
|
}
|
|
@@ -143,31 +143,31 @@ let l = class extends I {
|
|
|
143
143
|
return e === "vertical" ? this._getVerticalClipRect(t) : e === "horizontal" ? this._getHorizontalClipRect(t) : null;
|
|
144
144
|
}
|
|
145
145
|
async _clipLayer(t, e) {
|
|
146
|
-
const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer:
|
|
146
|
+
const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer: n, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
|
|
147
147
|
try {
|
|
148
|
-
const
|
|
149
|
-
if (e.aborted || this.destroyed || s !== this.view || !
|
|
148
|
+
const o = await this._getLayerView(n);
|
|
149
|
+
if (e.aborted || this.destroyed || s !== this.view || !o || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(n))
|
|
150
150
|
return;
|
|
151
|
-
const g = c.get(
|
|
152
|
-
g &&
|
|
151
|
+
const g = c.get(o);
|
|
152
|
+
g && o.clips.remove(g);
|
|
153
153
|
const v = this._getClipRect(a);
|
|
154
154
|
if (v) {
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
const u =
|
|
158
|
-
u && c.set(
|
|
155
|
+
const w = o.clips.length;
|
|
156
|
+
o.clips.add(v);
|
|
157
|
+
const u = o.clips.at(w);
|
|
158
|
+
u && c.set(o, u);
|
|
159
159
|
}
|
|
160
|
-
} catch (
|
|
161
|
-
if (e.aborted || X(
|
|
160
|
+
} catch (o) {
|
|
161
|
+
if (e.aborted || X(o) || o instanceof T && o.name === "view:no-layerview-for-layer")
|
|
162
162
|
return;
|
|
163
|
-
Y(
|
|
163
|
+
Y(o, this.declaredClass, "Failed to clip layer");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
_removeClips(t) {
|
|
167
167
|
this.removeHandles(M[t]);
|
|
168
168
|
const { _leadingClips: e, _trailingClips: i } = this, r = t === "trailing" ? i : t === "leading" ? e : null;
|
|
169
|
-
r && (r.forEach((s,
|
|
170
|
-
V(
|
|
169
|
+
r && (r.forEach((s, n) => {
|
|
170
|
+
V(n) && n.clips.remove(s);
|
|
171
171
|
}), r.clear());
|
|
172
172
|
}
|
|
173
173
|
_removeExistingClips() {
|
|
@@ -210,17 +210,17 @@ d([
|
|
|
210
210
|
l = d([
|
|
211
211
|
j("map-components.swipe.SwipeViewModel")
|
|
212
212
|
], l);
|
|
213
|
-
const W = A`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-
|
|
213
|
+
const W = A`:host{position:absolute;margin:0;background:transparent!important;padding:0;width:100%;height:100%;overflow:hidden;user-select:none;--arcgis-internal-swipe-handle-color-background: var(--calcite-color-surface-1);--arcgis-internal-swipe-divider-color-background: var(--calcite-color-surface-1)}.root{width:100%;height:100%;overflow:hidden;user-select:none}.root,.arcgis-ui .root{pointer-events:none!important}.container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.horizontal .container{margin-left:calc(var(--calcite-space-3xl) / 2 * -1);cursor:col-resize;height:100%}.vertical .container{margin-top:calc(var(--calcite-space-3xl) / 2 * -1);cursor:row-resize;width:100%}.disabled .container{cursor:default;pointer-events:none}.divider{position:absolute;background-color:var(--arcgis-internal-swipe-divider-color-background)}.horizontal .divider{top:0;left:calc(var(--calcite-space-3xl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.vertical .divider{top:calc(var(--calcite-space-3xl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-sm);background-color:var(--arcgis-internal-swipe-handle-color-background);width:var(--calcite-space-3xl);height:var(--calcite-space-3xl);color:var(--calcite-color-text-3)}.handle-hidden{visibility:hidden}.vertical .handle{rotate:90deg}.handle-icon{position:relative;z-index:2}.handle-icon:before{content:"|||";color:inherit}.horizontal .handle{top:calc(50% - calc(var(--calcite-space-3xl) / 2))}.vertical .handle{left:calc(50% - calc(var(--calcite-space-3xl) / 2))}.container:focus .handle,.container:focus .divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}.container:focus .handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, q = k(l);
|
|
214
214
|
class G extends K {
|
|
215
215
|
constructor() {
|
|
216
|
-
super(...arguments), this._containerRef = S(), this._swiping = !1, this._positionChanged = !1, this.messages =
|
|
216
|
+
super(...arguments), this._containerRef = S(), this._swiping = !1, this._positionChanged = !1, this.messages = U({}), this._pointerOffset = 0, this.viewModel = q(this), this._onContainerPointerDown = (e) => {
|
|
217
217
|
e.preventDefault();
|
|
218
218
|
const i = this._containerRef.value;
|
|
219
219
|
i && document.activeElement !== this.el && i.focus(), this._swiping = !0, this._calculatePointerOffset(e);
|
|
220
|
-
}, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady =
|
|
220
|
+
}, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = C(), this.arcgisSwipeChange = C(), this.arcgisSwipeInput = C();
|
|
221
221
|
}
|
|
222
222
|
static {
|
|
223
|
-
this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1,
|
|
223
|
+
this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, messageOverrides: 0, position: 9, startLayers: 0, referenceElement: 1, state: 32 };
|
|
224
224
|
}
|
|
225
225
|
static {
|
|
226
226
|
this.styles = W;
|
|
@@ -231,30 +231,12 @@ class G extends K {
|
|
|
231
231
|
set endLayers(e) {
|
|
232
232
|
this.viewModel.trailingLayers = e;
|
|
233
233
|
}
|
|
234
|
-
get leadingLayers() {
|
|
235
|
-
return this.startLayers;
|
|
236
|
-
}
|
|
237
|
-
set leadingLayers(e) {
|
|
238
|
-
this.startLayers = e;
|
|
239
|
-
}
|
|
240
234
|
get startLayers() {
|
|
241
235
|
return this.viewModel.leadingLayers;
|
|
242
236
|
}
|
|
243
237
|
set startLayers(e) {
|
|
244
238
|
this.viewModel.leadingLayers = e;
|
|
245
239
|
}
|
|
246
|
-
get swipePosition() {
|
|
247
|
-
return this.position;
|
|
248
|
-
}
|
|
249
|
-
set swipePosition(e) {
|
|
250
|
-
this.position = e;
|
|
251
|
-
}
|
|
252
|
-
get trailingLayers() {
|
|
253
|
-
return this.endLayers;
|
|
254
|
-
}
|
|
255
|
-
set trailingLayers(e) {
|
|
256
|
-
this.endLayers = e;
|
|
257
|
-
}
|
|
258
240
|
async destroy() {
|
|
259
241
|
await this.manager.destroy();
|
|
260
242
|
}
|
|
@@ -262,7 +244,7 @@ class G extends K {
|
|
|
262
244
|
this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
|
|
263
245
|
}
|
|
264
246
|
_calculatePointerOffset(e) {
|
|
265
|
-
const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2,
|
|
247
|
+
const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, n = r.getBoundingClientRect(), a = e.clientX - n.left, c = e.clientY - n.top;
|
|
266
248
|
this._pointerOffset = i === "vertical" ? c - s : a - s;
|
|
267
249
|
}
|
|
268
250
|
_onContainerPointerUp(e) {
|
|
@@ -272,20 +254,20 @@ class G extends K {
|
|
|
272
254
|
if (!this._swiping)
|
|
273
255
|
return;
|
|
274
256
|
e.preventDefault();
|
|
275
|
-
const { _pointerOffset: i, el: r, direction: s } = this, { clientX:
|
|
257
|
+
const { _pointerOffset: i, el: r, direction: s } = this, { clientX: n, clientY: a } = e, { top: c, left: o, width: h, height: g } = r.getBoundingClientRect(), v = s === "vertical" ? g : h, u = (s === "vertical" ? a - c - i : n - o - i) / v * 100;
|
|
276
258
|
this.position !== u && (this.position = u, this._positionChanged = !0, this.arcgisSwipeInput.emit());
|
|
277
259
|
}
|
|
278
260
|
_getKeyPosition(e) {
|
|
279
|
-
const { key: i } = e, { position: r } = this, { max: s, min:
|
|
280
|
-
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()),
|
|
261
|
+
const { key: i } = e, { position: r } = this, { max: s, min: n, step: a, stepMultiplier: c, direction: o } = this.viewModel, h = a * c;
|
|
262
|
+
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), o === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
|
|
281
263
|
const _ = e.shiftKey ? h : a;
|
|
282
264
|
return r + _;
|
|
283
265
|
}
|
|
284
|
-
if (
|
|
266
|
+
if (o === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
|
|
285
267
|
const _ = e.shiftKey ? h : a;
|
|
286
268
|
return r - _;
|
|
287
269
|
}
|
|
288
|
-
return i === "Home" ?
|
|
270
|
+
return i === "Home" ? n : i === "End" ? s : (o === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (o === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
|
|
289
271
|
}
|
|
290
272
|
_onContainerKeyDown(e) {
|
|
291
273
|
const i = this._getKeyPosition(e);
|
|
@@ -293,32 +275,32 @@ class G extends K {
|
|
|
293
275
|
}
|
|
294
276
|
render() {
|
|
295
277
|
const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, s = {
|
|
296
|
-
[
|
|
278
|
+
[$.disabled]: r,
|
|
297
279
|
disabled: r,
|
|
298
280
|
vertical: i === "vertical",
|
|
299
281
|
horizontal: i === "horizontal"
|
|
300
282
|
};
|
|
301
|
-
return
|
|
283
|
+
return m`<div class=${L(b("root", $.widget, s))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
|
|
302
284
|
}
|
|
303
285
|
_renderHandle() {
|
|
304
286
|
const { direction: e } = this.viewModel, { hideHandle: i } = this, r = {
|
|
305
|
-
[
|
|
306
|
-
[
|
|
287
|
+
[P.dragHorizontal]: e === "vertical",
|
|
288
|
+
[P.dragVertical]: e === "horizontal"
|
|
307
289
|
}, s = b("handle", !!i && "handle-hidden");
|
|
308
|
-
return
|
|
290
|
+
return m`<div class=${L(s)} role=presentation><span aria-hidden=true class=${L(b("handle-icon", r))}></span></div>`;
|
|
309
291
|
}
|
|
310
292
|
_renderDivider() {
|
|
311
|
-
return this.hideDivider ? null :
|
|
293
|
+
return this.hideDivider ? null : m`<div class="divider" role=presentation></div>`;
|
|
312
294
|
}
|
|
313
295
|
_renderContent() {
|
|
314
296
|
return [this._renderDivider(), this._renderHandle()];
|
|
315
297
|
}
|
|
316
298
|
_renderContainer() {
|
|
317
|
-
const { disabled: e, viewModel: i } = this, { max: r, min: s, direction:
|
|
318
|
-
top:
|
|
319
|
-
left:
|
|
299
|
+
const { disabled: e, viewModel: i } = this, { max: r, min: s, direction: n, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", o = `${a}%`, h = {
|
|
300
|
+
top: n === "vertical" ? o : void 0,
|
|
301
|
+
left: n === "vertical" ? void 0 : o
|
|
320
302
|
}, g = this._renderContent();
|
|
321
|
-
return e ?
|
|
303
|
+
return e ? m`<div class="container" role=presentation style=${D(h)}>${g}</div>` : m`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${n} .ariaValueMax=${`${r}`} .ariaValueMin=${`${s}`} .ariaValueNow=${`${a}`} .ariaValueText=${o} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
|
|
322
304
|
}
|
|
323
305
|
}
|
|
324
306
|
z("arcgis-swipe", G);
|