@arcgis/map-components 5.1.0-next.127 → 5.1.0-next.129
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/{NJHOCKLL.js → 23N5RSQM.js} +1 -1
- package/dist/cdn/{GSSYRVP6.js → 23QRQ72P.js} +1 -1
- package/dist/cdn/{HP34RLMV.js → 2A7AC2RY.js} +1 -1
- package/dist/cdn/{ADWNNODV.js → 2AZXE2Y3.js} +1 -1
- package/dist/cdn/2HF62GLH.js +2 -0
- package/dist/cdn/5HO3VI5Q.js +2 -0
- package/dist/cdn/7DGQHON2.js +2 -0
- package/dist/cdn/{TCUFYIIZ.js → 7EVXRUAJ.js} +1 -1
- package/dist/cdn/{MASUN7EL.js → ACQRIVIF.js} +1 -1
- package/dist/cdn/{6RUN7OSM.js → AJTKCFGJ.js} +1 -1
- package/dist/cdn/{CNNVHQTZ.js → AQ6DGT5T.js} +1 -1
- package/dist/cdn/AUDWBCSP.js +2 -0
- package/dist/cdn/BL6LUEPC.js +2 -0
- package/dist/cdn/{X5UAYUNL.js → BLJAHET2.js} +1 -1
- package/dist/cdn/{VHJSRDE4.js → CFGT4HQ7.js} +1 -1
- package/dist/cdn/CGD5GENR.js +2 -0
- package/dist/cdn/DW6PMJIB.js +2 -0
- package/dist/cdn/E4GRYYZA.js +2 -0
- package/dist/cdn/FYFDHMAN.js +2 -0
- package/dist/cdn/{RIRETHHL.js → G4FCTRVU.js} +1 -1
- package/dist/cdn/GGSCB7MM.js +2 -0
- package/dist/cdn/ID7AT6M5.js +2 -0
- package/dist/cdn/{WYDUTSDC.js → IL5K5FGZ.js} +1 -1
- package/dist/cdn/{SXWQBHG3.js → INHQ3RYK.js} +1 -1
- package/dist/cdn/{7CENB7GZ.js → IXFUVPOA.js} +1 -1
- package/dist/cdn/{6WV5RHUP.js → IXPAJUSY.js} +2 -2
- package/dist/cdn/{43B43AY2.js → JYIVPBFH.js} +1 -1
- package/dist/cdn/{W4SQ3QCZ.js → KZS3PUUX.js} +1 -1
- package/dist/cdn/{NHJ3PDXY.js → MYQ4CLQO.js} +1 -1
- package/dist/cdn/{OMP25CVT.js → OFK3BLGF.js} +1 -1
- package/dist/cdn/{3M2OCTTN.js → QB6PRJZ6.js} +1 -1
- package/dist/cdn/{IJYN5YEP.js → TXYMLRHL.js} +1 -1
- package/dist/cdn/U3KZNPKY.js +2 -0
- package/dist/cdn/WCEU5ZCM.js +2 -0
- package/dist/cdn/{4AQ43ENS.js → WKTEY3AU.js} +1 -1
- package/dist/cdn/{HBE3W2BQ.js → XDQDTW2I.js} +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +38 -38
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +51 -110
- package/dist/components/arcgis-coordinate-conversion/customElement.js +198 -250
- package/dist/components/arcgis-coordinate-conversion/index.js +3 -12
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +427 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +361 -0
- package/dist/components/arcgis-coordinate-conversion-next/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-conversion-next/index.js +19 -0
- package/dist/components/arcgis-coordinate-conversion-next/types.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +59 -52
- package/dist/components/arcgis-expand/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +18 -15
- package/dist/components/arcgis-measurement-content/customElement.js +5 -5
- package/dist/components/arcgis-print/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.js +10 -4
- package/dist/components/arcgis-print-dpi-input/customElement.js +22 -14
- package/dist/components/arcgis-search/customElement.d.ts +2 -2
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -2
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +16 -16
- package/dist/components/arcgis-value-picker/customElement.d.ts +1 -0
- package/dist/components/arcgis-value-picker-collection/customElement.d.ts +1 -0
- package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +1 -0
- package/dist/components/arcgis-value-picker-label/customElement.d.ts +1 -0
- package/dist/components/arcgis-value-picker-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.js +108 -102
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +9 -1
- package/dist/types/preact.d.ts +10 -1
- package/dist/types/react.d.ts +11 -1
- package/dist/types/stencil.d.ts +9 -1
- package/package.json +5 -5
- package/dist/cdn/4C4DRKA5.js +0 -2
- package/dist/cdn/6SY6H3FZ.js +0 -2
- package/dist/cdn/A5MKHCZ4.js +0 -2
- package/dist/cdn/BG3VNWG6.js +0 -2
- package/dist/cdn/CRJEQWDO.js +0 -2
- package/dist/cdn/FKJU4SJG.js +0 -2
- package/dist/cdn/I6KMMQ5H.js +0 -2
- package/dist/cdn/JOOGE4FT.js +0 -2
- package/dist/cdn/PKJFYEJ5.js +0 -2
- package/dist/cdn/SNOTVPX5.js +0 -2
- package/dist/cdn/XHF7LKTV.js +0 -2
- package/dist/cdn/YY7OOTKK.js +0 -2
- /package/dist/cdn/{R6G7YQAK.js → 2W5RV3EJ.js} +0 -0
- /package/dist/cdn/{YSJ2NU2N.js → 3TRATNZV.js} +0 -0
- /package/dist/cdn/{BALE27RC.js → 4JWK27SA.js} +0 -0
- /package/dist/cdn/{HHVQ6PZP.js → 576HMH2U.js} +0 -0
- /package/dist/cdn/{WDDHDMHF.js → 6HLNUCC6.js} +0 -0
- /package/dist/cdn/{OKZBZTFG.js → 6P4ZUURU.js} +0 -0
- /package/dist/cdn/{YDOV4SQ2.js → 7C4EVWIY.js} +0 -0
- /package/dist/cdn/{M3RQA7LC.js → 7HIZWVK6.js} +0 -0
- /package/dist/cdn/{3WCEFKJX.js → 7TQJL7VJ.js} +0 -0
- /package/dist/cdn/{QBLPJW3F.js → AJP5JNQF.js} +0 -0
- /package/dist/cdn/{KODINAEM.js → AYAJUXKW.js} +0 -0
- /package/dist/cdn/{U5WUAQYQ.js → BD5KLEZ5.js} +0 -0
- /package/dist/cdn/{3NSVHKCX.js → BZ5ABB6V.js} +0 -0
- /package/dist/cdn/{YGVTAUE6.js → C2SACA5M.js} +0 -0
- /package/dist/cdn/{ACZBI3TS.js → CLA7JEOB.js} +0 -0
- /package/dist/cdn/{KOSOMJZF.js → CVOGDYXF.js} +0 -0
- /package/dist/cdn/{XVEQWFE4.js → DAG74RH4.js} +0 -0
- /package/dist/cdn/{S6ARJLXF.js → EF6UGGVN.js} +0 -0
- /package/dist/cdn/{NFC5RKO7.js → EIGHVEDW.js} +0 -0
- /package/dist/cdn/{XQ5DUVE2.js → F3XRLP5D.js} +0 -0
- /package/dist/cdn/{VZLSY2HC.js → FGKRDCR2.js} +0 -0
- /package/dist/cdn/{UGILYDTR.js → FT6K7BUM.js} +0 -0
- /package/dist/cdn/{CSLP3Y5Q.js → JVGSVJAU.js} +0 -0
- /package/dist/cdn/{5U45EC5U.js → LSRIBDWV.js} +0 -0
- /package/dist/cdn/{3DVOY4BQ.js → MYZL5VDP.js} +0 -0
- /package/dist/cdn/{VOI7MTIP.js → NICHYMLV.js} +0 -0
- /package/dist/cdn/{ZHJBZYZ4.js → NTJ62UF7.js} +0 -0
- /package/dist/cdn/{PS4ID2TE.js → O3VMMGXZ.js} +0 -0
- /package/dist/cdn/{RT5PKDE3.js → OGMU6GEI.js} +0 -0
- /package/dist/cdn/{LCL6A5WY.js → QJUKEGK3.js} +0 -0
- /package/dist/cdn/{FVOWGP5P.js → R4AK2FA4.js} +0 -0
- /package/dist/cdn/{S372YWXF.js → RCD3M5V5.js} +0 -0
- /package/dist/cdn/{2CZRXPMB.js → T6BEKX6C.js} +0 -0
- /package/dist/cdn/{IIQPDHOL.js → UNUOJC6K.js} +0 -0
- /package/dist/cdn/{SYVTOG2B.js → W5GKPUHF.js} +0 -0
- /package/dist/cdn/{PFWDUC5T.js → W5NAYIE3.js} +0 -0
- /package/dist/cdn/{XPGK3YXK.js → WCEKLVJB.js} +0 -0
- /package/dist/cdn/{ST4PUEOI.js → XENQYCEN.js} +0 -0
- /package/dist/cdn/{2RIDZVJS.js → XRFBIBEE.js} +0 -0
- /package/dist/cdn/{6TIWCGNI.js → Y2YAHXBD.js} +0 -0
- /package/dist/cdn/{3X2K6TOS.js → Z5SFNS2P.js} +0 -0
- /package/dist/cdn/{2GDVOK6V.js → ZJXSHJF2.js} +0 -0
- /package/dist/cdn/{NY56F774.js → ZNWI3SU6.js} +0 -0
|
@@ -36,29 +36,29 @@ function ne(r, e) {
|
|
|
36
36
|
return (r % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class $e {
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
this.#
|
|
39
|
+
#e;
|
|
40
|
+
#i;
|
|
41
|
+
#r = Te(() => {
|
|
42
|
+
this.#t();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
|
-
this.#
|
|
45
|
+
this.#i = e;
|
|
46
46
|
let t;
|
|
47
|
-
Z(this.#
|
|
47
|
+
Z(this.#r, () => {
|
|
48
48
|
t = e();
|
|
49
|
-
}), this.#
|
|
49
|
+
}), this.#e = ke(t);
|
|
50
50
|
}
|
|
51
|
-
#
|
|
52
|
-
const e = this.#
|
|
53
|
-
Z(this.#
|
|
54
|
-
this.#
|
|
51
|
+
#t() {
|
|
52
|
+
const e = this.#e.value;
|
|
53
|
+
Z(this.#r, () => {
|
|
54
|
+
this.#e.value = this.#i(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
mutate(e) {
|
|
58
|
-
this.#
|
|
58
|
+
this.#e.value = e;
|
|
59
59
|
}
|
|
60
60
|
get value() {
|
|
61
|
-
return this.#
|
|
61
|
+
return this.#e.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function A(r) {
|
|
@@ -236,7 +236,7 @@ const Ke = be`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0
|
|
|
236
236
|
};
|
|
237
237
|
class Xe extends _e {
|
|
238
238
|
constructor() {
|
|
239
|
-
super(...arguments), this.messages = ve({ blocking: !0 }), this.#
|
|
239
|
+
super(...arguments), this.messages = ve({ blocking: !0 }), this.#i = "none", this.#r = null, this.#l = q(), this.#g = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#o = {}, this._offset = A((e) => p(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = A((e) => {
|
|
240
240
|
if (p(this._lighting)) {
|
|
241
241
|
const t = this._lighting.displayUTCOffset ?? this.utcOffset ?? 0, i = this._lighting.date;
|
|
242
242
|
if (Y(i)) {
|
|
@@ -257,32 +257,39 @@ class Xe extends _e {
|
|
|
257
257
|
get _view() {
|
|
258
258
|
return this.view?.type === "3d" ? this.view : void 0;
|
|
259
259
|
}
|
|
260
|
-
#
|
|
261
|
-
#r;
|
|
262
|
-
#n;
|
|
260
|
+
#e;
|
|
263
261
|
#i;
|
|
262
|
+
#r;
|
|
263
|
+
#t;
|
|
264
264
|
#l;
|
|
265
|
-
#
|
|
265
|
+
#g;
|
|
266
266
|
#u;
|
|
267
267
|
#p;
|
|
268
268
|
#c;
|
|
269
|
-
#
|
|
270
|
-
return this.#a || this.#c ? !1 : (this.#
|
|
269
|
+
#n(e, t) {
|
|
270
|
+
return this.#a || this.#c ? !1 : (this.#o[e] = t, !0);
|
|
271
271
|
}
|
|
272
272
|
#m() {
|
|
273
|
-
|
|
273
|
+
const { utcOffset: e, timeSliderPosition: t, localDate: i, directShadowsDisabled: n, sunlightingDisabled: s } = this.#o;
|
|
274
|
+
if (this.#c = !0, e != null)
|
|
275
|
+
if (t == null && i == null) {
|
|
276
|
+
const o = this._lighting;
|
|
277
|
+
p(o) ? (o.displayUTCOffset = e, this.#h(e, o)) : this._offset.mutate(e);
|
|
278
|
+
} else
|
|
279
|
+
this.utcOffset = e;
|
|
280
|
+
t != null && (this.timeSliderPosition = t), i && (this.localDate = i), n != null && (this._directShadowsDisabled = n), s != null && (this._sunlightingDisabled = s), this.#o = {}, this.#c = !1;
|
|
274
281
|
}
|
|
275
282
|
#d() {
|
|
276
|
-
if (this.#
|
|
283
|
+
if (this.#t)
|
|
277
284
|
return;
|
|
278
285
|
const e = xe(() => {
|
|
279
|
-
if (this.#
|
|
286
|
+
if (this.#t?.remove(), p(this._lighting)) {
|
|
280
287
|
const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate, s = i - t * 60, o = T(n, s, "minutes");
|
|
281
288
|
this._lighting.date = o, this._lighting.displayUTCOffset = t;
|
|
282
289
|
}
|
|
283
290
|
}, { timeout: this.#u });
|
|
284
|
-
this.#
|
|
285
|
-
De(e), this.#
|
|
291
|
+
this.#t = N(() => {
|
|
292
|
+
De(e), this.#t = void 0;
|
|
286
293
|
});
|
|
287
294
|
}
|
|
288
295
|
#f({ scale: e, disabled: t }) {
|
|
@@ -300,18 +307,18 @@ class Xe extends _e {
|
|
|
300
307
|
this._stopPlaying(), this.currentSeason = n.currentTarget.value;
|
|
301
308
|
} })}</calcite-label>`;
|
|
302
309
|
}
|
|
303
|
-
#
|
|
310
|
+
#o;
|
|
304
311
|
get #b() {
|
|
305
|
-
return this.#
|
|
312
|
+
return this.#g?.value?.startTime;
|
|
306
313
|
}
|
|
307
314
|
get localDateAsString() {
|
|
308
315
|
return this._localDate.value ?? void 0;
|
|
309
316
|
}
|
|
310
317
|
get _playingState() {
|
|
311
|
-
return this.#
|
|
318
|
+
return this.#i;
|
|
312
319
|
}
|
|
313
320
|
set _playingState(e) {
|
|
314
|
-
this.#
|
|
321
|
+
this.#i = e, this.#s?.remove(), e === "none" ? this.#e?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
|
|
315
322
|
}
|
|
316
323
|
get _lighting() {
|
|
317
324
|
return this._view?.environment?.lighting;
|
|
@@ -320,12 +327,12 @@ class Xe extends _e {
|
|
|
320
327
|
return !p(this._lighting);
|
|
321
328
|
}
|
|
322
329
|
set _sunlightingDisabled(e) {
|
|
323
|
-
this.#
|
|
330
|
+
this.#n("sunlightingDisabled", e);
|
|
324
331
|
const t = this._view?.environment;
|
|
325
332
|
if (t == null)
|
|
326
333
|
return;
|
|
327
|
-
const i = t.lighting, n = this.#
|
|
328
|
-
this.#
|
|
334
|
+
const i = t.lighting, n = this.#r;
|
|
335
|
+
this.#r = i;
|
|
329
336
|
const s = {
|
|
330
337
|
directShadowsEnabled: i.directShadowsEnabled,
|
|
331
338
|
glow: i.glow
|
|
@@ -361,26 +368,26 @@ class Xe extends _e {
|
|
|
361
368
|
return !this._lighting?.directShadowsEnabled;
|
|
362
369
|
}
|
|
363
370
|
set _directShadowsDisabled(e) {
|
|
364
|
-
this.#
|
|
371
|
+
this.#n("directShadowsDisabled", e), this._lighting && (this._lighting.directShadowsEnabled = !e);
|
|
365
372
|
}
|
|
366
373
|
get utcOffset() {
|
|
367
374
|
return this._offset.value;
|
|
368
375
|
}
|
|
369
376
|
set utcOffset(e) {
|
|
370
|
-
this._offset.mutate(e), !this.#
|
|
377
|
+
this._offset.mutate(e), !this.#n("utcOffset", e) && this.#d();
|
|
371
378
|
}
|
|
372
379
|
get timeSliderPosition() {
|
|
373
380
|
return this._timesliderPosition.value;
|
|
374
381
|
}
|
|
375
382
|
set timeSliderPosition(e) {
|
|
376
|
-
this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#
|
|
383
|
+
this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#n("timeSliderPosition", e) && this.#d();
|
|
377
384
|
}
|
|
378
385
|
get localDate() {
|
|
379
386
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
380
387
|
}
|
|
381
388
|
set localDate(e) {
|
|
382
389
|
if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/u.test(e)) {
|
|
383
|
-
if (this._localDate.mutate(e), this.#
|
|
390
|
+
if (this._localDate.mutate(e), this.#n("localDate", e))
|
|
384
391
|
return;
|
|
385
392
|
this.#d();
|
|
386
393
|
return;
|
|
@@ -389,7 +396,7 @@ class Xe extends _e {
|
|
|
389
396
|
if (Y(t)) {
|
|
390
397
|
t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
|
|
391
398
|
const i = t.toISOString().slice(0, 10);
|
|
392
|
-
if (this._localDate.mutate(i), this.#
|
|
399
|
+
if (this._localDate.mutate(i), this.#n("localDate", i))
|
|
393
400
|
return;
|
|
394
401
|
this.#d();
|
|
395
402
|
}
|
|
@@ -420,7 +427,7 @@ class Xe extends _e {
|
|
|
420
427
|
this.requestUpdate();
|
|
421
428
|
})
|
|
422
429
|
]), this.manager.onDisconnected(() => {
|
|
423
|
-
this.#
|
|
430
|
+
this.#e?.remove(), this.#t?.remove(), this.#s?.remove();
|
|
424
431
|
});
|
|
425
432
|
}
|
|
426
433
|
willUpdate(e) {
|
|
@@ -438,26 +445,26 @@ class Xe extends _e {
|
|
|
438
445
|
}
|
|
439
446
|
})), await Se(ue(() => this._view?.ready, { signal: e.signal }).then(() => {
|
|
440
447
|
const t = this._lighting, i = this._view?.camera?.position;
|
|
441
|
-
if (this.#
|
|
448
|
+
if (this.#o.utcOffset == null && p(t) && t.displayUTCOffset == null && i) {
|
|
442
449
|
const s = K(i);
|
|
443
|
-
this.#
|
|
450
|
+
this.#h(s, t);
|
|
444
451
|
}
|
|
445
452
|
this.#m();
|
|
446
453
|
const n = this._playingState;
|
|
447
|
-
n !== "none" && this.#
|
|
454
|
+
n !== "none" && this.#e == null && this._play(n);
|
|
448
455
|
})), this.#a = !0;
|
|
449
456
|
}
|
|
450
457
|
#v(e, t) {
|
|
451
458
|
const i = this._lighting;
|
|
452
459
|
if (!(!this.#a || !p(i) || !i.cameraTrackingEnabled || e == null)) {
|
|
453
460
|
if (t == null && i.displayUTCOffset == null) {
|
|
454
|
-
this.#
|
|
461
|
+
this.#h(e, i);
|
|
455
462
|
return;
|
|
456
463
|
}
|
|
457
|
-
i.displayUTCOffset != null && (i.displayUTCOffset = e), this.#
|
|
464
|
+
i.displayUTCOffset != null && (i.displayUTCOffset = e), this.#h(e, i);
|
|
458
465
|
}
|
|
459
466
|
}
|
|
460
|
-
#
|
|
467
|
+
#h(e, t) {
|
|
461
468
|
this._offset.mutate(e);
|
|
462
469
|
const { minutesSinceMidnight: i, localDate: n } = P(t.date, e);
|
|
463
470
|
this._timesliderPosition.mutate(i), this._localDate.mutate(n), this.requestUpdate();
|
|
@@ -468,16 +475,16 @@ class Xe extends _e {
|
|
|
468
475
|
_stopPlaying() {
|
|
469
476
|
this._playingState = "none";
|
|
470
477
|
}
|
|
471
|
-
#
|
|
478
|
+
#s;
|
|
472
479
|
#w(e) {
|
|
473
|
-
if (this.#
|
|
480
|
+
if (this.#s)
|
|
474
481
|
return;
|
|
475
482
|
const t = setTimeout(() => {
|
|
476
483
|
const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = P(n, i);
|
|
477
|
-
this._timesliderPosition.mutate(s), this.#
|
|
484
|
+
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
478
485
|
}, this.#p);
|
|
479
|
-
this.#
|
|
480
|
-
clearTimeout(t), this.#
|
|
486
|
+
this.#s = N(() => {
|
|
487
|
+
clearTimeout(t), this.#s = void 0;
|
|
481
488
|
const i = this._lighting;
|
|
482
489
|
if (p(i)) {
|
|
483
490
|
const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = P(s, n);
|
|
@@ -486,7 +493,7 @@ class Xe extends _e {
|
|
|
486
493
|
});
|
|
487
494
|
}
|
|
488
495
|
_play(e) {
|
|
489
|
-
this.#
|
|
496
|
+
this.#e?.remove();
|
|
490
497
|
const t = this._view;
|
|
491
498
|
if (t == null || this._sunlightingDisabled)
|
|
492
499
|
return;
|
|
@@ -494,7 +501,7 @@ class Xe extends _e {
|
|
|
494
501
|
if (!p(i))
|
|
495
502
|
return;
|
|
496
503
|
let n = 0;
|
|
497
|
-
this.#
|
|
504
|
+
this.#e = Ze({
|
|
498
505
|
mode: e,
|
|
499
506
|
lighting: i,
|
|
500
507
|
beforeProgress: () => {
|
|
@@ -520,7 +527,7 @@ class Xe extends _e {
|
|
|
520
527
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
521
528
|
return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
|
|
522
529
|
this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
|
|
523
|
-
}} ${G(this.#
|
|
530
|
+
}} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
|
|
524
531
|
this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
|
|
525
532
|
}, scale: n }) })}${D({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
|
|
526
533
|
const l = +d.target.value;
|
|
@@ -8,8 +8,8 @@ import { createRef as g, ref as h } from "lit/directives/ref.js";
|
|
|
8
8
|
import C from "@arcgis/core/core/Accessor.js";
|
|
9
9
|
import { property as p, subclass as D } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
10
10
|
import { usePropertyChange as T } from "@arcgis/lumina/controllers";
|
|
11
|
-
import { m as
|
|
12
|
-
import { LitElement as
|
|
11
|
+
import { m as I } from "../../chunks/useViewModel.js";
|
|
12
|
+
import { LitElement as k, createEvent as H, safeClassMap as u, nothing as M } from "@arcgis/lumina";
|
|
13
13
|
import { classes as m } from "@arcgis/toolkit/dom";
|
|
14
14
|
var P = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (i, e, t, a) => {
|
|
15
15
|
for (var s = a > 1 ? void 0 : a ? O(e, t) : e, n = i.length - 1, l; n >= 0; n--)
|
|
@@ -117,8 +117,8 @@ c([
|
|
|
117
117
|
o = c([
|
|
118
118
|
D("map-components.expand.ExpandViewModel")
|
|
119
119
|
], o);
|
|
120
|
-
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto
|
|
121
|
-
class z extends
|
|
120
|
+
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
121
|
+
class z extends k {
|
|
122
122
|
constructor() {
|
|
123
123
|
super(...arguments), this.popoverEl = g(), this.messages = E({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = T()("expanded"), this.arcgisReady = H();
|
|
124
124
|
}
|
|
@@ -216,7 +216,7 @@ class z extends I {
|
|
|
216
216
|
}
|
|
217
217
|
_renderToggleButton() {
|
|
218
218
|
const { expanded: e, expandTitle: t, expandIcon: a, collapseIcon: s } = this, n = e ? s : a;
|
|
219
|
-
return r`<calcite-action class=${u(m("action", "icon", { "icon-flip": n === f || n === x }))} @click=${this.toggle} .text=${t} title=${t ?? M} .icon=${n} .scale=${this.visualScale} ${h(this.toggleActionEl)}></calcite-action>`;
|
|
219
|
+
return r`<calcite-action class=${u(m("action", "icon", { "icon-flip": n === f || n === x }))} @click=${this.toggle} .text=${t} title=${t ?? M} .icon=${n} .scale=${this.visualScale} appearance=solid ${h(this.toggleActionEl)}></calcite-action>`;
|
|
220
220
|
}
|
|
221
221
|
_renderToggle() {
|
|
222
222
|
return r`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`;
|
|
@@ -155,11 +155,11 @@ class ie extends Z {
|
|
|
155
155
|
}
|
|
156
156
|
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: r }) {
|
|
157
157
|
const o = p(i, this.operationalItems), a = p(e, this.operationalItems), s = p(t, this.operationalItems);
|
|
158
|
-
this.viewModel.moveListItem(o, s, a, r);
|
|
158
|
+
r == null || !o || !a || !s || this.viewModel.moveListItem(o, s, a, r);
|
|
159
159
|
}
|
|
160
160
|
_onCalciteListDragEnd(e) {
|
|
161
161
|
const { fromEl: t, dragEl: i, oldIndex: r } = e;
|
|
162
|
-
t.insertBefore(i, t.children[r]);
|
|
162
|
+
r == null || !t || !i || t.insertBefore(i, t.children[r]);
|
|
163
163
|
}
|
|
164
164
|
_onCalciteListOrderChange(e) {
|
|
165
165
|
const { _lastDragDetail: t } = this, { toEl: i, fromEl: r, dragEl: o, newIndex: a } = e, s = t?.newIndex === a && t?.dragEl === o && t?.toEl === i && t?.fromEl === r;
|
|
@@ -45,11 +45,11 @@ function ne(i, e) {
|
|
|
45
45
|
return m ? c`<span aria-hidden=true class=${d(P(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Ce(Te(m))}></span>` : null;
|
|
46
46
|
}
|
|
47
47
|
function te(i, e, l) {
|
|
48
|
-
const { item: m, css: a, handleAction:
|
|
49
|
-
return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(
|
|
48
|
+
const { item: m, css: a, handleAction: v } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
|
|
49
|
+
return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(v, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
|
|
50
50
|
}
|
|
51
51
|
function Ge(i) {
|
|
52
|
-
const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance:
|
|
52
|
+
const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: v, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
|
|
53
53
|
let V = null;
|
|
54
54
|
m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
55
55
|
let G = null;
|
|
@@ -58,16 +58,16 @@ function Ge(i) {
|
|
|
58
58
|
(i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
|
|
59
59
|
}
|
|
60
60
|
let H = null;
|
|
61
|
-
if ("visible" in e && "visibleToggle" in a &&
|
|
61
|
+
if ("visible" in e && "visibleToggle" in a && v) {
|
|
62
62
|
const t = D(l);
|
|
63
63
|
if (t !== "inherited") {
|
|
64
64
|
const s = xe({
|
|
65
65
|
visible: e.visible,
|
|
66
66
|
exclusive: t === "exclusive",
|
|
67
|
-
visibilityAppearance:
|
|
68
|
-
}), o =
|
|
69
|
-
H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(
|
|
70
|
-
De(
|
|
67
|
+
visibilityAppearance: v
|
|
68
|
+
}), o = v === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
|
|
69
|
+
H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
|
|
70
|
+
De(y.currentTarget, e.layer?.id), ee(e, l);
|
|
71
71
|
}} .slot=${o ? "actions-start" : "actions-end"} .text=${p ?? ""} title=${p ?? r}>${o ? null : c`<calcite-icon class=${d(P({
|
|
72
72
|
[a.visibleIcon]: t !== "exclusive" && e.visible
|
|
73
73
|
}))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
|
|
@@ -82,8 +82,8 @@ function Ge(i) {
|
|
|
82
82
|
{
|
|
83
83
|
const t = e.panel;
|
|
84
84
|
if (t?.visible) {
|
|
85
|
-
const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 },
|
|
86
|
-
q = c`<calcite-action .active=${s} .disabled=${p} .icon=${
|
|
85
|
+
const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(h);
|
|
86
|
+
q = c`<calcite-action .active=${s} .disabled=${p} .icon=${y} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
let j = null;
|
|
@@ -118,11 +118,14 @@ function Ge(i) {
|
|
|
118
118
|
}
|
|
119
119
|
let z = null;
|
|
120
120
|
if ("children" in e) {
|
|
121
|
-
const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o),
|
|
122
|
-
(p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${
|
|
121
|
+
const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), y = o?.type === "group", fe = !h && !p && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
|
|
122
|
+
(p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
|
|
123
123
|
}
|
|
124
124
|
let E = null;
|
|
125
|
-
|
|
125
|
+
if (e.error) {
|
|
126
|
+
const t = "layerError" in n ? n.layerError : n.tableError;
|
|
127
|
+
E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
|
|
128
|
+
} else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
|
|
126
129
|
const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), $e = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), ge = (t) => {
|
|
127
130
|
e.actionsOpen = t.currentTarget.open;
|
|
128
131
|
};
|
|
@@ -133,10 +136,10 @@ function Ge(i) {
|
|
|
133
136
|
}} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${$e}</calcite-action-menu>`);
|
|
134
137
|
let w = null;
|
|
135
138
|
k === 1 && K ? w = te(i, K, !1) : k > 1 && (w = Q);
|
|
136
|
-
const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b,
|
|
139
|
+
const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ye = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ve = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
|
|
137
140
|
return queueMicrotask(() => {
|
|
138
141
|
Oe($.value ?? null, e, ue, me), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = $.value);
|
|
139
|
-
}), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) ||
|
|
142
|
+
}), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ye} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ve} .value=${e} @focusin=${() => {
|
|
140
143
|
O?.(e), $.value?.classList.add(a.itemActive);
|
|
141
144
|
}} @focusout=${() => {
|
|
142
145
|
R?.(), $.value?.classList.remove(a.itemActive);
|
|
@@ -6,8 +6,8 @@ import c from "@arcgis/core/applications/Components/QuantityFormatter.js";
|
|
|
6
6
|
import { LitElement as o, safeClassMap as n } from "@arcgis/lumina";
|
|
7
7
|
import { generateGuid as u } from "@arcgis/toolkit/string";
|
|
8
8
|
import { f as g } from "../../chunks/measurementUtils.js";
|
|
9
|
-
const
|
|
10
|
-
class
|
|
9
|
+
const m = s`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:auto minmax(0,1fr) max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:normal;min-width:0;max-width:100%;align-self:center;justify-self:flex-end;text-align:end;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:normal;text-wrap:pretty;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left;grid-column:3;align-self:center}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`;
|
|
10
|
+
class p extends o {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this._formatter = new c(), this._baseId = u(), this._hasActionsContent = !1, this.layout = "horizontal", this.items = [], this.state = "disabled", this.unsupportedLabel = "";
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@ class m extends o {
|
|
|
15
15
|
this.properties = { _hasActionsContent: 16, hintLabel: 1, layout: 1, items: 0, state: 1, unsupportedLabel: 1 };
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
|
-
this.styles =
|
|
18
|
+
this.styles = m;
|
|
19
19
|
}
|
|
20
20
|
async load() {
|
|
21
21
|
await this._formatter.when();
|
|
@@ -61,7 +61,7 @@ function v(t) {
|
|
|
61
61
|
disabled: t.measurement.state !== "available"
|
|
62
62
|
})}><calcite-label layout=inline class="title" .for=${t.valueId}>${t.title ?? ""}</calcite-label>${h({ value: a })}</div>`;
|
|
63
63
|
}
|
|
64
|
-
r("arcgis-measurement-content",
|
|
64
|
+
r("arcgis-measurement-content", p);
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
p as ArcgisMeasurementContent
|
|
67
67
|
};
|
|
@@ -498,7 +498,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
498
498
|
*/
|
|
499
499
|
accessor outSpatialReference: SpatialReference | null | undefined;
|
|
500
500
|
/**
|
|
501
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
501
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
502
502
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
503
503
|
* This is especially helpful when working with a [custom template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
504
504
|
*
|
|
@@ -6,11 +6,11 @@ import p from "@arcgis/core/widgets/Print/PrintViewModel.js";
|
|
|
6
6
|
import { LitElement as m, createEvent as a, safeClassMap as w } from "@arcgis/lumina";
|
|
7
7
|
import { usePropertyChange as u } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { reEmitEvent as l } from "@arcgis/lumina/controllers/accessor";
|
|
9
|
-
import { u as
|
|
10
|
-
import { m as
|
|
9
|
+
import { u as f } from "../../chunks/useT9n.js";
|
|
10
|
+
import { m as v } from "../../chunks/useViewModel.js";
|
|
11
11
|
import { g as n } from "../../chunks/globalCss.js";
|
|
12
12
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
-
const _ = h`.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{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`, b =
|
|
13
|
+
const _ = h`.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{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`, b = v(p), d = (o) => {
|
|
14
14
|
if (!o)
|
|
15
15
|
return "all";
|
|
16
16
|
const e = typeof o == "string" ? o.split(",").map((t) => t.trim()).filter((t) => t) : [o];
|
|
@@ -18,7 +18,7 @@ const _ = h`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .
|
|
|
18
18
|
};
|
|
19
19
|
class x extends m {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this.messages =
|
|
21
|
+
super(...arguments), this.messages = f({ blocking: !0 }), this.viewModel = b(this), this.error = null, this._showTemplates = !1, this.view = this.viewModel.view, this.hideHeader = !1, this.icon = "print", this.hideAdvancedOptions = !1, this.allowedFormats = this.viewModel.allowedFormats, this.allowedLayouts = this.viewModel.allowedLayouts, this.autoPopulateAuthor = !1, this.exportedLinks = this.viewModel.exportedLinks, this.extraParameters = this.viewModel.extraParameters, this.headingLevel = 3, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1, this.excludeOrganizationTemplates = !1, this.outSpatialReference = this.viewModel.outSpatialReference, this.portal = this.viewModel.portal, this.showPrintAreaEnabled = this.viewModel.showPrintAreaEnabled, this.printServiceUrl = this.viewModel.printServiceUrl, this.templateCustomTextElements = this.viewModel.templateCustomTextElements, this.templateOptions = this.viewModel.templateOptions, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisComplete = l(() => this.viewModel, "complete"), this.arcgisPropertyChange = u()("state"), this.arcgisReady = a(), this.arcgisSubmit = l(() => this.viewModel, "submit"), this.arcgisBrowseTemplatesChange = a(), this.arcgisSaveAs = a();
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.properties = { error: 16, _showTemplates: 16, view: 0, hideHeader: 5, referenceElement: 1, icon: 1, hideAdvancedOptions: 5, allowedFormats: [1, { type: String, converter: d }], allowedLayouts: [1, { type: String, converter: d }], autoPopulateAuthor: 5, allowedFormatsForSaving: 1, exportedLinks: 0, extraParameters: 0, headingLevel: 9, hideFeatureAttributes: 5, hideIncludeTables: 5, excludeDefaultTemplates: 5, excludeOrganizationTemplates: 5, outSpatialReference: 0, portal: 0, showPrintAreaEnabled: 5, printServiceUrl: 1, showSaveAs: 5, templateCustomTextElements: 0, templateOptions: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
@@ -26,6 +26,12 @@ class x extends m {
|
|
|
26
26
|
static {
|
|
27
27
|
this.styles = _;
|
|
28
28
|
}
|
|
29
|
+
get excludeDefaultTemplates() {
|
|
30
|
+
return !this.viewModel.includeDefaultTemplates;
|
|
31
|
+
}
|
|
32
|
+
set excludeDefaultTemplates(e) {
|
|
33
|
+
this.viewModel.includeDefaultTemplates = !e;
|
|
34
|
+
}
|
|
29
35
|
addPortalTemplate(e) {
|
|
30
36
|
return this.viewModel.addPortalTemplate(e);
|
|
31
37
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { html as
|
|
4
|
-
import { watch as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
|
|
2
|
+
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
+
import { html as m } from "lit";
|
|
4
|
+
import { watch as o } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as h } from "@arcgis/lumina";
|
|
6
|
+
import { i as u } from "../../chunks/utils3.js";
|
|
7
|
+
class d extends h {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(...arguments), this._dpi = 1;
|
|
9
10
|
}
|
|
@@ -12,22 +13,29 @@ class p extends s {
|
|
|
12
13
|
}
|
|
13
14
|
loaded() {
|
|
14
15
|
this.manager.onLifecycle(() => [
|
|
15
|
-
|
|
16
|
+
o(() => this.viewModel.templateOptions.dpi, (e) => this._dpi = e <= 0 ? 1 : e, { initial: !0 })
|
|
16
17
|
]);
|
|
17
18
|
}
|
|
18
|
-
_handleDPIChange(
|
|
19
|
-
const
|
|
20
|
-
if (Number.isNaN(
|
|
21
|
-
|
|
19
|
+
_handleDPIChange(e) {
|
|
20
|
+
const t = this.viewModel.templateOptions, i = Number(e.target.value);
|
|
21
|
+
if (Number.isNaN(i) || i <= 0 || !Number.isFinite(i)) {
|
|
22
|
+
e.target.value = `${this._dpi}`;
|
|
22
23
|
return;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
+
if (u(t.layout)) {
|
|
26
|
+
const a = t.dpi > 0 ? t.dpi : this._dpi, n = t.width, r = t.height;
|
|
27
|
+
if (a > 0 && typeof n == "number" && typeof r == "number" && Number.isFinite(n) && Number.isFinite(r) && i !== a) {
|
|
28
|
+
const s = i / a;
|
|
29
|
+
t.width = Math.max(1, Math.round(n * s)), t.height = Math.max(1, Math.round(r * s));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
t.dpi = i;
|
|
25
33
|
}
|
|
26
34
|
render() {
|
|
27
|
-
return
|
|
35
|
+
return m`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberChange=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`;
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
|
-
|
|
38
|
+
p("arcgis-print-dpi-input", d);
|
|
31
39
|
export {
|
|
32
|
-
|
|
40
|
+
d as PrintDPIInput
|
|
33
41
|
};
|
|
@@ -105,7 +105,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
105
105
|
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
106
106
|
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/). This property
|
|
107
107
|
* may contain [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/)
|
|
108
|
-
* [locators](
|
|
108
|
+
* [locators](https://doc.esri.com/en/arcgis-enterprise/latest/administer/geocode-services.html)
|
|
109
109
|
* and any web map or web scene [configurable search sources](http://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm).
|
|
110
110
|
* Web maps or web scenes may contain
|
|
111
111
|
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
@@ -269,7 +269,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
269
269
|
*/
|
|
270
270
|
accessor popupTemplate: PopupTemplate | null | undefined;
|
|
271
271
|
/**
|
|
272
|
-
* It is possible to search a specified portal instance's [locator services](
|
|
272
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
273
273
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
274
274
|
*
|
|
275
275
|
* @since 4.8
|