@arcgis/map-components 5.1.0-next.88 → 5.1.0-next.89
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/{K7IUUDPU.js → 24VXNB37.js} +1 -1
- package/dist/cdn/{NUXHWUHW.js → 25LLGDTO.js} +1 -1
- package/dist/cdn/{5RDAIWG2.js → 266WI6FR.js} +1 -1
- package/dist/cdn/{WFWY62WP.js → 2OMOYS3B.js} +1 -1
- package/dist/cdn/{GSLG4BGG.js → 372AEJRW.js} +1 -1
- package/dist/cdn/{TNFV5TYG.js → 3BUCNQ3Q.js} +1 -1
- package/dist/cdn/{AJJUFRY2.js → 3M3HVWX5.js} +1 -1
- package/dist/cdn/{NIBKXKYP.js → 3UA2XDDN.js} +1 -1
- package/dist/cdn/{EDXV5ILJ.js → 3UIUMMLG.js} +1 -1
- package/dist/cdn/{SSN6BZ43.js → 3Y5E26OU.js} +1 -1
- package/dist/cdn/{6F7YV6IW.js → 3YHIONOM.js} +1 -1
- package/dist/cdn/{QGMXX4OK.js → 3YI6JMPT.js} +1 -1
- package/dist/cdn/{EVANZ72I.js → 4PGPOFFE.js} +1 -1
- package/dist/cdn/{MTCQMJU6.js → 5E6PE65A.js} +1 -1
- package/dist/cdn/{KKQWYK3S.js → 5GEYGYVM.js} +1 -1
- package/dist/cdn/{HLLELVOY.js → 5IDKVBD3.js} +1 -1
- package/dist/cdn/{EVT4CSFI.js → 5NSQZMF6.js} +1 -1
- package/dist/cdn/{FPT2UAZM.js → 6352EDBR.js} +1 -1
- package/dist/cdn/{7VOC4SRD.js → 65B3NTSL.js} +1 -1
- package/dist/cdn/{IVHHFY62.js → 6GMOTVSO.js} +1 -1
- package/dist/cdn/{ODIQOLIK.js → 6IJGTPXG.js} +1 -1
- package/dist/cdn/{PLIFNESQ.js → 6P5CNXUG.js} +1 -1
- package/dist/cdn/{BQGVSWX3.js → 6Z5ORZ2B.js} +1 -1
- package/dist/cdn/{PXRFPA5R.js → 7HI6SDQK.js} +1 -1
- package/dist/cdn/{DXXSS4ND.js → 7W2JQJJR.js} +1 -1
- package/dist/cdn/{L65EXZFU.js → A2SFKWAL.js} +1 -1
- package/dist/cdn/{ZO7ZJ52E.js → ACT4QKSO.js} +1 -1
- package/dist/cdn/{LOSI5OB3.js → AJ7PACLN.js} +1 -1
- package/dist/cdn/{QC3D2TWK.js → AWTAJAUI.js} +1 -1
- package/dist/cdn/{U5G4PHA4.js → BOMPCJ77.js} +1 -1
- package/dist/cdn/{TEDPQX2I.js → BQPSXTIF.js} +1 -1
- package/dist/cdn/{L5IMMLTK.js → C2LLHKD7.js} +1 -1
- package/dist/cdn/{YACNPFYK.js → C6DEM2XB.js} +1 -1
- package/dist/cdn/{LCRY66VB.js → D5R7F5KN.js} +1 -1
- package/dist/cdn/{2D2ZSKWM.js → D5W4MV7H.js} +1 -1
- package/dist/cdn/{YDT6E7HC.js → DAO42MDC.js} +1 -1
- package/dist/cdn/DSAWFUXK.js +2 -0
- package/dist/cdn/{EIVHDZFM.js → DWADIUIX.js} +1 -1
- package/dist/cdn/{NXIFPTVQ.js → E2DUJ3PM.js} +1 -1
- package/dist/cdn/{5OMDHZ57.js → F2T4T7QR.js} +1 -1
- package/dist/cdn/{HN5OI754.js → F2UYN7PY.js} +1 -1
- package/dist/cdn/{IMENOON5.js → F5RARHY3.js} +1 -1
- package/dist/cdn/{O5ZWXMTJ.js → F74DKJP5.js} +1 -1
- package/dist/cdn/{JDJ76XB7.js → FBSEFCKA.js} +1 -1
- package/dist/cdn/{MV6B2G3T.js → FDNFARSM.js} +1 -1
- package/dist/cdn/{UKBIRZVQ.js → FF62HZ2F.js} +1 -1
- package/dist/cdn/{TVJAVDVQ.js → FGZC6Q4U.js} +1 -1
- package/dist/cdn/FIOFLICP.js +2 -0
- package/dist/cdn/{CZKMCZP6.js → GCPE7SKR.js} +1 -1
- package/dist/cdn/{IDDXJ7F2.js → GPYPWFDI.js} +1 -1
- package/dist/cdn/{RYU3ARF7.js → HQNCVN73.js} +1 -1
- package/dist/cdn/{PLVNROBW.js → I4CEHX7Z.js} +1 -1
- package/dist/cdn/{AQ77FNME.js → IA5VGN4S.js} +1 -1
- package/dist/cdn/{RMXESNDP.js → IRXWDEBR.js} +1 -1
- package/dist/cdn/{OSKVGOGF.js → JE5PV6KP.js} +1 -1
- package/dist/cdn/{IUIMMOGL.js → JTQEQIQN.js} +1 -1
- package/dist/cdn/{ELGQ2B5Q.js → K6FLTE5C.js} +1 -1
- package/dist/cdn/{2RQSR7BC.js → KHM4SNZ7.js} +1 -1
- package/dist/cdn/{RX2LAZXL.js → KIFOQG3B.js} +1 -1
- package/dist/cdn/{L7EMNGSL.js → KRWHYRGY.js} +1 -1
- package/dist/cdn/{LBMRY3LJ.js → KSQRNB2Z.js} +1 -1
- package/dist/cdn/{4Z4RREKH.js → M4KJ5Q7J.js} +1 -1
- package/dist/cdn/{3ODUJMJ5.js → MAILZU6P.js} +1 -1
- package/dist/cdn/{HOOOJCUS.js → MAQOMR7D.js} +1 -1
- package/dist/cdn/{6VJBGE5W.js → MAVNZR2L.js} +1 -1
- package/dist/cdn/{PAGCWPDT.js → MDC6LZQV.js} +1 -1
- package/dist/cdn/{ATDE5M7Y.js → MJLYS4D6.js} +1 -1
- package/dist/cdn/{V6F3SIA2.js → MMBRI6HV.js} +1 -1
- package/dist/cdn/{CLGZBSF4.js → MQ4W6OKL.js} +1 -1
- package/dist/cdn/{3ASRRVAX.js → MTIB3TBG.js} +1 -1
- package/dist/cdn/{JCBEUV6E.js → MUR25U2W.js} +1 -1
- package/dist/cdn/{QYDPHZP7.js → N3PGBI5P.js} +1 -1
- package/dist/cdn/{LHMODP3Q.js → NFRJBN5U.js} +1 -1
- package/dist/cdn/{QCWXVSVT.js → NSZXPPXS.js} +1 -1
- package/dist/cdn/{ZYKCW3VZ.js → O3Q5EADH.js} +1 -1
- package/dist/cdn/{7T5DT6RO.js → PAUCVKJP.js} +1 -1
- package/dist/cdn/{NOIIORU5.js → PFHHH6X2.js} +1 -1
- package/dist/cdn/{PN6OLHQX.js → PNS6E574.js} +1 -1
- package/dist/cdn/{BB63FLAA.js → POZYAP5U.js} +1 -1
- package/dist/cdn/{WYQVL6XP.js → PP3ZDADO.js} +1 -1
- package/dist/cdn/{KU42UI2H.js → Q4Z25HZZ.js} +1 -1
- package/dist/cdn/{VFIPW22C.js → R2EXDY7E.js} +1 -1
- package/dist/cdn/{RHK3OQ5J.js → R2L7EANK.js} +1 -1
- package/dist/cdn/{ZBAHKPR7.js → R3WL7KY6.js} +1 -1
- package/dist/cdn/{7QNEKM7I.js → R7XZ64RD.js} +1 -1
- package/dist/cdn/{SLYIBJYA.js → RXSGPYBA.js} +1 -1
- package/dist/cdn/{JFBRLXW3.js → SMUFWMGG.js} +1 -1
- package/dist/cdn/{6WVU3Z5X.js → SN7YZQCO.js} +1 -1
- package/dist/cdn/{IYYLPWB4.js → SPGWCKQB.js} +1 -1
- package/dist/cdn/{PVSWR6OP.js → STAEZF3H.js} +1 -1
- package/dist/cdn/{V2H57VKE.js → SUE6ZIET.js} +1 -1
- package/dist/cdn/{IA3VOFHV.js → SZCDFVDJ.js} +1 -1
- package/dist/cdn/{DBXLBXKP.js → T473T3LG.js} +1 -1
- package/dist/cdn/{FSBQ3QHA.js → TIP4QUW7.js} +1 -1
- package/dist/cdn/TUY46VJP.js +2 -0
- package/dist/cdn/{7EBEAMCO.js → UFBJWJZO.js} +1 -1
- package/dist/cdn/{77K74IPU.js → UIWXAYUP.js} +1 -1
- package/dist/cdn/UMATWIWL.js +2 -0
- package/dist/cdn/{V6FILY6M.js → UNC2Y424.js} +1 -1
- package/dist/cdn/{NZH3RKL2.js → UOT2FCSQ.js} +1 -1
- package/dist/cdn/UOZXW7WA.js +2 -0
- package/dist/cdn/{ID2QTTT2.js → UZXNZF42.js} +1 -1
- package/dist/cdn/{UB3EEHLW.js → VHG7HRXL.js} +1 -1
- package/dist/cdn/{OZ5I3YQW.js → W27GXCEC.js} +1 -1
- package/dist/cdn/{AW7QBRKJ.js → W7KCNEQL.js} +1 -1
- package/dist/cdn/{RHD7UOR2.js → WDCYTHR5.js} +1 -1
- package/dist/cdn/{ZPSJEBD6.js → WJWYFM4K.js} +1 -1
- package/dist/cdn/{VEVJEIFK.js → WLTOQWZB.js} +1 -1
- package/dist/cdn/{QNZTAT5I.js → X55JXSXH.js} +1 -1
- package/dist/cdn/{QYH4FI23.js → XISJTOJV.js} +1 -1
- package/dist/cdn/{5MURAVII.js → XO5ETTHD.js} +1 -1
- package/dist/cdn/{UHLP4JQM.js → XUJGETHA.js} +1 -1
- package/dist/cdn/{I473RVY4.js → XWD2WUJV.js} +1 -1
- package/dist/cdn/{BNFOQCW6.js → XYLQAWUN.js} +1 -1
- package/dist/cdn/{ZATRTCI7.js → YAWKQTTR.js} +1 -1
- package/dist/cdn/{GVYS3KF5.js → YOLLEFX2.js} +1 -1
- package/dist/cdn/{GUYOWFTW.js → Z33HF7ZE.js} +1 -1
- package/dist/cdn/ZCQAWUVA.js +2 -0
- package/dist/cdn/{AU2CHOT7.js → ZIV7S3DE.js} +1 -1
- package/dist/cdn/{TXOZLKGW.js → ZJN6UUR4.js} +1 -1
- package/dist/cdn/{LY3CCUTZ.js → ZL3CSJU4.js} +1 -1
- package/dist/cdn/{OWODXLED.js → ZRWZ5OQK.js} +1 -1
- package/dist/cdn/{XWYXHSGO.js → ZSG6TJPR.js} +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/layer-list-new/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/sketch-tooltip-controls/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +3 -0
- package/dist/components/arcgis-bookmarks/customElement.js +32 -32
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -1
- package/dist/components/arcgis-locate/customElement.d.ts +11 -2
- package/dist/components/arcgis-slider-scale-range/customElement.js +24 -27
- package/dist/components/arcgis-track/customElement.d.ts +10 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +2 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +60 -50
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +47 -39
- 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 +4 -4
- package/dist/cdn/3ILSWQHC.js +0 -2
- package/dist/cdn/DCKEJ6NB.js +0 -2
- package/dist/cdn/OYSW2K2B.js +0 -2
- package/dist/cdn/R643Q3PN.js +0 -2
- package/dist/cdn/SWPUZKGU.js +0 -2
- package/dist/cdn/X5PGXXNB.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as U } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as C, html as a } from "lit";
|
|
4
4
|
import { ref as f } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as F } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import D from "@arcgis/core/webmap/Bookmark.js";
|
|
7
|
+
import y from "@arcgis/core/core/Collection.js";
|
|
8
8
|
import b from "@arcgis/core/core/Error.js";
|
|
9
9
|
import A from "@arcgis/core/webdoc/support/SlideThumbnail.js";
|
|
10
10
|
import O from "@arcgis/core/Viewpoint.js";
|
|
@@ -13,19 +13,19 @@ import { LitElement as z, createEvent as x, nothing as B, safeClassMap as N } fr
|
|
|
13
13
|
import { H as L } from "../../chunks/heading.js";
|
|
14
14
|
import V from "@arcgis/core/core/Accessor.js";
|
|
15
15
|
import { property as g, subclass as P } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
16
|
-
import { isHTTPSProtocol as
|
|
16
|
+
import { isHTTPSProtocol as _, isDataProtocol as T } from "@arcgis/core/core/urlUtils.js";
|
|
17
17
|
import { c as q } from "../../chunks/goTo.js";
|
|
18
18
|
import { classes as R } from "@arcgis/toolkit/dom";
|
|
19
19
|
import { formatDate as S, convertDateFormatToIntlOptions as I } from "@arcgis/core/intl.js";
|
|
20
20
|
import { generateGuid as H } from "@arcgis/toolkit/string";
|
|
21
21
|
import { usePropertyChange as Z } from "@arcgis/lumina/controllers";
|
|
22
22
|
import { u as j } from "../../chunks/useT9n.js";
|
|
23
|
-
import { u as
|
|
23
|
+
import { u as M } from "../../chunks/useView.js";
|
|
24
24
|
import { watch as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
25
|
-
var
|
|
25
|
+
var G = Object.defineProperty, J = Object.getOwnPropertyDescriptor, u = (l, e, t, i) => {
|
|
26
26
|
for (var r = i > 1 ? void 0 : i ? J(e, t) : e, o = l.length - 1, n; o >= 0; o--)
|
|
27
27
|
(n = l[o]) && (r = (i ? n(e, t, r) : n(r)) || r);
|
|
28
|
-
return i && r &&
|
|
28
|
+
return i && r && G(e, t, r), r;
|
|
29
29
|
};
|
|
30
30
|
let m = class extends V {
|
|
31
31
|
constructor(l) {
|
|
@@ -39,7 +39,7 @@ let m = class extends V {
|
|
|
39
39
|
if (this._customUrl)
|
|
40
40
|
return this._customUrl;
|
|
41
41
|
const l = this.editedBookmark?.thumbnail?.url ?? "";
|
|
42
|
-
return l ?? (
|
|
42
|
+
return l ?? (_(l) ? l : null);
|
|
43
43
|
}
|
|
44
44
|
set customUrl(l) {
|
|
45
45
|
this._customUrl = l;
|
|
@@ -48,7 +48,7 @@ let m = class extends V {
|
|
|
48
48
|
if (this._screenshotUrl)
|
|
49
49
|
return this._screenshotUrl;
|
|
50
50
|
const l = this.editedBookmark?.thumbnail?.url ?? "";
|
|
51
|
-
return l ?? (
|
|
51
|
+
return l ?? (T(l) ? l : null);
|
|
52
52
|
}
|
|
53
53
|
set screenshotUrl(l) {
|
|
54
54
|
this._screenshotUrl = l;
|
|
@@ -63,7 +63,7 @@ let m = class extends V {
|
|
|
63
63
|
if (this._thumbnailState)
|
|
64
64
|
return this._thumbnailState;
|
|
65
65
|
const l = this.editedBookmark?.thumbnail?.url;
|
|
66
|
-
return l ?
|
|
66
|
+
return l ? _(l) ? "url" : "screenshot" : "none";
|
|
67
67
|
}
|
|
68
68
|
set thumbnailState(l) {
|
|
69
69
|
this._thumbnailState = l;
|
|
@@ -105,7 +105,7 @@ u([
|
|
|
105
105
|
m = u([
|
|
106
106
|
P("UserState")
|
|
107
107
|
], m);
|
|
108
|
-
const K = U`.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}:host{display:flex}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .root{display:none}.empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.root .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.root calcite-flow-item[loading]{min-height:150px}.loader{margin-inline-end:0}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.bookmark-image-container .bookmark-image{max-width:64px;overflow:hidden}.drag-enabled .bookmark-image-container{margin-inline-start:0}.no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.authoring{display:flex;flex-direction:column}.authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.authoring-image-container .bookmark-image{max-width:128px;max-height:128px}.form{display:flex;height:100%}.form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.bookmark-content calcite-table{margin-inline-start:-.25rem}.bookmark-content calcite-table,.bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`, Q = T.ofType(C), W = {
|
|
108
|
+
const K = C`.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}:host{display:flex}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .root{display:none}.empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.root .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.root calcite-flow-item[loading]{min-height:150px}.loader{margin-inline-end:0}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.bookmark-image-container .bookmark-image{max-width:64px;overflow:hidden}.drag-enabled .bookmark-image-container{margin-inline-start:0}.no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.authoring{display:flex;flex-direction:column}.authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.authoring-image-container .bookmark-image{max-width:128px;max-height:128px}.form{display:flex;height:100%}.form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.bookmark-content calcite-table{margin-inline-start:-.25rem}.bookmark-content calcite-table,.bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`, Q = C`.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`, W = y.ofType(D), X = {
|
|
109
109
|
width: 128,
|
|
110
110
|
height: 128,
|
|
111
111
|
format: "png"
|
|
@@ -116,21 +116,21 @@ const K = U`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .
|
|
|
116
116
|
captureScale: !0,
|
|
117
117
|
captureTimeExtent: !0
|
|
118
118
|
};
|
|
119
|
-
class
|
|
119
|
+
class Y extends z {
|
|
120
120
|
constructor() {
|
|
121
|
-
super(...arguments), this._bookmarks = null, this._defaultCreateOptions = { ...E }, this._defaultEditOptions = { ...E }, this._defaultBookmarks = new
|
|
121
|
+
super(...arguments), this._bookmarks = null, this._defaultCreateOptions = { ...E }, this._defaultEditOptions = { ...E }, this._defaultBookmarks = new W(), this._guid = H(), this._addInputNode = null, this._editInputNode = null, this._urlEditInputNode = null, this._lastDragDetail = null, this.messages = j({}), this._storeEditFlowItemNode = (e) => {
|
|
122
122
|
this._editFlowItemEl = e;
|
|
123
123
|
}, this._storeRootFlowItem = (e) => {
|
|
124
124
|
this._rootFlowItemEl = e;
|
|
125
125
|
}, this._storeAddFlowItemNode = (e) => {
|
|
126
126
|
this._addFlowItemEl = e;
|
|
127
|
-
}, this._activeBookmark = null, this._userState = null, this._userCreatingBookmark = !1, this.editIncludeTimeExtent = !1, this.view =
|
|
127
|
+
}, this._activeBookmark = null, this._userState = null, this._userCreatingBookmark = !1, this.editIncludeTimeExtent = !1, this.view = M(this), this.icon = "bookmark", this.closed = !1, this.disabled = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.showAddBookmarkButton = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditBookmarkButton = !1, this.showFilter = !1, this.showHeading = !1, this.hideThumbnail = !1, this.hideTime = !1, this.timeDisabled = !1, this.autoDestroyDisabled = !1, this.state = this._state, this.arcgisBookmarkEdit = x(), this.arcgisBookmarkSelect = x(), this.arcgisPropertyChange = Z()("state"), this.arcgisReady = x(), this.arcgisClose = x();
|
|
128
128
|
}
|
|
129
129
|
static {
|
|
130
|
-
this.properties = { _activeBookmark: 16, _userState: 16, _userStateValue: 16, _userValidationState: 16, _userThumbnailState: 16, _userCreatingBookmark: 16, editIncludeTimeExtent: 16, _state: 16, view: 0, referenceElement: 1, icon: 1, closed: 7, defaultCreateOptions: 0, defaultEditOptions: 0, bookmarks: [1, { type:
|
|
130
|
+
this.properties = { _bookmarkSelectedMessage: 16, _activeBookmark: 16, _userState: 16, _userStateValue: 16, _userValidationState: 16, _userThumbnailState: 16, _userCreatingBookmark: 16, editIncludeTimeExtent: 16, _state: 16, view: 0, referenceElement: 1, icon: 1, closed: 7, defaultCreateOptions: 0, defaultEditOptions: 0, bookmarks: [1, { type: y }], disabled: 5, dragEnabled: 5, filterPlaceholder: 1, filterText: 1, headingLevel: 9, goToOverride: 0, showAddBookmarkButton: 5, showCloseButton: 5, showCollapseButton: 5, showEditBookmarkButton: 5, showFilter: 5, showHeading: 5, hideThumbnail: 5, hideTime: 5, timeDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
131
131
|
}
|
|
132
132
|
static {
|
|
133
|
-
this.styles = K;
|
|
133
|
+
this.styles = [K, Q];
|
|
134
134
|
}
|
|
135
135
|
get _state() {
|
|
136
136
|
const { view: e } = this;
|
|
@@ -152,7 +152,7 @@ class X extends z {
|
|
|
152
152
|
return this._bookmarks ?? this.view?.map?.bookmarks ?? this._defaultBookmarks;
|
|
153
153
|
}
|
|
154
154
|
set bookmarks(e) {
|
|
155
|
-
this._bookmarks =
|
|
155
|
+
this._bookmarks = y.isCollection(e) ? e : new y(e);
|
|
156
156
|
}
|
|
157
157
|
async destroy() {
|
|
158
158
|
await this.manager.destroy(), this._activeBookmark = null;
|
|
@@ -168,7 +168,7 @@ class X extends z {
|
|
|
168
168
|
});
|
|
169
169
|
this._activeBookmark = e;
|
|
170
170
|
const r = q({ target: i }, t, this.goToOverride), o = e?.timeExtent;
|
|
171
|
-
return !this.timeDisabled && o && (t.timeExtent = o), this.arcgisBookmarkSelect.emit({ bookmark: e }), r.catch().then(() => this._activeBookmark = null), r;
|
|
171
|
+
return !this.timeDisabled && o && (t.timeExtent = o), this.arcgisBookmarkSelect.emit({ bookmark: e }), this._bookmarkSelectedMessage = this.messages?.bookmarkSelected?.replace("{bookmarkName}", e.name), r.catch().then(() => this._activeBookmark = null), r;
|
|
172
172
|
}
|
|
173
173
|
loaded() {
|
|
174
174
|
this.manager.onLifecycle(() => [
|
|
@@ -186,7 +186,7 @@ class X extends z {
|
|
|
186
186
|
...i,
|
|
187
187
|
...e
|
|
188
188
|
}, d = r ? await this._createThumbnail(o) : void 0, p = !this.timeDisabled && h && t.timeExtent != null ? t.timeExtent.clone() : void 0;
|
|
189
|
-
return new
|
|
189
|
+
return new D({
|
|
190
190
|
...d && { thumbnail: d },
|
|
191
191
|
...h && { timeExtent: p },
|
|
192
192
|
...n && {
|
|
@@ -211,7 +211,7 @@ class X extends z {
|
|
|
211
211
|
if (!t)
|
|
212
212
|
throw new b("bookmark:invalid-view", "Cannot create slide thumbnail without a view");
|
|
213
213
|
const i = await t.takeScreenshot({
|
|
214
|
-
...
|
|
214
|
+
...X,
|
|
215
215
|
...e
|
|
216
216
|
});
|
|
217
217
|
return new A({ url: i.dataUrl });
|
|
@@ -241,7 +241,7 @@ class X extends z {
|
|
|
241
241
|
const { hideTime: t } = this, { timeExtent: i } = e;
|
|
242
242
|
if (!i)
|
|
243
243
|
return {};
|
|
244
|
-
const { start: r, end: o } = i, n = o != null &&
|
|
244
|
+
const { start: r, end: o } = i, n = o != null && r?.getTime() !== o.getTime(), s = r ? this._formatDate(r) : "", c = r && !t ? this._formatTime(r) : "";
|
|
245
245
|
if (!n)
|
|
246
246
|
return { startDate: s, startTime: c };
|
|
247
247
|
const h = this._formatDate(o), d = t ? "" : this._formatTime(o);
|
|
@@ -251,9 +251,9 @@ class X extends z {
|
|
|
251
251
|
const { _userState: e, _urlEditInputNode: t } = this, i = t?.value;
|
|
252
252
|
if (!e?.editedBookmark || !i)
|
|
253
253
|
return;
|
|
254
|
-
e.validationState = void 0,
|
|
254
|
+
e.validationState = void 0, T(e.editedBookmark.thumbnail?.url ?? "") && (e.screenshotUrl = e.editedBookmark.thumbnail?.url);
|
|
255
255
|
const r = { url: i };
|
|
256
|
-
|
|
256
|
+
_(r.url) && (e.customUrl = i, e.editedBookmark.thumbnail = r);
|
|
257
257
|
}
|
|
258
258
|
_getBookmarkTitle(e) {
|
|
259
259
|
return (e?.name || this.messages.untitled) ?? "";
|
|
@@ -306,7 +306,7 @@ class X extends z {
|
|
|
306
306
|
}
|
|
307
307
|
_storeCurrentUrl() {
|
|
308
308
|
const { _userState: e } = this, t = e?.editedBookmark?.thumbnail?.url;
|
|
309
|
-
t && (
|
|
309
|
+
t && (_(t) ? e.customUrl = t : T(t) && (e.screenshotUrl = t));
|
|
310
310
|
}
|
|
311
311
|
async _handleThumbnailTypeSelect(e) {
|
|
312
312
|
const { _userState: t } = this;
|
|
@@ -361,7 +361,7 @@ class X extends z {
|
|
|
361
361
|
}
|
|
362
362
|
if (t.bookmark.name = n, t.bookmark.thumbnail = t.editedBookmark.thumbnail, r || (t.bookmark.timeExtent = null), t.thumbnailState === "url" && o) {
|
|
363
363
|
const c = { url: o.value };
|
|
364
|
-
if (!
|
|
364
|
+
if (!_(c.url)) {
|
|
365
365
|
t.validationState = "absolute-url-required";
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
@@ -402,7 +402,7 @@ class X extends z {
|
|
|
402
402
|
t.insertBefore(i, t.children[r]);
|
|
403
403
|
}
|
|
404
404
|
render() {
|
|
405
|
-
return a`<div class="root">${this._renderBookmarksContainer()}</div>`;
|
|
405
|
+
return a`<div class="root"><div class="sr-only" aria-live=polite>${this._bookmarkSelectedMessage}</div>${this._renderBookmarksContainer()}</div>`;
|
|
406
406
|
}
|
|
407
407
|
_renderNoBookmarksContainer(e) {
|
|
408
408
|
const { messages: t, _state: i } = this;
|
|
@@ -416,7 +416,7 @@ class X extends z {
|
|
|
416
416
|
return e ? e.toArray().map((t) => this._renderBookmark(t)) : [];
|
|
417
417
|
}
|
|
418
418
|
_renderBookmarksContainer() {
|
|
419
|
-
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText: s, closed: c, headingLevel: h } = this, d = t.filter((
|
|
419
|
+
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText: s, closed: c, headingLevel: h } = this, d = t.filter((k) => k != null), w = d.length ? a`<calcite-list class="list" display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${n} .filterProps=${["label", "description", "metadata"]} .filterText=${s} .group=${`bookmarks-${this._guid}`} .label=${r.componentLabel ?? ""} selection-appearance=border selection-mode=none @calciteListDragEnd=${(k) => this._handleCalciteListDragEnd(k.detail)} @calciteListFilter=${(k) => this.filterText = k.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(k) => this._onCalciteListOrderChange(k.detail)}>${this._renderBookmarkItems(d)}${this.showFilter ? a`<div class="filter-no-results" slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${r.noBookmarksHeading}</div>;</calcite-notice></div>` : null}</calcite-list>` : null, v = [
|
|
420
420
|
a`<calcite-flow-item .closable=${this.showCloseButton} .closed=${c} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading ? r.componentLabel : void 0} .headingLevel=${h} .loading=${e === "loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${this._handleClose} ${f(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(d)}${w}${this._renderAddBookmarkButton()}</calcite-flow-item>`,
|
|
421
421
|
this._renderAddingBookmark(),
|
|
422
422
|
this._renderEditBookmarkFlowItems()
|
|
@@ -490,7 +490,7 @@ class X extends z {
|
|
|
490
490
|
return !this.timeDisabled && (t?.timeExtent ?? i) ? a`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>` : null;
|
|
491
491
|
}
|
|
492
492
|
_renderEditingBookmarkImage(e) {
|
|
493
|
-
const { _userThumbnailState: t } = this, i = e.thumbnail?.url ?? "", r =
|
|
493
|
+
const { _userThumbnailState: t } = this, i = e.thumbnail?.url ?? "", r = _(i) ? t === "url" : T(i) ? t === "screenshot" : null;
|
|
494
494
|
if (r)
|
|
495
495
|
return this._renderBookmarkImage(e, r);
|
|
496
496
|
}
|
|
@@ -505,7 +505,7 @@ class X extends z {
|
|
|
505
505
|
}} width=full>${t.updateThumbnail}</calcite-button>` : null;
|
|
506
506
|
}
|
|
507
507
|
_renderEditingBookmarkUrlInput(e) {
|
|
508
|
-
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n =
|
|
508
|
+
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n = _(o) ? o : void 0, s = o && i === "absolute-url-required";
|
|
509
509
|
return r === "url" ? a`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t ? `https://<${t.imageUrlPlaceholder}>` : void 0} required title=${t.imageUrlTooltip ?? B} type=text .value=${n} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${f(this._storeUrlEditInput)}></calcite-input>${s ? a`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>` : null}</calcite-label>` : null;
|
|
510
510
|
}
|
|
511
511
|
_renderThumbnailSelector() {
|
|
@@ -536,7 +536,7 @@ class X extends z {
|
|
|
536
536
|
}} ${f(this._storeAddFlowItemNode)}><div class="form-content">${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>` : null;
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
|
|
539
|
+
U("arcgis-bookmarks", Y);
|
|
540
540
|
export {
|
|
541
|
-
|
|
541
|
+
Y as ArcgisBookmarks
|
|
542
542
|
};
|
|
@@ -39,7 +39,13 @@ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-i
|
|
|
39
39
|
* and animates the lighting over the course of a year (month by month). The speed of the time-of-day animation can
|
|
40
40
|
* be set using the [playSpeedMultiplier](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-daylight/#playSpeedMultiplier) property.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* <video
|
|
43
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/core/components/daylight/daylight-animation.webm"
|
|
44
|
+
* autoPlay
|
|
45
|
+
* loop
|
|
46
|
+
* muted
|
|
47
|
+
* playsInline
|
|
48
|
+
* ></video>
|
|
43
49
|
*
|
|
44
50
|
* Except for the daytime slider, all the elements in the Daylight component can be hidden:
|
|
45
51
|
*
|
|
@@ -13,8 +13,17 @@ import type { Button as Button } from "@esri/calcite-components/components/calci
|
|
|
13
13
|
* The Locate component animates the Map or Scene to the user's current location.
|
|
14
14
|
*
|
|
15
15
|
* This component uses the browser's [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) which is only available in [secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts), such as HTTPS.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* `localhost` is considered "potentially secure" and can be used for testing.
|
|
17
|
+
*
|
|
18
|
+
* > [!WARNING]
|
|
19
|
+
* >
|
|
20
|
+
* > **Note**
|
|
21
|
+
* >
|
|
22
|
+
* > To avoid unexpected navigation, especially when using custom spatial references, configure the view [constraints](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#constraints)
|
|
23
|
+
* > such as `extent`, `minZoom`, and `maxZoom`.
|
|
24
|
+
* > This helps when the geolocated position is inaccurate or causes the map to navigate
|
|
25
|
+
* > to a location that is no longer visible because it is outside of
|
|
26
|
+
* > a layer's `fullExtent`.
|
|
18
27
|
*
|
|
19
28
|
* @since 4.28
|
|
20
29
|
*/
|
|
@@ -4,10 +4,10 @@ import { keyed as _ } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } from "@arcgis/lumina";
|
|
5
5
|
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { u as v } from "../../chunks/useView.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { css as
|
|
9
|
-
import { usePropertyChange as
|
|
10
|
-
import { createRef as
|
|
7
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
+
import { css as L, html as m } from "lit";
|
|
9
|
+
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
10
|
+
import { createRef as b, ref as w } from "lit/directives/ref.js";
|
|
11
11
|
import T from "@arcgis/core/portal/Portal.js";
|
|
12
12
|
const h = /* @__PURE__ */ new Set([
|
|
13
13
|
"ar-iq",
|
|
@@ -84,7 +84,7 @@ const h = /* @__PURE__ */ new Set([
|
|
|
84
84
|
"th-th",
|
|
85
85
|
"zh-cn",
|
|
86
86
|
"zh-tw"
|
|
87
|
-
]),
|
|
87
|
+
]), P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:5px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`, l = [
|
|
88
88
|
{ id: "world", scale: 147914382, minScale: 147914382, maxScale: 1e8 },
|
|
89
89
|
{ id: "continent", scale: 5e7, minScale: 99999999, maxScale: 35e6 },
|
|
90
90
|
{ id: "countriesBig", scale: 25e6, minScale: 34999999, maxScale: 15e6 },
|
|
@@ -106,15 +106,15 @@ const h = /* @__PURE__ */ new Set([
|
|
|
106
106
|
{ id: "rooms", scale: 400, minScale: 400, maxScale: 101 },
|
|
107
107
|
{ id: "room", scale: 100, minScale: 100, maxScale: 0 }
|
|
108
108
|
];
|
|
109
|
-
class
|
|
109
|
+
class R extends g {
|
|
110
110
|
constructor() {
|
|
111
|
-
super(...arguments), this.messages =
|
|
111
|
+
super(...arguments), this.messages = y(), this._sliderRef = b(), this._activeMenu = null, this._customScaleSelected = null, this._portalRegion = null, this._layerMaxScaleLimit = l[l.length - 1].maxScale, this._layerMinScaleLimit = l[0].minScale, this.autoDestroyDisabled = !1, this.disabled = !1, this.hidePreview = !1, this.hideMaxScaleMenu = !1, this.hideMinScaleMenu = !1, this.icon = "actual-size", this.maxScale = 0, this.maxScaleLimit = l[l.length - 1].maxScale, this.minScale = 0, this.minScaleLimit = l[0].minScale, this.mode = "range", this.showWorldValue = !1, this.view = v(this), this.arcgisChange = d(), this.arcgisInput = d(), this.arcgisPropertyChange = $()("state", "minScale", "maxScale"), this.arcgisReady = d();
|
|
112
112
|
}
|
|
113
113
|
static {
|
|
114
114
|
this.properties = { _activeMenu: 16, _customScaleSelected: 16, _portalRegion: 16, _layerMaxScaleLimit: 16, _layerMinScaleLimit: 16, autoDestroyDisabled: 5, disabled: 7, hidePreview: 5, hideMaxScaleMenu: 5, hideMinScaleMenu: 5, icon: 1, label: 1, layer: 0, maxScale: 9, maxScaleLimit: 9, minScale: 9, minScaleLimit: 9, mode: 1, referenceElement: 1, region: 1, showWorldValue: 5, state: 32, view: 0 };
|
|
115
115
|
}
|
|
116
116
|
static {
|
|
117
|
-
this.styles =
|
|
117
|
+
this.styles = P;
|
|
118
118
|
}
|
|
119
119
|
get state() {
|
|
120
120
|
const { view: e, layer: i } = this;
|
|
@@ -155,9 +155,9 @@ class I extends g {
|
|
|
155
155
|
if (s)
|
|
156
156
|
this._layerMinScaleLimit = s[0].scale === 0 ? l[0].minScale : Math.min(l[0].minScale, s[0].scale), !("resampling" in this.layer) || this.layer.resampling || (this._layerMaxScaleLimit = s[s.length - 1].scale);
|
|
157
157
|
else {
|
|
158
|
-
const
|
|
158
|
+
const r = this.layer && "maxScaleRange" in this.layer ? this.layer.maxScaleRange : null;
|
|
159
159
|
let n = 0, o = 0;
|
|
160
|
-
|
|
160
|
+
r && (n = r.minScale, o = r.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
|
|
161
161
|
}
|
|
162
162
|
this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
|
|
163
163
|
const c = this.layer;
|
|
@@ -236,24 +236,21 @@ class I extends g {
|
|
|
236
236
|
}
|
|
237
237
|
_renderScalePreviewPopover() {
|
|
238
238
|
const e = this._renderScalePreview();
|
|
239
|
-
return this.hidePreview || !e ? null :
|
|
239
|
+
return this.hidePreview || !e ? null : m`<div slot=popover>${e}</div>`;
|
|
240
240
|
}
|
|
241
241
|
render() {
|
|
242
|
-
return
|
|
243
|
-
const i = Math.round(this._mapSliderToScale(e)), a = Math.min(l.length - 1, Math.max(0, Math.floor(e))), t = this.messages.scaleRangeLabels?.[l[a].id];
|
|
244
|
-
return t ? `${t}, ${i.toString()}` : i.toString();
|
|
245
|
-
}} title="Scale Slider" .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : r`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
|
|
242
|
+
return m`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))} title="Scale Slider" .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : m`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
|
|
246
243
|
}
|
|
247
244
|
_renderCurrentScaleIndicator(e) {
|
|
248
245
|
const i = this._sliderRef.value, a = i?.fullRangeMax ?? this._mapScaleToSlider(l[l.length - 1].maxScale), t = i?.fullRangeMin ?? this._mapScaleToSlider(l[0].minScale), s = a - t, c = Math.min(100, Math.max(0, (this._mapScaleToSlider(e) - t) / s * 100));
|
|
249
|
-
return _("scale-indicator",
|
|
246
|
+
return _("scale-indicator", m`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({
|
|
250
247
|
position: "absolute",
|
|
251
248
|
left: `${c}%`
|
|
252
249
|
})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`);
|
|
253
250
|
}
|
|
254
251
|
_renderCustomScaleValue(e, i) {
|
|
255
252
|
const a = Math.round(i).toString();
|
|
256
|
-
return
|
|
253
|
+
return m`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected === e} @calciteListItemSelect=${(t) => {
|
|
257
254
|
const s = t.target.querySelector("calcite-input-number");
|
|
258
255
|
this._handleCustomScaleInput(e, s?.value ?? ""), this._customScaleSelected = e;
|
|
259
256
|
}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length - 1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${a} @click=${(t) => t.stopPropagation()} @keydown=${(t) => {
|
|
@@ -261,10 +258,10 @@ class I extends g {
|
|
|
261
258
|
}}></calcite-input-number></calcite-list-item>`;
|
|
262
259
|
}
|
|
263
260
|
_renderScaleMenuButtons(e) {
|
|
264
|
-
return
|
|
261
|
+
return m`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .title=${e === "max" ? "Max Scale Menu" : "Min Scale Menu"} .appearance=${this._activeMenu === e ? "outline" : "transparent"}>${this._getDropdownLabel(e)}</calcite-button>`;
|
|
265
262
|
}
|
|
266
263
|
_renderScaleMenuPopover(e) {
|
|
267
|
-
return
|
|
264
|
+
return m`<calcite-popover auto-close .label=${`${e === "min" ? "Min" : "Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e === "max" ? "bottom-end" : "bottom-start"} .open=${this._activeMenu === e} scale=s @calcitePopoverOpen=${() => this._activeMenu = e} @calcitePopoverClose=${() => {
|
|
268
265
|
this._activeMenu === e && (this._activeMenu = null);
|
|
269
266
|
}}>${this._renderScaleMenu(e)}</calcite-popover>`;
|
|
270
267
|
}
|
|
@@ -272,14 +269,14 @@ class I extends g {
|
|
|
272
269
|
const i = Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)), a = Math.floor(this._mapScaleToSlider(this._effectiveMinScale)), t = e === "min" ? this._effectiveMinScale : this._effectiveMaxScale, s = this.messages.featuredScaleLabels;
|
|
273
270
|
if (!s)
|
|
274
271
|
return;
|
|
275
|
-
const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)),
|
|
272
|
+
const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)), r = Math.floor(this._mapScaleToSlider(this.minScaleLimit)), n = l.filter((o, S) => e === "min" ? S < i && S >= r : S > a && S <= c).map((o) => this._renderScaleMenuItem({
|
|
276
273
|
scaleLabel: s[o.id],
|
|
277
274
|
scaleValue: o.scale,
|
|
278
275
|
isSelected: t === o.scale,
|
|
279
276
|
valueVisible: o.id !== "world" || this.showWorldValue,
|
|
280
277
|
type: e
|
|
281
278
|
}));
|
|
282
|
-
return
|
|
279
|
+
return m`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale != null && this._renderCustomScaleValue(e, t) || ""}${this.view?.scale != null ? this._renderScaleMenuItem({
|
|
283
280
|
scaleValue: this.view.scale,
|
|
284
281
|
scaleLabel: s.current,
|
|
285
282
|
isSelected: t === this.view.scale,
|
|
@@ -289,7 +286,7 @@ class I extends g {
|
|
|
289
286
|
}
|
|
290
287
|
_renderScaleMenuItem(e) {
|
|
291
288
|
const { scaleValue: i, scaleLabel: a, isSelected: t, valueVisible: s } = e, c = i === l[0].scale ? ` ${this.messages.aboveSuffix}` : i === l[l.length - 1].scale ? ` ${this.messages.belowSuffix}` : "";
|
|
292
|
-
return
|
|
289
|
+
return m`<calcite-list-item .label=${a} .selected=${t && this._customScaleSelected !== e.type} .description=${s ? `1:${Math.round(i).toLocaleString(this.messages._t9nLocale)}${c}` : void 0} @calciteListItemSelect=${() => {
|
|
293
290
|
this._setScale(e.type, i), this._customScaleSelected = null;
|
|
294
291
|
}}></calcite-list-item>`;
|
|
295
292
|
}
|
|
@@ -297,17 +294,17 @@ class I extends g {
|
|
|
297
294
|
const e = this._sliderRef.value?.activeValue;
|
|
298
295
|
if (typeof e != "number")
|
|
299
296
|
return null;
|
|
300
|
-
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a),
|
|
301
|
-
return
|
|
297
|
+
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), r = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
|
|
298
|
+
return m`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
|
|
302
299
|
display: "block",
|
|
303
300
|
height: `${t}px`,
|
|
304
301
|
width: `${t}px`,
|
|
305
|
-
objectPosition:
|
|
302
|
+
objectPosition: r,
|
|
306
303
|
objectFit: "none"
|
|
307
304
|
})}></div>`;
|
|
308
305
|
}
|
|
309
306
|
}
|
|
310
|
-
p("arcgis-slider-scale-range",
|
|
307
|
+
p("arcgis-slider-scale-range", R);
|
|
311
308
|
export {
|
|
312
|
-
|
|
309
|
+
R as ArcgisSliderScaleRange
|
|
313
310
|
};
|
|
@@ -16,8 +16,16 @@ import type { Button as Button } from "@esri/calcite-components/components/calci
|
|
|
16
16
|
* when speed is greater than zero and the browser provides heading information.
|
|
17
17
|
*
|
|
18
18
|
* This component uses the browser's [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) which is only available in [secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts), such as HTTPS.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* `localhost` is considered "potentially secure" and can be used for testing.
|
|
20
|
+
*
|
|
21
|
+
* > [!WARNING]
|
|
22
|
+
* >
|
|
23
|
+
* > **Note**
|
|
24
|
+
* >
|
|
25
|
+
* > To avoid unexpected navigation, especially when using custom spatial references, configure the view [constraints](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#constraints)
|
|
26
|
+
* > such as `extent`, `minZoom`, and `maxZoom`.
|
|
27
|
+
* > This helps when the geolocated position is inaccurate or causes the map to navigate to a location that is no longer visible because it is outside of
|
|
28
|
+
* > a layer's `fullExtent`.
|
|
21
29
|
*
|
|
22
30
|
* **Known limitations**
|
|
23
31
|
*
|
|
@@ -33,6 +33,7 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
33
33
|
noMapError: string;
|
|
34
34
|
noTraceConfigurationError: string;
|
|
35
35
|
noUtilityNetworkError: string;
|
|
36
|
+
utilityNetworkLoadFailed: string;
|
|
36
37
|
};
|
|
37
38
|
instructions: {
|
|
38
39
|
addSpatial: {
|
|
@@ -74,6 +75,7 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
|
|
|
74
75
|
noMapError: string;
|
|
75
76
|
noTraceConfigurationError: string;
|
|
76
77
|
noUtilityNetworkError: string;
|
|
78
|
+
utilityNetworkLoadFailed: string;
|
|
77
79
|
};
|
|
78
80
|
instructions: {
|
|
79
81
|
addSpatial: {
|