@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
3
|
import { Use } from '@arcgis/components-controllers';
|
|
5
4
|
import { Nil } from '@arcgis/components-utils';
|
|
5
|
+
import { default as AreaMeasurement2D } from '@arcgis/core/widgets/AreaMeasurement2D.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useAreaMeasurement2dWidget: (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<AreaMeasurement2D & {
|
|
14
15
|
viewModel: __esri.Accessor;
|
|
15
16
|
}, "label" | "viewModel" | "icon" | "unit" | "unitOptions"> & {
|
|
16
17
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
@@ -34,7 +35,7 @@ declare const useAreaMeasurement2dWidget: (component: import('@arcgis/components
|
|
|
34
35
|
destroy: () => Promise<void>;
|
|
35
36
|
}, options?: {
|
|
36
37
|
editConstructorProperties(props: __esri.AreaMeasurement2DProperties): __esri.AreaMeasurement2DProperties | Promise<__esri.AreaMeasurement2DProperties>;
|
|
37
|
-
} | undefined) =>
|
|
38
|
+
} | undefined) => AreaMeasurement2D & {
|
|
38
39
|
viewModel: __esri.Accessor;
|
|
39
40
|
};
|
|
40
41
|
/** [AreaMeasurement2D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html) calculates and displays the area and perimeter of a polygon only in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
|
|
@@ -1,25 +1,25 @@
|
|
|
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 s from "@arcgis/core/widgets/AreaMeasurement2D.js";
|
|
4
|
+
import { LitElement as i, createEvent as o, noShadowRoot as a } 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 m = n`arcgis-area-measurement-2d{display:block}`, h =
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const m = n`arcgis-area-measurement-2d{display:block}`, h = r(
|
|
11
11
|
// Workaround for https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/61559
|
|
12
|
-
|
|
12
|
+
s
|
|
13
13
|
);
|
|
14
|
-
class d extends
|
|
14
|
+
class d extends i {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.unit = this.widget.unit, this.unitOptions = this.widget.unitOptions, this.arcgisPropertyChange =
|
|
16
|
+
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.unit = this.widget.unit, this.unitOptions = this.widget.unitOptions, this.arcgisPropertyChange = e()("state"), this.arcgisReady = o();
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
19
|
this.properties = { autoDestroyDisabled: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
|
-
this.shadowRootOptions =
|
|
22
|
+
this.shadowRootOptions = a;
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
25
|
this.styles = m;
|
|
@@ -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 AreaMeasurement3D } from '@arcgis/core/widgets/AreaMeasurement3D.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useAreaMeasurement3dWidget: (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<AreaMeasurement3D, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.AreaMeasurement3DViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const useAreaMeasurement3dWidget: (component: import('@arcgis/components
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.AreaMeasurement3DProperties): __esri.AreaMeasurement3DProperties | Promise<__esri.AreaMeasurement3DProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.AreaMeasurement3DProperties | undefined): __esri.AreaMeasurement3DProperties | Promise<__esri.AreaMeasurement3DProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => AreaMeasurement3D;
|
|
36
37
|
/** [AreaMeasurement3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html) calculates and displays the area and perimeter of a polygon. This component can be used in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) to measure the area and perimeter of a polygon.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisAreaMeasurement3d extends LitElement {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as t } from "../../chunks/runtime.js";
|
|
2
|
-
import { newWidgetsAreaMeasurement3D as e } from "@arcgis/core-adapter";
|
|
3
2
|
import { usePropertyChange as s } from "@arcgis/components-controllers";
|
|
4
|
-
import
|
|
5
|
-
import { LitElement as
|
|
3
|
+
import e from "@arcgis/core/widgets/AreaMeasurement3D.js";
|
|
4
|
+
import { LitElement as i, 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 l = n`arcgis-area-measurement-3d{display:block}`,
|
|
11
|
-
class
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const l = n`arcgis-area-measurement-3d{display:block}`, h = r(e);
|
|
11
|
+
class d extends i {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget =
|
|
13
|
+
super(...arguments), this.widget = h(this), this.viewModel = this.widget.viewModel, this.analysis = this.widget.analysis, this.autoDestroyDisabled = !1, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.unit = this.widget.unit, this.unitOptions = this.widget.unitOptions, this.arcgisPropertyChange = s()("analysis", "state"), this.arcgisReady = a();
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.properties = { analysis: 0, autoDestroyDisabled: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, unit: 1, unitOptions: 0 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
19
|
+
this.shadowRootOptions = o;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = l;
|
|
@@ -34,7 +34,7 @@ class h extends a {
|
|
|
34
34
|
this.widget?.viewModel.start();
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
t("arcgis-area-measurement-3d",
|
|
37
|
+
t("arcgis-area-measurement-3d", d);
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
d as ArcgisAreaMeasurement3d
|
|
40
40
|
};
|
|
@@ -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 Attachments } from '@arcgis/core/widgets/Attachments.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useAttachmentsWidget: (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<Attachments, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.AttachmentsViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const useAttachmentsWidget: (component: import('@arcgis/components-contr
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.AttachmentsProperties): __esri.AttachmentsProperties | Promise<__esri.AttachmentsProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.AttachmentsProperties | undefined): __esri.AttachmentsProperties | Promise<__esri.AttachmentsProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => Attachments;
|
|
36
37
|
/**
|
|
37
38
|
* @internal
|
|
38
39
|
*/
|
|
@@ -47,7 +48,7 @@ export declare class ArcgisAttachments extends LitElement {
|
|
|
47
48
|
autoDestroyDisabled: boolean;
|
|
48
49
|
capabilities: __esri.AttachmentsCapabilities;
|
|
49
50
|
displayType: "auto" | "list" | "preview";
|
|
50
|
-
graphic: __esri.Graphic;
|
|
51
|
+
graphic: nullish | __esri.Graphic;
|
|
51
52
|
hideAddButton: boolean | undefined;
|
|
52
53
|
hideAddSubmitButton: boolean | undefined;
|
|
53
54
|
hideCancelAddButton: boolean | undefined;
|
|
@@ -63,7 +64,7 @@ export declare class ArcgisAttachments extends LitElement {
|
|
|
63
64
|
*/
|
|
64
65
|
icon: string;
|
|
65
66
|
/** The component's default label. */
|
|
66
|
-
label: string;
|
|
67
|
+
label: string | nullish;
|
|
67
68
|
position: __esri.UIPosition;
|
|
68
69
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
69
70
|
readonly state: "ready" | "disabled" | "loading";
|
|
@@ -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/Attachments.js";
|
|
4
|
+
import { LitElement as s, createEvent as a, noShadowRoot as d } from "@arcgis/lumina";
|
|
5
|
+
import { m as o } from "../../chunks/useWidget.js";
|
|
6
6
|
import { css as h } 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 n = h`arcgis-attachments{display:block}`, r = i
|
|
11
|
-
class l extends
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
|
+
const n = h`arcgis-attachments{display:block}`, r = o(i);
|
|
11
|
+
class l extends s {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.widget = r(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.capabilities = this.widget.capabilities, this.displayType = this.widget.displayType, this.graphic = this.widget.graphic, this.hideAddButton = this.widget.visibleElements.addButton, this.hideAddSubmitButton = this.widget.visibleElements.addSubmitButton, this.hideCancelAddButton = this.widget.visibleElements.cancelAddButton, this.hideCancelUpdateButton = this.widget.visibleElements.cancelUpdateButton, this.hideDeleteButton = this.widget.visibleElements.deleteButton, this.hideErrorMessage = this.widget.visibleElements.errorMessage, this.hideProgressBar = this.widget.visibleElements.progressBar, this.hideUpdateButton = this.widget.visibleElements.updateButton, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.submitting = this.widget.submitting, this.arcgisPropertyChange =
|
|
13
|
+
super(...arguments), this.widget = r(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.capabilities = this.widget.capabilities, this.displayType = this.widget.displayType, this.graphic = this.widget.graphic, this.hideAddButton = this.widget.visibleElements.addButton, this.hideAddSubmitButton = this.widget.visibleElements.addSubmitButton, this.hideCancelAddButton = this.widget.visibleElements.cancelAddButton, this.hideCancelUpdateButton = this.widget.visibleElements.cancelUpdateButton, this.hideDeleteButton = this.widget.visibleElements.deleteButton, this.hideErrorMessage = this.widget.visibleElements.errorMessage, this.hideProgressBar = this.widget.visibleElements.progressBar, this.hideUpdateButton = this.widget.visibleElements.updateButton, this.icon = this.widget.icon, this.label = this.widget.label, this.position = "bottom-left", this.state = this.viewModel.state, this.submitting = this.widget.submitting, this.arcgisPropertyChange = e()("submitting", "state"), this.arcgisReady = a();
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.properties = { autoDestroyDisabled: 5, capabilities: 0, displayType: 1, graphic: 0, hideAddButton: 5, hideAddSubmitButton: 5, hideCancelAddButton: 5, hideCancelUpdateButton: 5, hideDeleteButton: 5, hideErrorMessage: 5, hideProgressBar: 5, hideUpdateButton: 5, icon: 1, label: 1, position: 1, referenceElement: 1, state: 3, submitting: 4 };
|
|
17
17
|
}
|
|
18
18
|
static {
|
|
19
|
-
this.shadowRootOptions =
|
|
19
|
+
this.shadowRootOptions = d;
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = n;
|
package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js
CHANGED
|
@@ -6,7 +6,7 @@ import { B as e } from "../../../../chunks/basemap-gallery-item.js";
|
|
|
6
6
|
import "../../../../chunks/globalCss.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.
|
|
9
|
+
v4.32.0-next.87 */
|
|
10
10
|
export {
|
|
11
11
|
e as BasemapGalleryItem
|
|
12
12
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
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 BasemapGalleryViewModel } from '@arcgis/core/widgets/BasemapGallery/BasemapGalleryViewModel.js';
|
|
5
6
|
import { JsxNode, ToElement, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
6
7
|
import { HeadingLevel } from '../../support/heading';
|
|
7
8
|
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
@@ -11,7 +12,7 @@ declare const useBasemapGalleryViewModel: (component: import('@arcgis/components
|
|
|
11
12
|
el: HTMLElement;
|
|
12
13
|
autoDestroyDisabled?: boolean;
|
|
13
14
|
destroy?: () => Promise<void>;
|
|
14
|
-
} & Pick<
|
|
15
|
+
} & Pick<BasemapGalleryViewModel, never> & {
|
|
15
16
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
16
17
|
state?: "ready" | "disabled" | "loading" | "unsupported" | undefined;
|
|
17
18
|
icon: Nil | string;
|
|
@@ -32,11 +33,11 @@ declare const useBasemapGalleryViewModel: (component: import('@arcgis/components
|
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
35
|
editConstructorProperties(props: unknown): unknown;
|
|
35
|
-
} | undefined) =>
|
|
36
|
+
} | undefined) => BasemapGalleryViewModel;
|
|
36
37
|
/** [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) displays a collection images representing basemaps from [ArcGIS.com](https://www.arcgis.com/index.html) or a user-defined set of map or image services. When a new basemap is selected from the BasemapGallery, the map's basemap layers are removed and replaced with the basemap layers of the associated basemap selected in the gallery.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisBasemapGallery extends LitElement {
|
|
39
|
-
activeBasemap: __esri.Basemap;
|
|
40
|
+
activeBasemap: __esri.Basemap | nullish;
|
|
40
41
|
/**
|
|
41
42
|
* If true, the component will not be destroyed automatically when it is
|
|
42
43
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { c as y } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as
|
|
3
|
-
import {
|
|
4
|
-
import { classes as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { html as c } from "lit-html";
|
|
3
|
+
import { usePropertyChange as f } from "@arcgis/components-controllers";
|
|
4
|
+
import { classes as v } from "@arcgis/components-utils";
|
|
5
|
+
import { when as b, watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import M from "@arcgis/core/widgets/BasemapGallery/BasemapGalleryViewModel.js";
|
|
7
|
+
import { safeClassMap as r, LitElement as $, createEvent as _, noShadowRoot as B, nothing as g, safeStyleMap as x } from "@arcgis/lumina";
|
|
8
|
+
import { u as L, m as R } from "../../chunks/useViewModel.js";
|
|
9
|
+
import { unsafeStatic as E, html as I } from "lit/static-html.js";
|
|
9
10
|
import { g as n } from "../../chunks/globalCss.js";
|
|
10
|
-
import { c as l, B as
|
|
11
|
-
import { css as
|
|
11
|
+
import { c as l, B as D } from "../../chunks/basemap-gallery-item.js";
|
|
12
|
+
import { css as S } from "@lit/reactive-element/css-tag.js";
|
|
12
13
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
14
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
14
|
-
v4.32.0-next.
|
|
15
|
-
function
|
|
16
|
-
const s =
|
|
17
|
-
return
|
|
15
|
+
v4.32.0-next.87 */
|
|
16
|
+
function A({ level: o, class: t, children: e }) {
|
|
17
|
+
const s = k(o), a = `h${s}`, i = E(a);
|
|
18
|
+
return I`<${i} .ariaLevel=${String(s)} class=${r(v(n.heading, t))} role=heading>${e}</${i}>`;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function C(o, t, e) {
|
|
20
21
|
return Math.min(Math.max(o, t), e);
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
23
|
+
function k(o) {
|
|
24
|
+
return C(Math.ceil(o), 1, 6);
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
+
const G = S`arcgis-basemap-gallery{display:block}`, K = R(M), m = {
|
|
26
27
|
// Below this width, items are displayed as a single column and the thumbnail is placed above the title.
|
|
27
28
|
small: 200,
|
|
28
29
|
// Below this width, items are displayed as a single column but with the thumbnail side-by-side
|
|
@@ -32,18 +33,18 @@ const k = D`arcgis-basemap-gallery{display:block}`, K = E($), h = {
|
|
|
32
33
|
// Above this width, items are displayed in a grid.
|
|
33
34
|
wide: 420
|
|
34
35
|
};
|
|
35
|
-
class H extends
|
|
36
|
+
class H extends $ {
|
|
36
37
|
constructor() {
|
|
37
|
-
super(...arguments), this.messages = L({}), this.viewModel = K(this), this.
|
|
38
|
+
super(...arguments), this.messages = L({}), this.viewModel = K(this), this._width = 0, this._state = "", this._itemsState = "", this.activeBasemap = this.viewModel.activeBasemap, this.autoDestroyDisabled = !1, this.disabled = !1, this.headingLevel = 2, this.icon = "basemap", this.label = "", this.position = "bottom-left", this.source = this.viewModel.source, this.state = this.viewModel.state, this.arcgisPropertyChange = f()("activeBasemap", "state"), this.arcgisReady = _();
|
|
38
39
|
}
|
|
39
40
|
static {
|
|
40
41
|
this.properties = { _width: 16, _state: 16, _itemsState: 16, activeBasemap: 0, autoDestroyDisabled: 5, disabled: 7, headingLevel: 9, icon: 1, label: 1, position: 1, referenceElement: 1, source: 0, state: 3 };
|
|
41
42
|
}
|
|
42
43
|
static {
|
|
43
|
-
this.shadowRootOptions =
|
|
44
|
+
this.shadowRootOptions = B;
|
|
44
45
|
}
|
|
45
46
|
static {
|
|
46
|
-
this.styles =
|
|
47
|
+
this.styles = G;
|
|
47
48
|
}
|
|
48
49
|
//#endregion
|
|
49
50
|
//#region Public Methods
|
|
@@ -55,22 +56,22 @@ class H extends B {
|
|
|
55
56
|
//#region Lifecycle
|
|
56
57
|
loaded() {
|
|
57
58
|
this.manager.onLifecycle(() => [
|
|
58
|
-
|
|
59
|
+
b(() => this.source, () => {
|
|
59
60
|
this.viewModel.loadSource();
|
|
60
61
|
}, { sync: !0, initial: !0 }),
|
|
61
|
-
|
|
62
|
+
p(() => this.source.state, () => {
|
|
62
63
|
this._state = this.source.state;
|
|
63
64
|
}, { sync: !0 }),
|
|
64
|
-
|
|
65
|
+
p(() => this.viewModel.items.filter((s) => s.state !== "ready").length, (s) => {
|
|
65
66
|
this._itemsState = s > 0 ? "loading" : "ready";
|
|
66
67
|
}, { sync: !0 }),
|
|
67
|
-
|
|
68
|
-
this.el.childElem?.querySelector(`[data-basemap="${this.viewModel.activeBasemap
|
|
68
|
+
p(() => this.viewModel.activeBasemap, () => {
|
|
69
|
+
this.el.childElem?.querySelector(`[data-basemap="${this.viewModel.activeBasemap?.id}"]`)?.focus();
|
|
69
70
|
}, { sync: !0 })
|
|
70
71
|
]);
|
|
71
72
|
const t = new ResizeObserver((s) => {
|
|
72
|
-
for (const
|
|
73
|
-
this._width =
|
|
73
|
+
for (const a of s)
|
|
74
|
+
this._width = a.contentRect.width;
|
|
74
75
|
}), e = this.el.childElem;
|
|
75
76
|
e && t.observe(e);
|
|
76
77
|
}
|
|
@@ -84,23 +85,23 @@ class H extends B {
|
|
|
84
85
|
if (!["ArrowUp", "ArrowDown", "ArrowRight", "ArrowLeft"].includes(e))
|
|
85
86
|
return;
|
|
86
87
|
t.preventDefault();
|
|
87
|
-
const { items:
|
|
88
|
-
|
|
88
|
+
const { items: a, activeBasemapIndex: i } = this.viewModel, h = e === "ArrowUp" || e === "ArrowLeft" ? this._getRoundRobinIndex(Math.max(i - 1, -1), a.length) : this._getRoundRobinIndex(i + 1, a.length), d = a.at(h);
|
|
89
|
+
d?.state === "ready" && (this.viewModel.activeBasemap = d.basemap);
|
|
89
90
|
}
|
|
90
91
|
//#endregion
|
|
91
92
|
//#region Rendering
|
|
92
93
|
render() {
|
|
93
|
-
const t = this.source.state === "loading", e = this.disabled || this.state === "disabled", s = this.viewModel.items,
|
|
94
|
+
const t = this.source.state === "loading", e = this.disabled || this.state === "disabled", s = this.viewModel.items, a = {
|
|
94
95
|
[l.sourceLoading]: t,
|
|
95
96
|
[n.disabled]: e,
|
|
96
97
|
"esri-component": !0
|
|
97
98
|
// For compatibility with Esri View UI
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
"--esri-basemap-gallery-small": `${
|
|
103
|
-
})}>${[
|
|
99
|
+
}, i = this._width;
|
|
100
|
+
i <= m.small || i >= m.wide ? a[l.layoutGrid] = !0 : i < m.default && (a[l.narrowItems] = !0);
|
|
101
|
+
const h = t ? c`<div class=${r(l.loader)}></div>` : null, d = t ? null : s.length > 0 ? c`<div aria-disabled=${this.disabled ?? g} aria-label=${this.label ?? g} class=${r(l.itemContainer)} @keydown=${this._handleKeyDown} role=radiogroup>${s.map((u, w) => D({ disabled: e, item: u, itemIndex: w, viewModel: this.viewModel, messages: this.messages, state: u.state }))}</div>` : c`<div class=${r(n.empty)}>${A({ level: this.headingLevel, children: this.messages.noBasemaps })}</div>`;
|
|
102
|
+
return c`<div class=${r(v(l.base, n.widget, n.panel, a))} style=${x({
|
|
103
|
+
"--esri-basemap-gallery-small": `${m.small}px`
|
|
104
|
+
})}>${[h, d]}</div>`;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
y("arcgis-basemap-gallery", H);
|
|
@@ -2,15 +2,16 @@
|
|
|
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 {
|
|
5
|
+
import { default as BasemapLayerList } from '@arcgis/core/widgets/BasemapLayerList.js';
|
|
6
6
|
import { PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
7
|
+
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
8
|
|
|
8
9
|
declare const useBasemapLayerListWidget: (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<BasemapLayerList, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: unknown;
|
|
16
17
|
viewModel?: __esri.BasemapLayerListViewModel | undefined;
|
|
@@ -31,8 +32,8 @@ declare const useBasemapLayerListWidget: (component: import('@arcgis/components-
|
|
|
31
32
|
autoDestroyDisabled: boolean;
|
|
32
33
|
destroy: () => Promise<void>;
|
|
33
34
|
}, options?: {
|
|
34
|
-
editConstructorProperties(props: __esri.BasemapLayerListProperties): __esri.BasemapLayerListProperties | Promise<__esri.BasemapLayerListProperties
|
|
35
|
-
} | undefined) =>
|
|
35
|
+
editConstructorProperties(props: __esri.BasemapLayerListProperties | undefined): __esri.BasemapLayerListProperties | Promise<__esri.BasemapLayerListProperties | undefined> | undefined;
|
|
36
|
+
} | undefined) => BasemapLayerList;
|
|
36
37
|
/** [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html) provides a way to display a list of [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers and switch on/off their visibility. [Base layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers) and [reference layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers) are divided into separate sections. When editing is enabled, layers can be reordered by dragging and dropping between the lists and the title can be edited.
|
|
37
38
|
*/
|
|
38
39
|
export declare class ArcgisBasemapLayerList extends LitElement {
|
|
@@ -44,25 +45,25 @@ export declare class ArcgisBasemapLayerList extends LitElement {
|
|
|
44
45
|
* memory leaks.
|
|
45
46
|
*/
|
|
46
47
|
autoDestroyDisabled: boolean;
|
|
47
|
-
baseFilterPredicate: __esri.BaseFilterPredicate;
|
|
48
|
+
baseFilterPredicate: nullish | __esri.BaseFilterPredicate;
|
|
48
49
|
baseFilterText: string;
|
|
49
50
|
/** A collection of ListItems representing the baseLayers. */
|
|
50
51
|
get baseItems(): __esri.Collection<__esri.ListItem>;
|
|
51
|
-
baseListItemCreatedFunction: __esri.ListItemCreatedHandler;
|
|
52
|
-
basemapTitle: string;
|
|
52
|
+
baseListItemCreatedFunction: nullish | __esri.ListItemCreatedHandler;
|
|
53
|
+
basemapTitle: string | nullish;
|
|
53
54
|
/** The CatalogLayerList that displays a catalog layer's dynamic group layer. */
|
|
54
|
-
get catalogLayerList(): __esri.CatalogLayerList;
|
|
55
|
-
catalogOptions: __esri.BasemapLayerListCatalogOptions;
|
|
55
|
+
get catalogLayerList(): __esri.CatalogLayerList | nullish;
|
|
56
|
+
catalogOptions: nullish | __esri.BasemapLayerListCatalogOptions;
|
|
56
57
|
collapsed: boolean;
|
|
57
58
|
dragEnabled: boolean;
|
|
58
59
|
editingTitle: boolean;
|
|
59
60
|
filterPlaceholder: string;
|
|
60
61
|
headingLevel: number;
|
|
61
|
-
hideBaseLayers: boolean
|
|
62
|
-
hideFlow: boolean
|
|
63
|
-
hideHeading: boolean
|
|
64
|
-
hideReferenceLayers: boolean
|
|
65
|
-
hideStatusIndicators: boolean
|
|
62
|
+
hideBaseLayers: boolean;
|
|
63
|
+
hideFlow: boolean;
|
|
64
|
+
hideHeading: boolean;
|
|
65
|
+
hideReferenceLayers: boolean;
|
|
66
|
+
hideStatusIndicators: boolean;
|
|
66
67
|
/**
|
|
67
68
|
* Icon which represents the component.
|
|
68
69
|
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
@@ -74,19 +75,19 @@ export declare class ArcgisBasemapLayerList extends LitElement {
|
|
|
74
75
|
minFilterItems: number;
|
|
75
76
|
position: __esri.UIPosition;
|
|
76
77
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
77
|
-
referenceFilterPredicate: __esri.ReferenceFilterPredicate;
|
|
78
|
+
referenceFilterPredicate: nullish | __esri.ReferenceFilterPredicate;
|
|
78
79
|
referenceFilterText: string;
|
|
79
80
|
/** A collection of ListItems representing the referenceLayers. */
|
|
80
81
|
get referenceItems(): __esri.Collection<__esri.ListItem>;
|
|
81
|
-
referenceListItemCreatedFunction: __esri.ListItemCreatedHandler;
|
|
82
|
+
referenceListItemCreatedFunction: nullish | __esri.ListItemCreatedHandler;
|
|
82
83
|
selectedItems: __esri.Collection<__esri.ListItem>;
|
|
83
84
|
selectionMode: "none" | "single" | "multiple" | "single-persist";
|
|
84
|
-
showCloseButton: boolean
|
|
85
|
-
showCollapseButton: boolean
|
|
86
|
-
showEditTitleButton: boolean
|
|
87
|
-
showErrors: boolean
|
|
88
|
-
showFilter: boolean
|
|
89
|
-
showTemporaryLayerIndicators: boolean
|
|
85
|
+
showCloseButton: boolean;
|
|
86
|
+
showCollapseButton: boolean;
|
|
87
|
+
showEditTitleButton: boolean;
|
|
88
|
+
showErrors: boolean;
|
|
89
|
+
showFilter: boolean;
|
|
90
|
+
showTemporaryLayerIndicators: boolean;
|
|
90
91
|
readonly state: "ready" | "disabled" | "loading";
|
|
91
92
|
visibilityAppearance: "default" | "checkbox";
|
|
92
93
|
/** Permanently destroy the component */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c as e } from "../../chunks/runtime.js";
|
|
2
2
|
import { usePropertyChange as t } from "@arcgis/components-controllers";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { reEmitEvent as i } from "@arcgis/components-controllers/accessor";
|
|
4
|
+
import s from "@arcgis/core/widgets/BasemapLayerList.js";
|
|
5
5
|
import { LitElement as r, createEvent as a, noShadowRoot as l } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { m as o } from "../../chunks/useWidget.js";
|
|
7
7
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
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.
|
|
11
|
-
const d = h`arcgis-basemap-layer-list{display:block}`, n = s
|
|
10
|
+
v4.32.0-next.87 */
|
|
11
|
+
const d = h`arcgis-basemap-layer-list{display:block}`, n = o(s);
|
|
12
12
|
class c extends r {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.baseFilterPredicate = this.widget.baseFilterPredicate, this.baseFilterText = this.widget.baseFilterText, this.baseListItemCreatedFunction = this.widget.baseListItemCreatedFunction, this.basemapTitle = this.widget.basemapTitle, this.catalogOptions = this.widget.catalogOptions, this.collapsed = this.widget.collapsed, this.dragEnabled = this.widget.dragEnabled, this.editingTitle = this.widget.editingTitle, this.filterPlaceholder = this.widget.filterPlaceholder, this.headingLevel = this.widget.headingLevel, this.hideBaseLayers = this.widget.visibleElements.baseLayers, this.hideFlow = this.widget.visibleElements.flow, this.hideHeading = this.widget.visibleElements.heading, this.hideReferenceLayers = this.widget.visibleElements.referenceLayers, this.hideStatusIndicators = this.widget.visibleElements.statusIndicators, this.icon = this.widget.icon, this.label = this.widget.label, this.minFilterItems = this.widget.minFilterItems, this.position = "bottom-left", this.referenceFilterPredicate = this.widget.referenceFilterPredicate, this.referenceFilterText = this.widget.referenceFilterText, this.referenceListItemCreatedFunction = this.widget.referenceListItemCreatedFunction, this.selectedItems = this.widget.selectedItems, this.selectionMode = this.widget.selectionMode, this.showCloseButton = this.widget.visibleElements.closeButton, this.showCollapseButton = this.widget.visibleElements.collapseButton, this.showEditTitleButton = this.widget.visibleElements.editTitleButton, this.showErrors = this.widget.visibleElements.errors, this.showFilter = this.widget.visibleElements.filter, this.showTemporaryLayerIndicators = this.widget.visibleElements.temporaryLayerIndicators, this.state = this.viewModel.state, this.visibilityAppearance = this.widget.visibilityAppearance, this.arcgisPropertyChange = t()("state"), this.arcgisReady = a(), this.arcgisTriggerAction =
|
|
14
|
+
super(...arguments), this.widget = n(this), this.viewModel = this.widget.viewModel, this.autoDestroyDisabled = !1, this.baseFilterPredicate = this.widget.baseFilterPredicate, this.baseFilterText = this.widget.baseFilterText, this.baseListItemCreatedFunction = this.widget.baseListItemCreatedFunction, this.basemapTitle = this.widget.basemapTitle, this.catalogOptions = this.widget.catalogOptions, this.collapsed = this.widget.collapsed, this.dragEnabled = this.widget.dragEnabled, this.editingTitle = this.widget.editingTitle, this.filterPlaceholder = this.widget.filterPlaceholder, this.headingLevel = this.widget.headingLevel, this.hideBaseLayers = this.widget.visibleElements.baseLayers, this.hideFlow = this.widget.visibleElements.flow, this.hideHeading = this.widget.visibleElements.heading, this.hideReferenceLayers = this.widget.visibleElements.referenceLayers, this.hideStatusIndicators = this.widget.visibleElements.statusIndicators, this.icon = this.widget.icon, this.label = this.widget.label, this.minFilterItems = this.widget.minFilterItems, this.position = "bottom-left", this.referenceFilterPredicate = this.widget.referenceFilterPredicate, this.referenceFilterText = this.widget.referenceFilterText, this.referenceListItemCreatedFunction = this.widget.referenceListItemCreatedFunction, this.selectedItems = this.widget.selectedItems, this.selectionMode = this.widget.selectionMode, this.showCloseButton = this.widget.visibleElements.closeButton, this.showCollapseButton = this.widget.visibleElements.collapseButton, this.showEditTitleButton = this.widget.visibleElements.editTitleButton, this.showErrors = this.widget.visibleElements.errors, this.showFilter = this.widget.visibleElements.filter, this.showTemporaryLayerIndicators = this.widget.visibleElements.temporaryLayerIndicators, this.state = this.viewModel.state, this.visibilityAppearance = this.widget.visibilityAppearance, this.arcgisPropertyChange = t()("state"), this.arcgisReady = a(), this.arcgisTriggerAction = i(() => this.widget, "trigger-action");
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.properties = { autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItems: 32, baseListItemCreatedFunction: 0, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, hideBaseLayers: 5, hideFlow: 5, hideHeading: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, icon: 1, label: 1, minFilterItems: 9, position: 1, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceListItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, showFilter: 5, showTemporaryLayerIndicators: 5, state: 3, visibilityAppearance: 1 };
|
|
@@ -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 BasemapToggleViewModel } from '@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.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 useBasemapToggleViewModel: (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<BasemapToggleViewModel, never> & {
|
|
14
15
|
reactiveUtils?: typeof __esri.reactiveUtils;
|
|
15
16
|
state?: "ready" | "disabled" | "loading" | "incompatible-next-basemap" | undefined;
|
|
16
17
|
icon: Nil | string;
|
|
@@ -31,12 +32,12 @@ declare const useBasemapToggleViewModel: (component: import('@arcgis/components-
|
|
|
31
32
|
destroy: () => Promise<void>;
|
|
32
33
|
}, options?: {
|
|
33
34
|
editConstructorProperties(props: unknown): unknown;
|
|
34
|
-
} | undefined) =>
|
|
35
|
+
} | undefined) => BasemapToggleViewModel;
|
|
35
36
|
/** [BasemapToggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html) allows an end-user to switch between two basemaps. The toggled basemap is set inside the [view's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#view) [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map) object.
|
|
36
37
|
*/
|
|
37
38
|
export declare class ArcgisBasemapToggle extends LitElement {
|
|
38
39
|
private messages;
|
|
39
|
-
readonly activeBasemap: __esri.Basemap;
|
|
40
|
+
readonly activeBasemap: __esri.Basemap | nullish;
|
|
40
41
|
/**
|
|
41
42
|
* If true, the component will not be destroyed automatically when
|
|
42
43
|
* it is disconnected from the document. This is useful when you
|
|
@@ -55,7 +56,7 @@ export declare class ArcgisBasemapToggle extends LitElement {
|
|
|
55
56
|
/** Overwrite localized strings for this component */
|
|
56
57
|
messageOverrides?: typeof this.messages._overrides;
|
|
57
58
|
/** The next basemap for toggling. */
|
|
58
|
-
nextBasemap: __esri.Basemap;
|
|
59
|
+
nextBasemap: __esri.Basemap | nullish;
|
|
59
60
|
position: __esri.UIPosition;
|
|
60
61
|
referenceElement: ArcgisReferenceElement | Nil | string;
|
|
61
62
|
/** The visible elements that are displayed within the widget. */
|