@arcgis/map-components 6.0.0-next.19 → 6.0.0-next.20
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/{54252KWO.js → 4CLSMFD2.js} +1 -1
- package/dist/cdn/5RCFYMHK.js +2 -0
- package/dist/cdn/{WZL4TRBL.js → 6DDIOOI6.js} +1 -1
- package/dist/cdn/7FA44B44.js +2 -0
- package/dist/cdn/{ZJPWEZXZ.js → AXJE2SZV.js} +1 -1
- package/dist/cdn/{ECYWLMDD.js → CD2XIXN5.js} +1 -1
- package/dist/cdn/{P3AEIHWE.js → ELAKAKPE.js} +1 -1
- package/dist/cdn/{ODSZ7JZM.js → EVJFKABL.js} +1 -1
- package/dist/cdn/{HZDWPWBH.js → EWM5PERI.js} +1 -1
- package/dist/cdn/{AQ4GVWNJ.js → GD4XR5XA.js} +1 -1
- package/dist/cdn/{3LU4FSJG.js → J7VECW7F.js} +1 -1
- package/dist/cdn/{U3R2OX36.js → JPFLHUNR.js} +1 -1
- package/dist/cdn/{Z5GIFGHJ.js → KM7PWRG2.js} +1 -1
- package/dist/cdn/{GFYLYX2V.js → L4HKKYNC.js} +1 -1
- package/dist/cdn/{SAIBFBPE.js → LXLZB2JC.js} +1 -1
- package/dist/cdn/{77Q4KCLS.js → M2HYKS62.js} +1 -1
- package/dist/cdn/{35YLXOQ5.js → OBQUHPHJ.js} +1 -1
- package/dist/cdn/{4VNMYUM4.js → QPHKPPYM.js} +1 -1
- package/dist/cdn/ROHGHCK6.js +2 -0
- package/dist/cdn/{F72OTEK2.js → T2ONRGQX.js} +1 -1
- package/dist/cdn/{WC2N2XG6.js → TFXSKVB7.js} +1 -1
- package/dist/cdn/{NMGC3KRM.js → WV2GLDRQ.js} +1 -1
- package/dist/cdn/{ZS5IADYN.js → Y3S6WJN2.js} +1 -1
- package/dist/cdn/{NUZBBPNE.js → Z24QDG3E.js} +2 -2
- package/dist/cdn/ZPA5JUPD.js +2 -0
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/attachment-utils.js +5 -5
- package/dist/components/arcgis-add-attachment-view/customElement.d.ts +9 -9
- package/dist/components/arcgis-attachment-detail-view/customElement.d.ts +9 -9
- package/dist/components/arcgis-attachment-preview/customElement.d.ts +9 -9
- package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +9 -9
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +9 -9
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +29 -29
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +9 -9
- package/dist/components/arcgis-link-chart/customElement.d.ts +7 -4
- package/dist/components/arcgis-map/customElement.d.ts +7 -4
- package/dist/components/arcgis-scene/customElement.d.ts +7 -4
- package/dist/components/arcgis-search/customElement.d.ts +1 -2
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +12 -4
- package/dist/components/arcgis-slider-scale-range/spriteSheetsUtils.d.ts +8 -3
- package/dist/components/arcgis-swipe/customElement.d.ts +10 -9
- package/dist/components/arcgis-swipe/customElement.js +246 -46
- package/dist/components/arcgis-swipe/types.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +100 -20
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +0 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +117 -29
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +56 -9
- 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 +8 -8
- package/dist/cdn/2U3VASQT.js +0 -2
- package/dist/cdn/LYYBCY4N.js +0 -2
- package/dist/cdn/TN6WTZA2.js +0 -2
- package/dist/cdn/ZGOAZB5L.js +0 -2
- /package/dist/cdn/{YMN2Q7CW.js → 23L5GSFN.js} +0 -0
- /package/dist/cdn/{MQL4JTYG.js → 33LESQ6T.js} +0 -0
- /package/dist/cdn/{7QUHJ4F6.js → 6LUCQLB7.js} +0 -0
- /package/dist/cdn/{QYMZT7OC.js → 7SDUVBEL.js} +0 -0
- /package/dist/cdn/{NUCXXE6V.js → AKAOYYJ7.js} +0 -0
- /package/dist/cdn/{37Z3E4ZM.js → BP7H6IBX.js} +0 -0
- /package/dist/cdn/{SYIOPNRF.js → CEVISDMV.js} +0 -0
- /package/dist/cdn/{TS32SDVT.js → DQDUD556.js} +0 -0
- /package/dist/cdn/{EIQ3BKQI.js → DQRQZK5Y.js} +0 -0
- /package/dist/cdn/{O2VAKVIY.js → DRD2FAEC.js} +0 -0
- /package/dist/cdn/{7YXE3BUX.js → DWQQDLIU.js} +0 -0
- /package/dist/cdn/{GXIGMIXV.js → EGD2CSA7.js} +0 -0
- /package/dist/cdn/{C4EAONGF.js → ENHMLZOY.js} +0 -0
- /package/dist/cdn/{RGECACLD.js → FIYZBOAN.js} +0 -0
- /package/dist/cdn/{6MRDTILE.js → GE4QV5JC.js} +0 -0
- /package/dist/cdn/{72FJMPJ2.js → GGUWUNUA.js} +0 -0
- /package/dist/cdn/{T62G5MRK.js → ITRBNYSS.js} +0 -0
- /package/dist/cdn/{2JLC2JV7.js → JAH2AKJ5.js} +0 -0
- /package/dist/cdn/{CTVCZ2FU.js → KZUUBMYO.js} +0 -0
- /package/dist/cdn/{LCTJF3NT.js → LFSVKJXI.js} +0 -0
- /package/dist/cdn/{YASANB6O.js → MGE3J5KE.js} +0 -0
- /package/dist/cdn/{Y7KMV2PI.js → MPIIQAQO.js} +0 -0
- /package/dist/cdn/{LGPNRKDT.js → ONSMVZAM.js} +0 -0
- /package/dist/cdn/{JZSRPSRH.js → P3ZJLVKC.js} +0 -0
- /package/dist/cdn/{MM4N6C4V.js → PBXO27K2.js} +0 -0
- /package/dist/cdn/{YRYYWFPY.js → PSD74QRS.js} +0 -0
- /package/dist/cdn/{7P23WI52.js → PST64E7E.js} +0 -0
- /package/dist/cdn/{AE26KT54.js → S5MD2X3H.js} +0 -0
- /package/dist/cdn/{RENVCO3U.js → SFMD5PPC.js} +0 -0
- /package/dist/cdn/{VNY7TNRC.js → SIIF27TS.js} +0 -0
- /package/dist/cdn/{EULM4L53.js → T5XVILYA.js} +0 -0
- /package/dist/cdn/{OLEIOWZX.js → TT57O767.js} +0 -0
- /package/dist/cdn/{ORS7OWLJ.js → UN65FKRA.js} +0 -0
- /package/dist/cdn/{LNZRHKHG.js → V3HQQ6TJ.js} +0 -0
- /package/dist/cdn/{EVCKANRW.js → V7OBQRSG.js} +0 -0
- /package/dist/cdn/{KDO2EJA3.js → VCJ6M3PX.js} +0 -0
- /package/dist/cdn/{5ZLCMYZU.js → VWHNYGBM.js} +0 -0
- /package/dist/cdn/{53PKFG2U.js → WQIIAMYV.js} +0 -0
- /package/dist/cdn/{YN6VG7UO.js → X5RVRRKO.js} +0 -0
- /package/dist/cdn/{UCHDAO3V.js → Z66I2FAE.js} +0 -0
- /package/dist/cdn/{XJIILB3W.js → ZO5WNVFD.js} +0 -0
- /package/dist/cdn/{Y4D3Q4G7.js → ZQL4CTJK.js} +0 -0
- /package/dist/cdn/{P3BAHG4Q.js → ZUYPKJYL.js} +0 -0
|
@@ -46,15 +46,15 @@ export abstract class ArcgisAttachmentPreview extends LitElement {
|
|
|
46
46
|
"file-csv": string;
|
|
47
47
|
"file-excel": string;
|
|
48
48
|
"file-gpx": string;
|
|
49
|
-
"file-image": string;
|
|
50
49
|
"file-pdf": string;
|
|
51
50
|
"file-ppt": string;
|
|
52
|
-
"file-sound": string;
|
|
53
51
|
"file-text": string;
|
|
54
|
-
"file-video": string;
|
|
55
52
|
"file-word": string;
|
|
56
53
|
"file-zip": string;
|
|
57
54
|
file: string;
|
|
55
|
+
image: string;
|
|
56
|
+
sound: string;
|
|
57
|
+
video: string;
|
|
58
58
|
}; };
|
|
59
59
|
}; };
|
|
60
60
|
units: { bytes: {
|
|
@@ -101,15 +101,15 @@ export abstract class ArcgisAttachmentPreview extends LitElement {
|
|
|
101
101
|
"file-csv": string;
|
|
102
102
|
"file-excel": string;
|
|
103
103
|
"file-gpx": string;
|
|
104
|
-
"file-image": string;
|
|
105
104
|
"file-pdf": string;
|
|
106
105
|
"file-ppt": string;
|
|
107
|
-
"file-sound": string;
|
|
108
106
|
"file-text": string;
|
|
109
|
-
"file-video": string;
|
|
110
107
|
"file-word": string;
|
|
111
108
|
"file-zip": string;
|
|
112
109
|
file: string;
|
|
110
|
+
image: string;
|
|
111
|
+
sound: string;
|
|
112
|
+
video: string;
|
|
113
113
|
}; };
|
|
114
114
|
}; };
|
|
115
115
|
units: { bytes: {
|
|
@@ -159,15 +159,15 @@ export abstract class ArcgisAttachmentPreview extends LitElement {
|
|
|
159
159
|
"file-csv"?: string | undefined;
|
|
160
160
|
"file-excel"?: string | undefined;
|
|
161
161
|
"file-gpx"?: string | undefined;
|
|
162
|
-
"file-image"?: string | undefined;
|
|
163
162
|
"file-pdf"?: string | undefined;
|
|
164
163
|
"file-ppt"?: string | undefined;
|
|
165
|
-
"file-sound"?: string | undefined;
|
|
166
164
|
"file-text"?: string | undefined;
|
|
167
|
-
"file-video"?: string | undefined;
|
|
168
165
|
"file-word"?: string | undefined;
|
|
169
166
|
"file-zip"?: string | undefined;
|
|
170
167
|
file?: string | undefined;
|
|
168
|
+
image?: string | undefined;
|
|
169
|
+
sound?: string | undefined;
|
|
170
|
+
video?: string | undefined;
|
|
171
171
|
} | undefined; } | undefined;
|
|
172
172
|
} | undefined; } | undefined;
|
|
173
173
|
units?: { bytes?: {
|
|
@@ -49,15 +49,15 @@ export abstract class ArcgisAttachmentThumbnail extends LitElement {
|
|
|
49
49
|
"file-csv": string;
|
|
50
50
|
"file-excel": string;
|
|
51
51
|
"file-gpx": string;
|
|
52
|
-
"file-image": string;
|
|
53
52
|
"file-pdf": string;
|
|
54
53
|
"file-ppt": string;
|
|
55
|
-
"file-sound": string;
|
|
56
54
|
"file-text": string;
|
|
57
|
-
"file-video": string;
|
|
58
55
|
"file-word": string;
|
|
59
56
|
"file-zip": string;
|
|
60
57
|
file: string;
|
|
58
|
+
image: string;
|
|
59
|
+
sound: string;
|
|
60
|
+
video: string;
|
|
61
61
|
}; };
|
|
62
62
|
}; };
|
|
63
63
|
units: { bytes: {
|
|
@@ -104,15 +104,15 @@ export abstract class ArcgisAttachmentThumbnail extends LitElement {
|
|
|
104
104
|
"file-csv": string;
|
|
105
105
|
"file-excel": string;
|
|
106
106
|
"file-gpx": string;
|
|
107
|
-
"file-image": string;
|
|
108
107
|
"file-pdf": string;
|
|
109
108
|
"file-ppt": string;
|
|
110
|
-
"file-sound": string;
|
|
111
109
|
"file-text": string;
|
|
112
|
-
"file-video": string;
|
|
113
110
|
"file-word": string;
|
|
114
111
|
"file-zip": string;
|
|
115
112
|
file: string;
|
|
113
|
+
image: string;
|
|
114
|
+
sound: string;
|
|
115
|
+
video: string;
|
|
116
116
|
}; };
|
|
117
117
|
}; };
|
|
118
118
|
units: { bytes: {
|
|
@@ -168,15 +168,15 @@ export abstract class ArcgisAttachmentThumbnail extends LitElement {
|
|
|
168
168
|
"file-csv"?: string | undefined;
|
|
169
169
|
"file-excel"?: string | undefined;
|
|
170
170
|
"file-gpx"?: string | undefined;
|
|
171
|
-
"file-image"?: string | undefined;
|
|
172
171
|
"file-pdf"?: string | undefined;
|
|
173
172
|
"file-ppt"?: string | undefined;
|
|
174
|
-
"file-sound"?: string | undefined;
|
|
175
173
|
"file-text"?: string | undefined;
|
|
176
|
-
"file-video"?: string | undefined;
|
|
177
174
|
"file-word"?: string | undefined;
|
|
178
175
|
"file-zip"?: string | undefined;
|
|
179
176
|
file?: string | undefined;
|
|
177
|
+
image?: string | undefined;
|
|
178
|
+
sound?: string | undefined;
|
|
179
|
+
video?: string | undefined;
|
|
180
180
|
} | undefined; } | undefined;
|
|
181
181
|
} | undefined; } | undefined;
|
|
182
182
|
units?: { bytes?: {
|
|
@@ -45,15 +45,15 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
45
45
|
"file-csv": string;
|
|
46
46
|
"file-excel": string;
|
|
47
47
|
"file-gpx": string;
|
|
48
|
-
"file-image": string;
|
|
49
48
|
"file-pdf": string;
|
|
50
49
|
"file-ppt": string;
|
|
51
|
-
"file-sound": string;
|
|
52
50
|
"file-text": string;
|
|
53
|
-
"file-video": string;
|
|
54
51
|
"file-word": string;
|
|
55
52
|
"file-zip": string;
|
|
56
53
|
file: string;
|
|
54
|
+
image: string;
|
|
55
|
+
sound: string;
|
|
56
|
+
video: string;
|
|
57
57
|
}; };
|
|
58
58
|
}; };
|
|
59
59
|
units: { bytes: {
|
|
@@ -100,15 +100,15 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
100
100
|
"file-csv": string;
|
|
101
101
|
"file-excel": string;
|
|
102
102
|
"file-gpx": string;
|
|
103
|
-
"file-image": string;
|
|
104
103
|
"file-pdf": string;
|
|
105
104
|
"file-ppt": string;
|
|
106
|
-
"file-sound": string;
|
|
107
105
|
"file-text": string;
|
|
108
|
-
"file-video": string;
|
|
109
106
|
"file-word": string;
|
|
110
107
|
"file-zip": string;
|
|
111
108
|
file: string;
|
|
109
|
+
image: string;
|
|
110
|
+
sound: string;
|
|
111
|
+
video: string;
|
|
112
112
|
}; };
|
|
113
113
|
}; };
|
|
114
114
|
units: { bytes: {
|
|
@@ -159,15 +159,15 @@ export abstract class ArcgisAttachmentValidationView extends LitElement {
|
|
|
159
159
|
"file-csv"?: string | undefined;
|
|
160
160
|
"file-excel"?: string | undefined;
|
|
161
161
|
"file-gpx"?: string | undefined;
|
|
162
|
-
"file-image"?: string | undefined;
|
|
163
162
|
"file-pdf"?: string | undefined;
|
|
164
163
|
"file-ppt"?: string | undefined;
|
|
165
|
-
"file-sound"?: string | undefined;
|
|
166
164
|
"file-text"?: string | undefined;
|
|
167
|
-
"file-video"?: string | undefined;
|
|
168
165
|
"file-word"?: string | undefined;
|
|
169
166
|
"file-zip"?: string | undefined;
|
|
170
167
|
file?: string | undefined;
|
|
168
|
+
image?: string | undefined;
|
|
169
|
+
sound?: string | undefined;
|
|
170
|
+
video?: string | undefined;
|
|
171
171
|
} | undefined; } | undefined;
|
|
172
172
|
} | undefined; } | undefined;
|
|
173
173
|
units?: { bytes?: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as k } from "lit/directives/keyed.js";
|
|
4
4
|
import { repeat as C } from "lit/directives/repeat.js";
|
|
5
|
-
import { css as P, nothing as
|
|
5
|
+
import { css as P, nothing as s, html as n } from "lit";
|
|
6
6
|
import { createRef as b, ref as p } from "lit/directives/ref.js";
|
|
7
7
|
import { LitElement as S, createEvent as m, safeClassMap as z } from "@arcgis/lumina";
|
|
8
8
|
import { usePropertyChange as M } from "@arcgis/lumina/controllers";
|
|
@@ -54,7 +54,7 @@ class B extends S {
|
|
|
54
54
|
open: !1
|
|
55
55
|
}, this.elevationPopoverOpen = !1, this.formatsPopoverOpen = !1, this.invalidInput = !1, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.conversions = this.viewModel.conversions, this.currentLocation = this.viewModel.currentLocation, this.formats = this.viewModel.formats, this.goToOverride = this.viewModel.goToOverride, this.headingLevel = 4, this.hideCaptureSection = !1, this.hideInputSection = !1, this.hideSettingsButton = !1, this.icon = "coordinate-system", this.label = this.messages.componentLabel, this.locationSymbol = this.viewModel.locationSymbol, this.mode = this.viewModel.mode, this.removeLeadingZeros = this.viewModel.removeLeadingZeros, this.visualScale = "s", this.showElevation = !1, this.state = this.viewModel.state, this.storageType = this.viewModel.storageType, this.arcgisConversionChange = m(), this.arcgisPropertyChange = M()("currentLocation", "state", "mode", "verticalUnit"), this.arcgisReady = m(), this.renderConversionView = (e, o) => {
|
|
56
56
|
const { messages: i } = this, { format: t } = e, r = t?.label ?? "", a = o === 0 && !e.displayCoordinate ? i.noLocation : e.displayCoordinate, d = this._renderConversionActions(e, a);
|
|
57
|
-
return k(e?.format?.name, n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(a)} .scale=${this.visualScale} title=${a ?? void 0 ??
|
|
57
|
+
return k(e?.format?.name, n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(a)} .scale=${this.visualScale} title=${a ?? void 0 ?? s}>${d}</calcite-list-item>`);
|
|
58
58
|
}, this.renderLiveModeSection = () => {
|
|
59
59
|
const { messages: e } = this, o = this.mode === "idle" ? this.viewModel.mode : this.mode;
|
|
60
60
|
return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${o === "capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`;
|
|
@@ -164,8 +164,8 @@ class B extends S {
|
|
|
164
164
|
try {
|
|
165
165
|
const r = await this._reverseConvert(e, o);
|
|
166
166
|
if (r)
|
|
167
|
-
i && t.goToLocation(r).catch((
|
|
168
|
-
w(this)(
|
|
167
|
+
i && t.goToLocation(r).catch((c) => {
|
|
168
|
+
w(this)(c), this.showAlertMessage(null, this.messages.locationOffBasemap, "warning");
|
|
169
169
|
});
|
|
170
170
|
else
|
|
171
171
|
throw new Error("failed to process user input");
|
|
@@ -263,48 +263,48 @@ class B extends S {
|
|
|
263
263
|
return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${o} placement=top .scale=${this.visualScale} slot=alerts>${t ? n`<div slot=title>${t}</div>` : null}${i ? n`<div slot=message>${i}</div>` : null}</calcite-alert>`;
|
|
264
264
|
}
|
|
265
265
|
_renderConversionActions(e, o) {
|
|
266
|
-
const { messages: i } = this, t = this.getConversionPopoverState(e), r = i.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? ""),
|
|
267
|
-
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${
|
|
266
|
+
const { messages: i } = this, t = this.getConversionPopoverState(e), r = i.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? ""), c = e.displayCoordinate && this.mode !== "live";
|
|
267
|
+
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${c ? n`<calcite-action .icon=${l.copy} .label=${i.copyLabel} @click=${() => this.copyToClipboard(o)} .scale=${this.visualScale} .text=${i.copyLabel} title=${i.copyLabel ?? s}></calcite-action>` : null}${this.hideSettingsButton ? null : n`<calcite-action data-format=${e.format?.name ?? s} .icon=${l.gear} .label=${r} @click=${(a) => this.openConversionSettings(e, a)} .scale=${this.visualScale} .text=${r} title=${r ?? s} ${p(t.triggerRef)}></calcite-action>`}</calcite-action-group>`;
|
|
268
268
|
}
|
|
269
269
|
renderConversionOptions(e, o) {
|
|
270
270
|
return e.map((i) => n`<calcite-option .label=${i.label.toUpperCase()} .selected=${i === o} .value=${i}>${i.label}</calcite-option>`);
|
|
271
271
|
}
|
|
272
272
|
renderConversionPopover() {
|
|
273
|
-
const { activeConversion: e, messages: o } = this;
|
|
274
|
-
if (!
|
|
273
|
+
const { activeConversion: e, messages: o } = this, i = e ?? this.conversions?.at(0);
|
|
274
|
+
if (!i)
|
|
275
275
|
return null;
|
|
276
|
-
const
|
|
276
|
+
const t = this.getConversionPopoverState(i), r = o.settingsTitleWithFormat.replace("{formatName}", i.format?.name?.toUpperCase() ?? "");
|
|
277
277
|
return this.renderPopover({
|
|
278
278
|
class: "conversion-popover",
|
|
279
279
|
content: this.renderSettingsView(),
|
|
280
|
-
getPopoverOpenProperty: () =>
|
|
281
|
-
heading:
|
|
280
|
+
getPopoverOpenProperty: () => t.open,
|
|
281
|
+
heading: r,
|
|
282
282
|
includeFooter: !0,
|
|
283
|
-
label:
|
|
284
|
-
setPopoverOpenProperty: (
|
|
285
|
-
|
|
283
|
+
label: r,
|
|
284
|
+
setPopoverOpenProperty: (c) => {
|
|
285
|
+
t.open = c, c || (this._conversionPopoverTrigger = void 0, this.activeConversion = void 0), this.requestUpdate();
|
|
286
286
|
},
|
|
287
287
|
trigger: null,
|
|
288
|
-
triggerElement:
|
|
288
|
+
triggerElement: t.triggerRef.value ?? this._conversionPopoverTrigger ?? void 0
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
renderConversionsView() {
|
|
292
292
|
if (!this.conversions)
|
|
293
293
|
return;
|
|
294
|
-
const { messages: e, multipleConversionsDisabled: o } = this, t = (o ? this.conversions.slice(0, 1) : this.conversions).map(this.renderConversionView).reverse(), r = this.showElevation ? this.renderElevation() : null,
|
|
295
|
-
return n`${
|
|
294
|
+
const { messages: e, multipleConversionsDisabled: o } = this, t = (o ? this.conversions.slice(0, 1) : this.conversions).map(this.renderConversionView).reverse(), r = this.showElevation ? this.renderElevation() : null, c = this.hideCaptureSection ? null : this.renderLiveModeSection(), a = this.hideInputSection ? null : this.renderCoordinateInputView(), d = this.multipleConversionsDisabled ? null : this.renderFormatDropdown(), v = this.disabled ? n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>` : null;
|
|
295
|
+
return n`${c}${v}${a}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${t}</calcite-list>${d}</calcite-block>${r}`;
|
|
296
296
|
}
|
|
297
297
|
renderCoordinateInputView() {
|
|
298
|
-
const { messages: e } = this, o = this.inputFormat ?? this.conversions.at(0)?.format, i = this.getId("coordinate-input"), t = this.renderConversionOptions(this.formats, o ?? void 0), r = n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${() => this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo ??
|
|
299
|
-
return n`<calcite-block expandable data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${i ??
|
|
298
|
+
const { messages: e } = this, o = this.inputFormat ?? this.conversions.at(0)?.format, i = this.getId("coordinate-input"), t = this.renderConversionOptions(this.formats, o ?? void 0), r = n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${() => this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo ?? s}></calcite-action>`;
|
|
299
|
+
return n`<calcite-block expandable data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${i ?? s} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${o ?? s} data-testid=coordinate-input id=${i ?? s} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput ? "invalid" : "idle"} ${p(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${() => this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`;
|
|
300
300
|
}
|
|
301
301
|
renderElevation() {
|
|
302
302
|
const { messages: e } = this, o = this.displayedElevation ?? e.noElevation, i = this.renderElevationActions(), t = this.hideSettingsButton ? null : this.renderElevationSettingsDropdown();
|
|
303
|
-
return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${o} .scale=${this.visualScale} title=${o ??
|
|
303
|
+
return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${o} .scale=${this.visualScale} title=${o ?? s}>${i}</calcite-list-item></calcite-list>${t}</calcite-block>`;
|
|
304
304
|
}
|
|
305
305
|
renderElevationActions() {
|
|
306
306
|
const { messages: e } = this, o = this.currentLocation?.z !== void 0 && this.mode !== "live", i = this.displayedElevation ?? e.noElevation;
|
|
307
|
-
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${o ? n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${() => o && this.copyToClipboard(i)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel ??
|
|
307
|
+
return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${o ? n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${() => o && this.copyToClipboard(i)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel ?? s}></calcite-action>` : null}${this.hideSettingsButton ? null : n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit ?? s} ${p(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`;
|
|
308
308
|
}
|
|
309
309
|
renderElevationSettingsDropdown() {
|
|
310
310
|
const { messages: e } = this, o = n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${(i) => this.verticalUnit = i.detail} .options=${U} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;
|
|
@@ -321,8 +321,8 @@ class B extends S {
|
|
|
321
321
|
}
|
|
322
322
|
renderFormatDropdown() {
|
|
323
323
|
const { messages: e } = this, o = n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${C(this.formats, (t) => t, (t) => {
|
|
324
|
-
const r = !!this.conversions.find((a) => a.format === t),
|
|
325
|
-
return n`<calcite-list-item data-format=${t.name ??
|
|
324
|
+
const r = !!this.conversions.find((a) => a.format === t), c = this.getFormatDescription(t);
|
|
325
|
+
return n`<calcite-list-item data-format=${t.name ?? s} .description=${c} .disabled=${r && this.conversions.length === 1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`;
|
|
326
326
|
})}</calcite-list>`, i = n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${p(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;
|
|
327
327
|
return this.renderPopover({
|
|
328
328
|
content: o,
|
|
@@ -334,7 +334,7 @@ class B extends S {
|
|
|
334
334
|
triggerElement: this._formatsPopoverTrigger
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
renderPopover({ content: e, class: o, closeOnEnter: i, heading: t, getPopoverOpenProperty: r, includeFooter:
|
|
337
|
+
renderPopover({ content: e, class: o, closeOnEnter: i, heading: t, getPopoverOpenProperty: r, includeFooter: c, label: a, setPopoverOpenProperty: d, slot: v, trigger: x, triggerDisabled: $, triggerElement: f }) {
|
|
338
338
|
const { messages: _ } = this;
|
|
339
339
|
return n`${x}${f ? n`<calcite-popover auto-close class=${z(o)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${() => {
|
|
340
340
|
d(!0);
|
|
@@ -342,14 +342,14 @@ class B extends S {
|
|
|
342
342
|
d(!1), h.stopPropagation();
|
|
343
343
|
}} @keydown=${(h) => {
|
|
344
344
|
i && (h.key === "Enter" || h.key === " ") && d(!1);
|
|
345
|
-
}} .open=${r()} .referenceElement=${f} .scale=${this.visualScale} slot=${v ??
|
|
345
|
+
}} .open=${r()} .referenceElement=${f} .scale=${this.visualScale} slot=${v ?? s} .triggerDisabled=${$}>${e}${c ? n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${() => d(!1)} .scale=${this.visualScale} width=full>${_.done}</calcite-button></div>` : null}</calcite-popover>` : null}`;
|
|
346
346
|
}
|
|
347
347
|
renderSettingsView() {
|
|
348
|
-
const { messages: e } = this, o = this.findSettingsFormat(), i = this.getId("pattern-input"), t = this.getId("preview-coordinate"), r = o?.currentPattern,
|
|
348
|
+
const { messages: e } = this, o = this.findSettingsFormat(), i = this.getId("pattern-input"), t = this.getId("preview-coordinate"), r = o?.currentPattern, c = this.multipleConversionsDisabled ? this.renderSingleFormatDropdown() : null;
|
|
349
349
|
if (!o || !g(o))
|
|
350
|
-
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${
|
|
351
|
-
const a = n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern ??
|
|
352
|
-
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${
|
|
350
|
+
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${c ?? n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;
|
|
351
|
+
const a = n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern ?? s}></calcite-action>`;
|
|
352
|
+
return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${c}</calcite-label><calcite-label .for=${i} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t ?? s} class="pattern-input" id=${i ?? s} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate ?? void 0}></calcite-input></calcite-label></div>`;
|
|
353
353
|
}
|
|
354
354
|
renderSingleFormatDropdown() {
|
|
355
355
|
const { messages: e } = this;
|
|
@@ -41,15 +41,15 @@ export abstract class ArcgisFeatureFormField extends LitElement {
|
|
|
41
41
|
"file-csv": string;
|
|
42
42
|
"file-excel": string;
|
|
43
43
|
"file-gpx": string;
|
|
44
|
-
"file-image": string;
|
|
45
44
|
"file-pdf": string;
|
|
46
45
|
"file-ppt": string;
|
|
47
|
-
"file-sound": string;
|
|
48
46
|
"file-text": string;
|
|
49
|
-
"file-video": string;
|
|
50
47
|
"file-word": string;
|
|
51
48
|
"file-zip": string;
|
|
52
49
|
file: string;
|
|
50
|
+
image: string;
|
|
51
|
+
sound: string;
|
|
52
|
+
video: string;
|
|
53
53
|
}; };
|
|
54
54
|
}; };
|
|
55
55
|
units: { bytes: {
|
|
@@ -96,15 +96,15 @@ export abstract class ArcgisFeatureFormField extends LitElement {
|
|
|
96
96
|
"file-csv": string;
|
|
97
97
|
"file-excel": string;
|
|
98
98
|
"file-gpx": string;
|
|
99
|
-
"file-image": string;
|
|
100
99
|
"file-pdf": string;
|
|
101
100
|
"file-ppt": string;
|
|
102
|
-
"file-sound": string;
|
|
103
101
|
"file-text": string;
|
|
104
|
-
"file-video": string;
|
|
105
102
|
"file-word": string;
|
|
106
103
|
"file-zip": string;
|
|
107
104
|
file: string;
|
|
105
|
+
image: string;
|
|
106
|
+
sound: string;
|
|
107
|
+
video: string;
|
|
108
108
|
}; };
|
|
109
109
|
}; };
|
|
110
110
|
units: { bytes: {
|
|
@@ -160,15 +160,15 @@ export abstract class ArcgisFeatureFormField extends LitElement {
|
|
|
160
160
|
"file-csv"?: string | undefined;
|
|
161
161
|
"file-excel"?: string | undefined;
|
|
162
162
|
"file-gpx"?: string | undefined;
|
|
163
|
-
"file-image"?: string | undefined;
|
|
164
163
|
"file-pdf"?: string | undefined;
|
|
165
164
|
"file-ppt"?: string | undefined;
|
|
166
|
-
"file-sound"?: string | undefined;
|
|
167
165
|
"file-text"?: string | undefined;
|
|
168
|
-
"file-video"?: string | undefined;
|
|
169
166
|
"file-word"?: string | undefined;
|
|
170
167
|
"file-zip"?: string | undefined;
|
|
171
168
|
file?: string | undefined;
|
|
169
|
+
image?: string | undefined;
|
|
170
|
+
sound?: string | undefined;
|
|
171
|
+
video?: string | undefined;
|
|
172
172
|
} | undefined; } | undefined;
|
|
173
173
|
} | undefined; } | undefined;
|
|
174
174
|
units?: { bytes?: {
|
|
@@ -312,18 +312,19 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
312
312
|
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
313
313
|
*
|
|
314
314
|
* @since 5.2
|
|
315
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionShortcutEnabled)
|
|
315
316
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
316
317
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
317
318
|
*/
|
|
318
319
|
get focusRegion(): LinkChartView["focusRegion"];
|
|
319
320
|
/**
|
|
320
|
-
* Enables the keyboard shortcut for showing the
|
|
321
|
-
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) is false.
|
|
322
|
-
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
323
|
-
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
321
|
+
* Enables the `Shift` + `Alt`/`Option` + `O` keyboard shortcut for showing the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion). When `undefined`, the shortcut is enabled only when a [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) component is slotted into the ArcgisLinkChart component, or when [popupComponentEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupComponentEnabled) is set, and when the [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#popupDisabled) property is `false`. Set to `true` to handle focus-region selection in a custom application, or `false` to disable the shortcut. When `false`, the shortcut does not change the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible) property.
|
|
324
322
|
*
|
|
325
323
|
* @default false
|
|
326
324
|
* @since 5.2
|
|
325
|
+
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
326
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
327
|
+
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
327
328
|
*/
|
|
328
329
|
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
329
330
|
/**
|
|
@@ -335,6 +336,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
335
336
|
* @default false
|
|
336
337
|
* @since 5.2
|
|
337
338
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
339
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionShortcutEnabled)
|
|
338
340
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#event-arcgisViewFocusRegionSelect)
|
|
339
341
|
*/
|
|
340
342
|
accessor focusRegionVisible: boolean;
|
|
@@ -979,6 +981,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
979
981
|
* @since 5.2
|
|
980
982
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegion)
|
|
981
983
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionVisible)
|
|
984
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#focusRegionShortcutEnabled)
|
|
982
985
|
* @example
|
|
983
986
|
* ```js
|
|
984
987
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -471,18 +471,19 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
471
471
|
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
472
472
|
*
|
|
473
473
|
* @since 5.2
|
|
474
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionShortcutEnabled)
|
|
474
475
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible)
|
|
475
476
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect)
|
|
476
477
|
*/
|
|
477
478
|
get focusRegion(): MapView["focusRegion"];
|
|
478
479
|
/**
|
|
479
|
-
* Enables the keyboard shortcut for showing the
|
|
480
|
-
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupDisabled) is false.
|
|
481
|
-
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
482
|
-
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
480
|
+
* Enables the `Shift` + `Alt`/`Option` + `O` keyboard shortcut for showing the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion). When `undefined`, the shortcut is enabled only when a [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) component is slotted into the ArcgisMap component, or when [popupComponentEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupComponentEnabled) is set, and when the [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupDisabled) property is `false`. Set to `true` to handle focus-region selection in a custom application, or `false` to disable the shortcut. When `false`, the shortcut does not change the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible) property.
|
|
483
481
|
*
|
|
484
482
|
* @default false
|
|
485
483
|
* @since 5.2
|
|
484
|
+
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion)
|
|
485
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible)
|
|
486
|
+
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect)
|
|
486
487
|
*/
|
|
487
488
|
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
488
489
|
/**
|
|
@@ -494,6 +495,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
494
495
|
* @default false
|
|
495
496
|
* @since 5.2
|
|
496
497
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion)
|
|
498
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionShortcutEnabled)
|
|
497
499
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect)
|
|
498
500
|
*/
|
|
499
501
|
accessor focusRegionVisible: boolean;
|
|
@@ -1353,6 +1355,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
1353
1355
|
* @since 5.2
|
|
1354
1356
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion)
|
|
1355
1357
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible)
|
|
1358
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionShortcutEnabled)
|
|
1356
1359
|
* @example
|
|
1357
1360
|
* ```js
|
|
1358
1361
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -456,18 +456,19 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
456
456
|
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
457
457
|
*
|
|
458
458
|
* @since 5.2
|
|
459
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionShortcutEnabled)
|
|
459
460
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible)
|
|
460
461
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect)
|
|
461
462
|
*/
|
|
462
463
|
get focusRegion(): SceneView["focusRegion"];
|
|
463
464
|
/**
|
|
464
|
-
* Enables the keyboard shortcut for showing the
|
|
465
|
-
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupDisabled) is false.
|
|
466
|
-
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
467
|
-
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
465
|
+
* Enables the `Shift` + `Alt`/`Option` + `O` keyboard shortcut for showing the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion). When `undefined`, the shortcut is enabled only when a [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) component is slotted into the ArcgisScene component, or when [popupComponentEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupComponentEnabled) is set, and when the [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupDisabled) property is `false`. Set to `true` to handle focus-region selection in a custom application, or `false` to disable the shortcut. When `false`, the shortcut does not change the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible) property.
|
|
468
466
|
*
|
|
469
467
|
* @default false
|
|
470
468
|
* @since 5.2
|
|
469
|
+
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion)
|
|
470
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible)
|
|
471
|
+
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect)
|
|
471
472
|
*/
|
|
472
473
|
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
473
474
|
/**
|
|
@@ -479,6 +480,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
479
480
|
* @default false
|
|
480
481
|
* @since 5.2
|
|
481
482
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion)
|
|
483
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionShortcutEnabled)
|
|
482
484
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect)
|
|
483
485
|
*/
|
|
484
486
|
accessor focusRegionVisible: boolean;
|
|
@@ -1249,6 +1251,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
1249
1251
|
* @since 5.2
|
|
1250
1252
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion)
|
|
1251
1253
|
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible)
|
|
1254
|
+
* @see [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionShortcutEnabled)
|
|
1252
1255
|
* @example
|
|
1253
1256
|
* ```js
|
|
1254
1257
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -358,7 +358,6 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
358
358
|
* **Note:** Feature layers created from client-side graphics are not supported.
|
|
359
359
|
*
|
|
360
360
|
* @example
|
|
361
|
-
* // Default sources[] when sources is not specified
|
|
362
361
|
* const search = document.querySelector("arcgis-search");
|
|
363
362
|
* await search.componentOnReady();
|
|
364
363
|
* // set the search sources once the component is ready
|
|
@@ -369,7 +368,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
369
368
|
* apiKey: "YOUR_ACCESS_TOKEN",
|
|
370
369
|
* outFields: ["Addr_type"],
|
|
371
370
|
* name: "ArcGIS World Geocoding Service",
|
|
372
|
-
* placeholder: "
|
|
371
|
+
* placeholder: "Address",
|
|
373
372
|
* resultSymbol: {
|
|
374
373
|
* type: "picture-marker", // autocasts as new PictureMarkerSymbol()
|
|
375
374
|
* url: this.basePath + "/images/search/search-symbol-32.png",
|
|
@@ -235,7 +235,7 @@ class k extends x {
|
|
|
235
235
|
this.itemWithOpenMenu = e;
|
|
236
236
|
}}>${o("action", a`<calcite-action icon=ellipsis .scale=${this.visualScale} slot=trigger .text=${t.menu ?? ""}></calcite-action>`)}${// Only render menu-items for open menu(s) to reduce
|
|
237
237
|
// the total number of list item elements in the DOM at any time.
|
|
238
|
-
s ? o("dropdown-group", a`<calcite-dropdown-group selection-mode=none>${this.hideZoomToButton
|
|
238
|
+
s ? o("dropdown-group", a`<calcite-dropdown-group selection-mode=none>${!this.hideZoomToButton && !e.isTable ? o("zoom-to", a`<calcite-dropdown-item icon-start=layer-zoom-to @calciteDropdownItemSelect=${() => this.goToItem(e)}>${t.zoomTo}</calcite-dropdown-item>`) : void 0}${o("select-single", a`<calcite-dropdown-item icon-start=selection-filter @calciteDropdownItemSelect=${() => this.selectItem(e)}>${i ? t.onlySelectFeature : t.onlySelectThis}</calcite-dropdown-item>`)}${o("clear-selection", a`<calcite-dropdown-item icon-start=selection-x @calciteDropdownItemSelect=${() => this.deselectItem(e)}>${l}</calcite-dropdown-item>`)}${this.listItemActionConfigurations?.map((d) => {
|
|
239
239
|
const { disabled: n, label: m } = d;
|
|
240
240
|
if (this._isDropdownItemVisible(e, d))
|
|
241
241
|
return o(`custom-action-${m}`, a`<calcite-dropdown-item .disabled=${typeof n == "function" ? n({ item: e }) : !!n} .iconStart=${d.icon ?? void 0} @calciteDropdownItemSelect=${() => d.callback({ item: e })}>${m}</calcite-dropdown-item>`);
|
|
@@ -7,11 +7,19 @@ import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js
|
|
|
7
7
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
8
8
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
9
9
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
10
|
-
import type { SupportedRegion } from "./spriteSheetsUtils.js";
|
|
11
10
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
|
-
* The
|
|
13
|
+
* The supported lowercase [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)region codes for scale preview thumbnails.
|
|
14
|
+
* The [region](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/#region) property also accepts uppercase versions of these codes.
|
|
15
|
+
*
|
|
16
|
+
* @since 5.2
|
|
17
|
+
*/
|
|
18
|
+
export type Region = "ae" | "ar" | "at" | "au" | "be" | "bg" | "bo" | "br" | "ca" | "ch" | "ci" | "cl" | "cn" | "co" | "cr" | "cz" | "de" | "dk" | "ee" | "eg" | "es" | "fi" | "fr" | "gb" | "gl" | "gr" | "gt" | "hk" | "id" | "ie" | "il" | "in" | "iq" | "is" | "it" | "jp" | "ke" | "kr" | "kw" | "li" | "lt" | "lu" | "lv" | "ma" | "mg" | "ml" | "mo" | "mx" | "my" | "ni" | "nl" | "no" | "nz" | "pe" | "pl" | "pr" | "pt" | "ro" | "ru" | "rw" | "se" | "sg" | "sk" | "sr" | "sv" | "th" | "tn" | "tw" | "us" | "ve" | "vi" | "za";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The Scale Range Slider component allows the user to set a minimum and maximum scale based on named scale ranges.
|
|
22
|
+
* When a layer is provided, the component's minScale and maxScale properties will be set to the scale range of the layer.
|
|
15
23
|
*
|
|
16
24
|
* @since 5.1
|
|
17
25
|
*/
|
|
@@ -240,9 +248,9 @@ export abstract class ArcgisSliderScaleRange extends LitElement {
|
|
|
240
248
|
/**
|
|
241
249
|
* The region that the scale thumbnails will focus on.
|
|
242
250
|
* Each region comes from the [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
|
|
243
|
-
*
|
|
251
|
+
* Both lowercase and uppercase region codes are supported.
|
|
244
252
|
*/
|
|
245
|
-
accessor region:
|
|
253
|
+
accessor region: Region | Uppercase<Region> | undefined;
|
|
246
254
|
/**
|
|
247
255
|
* If an [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/) is associated with the component and this property
|
|
248
256
|
* is set to `true`, the current scale indicator will be represented as a highlighted range of the slider track. The width of the indicator will increase
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Region } from "./customElement.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/** @deprecated Use [Region](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/#Region) instead. */
|
|
4
|
+
export type LowerCaseRegion = Region;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
/** @deprecated Use `Uppercase<Region>` with [Region](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/#Region) instead. */
|
|
7
|
+
export type UpperCaseRegion = Uppercase<LowerCaseRegion>;
|
|
8
|
+
|
|
9
|
+
/** @deprecated Use `Region | Uppercase<Region>` with [Region](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/#Region) instead. */
|
|
10
|
+
export type SupportedRegion = LowerCaseRegion | UpperCaseRegion;
|