@arcgis/map-components 4.32.0-next.61 → 4.32.0-next.63
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/arcgis-map-components/{4RYU73E4.js → 2CNQZR2T.js} +2 -2
- package/dist/arcgis-map-components/{MTZ2ZNHS.js → 2N4JKY2D.js} +2 -2
- package/dist/arcgis-map-components/{AMKOV4C4.js → 3U6AUHBZ.js} +2 -2
- package/dist/arcgis-map-components/{FPEQNNG5.js → 4HYDXQCD.js} +2 -2
- package/dist/arcgis-map-components/{Z3YSDYWK.js → 5B47NJED.js} +2 -2
- package/dist/arcgis-map-components/{U2FFLNMO.js → 6OT6RHS2.js} +2 -2
- package/dist/arcgis-map-components/{ZIABCIQN.js → 6VRDSYV2.js} +2 -2
- package/dist/arcgis-map-components/{7JPRN4GK.js → 7G3XQQUA.js} +2 -2
- package/dist/arcgis-map-components/{F7UTNM2R.js → 7MD5LN7U.js} +2 -2
- package/dist/arcgis-map-components/{AHGJFHRU.js → A4SUJTWK.js} +2 -2
- package/dist/arcgis-map-components/{DVBLDWMQ.js → AKIE7HYX.js} +2 -2
- package/dist/arcgis-map-components/{VUDY6NWA.js → AL6WZCTG.js} +2 -2
- package/dist/arcgis-map-components/{3TEKSTHZ.js → BWI6PVVF.js} +2 -2
- package/dist/arcgis-map-components/{7TN4Q4WC.js → BZK342ZZ.js} +2 -2
- package/dist/arcgis-map-components/{HAUFWOU3.js → CUOU7LEO.js} +2 -2
- package/dist/arcgis-map-components/{RSXRVZNE.js → CYCPP4XK.js} +2 -2
- package/dist/arcgis-map-components/{LGTYZXDG.js → D4CG2XC7.js} +1 -1
- package/dist/arcgis-map-components/{BUBXFT3I.js → EF6DVSOK.js} +2 -2
- package/dist/arcgis-map-components/{AFB4RP6J.js → EQUM2VWY.js} +2 -2
- package/dist/arcgis-map-components/{XEWCYDKI.js → EUSPDHGZ.js} +2 -2
- package/dist/arcgis-map-components/{3R3NIJPL.js → EXH7V4JP.js} +2 -2
- package/dist/arcgis-map-components/{Q7PUM2HX.js → F4L6WM22.js} +2 -2
- package/dist/arcgis-map-components/{HSAGUCFW.js → FBBVOVXD.js} +2 -2
- package/dist/arcgis-map-components/{HR6JZWOA.js → FCMJ4RS3.js} +2 -2
- package/dist/arcgis-map-components/{E7BNOIC5.js → FIXJWNW3.js} +2 -2
- package/dist/arcgis-map-components/{VZZGLPOF.js → GAT5KM3E.js} +2 -2
- package/dist/arcgis-map-components/GEN4PUIO.js +6 -0
- package/dist/arcgis-map-components/{YWAQ3J7A.js → GGS5E5DQ.js} +2 -2
- package/dist/arcgis-map-components/{LWTN5W7L.js → IEK3QE6C.js} +2 -2
- package/dist/arcgis-map-components/{4OUYF5JT.js → IW5OX26S.js} +2 -2
- package/dist/arcgis-map-components/{5ZVXVZ2H.js → J36PC5I7.js} +2 -2
- package/dist/arcgis-map-components/{3XC63CXB.js → J6HRYNTY.js} +2 -2
- package/dist/arcgis-map-components/{AMWJLP5N.js → JNQQMJOC.js} +2 -2
- package/dist/arcgis-map-components/{W32UJZSI.js → KAXILO2C.js} +2 -2
- package/dist/arcgis-map-components/{YFWGTN7J.js → KIEIKHHY.js} +2 -2
- package/dist/arcgis-map-components/{R6EKRSNF.js → L3F5MK23.js} +2 -2
- package/dist/arcgis-map-components/{XSI6F53O.js → LEOXT4SE.js} +2 -2
- package/dist/arcgis-map-components/{ETW6HG3U.js → LSUWFEVI.js} +2 -2
- package/dist/arcgis-map-components/{5VPUVSXR.js → LZW4NEPZ.js} +2 -2
- package/dist/arcgis-map-components/{QT4577QI.js → M3WL6IPT.js} +2 -2
- package/dist/arcgis-map-components/{SJ7OBO2F.js → MH4JUXXT.js} +2 -2
- package/dist/arcgis-map-components/{WCUFTNIF.js → OV6AWSKP.js} +2 -2
- package/dist/arcgis-map-components/{BCQSN2JA.js → P4VWP42Z.js} +2 -2
- package/dist/arcgis-map-components/{QRQCFSLK.js → P6VUOX2G.js} +1 -1
- package/dist/arcgis-map-components/{UCZG6RB7.js → PEJGCKW4.js} +2 -2
- package/dist/arcgis-map-components/{7TECKLUV.js → PI3C24VP.js} +2 -2
- package/dist/arcgis-map-components/{44ZKV7GA.js → PN3OMHGC.js} +2 -2
- package/dist/arcgis-map-components/{QX3O7PTV.js → PQKCUT4O.js} +2 -2
- package/dist/arcgis-map-components/{UX64NCGG.js → R6JJYEP4.js} +2 -2
- package/dist/arcgis-map-components/{POK34BM6.js → RB3IUYDK.js} +2 -2
- package/dist/arcgis-map-components/{U4EYAT6G.js → RF54T7S7.js} +3 -3
- package/dist/arcgis-map-components/{CMYD2QEZ.js → RHXDO5EM.js} +2 -2
- package/dist/arcgis-map-components/{YZPZQ7YO.js → RKZH2TOA.js} +2 -2
- package/dist/arcgis-map-components/{4AUA2BWF.js → RMEYXTCH.js} +2 -2
- package/dist/arcgis-map-components/{YIZQE557.js → RVWYAG3R.js} +2 -2
- package/dist/arcgis-map-components/S34YQXSX.js +6 -0
- package/dist/arcgis-map-components/S6WBYKV5.js +6 -0
- package/dist/arcgis-map-components/{X4FUDKDK.js → SMIDSQZ6.js} +2 -2
- package/dist/arcgis-map-components/{5L2IG56V.js → TDMSZLXO.js} +2 -2
- package/dist/arcgis-map-components/{KA4PCTJM.js → TWB6Y5AP.js} +2 -2
- package/dist/arcgis-map-components/{DIT7GG7E.js → VKKAXBLS.js} +2 -2
- package/dist/arcgis-map-components/{T36XHR5N.js → X37A4HQ7.js} +2 -2
- package/dist/arcgis-map-components/{U22TYL2X.js → XWHOFMBF.js} +2 -2
- package/dist/arcgis-map-components/{C2WGWZMD.js → YHAK5GHB.js} +2 -2
- package/dist/arcgis-map-components/{O3MLRTW6.js → YHXWCCIC.js} +2 -2
- package/dist/arcgis-map-components/{57OO6BKV.js → YIX3D6ZE.js} +2 -2
- package/dist/arcgis-map-components/{BPERFNXN.js → YKWTB26D.js} +2 -2
- package/dist/arcgis-map-components/{NHPMKNPE.js → YSEEKU6E.js} +2 -2
- package/dist/arcgis-map-components/{KNIOQZC4.js → YTG653PA.js} +2 -2
- package/dist/arcgis-map-components/{VAJCGDMP.js → Z5SXNXSH.js} +2 -2
- package/dist/arcgis-map-components/{5OKGDKCP.js → ZJWTU74P.js} +2 -2
- package/dist/arcgis-map-components/{W3OGUGTO.js → ZM7TZITF.js} +2 -2
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ar.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.bg.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.bs.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ca.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.cs.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.da.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.de.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.el.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.en.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.es.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.et.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.fi.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.fr.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.he.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.hr.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.hu.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.id.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.it.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ja.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ko.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.lt.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.lv.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.nb.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.nl.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pl.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pt-BR.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.pt-PT.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ro.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.ru.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sk.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sl.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sr.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.sv.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.th.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.tr.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.uk.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.vi.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-CN.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-HK.json +1 -0
- package/dist/arcgis-map-components/assets/swipe/t9n/swipe.t9n.zh-TW.json +1 -0
- package/dist/chunks/basemap-gallery-item.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/legacyIcon.js +108 -0
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +30 -128
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +57 -22
- package/dist/components/arcgis-swipe/customElement.js +103 -13
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +272 -25
- package/dist/docs/docs.json +198 -17
- package/dist/docs/vscode.html-custom-data.json +57 -6
- package/dist/docs/web-types.json +94 -18
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/arcgis-map-components/6NQ32IUV.js +0 -6
- package/dist/arcgis-map-components/BJ35PC4T.js +0 -6
|
@@ -1,124 +1,26 @@
|
|
|
1
1
|
import { c as m } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as
|
|
3
|
-
import { g as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
2
|
+
import { html as i } from "lit-html";
|
|
3
|
+
import { g as l } from "../../chunks/globalCss.js";
|
|
4
|
+
import { l as g } from "../../chunks/legacyIcon.js";
|
|
5
|
+
import { u, m as v } from "../../chunks/useViewModel.js";
|
|
6
|
+
import { classes as f } from "@arcgis/components-utils";
|
|
7
|
+
import { usePropertyChange as w } from "@arcgis/components-controllers";
|
|
8
|
+
import { newWidgetsLocateLocateViewModel as E } from "@arcgis/core-adapter";
|
|
9
|
+
import { LitElement as M, createEvent as b, noShadowRoot as y, safeClassMap as r, nothing as L } from "@arcgis/lumina";
|
|
10
|
+
import { reEmitEvent as n } from "@arcgis/components-controllers/accessor";
|
|
11
|
+
import { createRef as $, ref as _ } from "lit-html/directives/ref.js";
|
|
12
|
+
import { css as D } from "@lit/reactive-element/css-tag.js";
|
|
12
13
|
/*!
|
|
13
14
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
15
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
15
|
-
* v4.32.0-next.
|
|
16
|
+
* v4.32.0-next.63
|
|
16
17
|
*/
|
|
17
|
-
const
|
|
18
|
-
arrowDown: "esri-icon-arrow-down",
|
|
19
|
-
arrowUp: "esri-icon-arrow-up",
|
|
20
|
-
basemap: "esri-icon-basemap",
|
|
21
|
-
bookmark: "esri-icon-bookmark",
|
|
22
|
-
calendar: "esri-icon-calendar",
|
|
23
|
-
checkMark: "esri-icon-check-mark",
|
|
24
|
-
checkboxUnchecked: "esri-icon-checkbox-unchecked",
|
|
25
|
-
close: "esri-icon-close",
|
|
26
|
-
collapse: "esri-icon-collapse",
|
|
27
|
-
defaultAction: "esri-icon-default-action",
|
|
28
|
-
description: "esri-icon-description",
|
|
29
|
-
directions: "esri-icon-directions",
|
|
30
|
-
dockBottom: "esri-icon-dock-bottom",
|
|
31
|
-
dockLeft: "esri-icon-dock-left",
|
|
32
|
-
dockRight: "esri-icon-dock-right",
|
|
33
|
-
down: "esri-icon-down",
|
|
34
|
-
downArrow: "esri-icon-down-arrow",
|
|
35
|
-
download: "esri-icon-download",
|
|
36
|
-
dragHorizontal: "esri-icon-drag-horizontal",
|
|
37
|
-
dragVertical: "esri-icon-drag-vertical",
|
|
38
|
-
duplicate: "esri-icon-duplicate",
|
|
39
|
-
edit: "esri-icon-edit",
|
|
40
|
-
elevationProfile: "esri-icon-elevation-profile",
|
|
41
|
-
environmentSettings: "esri-icon-environment-settings",
|
|
42
|
-
erase: "esri-icon-erase",
|
|
43
|
-
error: "esri-icon-error",
|
|
44
|
-
expand: "esri-icon-expand",
|
|
45
|
-
fontFallbackText: "esri-icon-font-fallback-text",
|
|
46
|
-
forward: "esri-icon-forward",
|
|
47
|
-
gear: "esri-icon-gear",
|
|
48
|
-
handleHorizontal: "esri-icon-handle-horizontal",
|
|
49
|
-
handleVertical: "esri-icon-handle-vertical",
|
|
50
|
-
home: "esri-icon-home",
|
|
51
|
-
icon: "esri-icon",
|
|
52
|
-
launchLinkExternal: "esri-icon-launch-link-external",
|
|
53
|
-
layerList: "esri-icon-layer-list",
|
|
54
|
-
layers: "esri-icon-layers",
|
|
55
|
-
left: "esri-icon-left",
|
|
56
|
-
leftArrows: "esri-icon-left-arrow",
|
|
57
|
-
leftTriangleArrow: "esri-icon-left-triangle-arrow",
|
|
58
|
-
lineOfSight: "esri-icon-line-of-sight",
|
|
59
|
-
link: "esri-icon-link",
|
|
60
|
-
linkExternal: "esri-icon-link-external",
|
|
61
|
-
linkHorizontal: "esri-icon-link-horizontal",
|
|
62
|
-
loadingIndicator: "esri-icon-loading-indicator",
|
|
63
|
-
locate: "esri-icon-locate",
|
|
64
|
-
locateCircled: "esri-icon-locate-circled",
|
|
65
|
-
locked: "esri-icon-locked",
|
|
66
|
-
mapPin: "esri-icon-map-pin",
|
|
67
|
-
maximize: "esri-icon-maximize",
|
|
68
|
-
measure: "esri-icon-measure",
|
|
69
|
-
measureArea: "esri-icon-measure-area",
|
|
70
|
-
measureBuildingHeightShadow: "esri-icon-measure-building-height-shadow",
|
|
71
|
-
measureLine: "esri-icon-measure-line",
|
|
72
|
-
menu: "esri-icon-menu",
|
|
73
|
-
minimize: "esri-icon-minimize",
|
|
74
|
-
minus: "esri-icon-minus",
|
|
75
|
-
nonVisible: "esri-icon-non-visible",
|
|
76
|
-
northNavigation: "esri-icon-north-navigation",
|
|
77
|
-
noticeTriangle: "esri-icon-notice-triangle",
|
|
78
|
-
organization: "esri-icon-organization",
|
|
79
|
-
pan: "esri-icon-pan",
|
|
80
|
-
pan2: "esri-icon-pan2",
|
|
81
|
-
partlyCloudy: "esri-icon-partly-cloudy",
|
|
82
|
-
pause: "esri-icon-pause",
|
|
83
|
-
play: "esri-icon-play",
|
|
84
|
-
playCircled: "esri-icon-play-circled",
|
|
85
|
-
plus: "esri-icon-plus",
|
|
86
|
-
polyline: "esri-icon-polyline",
|
|
87
|
-
printer: "esri-icon-printer",
|
|
88
|
-
radioChecked: "esri-icon-radio-checked",
|
|
89
|
-
radioUnchecked: "esri-icon-radio-unchecked",
|
|
90
|
-
refresh: "esri-icon-refresh",
|
|
91
|
-
reverse: "esri-icon-reverse",
|
|
92
|
-
right: "esri-icon-right",
|
|
93
|
-
rightArrow: "esri-icon-right-arrow",
|
|
94
|
-
rightTriangleArrow: "esri-icon-right-triangle-arrow",
|
|
95
|
-
rotate: "esri-icon-rotate",
|
|
96
|
-
save: "esri-icon-save",
|
|
97
|
-
search: "esri-icon-search",
|
|
98
|
-
settings2: "esri-icon-settings2",
|
|
99
|
-
slice: "esri-icon-slice",
|
|
100
|
-
swap: "esri-icon-swap",
|
|
101
|
-
table: "esri-icon-table",
|
|
102
|
-
timeClock: "esri-icon-time-clock",
|
|
103
|
-
tracking: "esri-icon-tracking",
|
|
104
|
-
trash: "esri-icon-trash",
|
|
105
|
-
unlockedLinkHorizontal: "esri-icon-unlocked-link-horizontal",
|
|
106
|
-
up: "esri-icon-up",
|
|
107
|
-
upArrow: "esri-icon-up-arrow",
|
|
108
|
-
upDownArrows: "esri-icon-up-down-arrows",
|
|
109
|
-
urbanModel: "esri-icon-urban-model",
|
|
110
|
-
vertexGps: "esri-icon-vertex-gps",
|
|
111
|
-
visible: "esri-icon-visible",
|
|
112
|
-
zoomInFixed: "esri-icon-zoom-in-fixed",
|
|
113
|
-
zoomInMagnifyingGlass: "esri-icon-zoom-in-magnifying-glass",
|
|
114
|
-
zoomOutFixed: "esri-icon-zoom-out-fixed",
|
|
115
|
-
zoomToObject: "esri-icon-zoom-to-object"
|
|
116
|
-
}, T = x`arcgis-locate{display:block}`, O = {
|
|
18
|
+
const O = D`arcgis-locate{display:block}`, T = {
|
|
117
19
|
base: "esri-locate"
|
|
118
|
-
}, d = "gps-off",
|
|
119
|
-
class
|
|
20
|
+
}, d = "gps-off", B = v(E);
|
|
21
|
+
class I extends M {
|
|
120
22
|
constructor() {
|
|
121
|
-
super(...arguments), this.messages =
|
|
23
|
+
super(...arguments), this.messages = u(), this.viewModel = B(this), this._calciteButton = $(), this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = d, this.popupDisabled = this.viewModel.popupEnabled, this.position = "top-left", this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = n(() => this.viewModel, "locate-error"), this.arcgisPropertyChange = w()("state"), this.arcgisReady = b(), this.arcgisSuccess = n(() => this.viewModel, "locate");
|
|
122
24
|
}
|
|
123
25
|
static {
|
|
124
26
|
this.properties = { autoDestroyDisabled: 5, geolocationOptions: 1, goToLocationDisabled: 7, goToOverride: 0, graphic: 0, icon: 3, label: 1, messageOverrides: 0, popupDisabled: 5, position: 3, referenceElement: 1, scale: 9, state: 3 };
|
|
@@ -127,7 +29,7 @@ class D extends k {
|
|
|
127
29
|
this.shadowRootOptions = y;
|
|
128
30
|
}
|
|
129
31
|
static {
|
|
130
|
-
this.styles =
|
|
32
|
+
this.styles = O;
|
|
131
33
|
}
|
|
132
34
|
// #endregion
|
|
133
35
|
// #region Public Methods
|
|
@@ -155,33 +57,33 @@ class D extends k {
|
|
|
155
57
|
return;
|
|
156
58
|
if (this.viewModel.state === "locating") {
|
|
157
59
|
if (!this._calciteButton.value.children[0]) {
|
|
158
|
-
const
|
|
159
|
-
|
|
60
|
+
const t = document.createElement("calcite-loader");
|
|
61
|
+
t.inline = !0, t.label = "", this._calciteButton.value.append(t);
|
|
160
62
|
}
|
|
161
63
|
} else
|
|
162
64
|
this._calciteButton.value.children[0]?.remove();
|
|
163
65
|
}
|
|
164
66
|
// #endregion
|
|
165
67
|
// #region Private Methods
|
|
166
|
-
_localizeError(
|
|
167
|
-
if (
|
|
168
|
-
return
|
|
169
|
-
if (
|
|
170
|
-
return
|
|
68
|
+
_localizeError(e) {
|
|
69
|
+
if (e instanceof GeolocationPositionError)
|
|
70
|
+
return e.code === GeolocationPositionError.PERMISSION_DENIED ? this.messages?.permissionError : e.code === GeolocationPositionError.TIMEOUT ? this.messages?.timeoutError : this.messages?.positionUnavailable;
|
|
71
|
+
if (e instanceof Error)
|
|
72
|
+
return e.message;
|
|
171
73
|
}
|
|
172
74
|
_locate() {
|
|
173
|
-
const { viewModel:
|
|
174
|
-
|
|
75
|
+
const { viewModel: e } = this;
|
|
76
|
+
e.state === "locating" ? e.cancelLocate() : e.locate().catch(() => {
|
|
175
77
|
});
|
|
176
78
|
}
|
|
177
79
|
// #endregion
|
|
178
80
|
// #region Rendering
|
|
179
81
|
render() {
|
|
180
|
-
const { viewModel:
|
|
181
|
-
return
|
|
82
|
+
const { viewModel: e, icon: t } = this, { state: o } = e, s = o === "locating", a = s ? this.messages.cancel : this.messages.title, h = o === "feature-unsupported", p = g === void 0 ? d : void 0, c = this._localizeError(this.viewModel?.error);
|
|
83
|
+
return i`<div class=${r(f(T.base, l.widget))}>${!h && i`<calcite-button class=${r(l.widgetButton)} .disabled=${o === "disabled"} .iconStart=${s ? void 0 : t ?? p} kind=neutral .label=${a} @click=${this._locate} title=${a ?? L} ${_(this._calciteButton)}></calcite-button>` || ""}${c ? i`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${c}</calcite-tooltip>` : null}</div>`;
|
|
182
84
|
}
|
|
183
85
|
}
|
|
184
|
-
m("arcgis-locate",
|
|
86
|
+
m("arcgis-locate", I);
|
|
185
87
|
export {
|
|
186
|
-
|
|
88
|
+
I as ArcgisLocate
|
|
187
89
|
};
|
|
@@ -8,7 +8,7 @@ import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const f = y`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, V = h(
|
|
14
14
|
v,
|
|
@@ -7,7 +7,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const c = n`arcgis-measurement{display:block}`, h = s(e);
|
|
13
13
|
class l extends a {
|
|
@@ -7,7 +7,7 @@ import { css as g } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const l = g`arcgis-navigation-toggle{display:block}`, n = s(i);
|
|
13
13
|
class h extends o {
|
|
@@ -7,7 +7,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const m = h`arcgis-oriented-imagery-viewer{display:block}`, y = d(o);
|
|
13
13
|
class c extends n {
|
|
@@ -5,7 +5,7 @@ import { css as c } from "@lit/reactive-element/css-tag.js";
|
|
|
5
5
|
/*!
|
|
6
6
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
8
|
-
* v4.32.0-next.
|
|
8
|
+
* v4.32.0-next.63
|
|
9
9
|
*/
|
|
10
10
|
const h = c`arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:block}`;
|
|
11
11
|
class a extends r {
|
|
@@ -8,7 +8,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const d = h`arcgis-print{display:block}`, m = o(s);
|
|
14
14
|
class p extends a {
|
|
@@ -10,7 +10,7 @@ import { LitElement as R, createEvent as D, noShadowRoot as x, safeClassMap as r
|
|
|
10
10
|
/*!
|
|
11
11
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
13
|
-
* v4.32.0-next.
|
|
13
|
+
* v4.32.0-next.63
|
|
14
14
|
*/
|
|
15
15
|
const i = "esri-scale-bar", t = {
|
|
16
16
|
base: i,
|
|
@@ -7,7 +7,7 @@ import { css as o } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const c = o`arcgis-scale-range-slider{display:block}`, r = s(i);
|
|
13
13
|
class d extends a {
|
|
@@ -8,7 +8,7 @@ import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const f = y`.arcgis-scene{padding:0;margin:0;height:100%;width:100%}`, _ = o(v, {}), b = o(l, {});
|
|
14
14
|
class V extends p {
|
|
@@ -8,7 +8,7 @@ import { css as o } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const g = o`arcgis-search{display:block}`, d = r(a);
|
|
14
14
|
class u extends h {
|
|
@@ -7,7 +7,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const r = n`arcgis-shadow-cast{display:block}`, l = o(e);
|
|
13
13
|
class c extends a {
|
|
@@ -8,7 +8,7 @@ import { css as g } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const p = g`arcgis-sketch{display:block}`, c = n(l);
|
|
14
14
|
class m extends h {
|
|
@@ -7,7 +7,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.63
|
|
11
11
|
*/
|
|
12
12
|
const d = r`arcgis-slice{display:block}`, h = i(t);
|
|
13
13
|
class c extends a {
|
|
@@ -8,7 +8,7 @@ import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const c = m`arcgis-slider{min-width:200px;min-height:25px}`, r = a(s);
|
|
14
14
|
class d extends h {
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
3
|
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
|
-
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
6
|
-
import {
|
|
5
|
+
import { Use } from '@arcgis/components-controllers';
|
|
6
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
7
|
|
|
8
|
-
declare const
|
|
8
|
+
declare const useSwipeViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
9
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
10
|
el: HTMLElement;
|
|
11
11
|
autoDestroyDisabled?: boolean;
|
|
12
12
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<__esri.
|
|
13
|
+
} & Pick<__esri.SwipeViewModel, never> & {
|
|
14
14
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
|
-
state?:
|
|
16
|
-
viewModel?: __esri.SwipeViewModel | undefined;
|
|
15
|
+
state?: "ready" | "disabled" | undefined;
|
|
17
16
|
icon: Nil | string;
|
|
18
17
|
label: Nil | string;
|
|
19
18
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
20
|
-
position: __esri.UIPosition;
|
|
21
19
|
arcgisReady: import('@arcgis/components-controllers').EventEmitter;
|
|
20
|
+
position: __esri.UIPosition;
|
|
22
21
|
arcgisPropertyChange: import('@arcgis/components-controllers').EventEmitter<{
|
|
23
22
|
name: string;
|
|
24
23
|
}> | undefined;
|
|
@@ -26,36 +25,72 @@ declare const useSwipeWidget: (component: import('@arcgis/components-controllers
|
|
|
26
25
|
childElem?: HTMLElement & {
|
|
27
26
|
ownedBy?: HTMLElement;
|
|
28
27
|
};
|
|
29
|
-
view?: __esri.MapView | __esri.SceneView |
|
|
28
|
+
view?: __esri.MapView | __esri.SceneView | undefined;
|
|
30
29
|
};
|
|
31
30
|
autoDestroyDisabled: boolean;
|
|
32
31
|
destroy: () => Promise<void>;
|
|
33
32
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props:
|
|
35
|
-
} | undefined) => __esri.
|
|
33
|
+
editConstructorProperties(props: unknown): unknown;
|
|
34
|
+
} | undefined) => __esri.SwipeViewModel;
|
|
36
35
|
/** The [Swipe](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html) provides a tool to show a portion of a layer or layers on top of a map.
|
|
37
36
|
*/
|
|
38
37
|
export declare class ArcgisSwipe extends LitElement {
|
|
38
|
+
/** */
|
|
39
|
+
private messages;
|
|
39
40
|
/**
|
|
40
|
-
* If true, the component will not be destroyed automatically when
|
|
41
|
-
* disconnected from the document. This is useful when you
|
|
42
|
-
* component to a different place on the page, or
|
|
43
|
-
* is set, make sure to call the
|
|
44
|
-
* memory leaks.
|
|
41
|
+
* If true, the component will not be destroyed automatically when
|
|
42
|
+
* it is disconnected from the document. This is useful when you
|
|
43
|
+
* want to move the component to a different place on the page, or
|
|
44
|
+
* temporary hide it. If this is set, make sure to call the
|
|
45
|
+
* \`destroy\` method when you are done to prevent memory leaks.
|
|
45
46
|
*/
|
|
46
47
|
autoDestroyDisabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The direction the Swipe component moves across the view.
|
|
50
|
+
* If `"horizontal"`, the component will move left and right and
|
|
51
|
+
* if `"vertical"`, the component will move up and down.
|
|
52
|
+
*/
|
|
47
53
|
direction: "horizontal" | "vertical";
|
|
48
|
-
dragLabel: string;
|
|
49
|
-
/** @private */
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
* When `true`, sets the component to a disabled state so the user cannot interact with it.
|
|
56
|
+
*/
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* When `true`, the divider between the leading and trailing layers will be hidden.
|
|
60
|
+
*/
|
|
61
|
+
hideDivider: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* When `true`, the handle from which you drag the component will be hidden.
|
|
64
|
+
*/
|
|
65
|
+
hideHandle: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Icon which represents the component. It is typically used when the component is controlled by another
|
|
68
|
+
* one (e.g. in the Expand component).
|
|
69
|
+
*
|
|
70
|
+
* @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
71
|
+
*/
|
|
72
|
+
icon: Nil | string;
|
|
73
|
+
/**
|
|
74
|
+
* The component's default label.
|
|
75
|
+
*/
|
|
76
|
+
label: Nil | string;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of layers that will show on the left or top side of the Swipe component.
|
|
54
79
|
*/
|
|
55
|
-
icon: string;
|
|
56
80
|
leadingLayers: __esri.Collection<__esri.Layer>;
|
|
57
|
-
|
|
81
|
+
/** Overwrite localized strings for this component */
|
|
82
|
+
messageOverrides?: typeof this.messages._overrides;
|
|
83
|
+
position: __esri.UIPosition;
|
|
84
|
+
/**
|
|
85
|
+
* The position of the Swipe component. This determines what percentage
|
|
86
|
+
* of the view will be taken up by the [leadingLayers](#leadingLayers).
|
|
87
|
+
*/
|
|
58
88
|
swipePosition: number;
|
|
89
|
+
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
90
|
+
readonly state: "ready" | "disabled";
|
|
91
|
+
/**
|
|
92
|
+
* A collection of layers that will show on the right or bottom side of the Swipe component.
|
|
93
|
+
*/
|
|
59
94
|
trailingLayers: __esri.Collection<__esri.Layer>;
|
|
60
95
|
/** Permanently destroy the component */
|
|
61
96
|
destroy(): Promise<void>;
|
|
@@ -1,23 +1,45 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { c as x } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as g } from "lit-html";
|
|
3
|
+
import { g as _ } from "../../chunks/globalCss.js";
|
|
4
|
+
import { l as m } from "../../chunks/legacyIcon.js";
|
|
5
|
+
import { u as $, m as D } from "../../chunks/useViewModel.js";
|
|
6
|
+
import { classes as v } from "@arcgis/components-utils";
|
|
7
|
+
import { usePropertyChange as P } from "@arcgis/components-controllers";
|
|
8
|
+
import { newWidgetsSwipeSwipeViewModel as C } from "@arcgis/core-adapter";
|
|
9
|
+
import { LitElement as M, createEvent as K, noShadowRoot as z, safeClassMap as h, safeStyleMap as b, nothing as L } from "@arcgis/lumina";
|
|
10
|
+
import { css as A } from "@lit/reactive-element/css-tag.js";
|
|
6
11
|
/*!
|
|
7
12
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
13
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
* v4.32.0-next.
|
|
14
|
+
* v4.32.0-next.63
|
|
10
15
|
*/
|
|
11
|
-
const
|
|
12
|
-
|
|
16
|
+
const H = A`arcgis-swipe,.arcgis-swipe{position:absolute;margin:0;background:transparent;padding:0;width:100%;height:100%;overflow:hidden;user-select:none}.arcgis-swipe,.arcgis-ui .arcgis-swipe{pointer-events:none}.arcgis-swipe__container{position:absolute;z-index:1;margin:0;outline:0;border:0;padding:0;overflow:hidden;pointer-events:auto;touch-action:none;outline-color:transparent}.arcgis-swipe--horizontal .arcgis-swipe__container{margin-left:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:col-resize;height:100%}.arcgis-swipe--vertical .arcgis-swipe__container{margin-top:calc(var(--calcite-spacing-xxxl) / 2 * -1);cursor:row-resize;width:100%}.arcgis-swipe--disabled .arcgis-swipe__container{cursor:default;pointer-events:none}.arcgis-swipe__divider{position:absolute;background-color:var(--calcite-color-background)}.arcgis-swipe--horizontal .arcgis-swipe__divider{top:0;left:calc(var(--calcite-spacing-xxxl) / 2);margin-left:calc(var(--calcite-border-width-lg) * .5 * -1);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:var(--calcite-border-width-lg);height:100%}.arcgis-swipe--vertical .arcgis-swipe__divider{top:calc(var(--calcite-spacing-xxxl) / 2);left:0;margin-top:calc(var(--calcite-border-width-lg) * .5 * -1);border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);width:100%;height:var(--calcite-border-width-lg)}.arcgis-swipe__handle{display:flex;position:relative;align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);border-radius:var(--calcite-corner-radius-round);background-color:var(--calcite-color-background);width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);color:var(--calcite-color-border-input);&--hidden{visibility:hidden}}.arcgis-swipe--vertical .arcgis-swipe__handle{rotate:90deg}.arcgis-swipe__handle-icon{position:relative;z-index:2}.arcgis-swipe--horizontal .arcgis-swipe__handle{top:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.arcgis-swipe--vertical .arcgis-swipe__handle{left:calc(50% - calc(var(--calcite-spacing-xxxl) / 2))}.arcgis-swipe__container:focus .arcgis-swipe__handle,.arcgis-swipe__container:focus .arcgis-swipe__divider{outline:inset 2px var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}.arcgis-swipe__container:focus .arcgis-swipe__handle{outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}`, l = "arcgis-swipe", n = {
|
|
17
|
+
base: l,
|
|
18
|
+
baseDisabled: `${l}--disabled`,
|
|
19
|
+
vertical: `${l}--vertical`,
|
|
20
|
+
horizontal: `${l}--horizontal`,
|
|
21
|
+
container: `${l}__container`,
|
|
22
|
+
divider: `${l}__divider`,
|
|
23
|
+
handle: `${l}__handle`,
|
|
24
|
+
handleHidden: `${l}__handle--hidden`,
|
|
25
|
+
handleIcon: `${l}__handle-icon`
|
|
26
|
+
}, V = D(C);
|
|
27
|
+
class O extends M {
|
|
13
28
|
constructor() {
|
|
14
|
-
super(...arguments), this.
|
|
29
|
+
super(...arguments), this._container = null, this._swiping = !1, this.messages = $({}), this._pointerOffset = 0, this.viewModel = V(this), this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.leadingLayers = this.viewModel.leadingLayers, this.position = "manual", this.swipePosition = this.viewModel.position, this.state = this.viewModel.state, this.trailingLayers = this.viewModel.trailingLayers, this.arcgisPropertyChange = P()("state"), this.arcgisReady = K(), this._onContainerPointerDown = (i) => {
|
|
30
|
+
i.preventDefault();
|
|
31
|
+
const { _container: e } = this;
|
|
32
|
+
e && document.activeElement !== this.el && e.focus(), this._swiping = !0, this._calculatePointerOffset(i);
|
|
33
|
+
};
|
|
15
34
|
}
|
|
16
35
|
static {
|
|
17
|
-
this.properties = { autoDestroyDisabled: 5, direction:
|
|
36
|
+
this.properties = { autoDestroyDisabled: 5, direction: 3, disabled: 7, hideDivider: 7, hideHandle: 7, icon: 3, label: 1, leadingLayers: 0, messageOverrides: 0, position: 3, swipePosition: 9, referenceElement: 1, state: 3, trailingLayers: 0 };
|
|
18
37
|
}
|
|
19
38
|
static {
|
|
20
|
-
this.shadowRootOptions =
|
|
39
|
+
this.shadowRootOptions = z;
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.styles = H;
|
|
21
43
|
}
|
|
22
44
|
// #endregion
|
|
23
45
|
// #region Public Methods
|
|
@@ -25,8 +47,76 @@ class d extends a {
|
|
|
25
47
|
async destroy() {
|
|
26
48
|
await this.manager.destroy();
|
|
27
49
|
}
|
|
50
|
+
// #endregion
|
|
51
|
+
// #region Lifecycle
|
|
52
|
+
loaded() {
|
|
53
|
+
this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
|
|
54
|
+
}
|
|
55
|
+
// #endregion
|
|
56
|
+
// #region Private Methods
|
|
57
|
+
_calculatePointerOffset(i) {
|
|
58
|
+
const { direction: e } = this, t = i.target, r = (e === "vertical" ? t.clientHeight : t.clientWidth) / 2, s = t.getBoundingClientRect(), o = i.clientX - s.left, d = i.clientY - s.top;
|
|
59
|
+
this._pointerOffset = e === "vertical" ? d - r : o - r;
|
|
60
|
+
}
|
|
61
|
+
_onContainerPointerUp(i) {
|
|
62
|
+
this._swiping && (i.preventDefault(), this._swiping = !1);
|
|
63
|
+
}
|
|
64
|
+
_onContainerPointerMove(i) {
|
|
65
|
+
if (!this._swiping)
|
|
66
|
+
return;
|
|
67
|
+
i.preventDefault();
|
|
68
|
+
const { _pointerOffset: e, el: t, direction: r } = this, { clientX: s, clientY: o } = i, { top: d, left: a, width: c, height: p } = t.getBoundingClientRect(), u = r === "vertical" ? p : c, f = (r === "vertical" ? o - d - e : s - a - e) / u * 100;
|
|
69
|
+
this.swipePosition = f;
|
|
70
|
+
}
|
|
71
|
+
_getKeyPosition(i) {
|
|
72
|
+
const { key: e } = i, { swipePosition: t } = this, { max: r, min: s, step: o, stepMultiplier: d, direction: a } = this.viewModel, c = o * d;
|
|
73
|
+
if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(e) && (i.preventDefault(), i.stopPropagation()), a === "vertical" ? e === "ArrowDown" || e === "ArrowRight" : e === "ArrowUp" || e === "ArrowRight") {
|
|
74
|
+
const w = i.shiftKey ? c : o;
|
|
75
|
+
return t + w;
|
|
76
|
+
}
|
|
77
|
+
if (a === "vertical" ? e === "ArrowUp" || e === "ArrowLeft" : e === "ArrowDown" || e === "ArrowLeft") {
|
|
78
|
+
const w = i.shiftKey ? c : o;
|
|
79
|
+
return t - w;
|
|
80
|
+
}
|
|
81
|
+
return e === "Home" ? s : e === "End" ? r : (a === "vertical" ? e === "PageDown" : e === "PageUp") ? t + c : (a === "vertical" ? e === "PageUp" : e === "PageDown") ? t - c : null;
|
|
82
|
+
}
|
|
83
|
+
_onContainerKeyDown(i) {
|
|
84
|
+
const e = this._getKeyPosition(i);
|
|
85
|
+
typeof e == "number" && (this.swipePosition = e);
|
|
86
|
+
}
|
|
87
|
+
// #endregion
|
|
88
|
+
// #region Rendering
|
|
89
|
+
render() {
|
|
90
|
+
const { state: i, direction: e } = this.viewModel, t = i === "disabled" || this.disabled, r = {
|
|
91
|
+
[_.disabled]: t,
|
|
92
|
+
[n.baseDisabled]: t,
|
|
93
|
+
[n.vertical]: e === "vertical",
|
|
94
|
+
[n.horizontal]: e === "horizontal"
|
|
95
|
+
};
|
|
96
|
+
return g`<div class=${h(v(n.base, _.widget, r))}>${i === "disabled" ? null : this._renderContainer()}</div>`;
|
|
97
|
+
}
|
|
98
|
+
_renderHandle() {
|
|
99
|
+
const { direction: i } = this.viewModel, { hideHandle: e } = this, t = {
|
|
100
|
+
[m.dragHorizontal]: i === "vertical",
|
|
101
|
+
[m.dragVertical]: i === "horizontal"
|
|
102
|
+
}, r = v(n.handle, !!e && n.handleHidden);
|
|
103
|
+
return g`<div class=${h(r)} role=presentation><span aria-hidden=true class=${h(v(n.handleIcon, t))}></span></div>`;
|
|
104
|
+
}
|
|
105
|
+
_renderDivider() {
|
|
106
|
+
return this.hideDivider ? null : g`<div class=${h(n.divider)} role=presentation></div>`;
|
|
107
|
+
}
|
|
108
|
+
_renderContent() {
|
|
109
|
+
return [this._renderDivider(), this._renderHandle()];
|
|
110
|
+
}
|
|
111
|
+
_renderContainer() {
|
|
112
|
+
const { disabled: i, viewModel: e } = this, { max: t, min: r, direction: s, position: o } = e, d = this.label ?? this.messages.dragLabel ?? "", a = `${o}%`, c = {
|
|
113
|
+
top: s === "vertical" ? a : void 0,
|
|
114
|
+
left: s === "vertical" ? void 0 : a
|
|
115
|
+
}, p = this._renderContent();
|
|
116
|
+
return i ? g`<div class=${h(n.container)} role=presentation style=${b(c)}>${p}</div>` : g`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${d} .ariaOrientation=${s} .ariaValueMax=${`${t}`} .ariaValueMin=${`${r}`} .ariaValueNow=${`${o}`} .ariaValueText=${a} class=${h(n.container)} @keydown=${this._onContainerKeyDown} role=slider style=${b(c)} tabindex=0 title=${d ?? L} touch-action=none>${p}</div>`;
|
|
117
|
+
}
|
|
28
118
|
}
|
|
29
|
-
|
|
119
|
+
x("arcgis-swipe", O);
|
|
30
120
|
export {
|
|
31
|
-
|
|
121
|
+
O as ArcgisSwipe
|
|
32
122
|
};
|
|
@@ -8,7 +8,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const m = n`arcgis-table-list{display:block}`, d = i(s);
|
|
14
14
|
class h extends l {
|
|
@@ -8,7 +8,7 @@ import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.63
|
|
12
12
|
*/
|
|
13
13
|
const r = n`arcgis-time-slider{display:block}`, m = o(e);
|
|
14
14
|
class c extends a {
|
|
@@ -11,7 +11,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
|
11
11
|
/*!
|
|
12
12
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
14
|
-
* v4.32.0-next.
|
|
14
|
+
* v4.32.0-next.63
|
|
15
15
|
*/
|
|
16
16
|
const y = b`arcgis-track{display:block}`, $ = {
|
|
17
17
|
base: "esri-track"
|