@arcgis/map-components 4.32.0-next.84 → 4.32.0-next.87
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/2XHX4GRY.js +4 -0
- package/dist/arcgis-map-components/32X3ZYOM.js +4 -0
- package/dist/arcgis-map-components/35DMTE4K.js +4 -0
- package/dist/arcgis-map-components/3JTGHVNB.js +4 -0
- package/dist/arcgis-map-components/3ZDFYLLA.js +4 -0
- package/dist/arcgis-map-components/4CKEV5R3.js +4 -0
- package/dist/arcgis-map-components/4J4AUJFF.js +4 -0
- package/dist/arcgis-map-components/4ZIFQORV.js +4 -0
- package/dist/arcgis-map-components/6LUZOY5O.js +4 -0
- package/dist/arcgis-map-components/7BT4GAVM.js +4 -0
- package/dist/arcgis-map-components/{QDTORANP.js → 7JPD33PS.js} +1 -1
- package/dist/arcgis-map-components/7WR7N6T3.js +4 -0
- package/dist/arcgis-map-components/{LABTBYBR.js → A6QXV7MU.js} +2 -2
- package/dist/arcgis-map-components/AFIGXVQ3.js +4 -0
- package/dist/arcgis-map-components/{4HWKFVOD.js → AGWGNRMW.js} +2 -2
- package/dist/arcgis-map-components/AOZPIV4A.js +4 -0
- package/dist/arcgis-map-components/AVGUWUIP.js +4 -0
- package/dist/arcgis-map-components/AXIJBJKN.js +4 -0
- package/dist/arcgis-map-components/B5NOO6HX.js +4 -0
- package/dist/arcgis-map-components/CE62RYPI.js +4 -0
- package/dist/arcgis-map-components/CEIGROJD.js +4 -0
- package/dist/arcgis-map-components/CLH7HQDS.js +4 -0
- package/dist/arcgis-map-components/DAXKVFKC.js +4 -0
- package/dist/arcgis-map-components/DBWEC62Z.js +4 -0
- package/dist/arcgis-map-components/E2S64U4Z.js +4 -0
- package/dist/arcgis-map-components/E3RBXZMD.js +4 -0
- package/dist/arcgis-map-components/{ALE6KF3F.js → ETORB2CW.js} +4 -4
- package/dist/arcgis-map-components/G2AUFB2V.js +4 -0
- package/dist/arcgis-map-components/GFFY2SOD.js +4 -0
- package/dist/arcgis-map-components/GGRINU7O.js +4 -0
- package/dist/arcgis-map-components/HFOLCVHE.js +4 -0
- package/dist/arcgis-map-components/HN2B2WVM.js +4 -0
- package/dist/arcgis-map-components/HYBGAIIH.js +4 -0
- package/dist/arcgis-map-components/IJ4I2C2Q.js +4 -0
- package/dist/arcgis-map-components/ILVOJPYP.js +4 -0
- package/dist/arcgis-map-components/IUSB5KZR.js +4 -0
- package/dist/arcgis-map-components/{D5YSPPQY.js → KES7H4RV.js} +1 -1
- package/dist/arcgis-map-components/KFWRSEL5.js +4 -0
- package/dist/arcgis-map-components/KTPXF7QU.js +4 -0
- package/dist/arcgis-map-components/LXNOWS2N.js +4 -0
- package/dist/arcgis-map-components/MAZ73QH3.js +4 -0
- package/dist/arcgis-map-components/MKBRZJPK.js +4 -0
- package/dist/arcgis-map-components/{X3DKJFAI.js → MNAEUWGF.js} +2 -2
- package/dist/arcgis-map-components/NFID37OS.js +4 -0
- package/dist/arcgis-map-components/NH2PJWZN.js +4 -0
- package/dist/arcgis-map-components/NINSVERY.js +4 -0
- package/dist/arcgis-map-components/OWAZAAPU.js +4 -0
- package/dist/arcgis-map-components/{CTCO63FH.js → OXPBMLUL.js} +2 -2
- package/dist/arcgis-map-components/OXZIRB5Z.js +4 -0
- package/dist/arcgis-map-components/P254GL27.js +4 -0
- package/dist/arcgis-map-components/P2PVJ4AF.js +4 -0
- package/dist/arcgis-map-components/QAIK42DS.js +4 -0
- package/dist/arcgis-map-components/QHZ2NQDS.js +4 -0
- package/dist/arcgis-map-components/RIESOZ3J.js +4 -0
- package/dist/arcgis-map-components/RN7HCA5M.js +4 -0
- package/dist/arcgis-map-components/S732TQFW.js +4 -0
- package/dist/arcgis-map-components/SWD2W5AQ.js +4 -0
- package/dist/arcgis-map-components/T2IZZQA6.js +4 -0
- package/dist/arcgis-map-components/TYHESC7C.js +4 -0
- package/dist/arcgis-map-components/TYLB5V7D.js +4 -0
- package/dist/arcgis-map-components/U3JMNMD5.js +4 -0
- package/dist/arcgis-map-components/U5BKFVZA.js +4 -0
- package/dist/arcgis-map-components/{ADHZXMHO.js → VOAP25R5.js} +2 -2
- package/dist/arcgis-map-components/{F2U6NY4G.js → VPAITV6T.js} +2 -2
- package/dist/arcgis-map-components/VPDLR5PZ.js +4 -0
- package/dist/arcgis-map-components/VYAG6QFL.js +4 -0
- package/dist/arcgis-map-components/WRLAAWYP.js +4 -0
- package/dist/arcgis-map-components/XGMH4FTN.js +4 -0
- package/dist/arcgis-map-components/{B2AHBB47.js → XXMI6R5H.js} +2 -2
- package/dist/arcgis-map-components/YN7363HF.js +4 -0
- package/dist/arcgis-map-components/YWCFGHSS.js +4 -0
- package/dist/arcgis-map-components/ZZWXJ7BT.js +4 -0
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/chunks/basemap-gallery-item.js +1 -1
- package/dist/chunks/component-utils.js +43 -43
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- 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.d.ts +4 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +10 -10
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +5 -4
- package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
- package/dist/components/arcgis-attachments/customElement.d.ts +7 -6
- package/dist/components/arcgis-attachments/customElement.js +9 -9
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -3
- package/dist/components/arcgis-basemap-gallery/customElement.js +38 -37
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -22
- package/dist/components/arcgis-basemap-layer-list/customElement.js +6 -6
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +7 -6
- package/dist/components/arcgis-basemap-toggle/customElement.js +18 -17
- package/dist/components/arcgis-bookmarks/customElement.d.ts +14 -13
- package/dist/components/arcgis-bookmarks/customElement.js +9 -9
- package/dist/components/arcgis-building-explorer/customElement.d.ts +5 -4
- package/dist/components/arcgis-building-explorer/customElement.js +9 -9
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +16 -15
- package/dist/components/arcgis-catalog-layer-list/customElement.js +6 -6
- package/dist/components/arcgis-compass/customElement.d.ts +4 -3
- package/dist/components/arcgis-compass/customElement.js +10 -10
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -7
- package/dist/components/arcgis-coordinate-conversion/customElement.js +9 -9
- package/dist/components/arcgis-daylight/customElement.d.ts +5 -4
- package/dist/components/arcgis-daylight/customElement.js +8 -8
- package/dist/components/arcgis-directional-pad/customElement.d.ts +28 -5
- package/dist/components/arcgis-directional-pad/customElement.js +37 -36
- package/dist/components/arcgis-directions/customElement.d.ts +10 -8
- package/dist/components/arcgis-directions/customElement.js +24 -24
- package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +5 -4
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +9 -9
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +5 -4
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +9 -9
- package/dist/components/arcgis-editor/customElement.d.ts +17 -16
- package/dist/components/arcgis-editor/customElement.js +9 -9
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +16 -21
- package/dist/components/arcgis-elevation-profile/customElement.js +9 -9
- package/dist/components/arcgis-expand/customElement.d.ts +9 -8
- package/dist/components/arcgis-expand/customElement.js +9 -9
- package/dist/components/arcgis-feature/customElement.d.ts +10 -17
- package/dist/components/arcgis-feature/customElement.js +8 -8
- package/dist/components/arcgis-feature-form/customElement.d.ts +8 -7
- package/dist/components/arcgis-feature-form/customElement.js +9 -9
- package/dist/components/arcgis-feature-table/customElement.d.ts +24 -23
- package/dist/components/arcgis-feature-table/customElement.js +17 -16
- package/dist/components/arcgis-feature-templates/customElement.d.ts +8 -7
- package/dist/components/arcgis-feature-templates/customElement.js +10 -10
- package/dist/components/arcgis-features/customElement.d.ts +21 -20
- package/dist/components/arcgis-features/customElement.js +6 -6
- package/dist/components/arcgis-floor-filter/customElement.d.ts +9 -8
- package/dist/components/arcgis-floor-filter/customElement.js +10 -10
- package/dist/components/arcgis-fullscreen/customElement.d.ts +5 -4
- package/dist/components/arcgis-fullscreen/customElement.js +11 -11
- package/dist/components/arcgis-histogram/customElement.d.ts +14 -13
- package/dist/components/arcgis-histogram/customElement.js +9 -9
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +15 -14
- package/dist/components/arcgis-histogram-range-slider/customElement.js +9 -9
- package/dist/components/arcgis-home/customElement.d.ts +7 -6
- package/dist/components/arcgis-home/customElement.js +12 -12
- package/dist/components/arcgis-layer-list/customElement.d.ts +21 -20
- package/dist/components/arcgis-layer-list/customElement.js +10 -10
- package/dist/components/arcgis-legend/customElement.d.ts +5 -4
- package/dist/components/arcgis-legend/customElement.js +9 -9
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +5 -4
- package/dist/components/arcgis-line-of-sight/customElement.js +9 -9
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
- package/dist/components/arcgis-link-chart/customElement.js +27 -27
- package/dist/components/arcgis-locate/customElement.d.ts +7 -6
- package/dist/components/arcgis-locate/customElement.js +15 -15
- package/dist/components/arcgis-map/customElement.d.ts +19 -17
- package/dist/components/arcgis-map/customElement.js +27 -27
- package/dist/components/arcgis-measurement/customElement.d.ts +7 -6
- package/dist/components/arcgis-measurement/customElement.js +9 -9
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +8 -6
- package/dist/components/arcgis-navigation-toggle/customElement.js +11 -11
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +8 -7
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +33 -28
- package/dist/components/arcgis-placement/customElement.js +2 -2
- package/dist/components/arcgis-print/customElement.d.ts +7 -6
- package/dist/components/arcgis-print/customElement.js +9 -9
- package/dist/components/arcgis-scale-bar/customElement.d.ts +6 -5
- package/dist/components/arcgis-scale-bar/customElement.js +70 -63
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +6 -5
- package/dist/components/arcgis-scale-range-slider/customElement.js +12 -12
- package/dist/components/arcgis-scene/customElement.d.ts +18 -16
- package/dist/components/arcgis-scene/customElement.js +25 -25
- package/dist/components/arcgis-search/customElement.d.ts +15 -14
- package/dist/components/arcgis-search/customElement.js +8 -8
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +11 -10
- package/dist/components/arcgis-shadow-cast/customElement.js +12 -12
- package/dist/components/arcgis-sketch/customElement.d.ts +30 -28
- package/dist/components/arcgis-sketch/customElement.js +11 -12
- package/dist/components/arcgis-slice/customElement.d.ts +6 -5
- package/dist/components/arcgis-slice/customElement.js +9 -9
- package/dist/components/arcgis-slider/customElement.d.ts +15 -14
- package/dist/components/arcgis-slider/customElement.js +9 -9
- package/dist/components/arcgis-swipe/customElement.d.ts +6 -5
- package/dist/components/arcgis-swipe/customElement.js +17 -17
- package/dist/components/arcgis-table-list/customElement.d.ts +25 -22
- package/dist/components/arcgis-table-list/customElement.js +6 -6
- package/dist/components/arcgis-time-slider/customElement.d.ts +10 -9
- package/dist/components/arcgis-time-slider/customElement.js +9 -9
- package/dist/components/arcgis-track/customElement.d.ts +8 -7
- package/dist/components/arcgis-track/customElement.js +15 -15
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +85 -14
- package/dist/components/arcgis-utility-network-associations/customElement.js +33 -210
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +11 -11
- package/dist/components/arcgis-value-picker/customElement.d.ts +10 -9
- package/dist/components/arcgis-value-picker/customElement.js +9 -9
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -3
- package/dist/components/arcgis-version-management/customElement.js +99 -100
- 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.d.ts +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.d.ts +6 -5
- package/dist/components/arcgis-weather/customElement.js +9 -9
- package/dist/components/arcgis-zoom/customElement.d.ts +4 -3
- package/dist/components/arcgis-zoom/customElement.js +8 -8
- package/dist/controllers/useViewModel.d.ts +2 -2
- package/dist/controllers/useWidget.d.ts +2 -2
- package/dist/docs/api.json +1105 -462
- package/dist/docs/docs.json +823 -345
- package/dist/docs/vscode.html-custom-data.json +229 -137
- package/dist/docs/web-types.json +582 -374
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/dist/testing/commonSpatialReferences.d.ts +8 -0
- package/dist/testing/mockServices.d.ts +9 -0
- package/dist/testing/setupFile.d.ts +1 -0
- package/dist/testing/testUtils.d.ts +49 -0
- package/dist/testing/tileInfoUtils.d.ts +10 -0
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/dist/utils/component-utils.d.ts +2 -2
- package/package.json +4 -5
- package/dist/arcgis-map-components/2LH365WX.js +0 -4
- package/dist/arcgis-map-components/6JAD4WKP.js +0 -4
- package/dist/arcgis-map-components/7IYUKHGU.js +0 -4
- package/dist/arcgis-map-components/7PRXTQ4Y.js +0 -4
- package/dist/arcgis-map-components/ASLMMNFG.js +0 -4
- package/dist/arcgis-map-components/BCSTA4MD.js +0 -4
- package/dist/arcgis-map-components/BMZIKLJT.js +0 -4
- package/dist/arcgis-map-components/BVS52H6M.js +0 -4
- package/dist/arcgis-map-components/C542LZ3W.js +0 -4
- package/dist/arcgis-map-components/CAQQA5ME.js +0 -4
- package/dist/arcgis-map-components/CCF5WJQL.js +0 -4
- package/dist/arcgis-map-components/CHN4JGNG.js +0 -4
- package/dist/arcgis-map-components/CLW7FHWH.js +0 -4
- package/dist/arcgis-map-components/CSEA27MX.js +0 -4
- package/dist/arcgis-map-components/FTOHM6K7.js +0 -4
- package/dist/arcgis-map-components/G6CP2VYU.js +0 -4
- package/dist/arcgis-map-components/GHPCV4MN.js +0 -4
- package/dist/arcgis-map-components/GP5KXKC6.js +0 -4
- package/dist/arcgis-map-components/GUBVA4HI.js +0 -4
- package/dist/arcgis-map-components/H3QUUUNO.js +0 -4
- package/dist/arcgis-map-components/HNBQDWNV.js +0 -4
- package/dist/arcgis-map-components/IF6ICBVD.js +0 -4
- package/dist/arcgis-map-components/JDYFIYT3.js +0 -4
- package/dist/arcgis-map-components/JG6SSII2.js +0 -4
- package/dist/arcgis-map-components/JPFJWSQT.js +0 -4
- package/dist/arcgis-map-components/JY2BL6QD.js +0 -4
- package/dist/arcgis-map-components/LW4HCA3P.js +0 -4
- package/dist/arcgis-map-components/MCAPSEE3.js +0 -4
- package/dist/arcgis-map-components/MJBNTJRW.js +0 -4
- package/dist/arcgis-map-components/NAN3TPDO.js +0 -4
- package/dist/arcgis-map-components/NUF2ZXJB.js +0 -4
- package/dist/arcgis-map-components/OF62ZZDT.js +0 -4
- package/dist/arcgis-map-components/OODDLGXW.js +0 -4
- package/dist/arcgis-map-components/OUTOCGVP.js +0 -4
- package/dist/arcgis-map-components/PBYUEHJ2.js +0 -4
- package/dist/arcgis-map-components/QWBNGCQZ.js +0 -4
- package/dist/arcgis-map-components/QXH6QBCY.js +0 -4
- package/dist/arcgis-map-components/RLXPUR6U.js +0 -4
- package/dist/arcgis-map-components/S2QUE2PT.js +0 -4
- package/dist/arcgis-map-components/S3HVEU43.js +0 -4
- package/dist/arcgis-map-components/SBFEI7G7.js +0 -4
- package/dist/arcgis-map-components/SDIRYXNN.js +0 -4
- package/dist/arcgis-map-components/SDTEUQJF.js +0 -4
- package/dist/arcgis-map-components/SJ23WYPX.js +0 -4
- package/dist/arcgis-map-components/SM27BTYQ.js +0 -4
- package/dist/arcgis-map-components/SV37GYTZ.js +0 -4
- package/dist/arcgis-map-components/SZI3EYQQ.js +0 -4
- package/dist/arcgis-map-components/TRRQPVCK.js +0 -4
- package/dist/arcgis-map-components/UJJUHEQP.js +0 -4
- package/dist/arcgis-map-components/USOW5GMA.js +0 -4
- package/dist/arcgis-map-components/VCU3GSEE.js +0 -4
- package/dist/arcgis-map-components/VHDI7NKV.js +0 -4
- package/dist/arcgis-map-components/VIEKXUEC.js +0 -4
- package/dist/arcgis-map-components/VQUVK2Z4.js +0 -4
- package/dist/arcgis-map-components/VY2AN4QN.js +0 -4
- package/dist/arcgis-map-components/WCITYN6U.js +0 -4
- package/dist/arcgis-map-components/WOWZWSL5.js +0 -4
- package/dist/arcgis-map-components/WZIB63XY.js +0 -4
- package/dist/arcgis-map-components/XJ5ZDZD5.js +0 -4
- package/dist/arcgis-map-components/XKFVFNRT.js +0 -4
- package/dist/arcgis-map-components/XKY2Q5V6.js +0 -4
- package/dist/arcgis-map-components/ZANDAN6Q.js +0 -4
- package/dist/arcgis-map-components/ZD343J42.js +0 -4
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
|
-
import { Nil } from '@arcgis/components-utils';
|
|
5
3
|
import { Use } from '@arcgis/components-controllers';
|
|
4
|
+
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as LocateViewModel } from '@arcgis/core/widgets/Locate/LocateViewModel.js';
|
|
6
6
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useLocateViewModel: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
10
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
autoDestroyDisabled?: boolean;
|
|
12
13
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<
|
|
14
|
+
} & Pick<LocateViewModel, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: "ready" | "disabled" | "error" | "feature-unsupported" | "locating" | undefined;
|
|
16
17
|
icon: Nil | string;
|
|
@@ -31,7 +32,7 @@ declare const useLocateViewModel: (component: import('@arcgis/components-control
|
|
|
31
32
|
destroy: () => Promise<void>;
|
|
32
33
|
}, options?: {
|
|
33
34
|
editConstructorProperties(props: unknown): unknown;
|
|
34
|
-
} | undefined) =>
|
|
35
|
+
} | undefined) => LocateViewModel;
|
|
35
36
|
/** [Locate](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html) animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to the user's current location.
|
|
36
37
|
*/
|
|
37
38
|
export declare class ArcgisLocate extends LitElement {
|
|
@@ -46,7 +47,7 @@ export declare class ArcgisLocate extends LitElement {
|
|
|
46
47
|
autoDestroyDisabled: boolean;
|
|
47
48
|
geolocationOptions: any;
|
|
48
49
|
goToLocationDisabled: boolean;
|
|
49
|
-
goToOverride: __esri.GoToOverride;
|
|
50
|
+
goToOverride: nullish | __esri.GoToOverride;
|
|
50
51
|
graphic: __esri.Graphic;
|
|
51
52
|
icon: Nil | string;
|
|
52
53
|
/** The component's default label. */
|
|
@@ -55,7 +56,7 @@ export declare class ArcgisLocate extends LitElement {
|
|
|
55
56
|
popupDisabled: boolean;
|
|
56
57
|
position: __esri.UIPosition;
|
|
57
58
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
58
|
-
scale: number;
|
|
59
|
+
scale: number | nullish;
|
|
59
60
|
readonly state: "ready" | "disabled" | "error" | "feature-unsupported" | "locating";
|
|
60
61
|
/**
|
|
61
62
|
* This function provides the ability to interrupt and cancel the process of
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { c as m } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as t } from "lit-html";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { usePropertyChange as g } from "@arcgis/components-controllers";
|
|
4
|
+
import { reEmitEvent as c } from "@arcgis/components-controllers/accessor";
|
|
5
|
+
import { classes as u } from "@arcgis/components-utils";
|
|
6
|
+
import v from "@arcgis/core/widgets/Locate/LocateViewModel.js";
|
|
7
|
+
import { LitElement as f, createEvent as w, noShadowRoot as E, safeClassMap as l, nothing as b } from "@arcgis/lumina";
|
|
8
|
+
import { u as M, m as y } from "../../chunks/useViewModel.js";
|
|
9
|
+
import { g as r } from "../../chunks/globalCss.js";
|
|
10
|
+
import { l as $ } from "../../chunks/legacyIcon.js";
|
|
11
11
|
import { css as L } from "@lit/reactive-element/css-tag.js";
|
|
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.87 */
|
|
15
15
|
const D = L`arcgis-locate{display:block}`, O = {
|
|
16
16
|
base: "esri-locate"
|
|
17
|
-
}, n = "gps-off", T = v
|
|
18
|
-
class I extends
|
|
17
|
+
}, n = "gps-off", T = y(v);
|
|
18
|
+
class I extends f {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this.messages =
|
|
20
|
+
super(...arguments), this.messages = M(), this.viewModel = T(this), 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 = n, this.popupDisabled = this.viewModel.popupEnabled, this.position = "top-left", this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = c(() => this.viewModel, "locate-error"), this.arcgisPropertyChange = g()("state"), this.arcgisReady = w(), this.arcgisSuccess = c(() => this.viewModel, "locate");
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
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 };
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.shadowRootOptions =
|
|
26
|
+
this.shadowRootOptions = E;
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.styles = D;
|
|
@@ -60,8 +60,8 @@ class I extends b {
|
|
|
60
60
|
// #endregion
|
|
61
61
|
// #region Rendering
|
|
62
62
|
render() {
|
|
63
|
-
const { viewModel: e, icon: d } = this, { state: o } = e, i = o === "locating", s = i ? this.messages.cancel : this.messages.title, h = o === "feature-unsupported", p =
|
|
64
|
-
return t`<div class=${l(
|
|
63
|
+
const { viewModel: e, icon: d } = this, { state: o } = e, i = o === "locating", s = i ? this.messages.cancel : this.messages.title, h = o === "feature-unsupported", p = $ === void 0 ? n : void 0, a = this._localizeError(this.viewModel?.error);
|
|
64
|
+
return t`<div class=${l(u(O.base, r.widget))}>${!h && t`<calcite-button class=${l(r.widgetButton)} .disabled=${o === "disabled"} .iconStart=${i ? void 0 : d ?? p} kind=neutral .label=${s} @click=${this._locate} title=${s ?? b}>${i ? t`<calcite-loader inline label></calcite-loader>` : null}</calcite-button>` || ""}${a ? t`<calcite-tooltip open overlay-positioning=fixed .referenceElement=${this.el}>${a}</calcite-tooltip>` : null}</div>`;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
m("arcgis-locate", I);
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
3
|
import { Use } from '@arcgis/components-controllers';
|
|
4
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as MapView } from '@arcgis/core/views/MapView.js';
|
|
6
|
+
import { default as WebMap } from '@arcgis/core/WebMap.js';
|
|
5
7
|
import { PublicLitElement as LitElement, ToElement, TargetedEvent } from '@arcgis/lumina';
|
|
6
8
|
|
|
7
9
|
declare const useWebMap: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
@@ -9,35 +11,35 @@ declare const useWebMap: (component: import('@arcgis/components-controllers').St
|
|
|
9
11
|
el: HTMLElement;
|
|
10
12
|
autoDestroyDisabled?: boolean;
|
|
11
13
|
destroy?: () => Promise<void>;
|
|
12
|
-
} & Pick<
|
|
14
|
+
} & Pick<WebMap, never> & {
|
|
13
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
14
16
|
autoDestroyDisabled: boolean;
|
|
15
17
|
destroy: () => Promise<void>;
|
|
16
18
|
}, options?: {
|
|
17
|
-
editConstructorProperties(props: __esri.WebMapProperties): __esri.WebMapProperties | Promise<__esri.WebMapProperties
|
|
18
|
-
} | undefined) =>
|
|
19
|
+
editConstructorProperties(props: __esri.WebMapProperties | undefined): __esri.WebMapProperties | Promise<__esri.WebMapProperties | undefined> | undefined;
|
|
20
|
+
} | undefined) => WebMap;
|
|
19
21
|
declare const useMapView: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
20
22
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
21
23
|
el: HTMLElement;
|
|
22
24
|
autoDestroyDisabled?: boolean;
|
|
23
25
|
destroy?: () => Promise<void>;
|
|
24
|
-
} & Pick<
|
|
26
|
+
} & Pick<MapView, never> & {
|
|
25
27
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
26
28
|
autoDestroyDisabled: boolean;
|
|
27
29
|
destroy: () => Promise<void>;
|
|
28
30
|
}, options?: {
|
|
29
|
-
editConstructorProperties(props: __esri.MapViewProperties): __esri.MapViewProperties | Promise<__esri.MapViewProperties
|
|
30
|
-
} | undefined) =>
|
|
31
|
+
editConstructorProperties(props: __esri.MapViewProperties | undefined): __esri.MapViewProperties | Promise<__esri.MapViewProperties | undefined> | undefined;
|
|
32
|
+
} | undefined) => MapView;
|
|
31
33
|
/** Loads a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) from [ArcGIS Online](https://www.arcgis.com/home/index.html) or [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-portal-for-arcgis-.htm) into a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
|
|
32
34
|
*/
|
|
33
35
|
export declare class ArcgisMap extends LitElement {
|
|
34
36
|
/** Internal view of the component. */
|
|
35
|
-
readonly view:
|
|
37
|
+
readonly view: MapView;
|
|
36
38
|
/**
|
|
37
39
|
* Collection containing a flat list of all the created LayerViews
|
|
38
40
|
* related to the basemap, operational layers, and group layers in this view.
|
|
39
41
|
*/
|
|
40
|
-
allLayerViews: __esri.Collection<__esri.LayerView>;
|
|
42
|
+
readonly allLayerViews: __esri.Collection<__esri.LayerView>;
|
|
41
43
|
/**
|
|
42
44
|
* If true, the component will not be destroyed automatically when it is
|
|
43
45
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -50,13 +52,13 @@ export declare class ArcgisMap extends LitElement {
|
|
|
50
52
|
* The background color of the MapView. If the view's map changes, the view's `background` is reset to the map's background,
|
|
51
53
|
* even if the user set it previously.
|
|
52
54
|
*/
|
|
53
|
-
background: __esri.ColorBackground;
|
|
55
|
+
background: nullish | __esri.ColorBackground;
|
|
54
56
|
/**
|
|
55
57
|
* Specifies a basemap for the map. The basemap is a set of layers that give
|
|
56
58
|
* geographic context to the MapView or SceneView and the other operational layers
|
|
57
59
|
* in the map.
|
|
58
60
|
*/
|
|
59
|
-
basemap: __esri.Basemap | string;
|
|
61
|
+
basemap: __esri.Basemap | nullish | string;
|
|
60
62
|
/** Represents the view for a single basemap after it has been added to the map. */
|
|
61
63
|
basemapView: __esri.BasemapView;
|
|
62
64
|
/**
|
|
@@ -84,7 +86,7 @@ export declare class ArcgisMap extends LitElement {
|
|
|
84
86
|
get extent(): __esri.MapView["extent"];
|
|
85
87
|
set extent(newValue: __esri.MapView["extent"]);
|
|
86
88
|
/** A rejected view indicates a fatal error making it unable to display. */
|
|
87
|
-
fatalError: __esri.Error;
|
|
89
|
+
fatalError: nullish | __esri.Error;
|
|
88
90
|
/**
|
|
89
91
|
* Applies a display filter on the view for a specific set of floor levels.
|
|
90
92
|
* It can filter the map display on floor-aware layers by zero or more level IDs.
|
|
@@ -112,7 +114,7 @@ export declare class ArcgisMap extends LitElement {
|
|
|
112
114
|
* The highlights property is a collection of HighlightGroup objects that
|
|
113
115
|
* allow you to visually emphasize specific features on the map.
|
|
114
116
|
*/
|
|
115
|
-
highlights: __esri.Collection<any>;
|
|
117
|
+
readonly highlights: __esri.Collection<any>;
|
|
116
118
|
/**
|
|
117
119
|
* @deprecated
|
|
118
120
|
*
|
|
@@ -126,7 +128,7 @@ export declare class ArcgisMap extends LitElement {
|
|
|
126
128
|
/**
|
|
127
129
|
* Contains indoor positioning system information for the map.
|
|
128
130
|
*/
|
|
129
|
-
ipsInfo: __esri.IPSInfo;
|
|
131
|
+
ipsInfo: nullish | __esri.IPSInfo;
|
|
130
132
|
/** The ID of a WebMap from ArcGIS Online or ArcGIS Enterprise portal.
|
|
131
133
|
*
|
|
132
134
|
* To configure the portal url you must set the [`portalUrl` property on `config`](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl) before the `arcgis-map` component loads.
|
|
@@ -148,7 +150,7 @@ export declare class ArcgisMap extends LitElement {
|
|
|
148
150
|
/** Options to configure the navigation behavior of the View. */
|
|
149
151
|
navigation: __esri.Navigation;
|
|
150
152
|
padding: __esri.ViewPadding;
|
|
151
|
-
popup: __esri.Popup;
|
|
153
|
+
popup: nullish | __esri.Popup;
|
|
152
154
|
/** Controls whether the popup opens when users click on the view. */
|
|
153
155
|
popupDisabled: boolean;
|
|
154
156
|
/**
|
|
@@ -197,14 +199,14 @@ export declare class ArcgisMap extends LitElement {
|
|
|
197
199
|
* This property specifies the base colors used by some widgets
|
|
198
200
|
* and components to render graphics and labels.
|
|
199
201
|
*/
|
|
200
|
-
theme: __esri.Theme;
|
|
202
|
+
theme: nullish | __esri.Theme;
|
|
201
203
|
/**
|
|
202
204
|
* The view's time extent. Time-aware layers display their temporal data that falls within
|
|
203
205
|
* the view's time extent. Setting the view's time extent is similar to setting the spatial
|
|
204
206
|
* extent because once the time extent is set, the
|
|
205
207
|
* view updates automatically to conform to the change.
|
|
206
208
|
*/
|
|
207
|
-
timeExtent: __esri.TimeExtent;
|
|
209
|
+
timeExtent: nullish | __esri.TimeExtent;
|
|
208
210
|
/**
|
|
209
211
|
* Defines the time zone of the view.
|
|
210
212
|
* The time zone property determines how dates and times are represented to the user,
|
|
@@ -256,7 +258,7 @@ export declare class ArcgisMap extends LitElement {
|
|
|
256
258
|
/** Create a screenshot of the current view. */
|
|
257
259
|
takeScreenshot(options?: __esri.MapViewTakeScreenshotOptions): Promise<__esri.Screenshot>;
|
|
258
260
|
toMap(screenPoint: __esri.MapViewScreenPoint | MouseEvent): __esri.Point;
|
|
259
|
-
toScreen(point: __esri.Point, options?: __esri.ToScreenOptions2D): __esri.MapViewScreenPoint;
|
|
261
|
+
toScreen(point: __esri.Point, options?: __esri.ToScreenOptions2D): __esri.MapViewScreenPoint | nullish;
|
|
260
262
|
/** Call this method to clear any fatal errors resulting from a lost WebGL context. */
|
|
261
263
|
tryFatalErrorRecovery(): Promise<void>;
|
|
262
264
|
/** Gets the LayerView created on the view for the given layer. */
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { c
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import {
|
|
1
|
+
import { c } from "../../chunks/runtime.js";
|
|
2
|
+
import { makeAccessorController as r, reEmitEvent as e, accessorSupport as p } from "@arcgis/components-controllers/accessor";
|
|
3
|
+
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import v from "@arcgis/core/views/MapView.js";
|
|
5
|
+
import d from "@arcgis/core/WebMap.js";
|
|
6
|
+
import { LitElement as l, createEvent as a, noShadowRoot as m } from "@arcgis/lumina";
|
|
7
|
+
import { e as h, i as g } from "../../chunks/component-utils.js";
|
|
8
|
+
import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
8
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
10
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
v4.32.0-next.
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
v4.32.0-next.87 */
|
|
12
|
+
const u = y`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, f = r(
|
|
13
|
+
d,
|
|
13
14
|
/**
|
|
14
15
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
15
16
|
* a hack to remove them from the runtime code. This argument is not used at
|
|
@@ -19,19 +20,19 @@ const f = u`.arcgis-map{padding:0;margin:0;height:100%;width:100%}`, V = h(
|
|
|
19
20
|
* in an externalized package.
|
|
20
21
|
*/
|
|
21
22
|
{}
|
|
22
|
-
), b =
|
|
23
|
-
class
|
|
23
|
+
), b = r(v, {});
|
|
24
|
+
class V extends l {
|
|
24
25
|
constructor() {
|
|
25
|
-
super(...arguments), this._map =
|
|
26
|
+
super(...arguments), this._map = f(this, { editConstructorProperties: this._editMapProperties }), this.view = b(this, { editConstructorProperties: this._editViewProperties }), this.allLayerViews = this.view.allLayerViews, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.highlights = this.view.highlights, this.highlightOptions = this.view.highlightOptions, this.ipsInfo = this._map.ipsInfo, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.updating = this.view.updating, this.arcgisViewChange = a(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layer-view-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layer-view-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layer-view-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = a();
|
|
26
27
|
}
|
|
27
28
|
static {
|
|
28
29
|
this.properties = { view: 32, allLayerViews: 0, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, floors: 0, gamepad: 32, graphics: 0, ground: 1, highlights: 0, highlightOptions: 0, interacting: 32, ipsInfo: 0, itemId: 3, layerViews: 0, magnifier: 0, map: 0, navigating: 32, navigation: 0, padding: 0, popup: 0, popupDisabled: 5, ready: 4, resizeAlign: 1, resolution: 8, rotation: 9, scale: 9, spatialReference: 0, stationary: 32, suspended: 7, theme: 0, timeExtent: 0, timeZone: 1, updating: 7, viewpoint: 0, zoom: 9 };
|
|
29
30
|
}
|
|
30
31
|
static {
|
|
31
|
-
this.shadowRootOptions =
|
|
32
|
+
this.shadowRootOptions = m;
|
|
32
33
|
}
|
|
33
34
|
static {
|
|
34
|
-
this.styles =
|
|
35
|
+
this.styles = u;
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* Represents the view's center point; when setting the center, you may pass a
|
|
@@ -44,7 +45,7 @@ class _ extends g {
|
|
|
44
45
|
return this.view.center ?? this._center;
|
|
45
46
|
}
|
|
46
47
|
set center(i) {
|
|
47
|
-
const t =
|
|
48
|
+
const t = h(i, this.ready ? this.view : void 0);
|
|
48
49
|
t && (this.ready && (this.view.center = t), this._center = t);
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
@@ -106,7 +107,7 @@ class _ extends g {
|
|
|
106
107
|
return this.view.viewpoint ?? this._viewpoint;
|
|
107
108
|
}
|
|
108
109
|
set viewpoint(i) {
|
|
109
|
-
|
|
110
|
+
g(this.viewpoint, i) && (this.ready && (this.view.viewpoint = i), this._viewpoint = i);
|
|
110
111
|
}
|
|
111
112
|
/**
|
|
112
113
|
* Represents the level of detail (LOD) at the center of the view.
|
|
@@ -182,32 +183,31 @@ class _ extends g {
|
|
|
182
183
|
this.el.childElem = document.createElement("div"), this.el.childElem.classList.add("arcgis-map"), this.el.append(this.el.childElem), this.view.container ??= this.el.childElem;
|
|
183
184
|
}
|
|
184
185
|
loaded() {
|
|
185
|
-
const { watch: i } = this.reactiveUtils;
|
|
186
186
|
this.manager.onLifecycle(() => [
|
|
187
|
-
|
|
187
|
+
s(() => this.view.stationary, () => {
|
|
188
188
|
this.arcgisViewChange.emit();
|
|
189
189
|
}, { initial: !0 }),
|
|
190
|
-
|
|
190
|
+
s(() => this.view.ready, () => this.arcgisViewReadyChange.emit(), { initial: this.view.ready })
|
|
191
191
|
]);
|
|
192
192
|
}
|
|
193
193
|
// #endregion
|
|
194
194
|
// #region Private Methods
|
|
195
195
|
_editMapProperties(i) {
|
|
196
196
|
this.map && (this._map = this.map), this.itemId ? i.portalItem = { id: this.itemId } : this.basemap ? this.basemap === "none" && (i.basemap = void 0, this.basemap = null) : i.basemap = "topo-vector";
|
|
197
|
-
const { basemap: t, ...
|
|
198
|
-
t || (i =
|
|
199
|
-
const { ground:
|
|
200
|
-
return
|
|
197
|
+
const { basemap: t, ...o } = i;
|
|
198
|
+
t || (i = o);
|
|
199
|
+
const { ground: n, ...w } = i;
|
|
200
|
+
return n || (i = w), i;
|
|
201
201
|
}
|
|
202
202
|
async _editViewProperties(i) {
|
|
203
203
|
await this.manager.use(this._map), this.view.ui || (i.ui = {
|
|
204
204
|
components: ["attribution"]
|
|
205
205
|
}), i.map ??= this._map;
|
|
206
|
-
const t =
|
|
206
|
+
const t = h(this.center, void 0);
|
|
207
207
|
return t && (i.center = t), this.viewpoint && (i.viewpoint = this.viewpoint), this.scale !== void 0 && (i.scale = this.scale), this.extent && (i.extent = this.extent), this.zoom !== void 0 && (i.zoom = this.zoom), i;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
c("arcgis-map", V);
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
V as ArcgisMap
|
|
213
213
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
3
|
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as Measurement } from '@arcgis/core/widgets/Measurement.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useMeasurementWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
10
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
autoDestroyDisabled?: boolean;
|
|
12
13
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<
|
|
14
|
+
} & Pick<Measurement, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.MeasurementViewModel | undefined;
|
|
@@ -31,14 +32,14 @@ declare const useMeasurementWidget: (component: import('@arcgis/components-contr
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.MeasurementProperties): __esri.MeasurementProperties | Promise<__esri.MeasurementProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.MeasurementProperties | undefined): __esri.MeasurementProperties | Promise<__esri.MeasurementProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => Measurement;
|
|
36
37
|
/**
|
|
37
38
|
* @internal
|
|
38
39
|
*/
|
|
39
40
|
export declare class ArcgisMeasurement extends LitElement {
|
|
40
|
-
activeTool: "area" | "distance" | "direct-line";
|
|
41
|
-
readonly activeWidget: __esri.
|
|
41
|
+
activeTool: nullish | "area" | "distance" | "direct-line";
|
|
42
|
+
readonly activeWidget: nullish | __esri.DistanceMeasurement2D | __esri.DirectLineMeasurement3D | __esri.AreaMeasurement3D | __esri.AreaMeasurement2D;
|
|
42
43
|
areaUnit: __esri.SystemOrAreaUnit;
|
|
43
44
|
/**
|
|
44
45
|
* If true, the component will not be destroyed automatically when it is
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { usePropertyChange as e } from "@arcgis/components-controllers";
|
|
3
|
+
import i from "@arcgis/core/widgets/Measurement.js";
|
|
4
|
+
import { LitElement as s, createEvent as a, noShadowRoot as o } from "@arcgis/lumina";
|
|
5
|
+
import { m as r } from "../../chunks/useWidget.js";
|
|
6
6
|
import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
v4.32.0-next.
|
|
10
|
-
const c = n`arcgis-measurement{display:block}`, h =
|
|
11
|
-
class l extends
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const c = n`arcgis-measurement{display:block}`, h = r(i);
|
|
11
|
+
class l extends s {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.activeTool = this.widget.activeTool, this.activeWidget = this.widget.activeWidget, this.areaUnit = this.widget.areaUnit, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.linearUnit = this.widget.linearUnit, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange =
|
|
13
|
+
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.activeTool = this.widget.activeTool, this.activeWidget = this.widget.activeWidget, this.areaUnit = this.widget.areaUnit, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.linearUnit = this.widget.linearUnit, this.position = "bottom-left", this.state = this.viewModel.state, this.arcgisPropertyChange = e()("activeTool", "state"), this.arcgisReady = a();
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.properties = { activeTool: 1, activeWidget: 0, areaUnit: 1, autoDestroyDisabled: 5, icon: 1, label: 1, linearUnit: 1, position: 1, referenceElement: 1, state: 3 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
19
|
+
this.shadowRootOptions = o;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = c;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
4
3
|
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as NavigationToggle } from '@arcgis/core/widgets/NavigationToggle.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useNavigationToggleWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
9
10
|
manager: import('@arcgis/components-controllers').ControllerManager;
|
|
10
11
|
el: HTMLElement;
|
|
11
12
|
autoDestroyDisabled?: boolean;
|
|
12
13
|
destroy?: () => Promise<void>;
|
|
13
|
-
} & Pick<
|
|
14
|
+
} & Pick<NavigationToggle, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.NavigationToggleViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const useNavigationToggleWidget: (component: import('@arcgis/components-
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.NavigationToggleProperties): __esri.NavigationToggleProperties | Promise<__esri.NavigationToggleProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.NavigationToggleProperties | undefined): __esri.NavigationToggleProperties | Promise<__esri.NavigationToggleProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => NavigationToggle;
|
|
36
37
|
/** The [NavigationToggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html) two simple buttons for toggling the [navigation mode](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode) of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisNavigationToggle extends LitElement {
|
|
@@ -49,13 +50,14 @@ export declare class ArcgisNavigationToggle extends LitElement {
|
|
|
49
50
|
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
50
51
|
* Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values.
|
|
51
52
|
*/
|
|
52
|
-
icon: string;
|
|
53
|
+
icon: string | nullish;
|
|
53
54
|
/** The component's default label. */
|
|
54
55
|
label: string;
|
|
55
|
-
layout: "
|
|
56
|
+
layout: "vertical" | "horizontal";
|
|
56
57
|
position: __esri.UIPosition;
|
|
57
58
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
58
59
|
readonly state: "ready" | "disabled";
|
|
60
|
+
navigationMode: "rotate" | "pan";
|
|
59
61
|
/** Permanently destroy the component */
|
|
60
62
|
destroy(): Promise<void>;
|
|
61
63
|
toggle(): Promise<void>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { css as
|
|
2
|
+
import { usePropertyChange as i } from "@arcgis/components-controllers";
|
|
3
|
+
import e from "@arcgis/core/widgets/NavigationToggle.js";
|
|
4
|
+
import { LitElement as o, createEvent as s, noShadowRoot as a } from "@arcgis/lumina";
|
|
5
|
+
import { m as g } from "../../chunks/useWidget.js";
|
|
6
|
+
import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
v4.32.0-next.
|
|
10
|
-
const
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const n = r`arcgis-navigation-toggle{display:block}`, l = g(e);
|
|
11
11
|
class h extends o {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget =
|
|
13
|
+
super(...arguments), this.widget = l(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.layout = this.widget.layout, this.position = "bottom-left", this.state = this.viewModel.state, this.navigationMode = this.viewModel.navigationMode, this.arcgisPropertyChange = i()("layout", "state"), this.arcgisReady = s();
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
|
-
this.properties = { autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, position: 1, referenceElement: 1, state: 3 };
|
|
16
|
+
this.properties = { autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, position: 1, referenceElement: 1, state: 3, navigationMode: 3 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
19
|
+
this.shadowRootOptions = a;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.styles =
|
|
22
|
+
this.styles = n;
|
|
23
23
|
}
|
|
24
24
|
// #endregion
|
|
25
25
|
// #region Public Methods
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
3
|
import { Use } from '@arcgis/components-controllers';
|
|
4
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as OrientedImageryLayer } from '@arcgis/core/layers/OrientedImageryLayer.js';
|
|
6
|
+
import { default as OrientedImageryViewer } from '@arcgis/core/widgets/OrientedImageryViewer.js';
|
|
6
7
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
-
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
8
8
|
import { PropertyValues } from 'lit';
|
|
9
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
9
10
|
|
|
10
11
|
export type OrientedImageryViewerWidget = InstanceType<typeof OrientedImageryViewer>;
|
|
11
12
|
declare const useOrientedImageryViewerWidget: (component: import('@arcgis/components-controllers').StencilLifecycles & {
|
|
@@ -13,7 +14,7 @@ declare const useOrientedImageryViewerWidget: (component: import('@arcgis/compon
|
|
|
13
14
|
el: HTMLElement;
|
|
14
15
|
autoDestroyDisabled?: boolean;
|
|
15
16
|
destroy?: () => Promise<void>;
|
|
16
|
-
} & Pick<OrientedImageryViewer,
|
|
17
|
+
} & Pick<OrientedImageryViewer, never> & {
|
|
17
18
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
18
19
|
state?: unknown;
|
|
19
20
|
viewModel?: __esri.OrientedImageryViewerViewModel | undefined;
|
|
@@ -34,7 +35,7 @@ declare const useOrientedImageryViewerWidget: (component: import('@arcgis/compon
|
|
|
34
35
|
autoDestroyDisabled: boolean;
|
|
35
36
|
destroy: () => Promise<void>;
|
|
36
37
|
}, options?: {
|
|
37
|
-
editConstructorProperties(props: __esri.OrientedImageryViewerProperties): __esri.OrientedImageryViewerProperties | Promise<__esri.OrientedImageryViewerProperties
|
|
38
|
+
editConstructorProperties(props: __esri.OrientedImageryViewerProperties | undefined): __esri.OrientedImageryViewerProperties | Promise<__esri.OrientedImageryViewerProperties | undefined> | undefined;
|
|
38
39
|
} | undefined) => OrientedImageryViewer;
|
|
39
40
|
/** The [OrientedImageryViewer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-OrientedImageryViewer.html) allows the user to explore and use their oriented images.
|
|
40
41
|
*/
|
|
@@ -61,14 +62,14 @@ export declare class ArcgisOrientedImageryViewer extends LitElement {
|
|
|
61
62
|
isAdditionalCoverageVisible: boolean;
|
|
62
63
|
isAdditionalPointSourcesVisible: boolean;
|
|
63
64
|
/** The component's default label. */
|
|
64
|
-
label: string;
|
|
65
|
-
layer:
|
|
65
|
+
label: string | nullish;
|
|
66
|
+
layer: OrientedImageryLayer | nullish;
|
|
66
67
|
mapImageConversionToolState: boolean;
|
|
67
68
|
navigationToolActive: boolean;
|
|
68
69
|
orientedImageryLayerItemId?: string;
|
|
69
70
|
position: __esri.UIPosition;
|
|
70
71
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
71
|
-
readonly referencePoint: __esri.Point;
|
|
72
|
+
readonly referencePoint: __esri.Point | nullish;
|
|
72
73
|
/** Permanently destroy the component */
|
|
73
74
|
destroy(): Promise<void>;
|
|
74
75
|
readonly arcgisPropertyChange: TargetedEvent<this, {
|