@arcgis/map-components 5.2.0-next.65 → 5.2.0-next.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{RMKRRXJS.js → 3B3RGT2G.js} +1 -1
- package/dist/cdn/{5KBFECNZ.js → 6NWYETZO.js} +1 -1
- package/dist/cdn/{54DPKOI2.js → AKQ23RYL.js} +1 -1
- package/dist/cdn/{FWYUKFIR.js → AOGPP4VX.js} +1 -1
- package/dist/cdn/{HRJIMMTW.js → DY6AWYYR.js} +1 -1
- package/dist/cdn/ERZ355Q7.js +2 -0
- package/dist/cdn/{FBCMR23T.js → FUISFUR3.js} +1 -1
- package/dist/cdn/GP76UUFG.js +2 -0
- package/dist/cdn/{SHNSCLFF.js → IGORAGVE.js} +2 -2
- package/dist/cdn/{WP6ZYNAK.js → KHIHHUKA.js} +1 -1
- package/dist/cdn/{DTR5I2KQ.js → L254HFGW.js} +1 -1
- package/dist/cdn/{ARVSEV26.js → MFRZNKMQ.js} +1 -1
- package/dist/cdn/{LH246IIL.js → N34R2VNP.js} +1 -1
- package/dist/cdn/NCSFZ67G.js +2 -0
- package/dist/cdn/{34HQ4DIU.js → ORO4OWNH.js} +1 -1
- package/dist/cdn/OXJ6JBJF.js +2 -0
- package/dist/cdn/{FOHSM4R7.js → PT33LZD5.js} +1 -1
- package/dist/cdn/QGWMP6TU.js +2 -0
- package/dist/cdn/SRNGMDBR.js +2 -0
- package/dist/cdn/{BYZRGKOW.js → U5NYFDPL.js} +1 -1
- package/dist/cdn/{VC4FPVTG.js → UAFLVW2D.js} +1 -1
- package/dist/cdn/{4IOVE754.js → UDZLCLOW.js} +1 -1
- package/dist/cdn/UJAX7TII.js +2 -0
- package/dist/cdn/USMSBMGF.js +2 -0
- package/dist/cdn/{RWDCU2CO.js → VFFB35S6.js} +1 -1
- package/dist/cdn/XKC3DFCU.js +2 -0
- package/dist/cdn/{3K7YV4SA.js → XVUJEFQE.js} +1 -1
- package/dist/cdn/ZGGP2PLT.js +2 -0
- package/dist/cdn/ZHA4C7BC.js +2 -0
- package/dist/cdn/assets/area-measurement-2d/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/basemap-toggle/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-list-item.js +170 -0
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/chunks/slots.js +10 -10
- package/dist/chunks/useArcgisViewReadyError.js +35 -30
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +42 -42
- package/dist/components/arcgis-attachments/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +61 -61
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -0
- package/dist/components/arcgis-basemap-toggle/customElement.js +30 -22
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +17 -17
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +27 -27
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +10 -154
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/customElement.d.ts +9 -3
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +411 -0
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.js +1 -0
- package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/support/NonPanoramicMedia.d.ts +12 -3
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +379 -0
- package/dist/components/arcgis-selection-toolbar/customElement.js +191 -0
- package/dist/components/arcgis-selection-toolbar/index.d.ts +1 -0
- package/dist/components/arcgis-selection-toolbar/index.js +10 -0
- package/dist/components/arcgis-selection-toolbar/types.d.ts +8 -0
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +8 -0
- package/dist/components/arcgis-table-list-next/customElement.js +12 -12
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/loader.js +6 -5
- package/dist/types/lumina.d.ts +18 -8
- package/dist/types/preact.d.ts +20 -9
- package/dist/types/react.d.ts +22 -10
- package/dist/types/stencil.d.ts +18 -8
- package/package.json +6 -6
- package/dist/cdn/2CRPXLAY.js +0 -2
- package/dist/cdn/3EYX5DTH.js +0 -2
- package/dist/cdn/74IVEAEO.js +0 -2
- package/dist/cdn/EF7LH4GQ.js +0 -2
- package/dist/cdn/GBLPYWL2.js +0 -2
- package/dist/cdn/JA3PSEUL.js +0 -2
- package/dist/cdn/KAXVBIZ7.js +0 -2
- package/dist/cdn/QNQQA4BU.js +0 -2
- package/dist/cdn/VAISR7CN.js +0 -2
- package/dist/cdn/XCCZTOXH.js +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +0 -231
- /package/dist/cdn/{M5YTVQ3E.js → 2ROKOM2Z.js} +0 -0
- /package/dist/cdn/{JYWV4RJT.js → 37VIO2V5.js} +0 -0
- /package/dist/cdn/{RDWKI3KP.js → 3RVEVJVG.js} +0 -0
- /package/dist/cdn/{57URHW23.js → 4O5BM5AI.js} +0 -0
- /package/dist/cdn/{UHL5U7GJ.js → 4XAKKTWP.js} +0 -0
- /package/dist/cdn/{Y3QCO64W.js → 55GK5OAA.js} +0 -0
- /package/dist/cdn/{CGM2YWJH.js → 5KSNV3AD.js} +0 -0
- /package/dist/cdn/{GJRDLFOY.js → 6CHIESQS.js} +0 -0
- /package/dist/cdn/{3J2BDZNE.js → 6TPIG3XC.js} +0 -0
- /package/dist/cdn/{INJXVNS3.js → 6WOUFI3X.js} +0 -0
- /package/dist/cdn/{I62OLA5J.js → 73PS6B6H.js} +0 -0
- /package/dist/cdn/{SMOBVQX6.js → CBHZA2RM.js} +0 -0
- /package/dist/cdn/{VXYZPWDK.js → D4LXZSJU.js} +0 -0
- /package/dist/cdn/{3XZU4KZX.js → ETAL67B5.js} +0 -0
- /package/dist/cdn/{EAN2ER5F.js → EW7KQ7UM.js} +0 -0
- /package/dist/cdn/{7IA62IHQ.js → FQS7XRHV.js} +0 -0
- /package/dist/cdn/{KU2D7B6L.js → FRNAEEL2.js} +0 -0
- /package/dist/cdn/{F3MJCQ74.js → J3LAIXMY.js} +0 -0
- /package/dist/cdn/{A4LOY55I.js → JOPE2HA7.js} +0 -0
- /package/dist/cdn/{YKVEZBMI.js → LIKCZBSN.js} +0 -0
- /package/dist/cdn/{SKVY2FTI.js → LKS3BW4E.js} +0 -0
- /package/dist/cdn/{MUMLZBK2.js → LNV4R7FO.js} +0 -0
- /package/dist/cdn/{UT4Y7W2I.js → LYVEFTG5.js} +0 -0
- /package/dist/cdn/{YYY2B7Z3.js → M5RPB52H.js} +0 -0
- /package/dist/cdn/{2WS6ADGC.js → QDOF7WAJ.js} +0 -0
- /package/dist/cdn/{3PLX2VZZ.js → QG5I2LDY.js} +0 -0
- /package/dist/cdn/{4WTMWS4L.js → RCXLHOT5.js} +0 -0
- /package/dist/cdn/{KUGHB56Z.js → RMUOAQL7.js} +0 -0
- /package/dist/cdn/{OCYNG6CZ.js → SMGBVJDQ.js} +0 -0
- /package/dist/cdn/{5D5K4ODL.js → SWUDJD3D.js} +0 -0
- /package/dist/cdn/{TDMJD6KE.js → TXH2FVPB.js} +0 -0
- /package/dist/cdn/{ULVWM2Z5.js → TXLEUQGC.js} +0 -0
- /package/dist/cdn/{6D7LJWC3.js → URSO4VYE.js} +0 -0
- /package/dist/cdn/{Z5KZ3J36.js → VISNMKBR.js} +0 -0
- /package/dist/cdn/{WLNDY4AF.js → VM2FDVMM.js} +0 -0
- /package/dist/cdn/{ZIHLJCFU.js → VZMX6AAC.js} +0 -0
- /package/dist/cdn/{4B2SV3DL.js → W3ELQQ2T.js} +0 -0
- /package/dist/cdn/{FFKWCM3U.js → XNUG4O7M.js} +0 -0
- /package/dist/cdn/{6IZPSVRK.js → YNAWY2DP.js} +0 -0
- /package/dist/cdn/{SF5BNNTL.js → ZDEXTEYL.js} +0 -0
- /package/dist/cdn/{BSA3D7EV.js → ZTCPBOG3.js} +0 -0
- /package/dist/cdn/{POCKSTPT.js → ZUKUN26H.js} +0 -0
- /package/dist/cdn/{X7DC4UOR.js → ZWWCLNZL.js} +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-TW.json +0 -0
- /package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.d.ts +0 -0
package/dist/types/stencil.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ import type { ArcgisMap } from "../components/arcgis-map/customElement.js";
|
|
|
47
47
|
import type { ArcgisMeasurement } from "../components/arcgis-measurement/customElement.js";
|
|
48
48
|
import type { ArcgisNavigationToggle } from "../components/arcgis-navigation-toggle/customElement.js";
|
|
49
49
|
import type { ArcgisOrientedImageryViewer } from "../components/arcgis-oriented-imagery-viewer/customElement.js";
|
|
50
|
-
import type {
|
|
50
|
+
import type { ArcgisOrientedImageryViewerNonPanoramicViewer } from "../components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js";
|
|
51
51
|
import type { ArcgisOrientedImageryViewerPanoramicViewer } from "../components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js";
|
|
52
52
|
import type { ArcgisOrientedImageryViewerPanoramicViewerZoom } from "../components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js";
|
|
53
53
|
import type { ArcGISOrientedImageryViewerVideoControls } from "../components/arcgis-oriented-imagery-viewer-video-controls/customElement.js";
|
|
@@ -65,6 +65,7 @@ import type { ArcgisScaleRangeSlider } from "../components/arcgis-scale-range-sl
|
|
|
65
65
|
import type { ArcgisScene } from "../components/arcgis-scene/customElement.js";
|
|
66
66
|
import type { ArcgisSearch } from "../components/arcgis-search/customElement.js";
|
|
67
67
|
import type { ArcgisSearchResultRenderer } from "../components/arcgis-search-result-renderer/customElement.js";
|
|
68
|
+
import type { ArcgisSelectionToolbar } from "../components/arcgis-selection-toolbar/customElement.js";
|
|
68
69
|
import type { ArcgisShadowCast } from "../components/arcgis-shadow-cast/customElement.js";
|
|
69
70
|
import type { ArcgisSketch } from "../components/arcgis-sketch/customElement.js";
|
|
70
71
|
import type { ArcgisSketchTooltipControls } from "../components/arcgis-sketch-tooltip-controls/customElement.js";
|
|
@@ -132,7 +133,7 @@ type ArcgisLinkChartLayoutSwitcherSetterTypes = ArcgisLinkChartLayoutSwitcher["@
|
|
|
132
133
|
type ArcgisMapSetterTypes = ArcgisMap["@setterTypes"];
|
|
133
134
|
type ArcgisMeasurementSetterTypes = ArcgisMeasurement["@setterTypes"];
|
|
134
135
|
type ArcgisOrientedImageryViewerSetterTypes = ArcgisOrientedImageryViewer["@setterTypes"];
|
|
135
|
-
type
|
|
136
|
+
type ArcgisOrientedImageryViewerNonPanoramicViewerSetterTypes = ArcgisOrientedImageryViewerNonPanoramicViewer["@setterTypes"];
|
|
136
137
|
type ArcgisOrientedImageryViewerPanoramicViewerSetterTypes = ArcgisOrientedImageryViewerPanoramicViewer["@setterTypes"];
|
|
137
138
|
type ArcgisMultiFeatureFormSetterTypes = ArcgisMultiFeatureForm["@setterTypes"];
|
|
138
139
|
type ArcgisPrintSetterTypes = ArcgisPrint["@setterTypes"];
|
|
@@ -174,7 +175,7 @@ interface StencilArcgisBasemapLayerList extends Partial<Pick<ArcgisBasemapLayerL
|
|
|
174
175
|
onArcgisTriggerAction?: EventHandler<ArcgisBasemapLayerList["arcgisTriggerAction"]>;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
|
-
interface StencilArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseListItemCreatedFunction" | "basemapTitle" | "catalogOptions" | "closed" | "collapsed" | "dragEnabled" | "editingTitle" | "filterPlaceholder" | "headingLevel" | "hideBaseLayers" | "hideCatalogLayerList" | "hideHeading" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideReferenceLayers" | "hideStatusIndicators" | "icon" | "knowledgeGraphOptions" | "label" | "layerTablesEnabled" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "mapImageOptions" | "messageOverrides" | "minFilterItems" | "position" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceListItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisBasemapLayerListNext> {
|
|
178
|
+
interface StencilArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseListItemCreatedFunction" | "basemapTitle" | "catalogOptions" | "closed" | "collapsed" | "dragEnabled" | "editingTitle" | "filterPlaceholder" | "headingLevel" | "hideBaseLayers" | "hideCatalogLayerList" | "hideHeading" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideReferenceLayers" | "hideStatusIndicators" | "icon" | "knowledgeGraphOptions" | "label" | "layerTablesEnabled" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "listModeDisabled" | "mapImageOptions" | "messageOverrides" | "minFilterItems" | "position" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceListItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisBasemapLayerListNext> {
|
|
178
179
|
onArcgisBaseFilterChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]>;
|
|
179
180
|
onArcgisClose?: EventHandler<ArcgisBasemapLayerListNext["arcgisClose"]>;
|
|
180
181
|
onArcgisOpenedLayersChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisOpenedLayersChange"]>;
|
|
@@ -210,7 +211,7 @@ interface StencilArcgisCatalogLayerList extends Partial<Pick<ArcgisCatalogLayerL
|
|
|
210
211
|
onArcgisTriggerAction?: EventHandler<ArcgisCatalogLayerList["arcgisTriggerAction"]>;
|
|
211
212
|
}
|
|
212
213
|
|
|
213
|
-
interface StencilArcgisCatalogLayerListNext extends Partial<Pick<ArcgisCatalogLayerListNext, "autoDestroyDisabled" | "catalogItems" | "catalogLayer" | "catalogOptions" | "closed" | "collapsed" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideCatalogLayerList" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "knowledgeGraphOptions" | "label" | "listItemCreatedFunction" | "messageOverrides" | "minFilterItems" | "onCatalogOpen" | "onTablesOpen" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryLayerIndicators" | "topLayerDisabled" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisCatalogLayerListNext> {
|
|
214
|
+
interface StencilArcgisCatalogLayerListNext extends Partial<Pick<ArcgisCatalogLayerListNext, "autoDestroyDisabled" | "catalogItems" | "catalogLayer" | "catalogOptions" | "closed" | "collapsed" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideCatalogLayerList" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "knowledgeGraphOptions" | "label" | "listItemCreatedFunction" | "listModeDisabled" | "messageOverrides" | "minFilterItems" | "onCatalogOpen" | "onTablesOpen" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryLayerIndicators" | "topLayerDisabled" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisCatalogLayerListNext> {
|
|
214
215
|
onArcgisCatalogItemsChange?: EventHandler<ArcgisCatalogLayerListNext["arcgisCatalogItemsChange"]>;
|
|
215
216
|
onArcgisFilterChange?: EventHandler<ArcgisCatalogLayerListNext["arcgisFilterChange"]>;
|
|
216
217
|
onArcgisOpenedLayersChange?: EventHandler<ArcgisCatalogLayerListNext["arcgisOpenedLayersChange"]>;
|
|
@@ -370,7 +371,7 @@ interface StencilArcgisLayerList extends Partial<Pick<ArcgisLayerList, "autoDest
|
|
|
370
371
|
onArcgisTriggerAction?: EventHandler<ArcgisLayerList["arcgisTriggerAction"]>;
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
interface StencilArcgisLayerListNext extends Partial<Pick<ArcgisLayerListNext, "autoDestroyDisabled" | "catalogOptions" | "closed" | "collapsed" | "dragEnabled" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideCatalogLayerList" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "icon" | "knowledgeGraphOptions" | "label" | "layerTablesAvailable" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "listItemCreatedFunction" | "messageOverrides" | "minDragEnabledItems" | "minFilterItems" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryLayerIndicators" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisLayerListNext> {
|
|
374
|
+
interface StencilArcgisLayerListNext extends Partial<Pick<ArcgisLayerListNext, "autoDestroyDisabled" | "catalogOptions" | "closed" | "collapsed" | "dragEnabled" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideCatalogLayerList" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "icon" | "knowledgeGraphOptions" | "label" | "layerTablesAvailable" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "listItemCreatedFunction" | "listModeDisabled" | "messageOverrides" | "minDragEnabledItems" | "minFilterItems" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryLayerIndicators" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisLayerListNext> {
|
|
374
375
|
onArcgisClose?: EventHandler<ArcgisLayerListNext["arcgisClose"]>;
|
|
375
376
|
onArcgisFilterChange?: EventHandler<ArcgisLayerListNext["arcgisFilterChange"]>;
|
|
376
377
|
onArcgisOpenedLayersChange?: EventHandler<ArcgisLayerListNext["arcgisOpenedLayersChange"]>;
|
|
@@ -481,7 +482,7 @@ interface StencilArcgisOrientedImageryViewer extends Partial<Pick<ArcgisOriented
|
|
|
481
482
|
onArcgisReady?: EventHandler<ArcgisOrientedImageryViewer["arcgisReady"]>;
|
|
482
483
|
}
|
|
483
484
|
|
|
484
|
-
interface
|
|
485
|
+
interface StencilArcgisOrientedImageryViewerNonPanoramicViewer extends Partial<Pick<ArcgisOrientedImageryViewerNonPanoramicViewer, "hideHeader" | "hideLoader" | "hideVideoControls" | "hideZoomControls" | "messageOverrides" | "rotation">>, ArcgisOrientedImageryViewerNonPanoramicViewerSetterTypes, StencilJsx.HTMLAttributes<ArcgisOrientedImageryViewerNonPanoramicViewer> {
|
|
485
486
|
}
|
|
486
487
|
|
|
487
488
|
interface StencilArcgisOrientedImageryViewerPanoramicViewer extends Partial<Pick<ArcgisOrientedImageryViewerPanoramicViewer, "hideLoader" | "hideTitle" | "hideVideoControls" | "hideZoomControls" | "messageOverrides" | "pitch" | "yaw">>, ArcgisOrientedImageryViewerPanoramicViewerSetterTypes, StencilJsx.HTMLAttributes<ArcgisOrientedImageryViewerPanoramicViewer> {
|
|
@@ -604,6 +605,14 @@ interface StencilArcgisSearchResultRenderer extends Partial<Pick<ArcgisSearchRes
|
|
|
604
605
|
onArcgisReady?: EventHandler<ArcgisSearchResultRenderer["arcgisReady"]>;
|
|
605
606
|
}
|
|
606
607
|
|
|
608
|
+
interface StencilArcgisSelectionToolbar extends Partial<Pick<ArcgisSelectionToolbar, "autoDestroyDisabled" | "availableOperationTypes" | "continuousSelectionEnabled" | "defaultLassoToolOptions" | "defaultOperationType" | "defaultPointToolOptions" | "defaultRectangleToolOptions" | "disabled" | "hideChip" | "hideLassoTool" | "hideOperationTypeControls" | "hidePanTool" | "hidePointTool" | "hideProgress" | "hideRectangleTool" | "icon" | "label" | "layerViewPreferenceDisabled" | "layout" | "referenceElement" | "returnFeatureTitleFields" | "returnGeometryDisabled" | "selectionManager" | "showTextLabels" | "sources" | "syncResultsDisabled" | "syncWhileDrawing" | "toolConfigs" | "view" | "visualScale">>, StencilJsx.HTMLAttributes<ArcgisSelectionToolbar> {
|
|
609
|
+
onArcgisBeforeActivate?: EventHandler<ArcgisSelectionToolbar["arcgisBeforeActivate"]>;
|
|
610
|
+
onArcgisComplete?: EventHandler<ArcgisSelectionToolbar["arcgisComplete"]>;
|
|
611
|
+
onArcgisPropertyChange?: EventHandler<ArcgisSelectionToolbar["arcgisPropertyChange"]>;
|
|
612
|
+
onArcgisReady?: EventHandler<ArcgisSelectionToolbar["arcgisReady"]>;
|
|
613
|
+
onArcgisSelectionChange?: EventHandler<ArcgisSelectionToolbar["arcgisSelectionChange"]>;
|
|
614
|
+
}
|
|
615
|
+
|
|
607
616
|
interface StencilArcgisShadowCast extends Partial<Pick<ArcgisShadowCast, "analysis" | "autoDestroyDisabled" | "discreteColor" | "discreteInterval" | "endTimeOfDay" | "headingLevel" | "hideDatePicker" | "hideDiscreteColorPicker" | "hideDiscreteInterval" | "hideDiscreteOptions" | "hideMinDurationColorPicker" | "hideMinDurationContextColorPicker" | "hideMinDurationContextInterval" | "hideMinDurationContextOptions" | "hideMinDurationContextToggle" | "hideMinDurationOptions" | "hideMinDurationSlider" | "hideShadowDurationTooltip" | "hideTimeRangeSlider" | "hideTimezone" | "hideTotalDurationColorPicker" | "hideTotalDurationModeSelect" | "hideTotalDurationOptions" | "hideVisualization" | "hideVisualizationOptions" | "icon" | "label" | "maxMinDuration" | "minDuration" | "minDurationColor" | "minDurationContextColor" | "minDurationContextEnabled" | "minDurationContextInterval" | "minMinDuration" | "mode" | "referenceElement" | "startTimeOfDay" | "totalDurationColor" | "totalDurationMode" | "utcOffset" | "view" | "visualizeSunlight" | "visualScale">>, ArcgisShadowCastSetterTypes, StencilJsx.HTMLAttributes<ArcgisShadowCast> {
|
|
608
617
|
onArcgisPropertyChange?: EventHandler<ArcgisShadowCast["arcgisPropertyChange"]>;
|
|
609
618
|
onArcgisReady?: EventHandler<ArcgisShadowCast["arcgisReady"]>;
|
|
@@ -722,7 +731,7 @@ interface StencilArcgisTableList extends Partial<Pick<ArcgisTableList, "autoDest
|
|
|
722
731
|
onArcgisTriggerAction?: EventHandler<ArcgisTableList["arcgisTriggerAction"]>;
|
|
723
732
|
}
|
|
724
733
|
|
|
725
|
-
interface StencilArcgisTableListNext extends Partial<Pick<ArcgisTableListNext, "autoDestroyDisabled" | "closed" | "collapsed" | "dragEnabled" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "icon" | "label" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "listItemCreatedFunction" | "map" | "messageOverrides" | "minDragEnabledItems" | "minFilterItems" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryTableIndicators" | "tables" | "view">>, StencilJsx.HTMLAttributes<ArcgisTableListNext> {
|
|
734
|
+
interface StencilArcgisTableListNext extends Partial<Pick<ArcgisTableListNext, "autoDestroyDisabled" | "closed" | "collapsed" | "dragEnabled" | "filterPlaceholder" | "filterPredicate" | "filterText" | "headingLevel" | "hideNoFilterResultsNotice" | "hideNoItemsNotice" | "hideStatusIndicators" | "icon" | "label" | "listItemCanGiveFunction" | "listItemCanReceiveFunction" | "listItemCreatedFunction" | "listModeDisabled" | "map" | "messageOverrides" | "minDragEnabledItems" | "minFilterItems" | "referenceElement" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showErrors" | "showFilter" | "showHeading" | "showTemporaryTableIndicators" | "tables" | "view">>, StencilJsx.HTMLAttributes<ArcgisTableListNext> {
|
|
726
735
|
onArcgisClose?: EventHandler<ArcgisTableListNext["arcgisClose"]>;
|
|
727
736
|
onArcgisFilterChange?: EventHandler<ArcgisTableListNext["arcgisFilterChange"]>;
|
|
728
737
|
onArcgisPropertyChange?: EventHandler<ArcgisTableListNext["arcgisPropertyChange"]>;
|
|
@@ -918,7 +927,7 @@ interface ExposedElements {
|
|
|
918
927
|
"arcgis-measurement": StencilArcgisMeasurement;
|
|
919
928
|
"arcgis-navigation-toggle": StencilArcgisNavigationToggle;
|
|
920
929
|
"arcgis-oriented-imagery-viewer": StencilArcgisOrientedImageryViewer;
|
|
921
|
-
"arcgis-oriented-imagery-viewer-
|
|
930
|
+
"arcgis-oriented-imagery-viewer-non-panoramic-viewer": StencilArcgisOrientedImageryViewerNonPanoramicViewer;
|
|
922
931
|
"arcgis-oriented-imagery-viewer-panoramic-viewer": StencilArcgisOrientedImageryViewerPanoramicViewer;
|
|
923
932
|
"arcgis-oriented-imagery-viewer-panoramic-viewer-zoom": StencilArcgisOrientedImageryViewerPanoramicViewerZoom;
|
|
924
933
|
"arcgis-oriented-imagery-viewer-video-controls": StencilArcgisOrientedImageryViewerVideoControls;
|
|
@@ -936,6 +945,7 @@ interface ExposedElements {
|
|
|
936
945
|
"arcgis-scene": StencilArcgisScene;
|
|
937
946
|
"arcgis-search": StencilArcgisSearch;
|
|
938
947
|
"arcgis-search-result-renderer": StencilArcgisSearchResultRenderer;
|
|
948
|
+
"arcgis-selection-toolbar": StencilArcgisSelectionToolbar;
|
|
939
949
|
"arcgis-shadow-cast": StencilArcgisShadowCast;
|
|
940
950
|
"arcgis-sketch": StencilArcgisSketch;
|
|
941
951
|
"arcgis-sketch-tooltip-controls": StencilArcgisSketchTooltipControls;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.67",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@amcharts/amcharts5": "~5.20.
|
|
45
|
+
"@amcharts/amcharts5": "~5.20.1",
|
|
46
46
|
"lit": "^3.3.0",
|
|
47
47
|
"lodash-es": "^4.18.1",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
|
-
"@arcgis/common-components": "5.2.0-next.
|
|
50
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
51
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
49
|
+
"@arcgis/common-components": "5.2.0-next.67",
|
|
50
|
+
"@arcgis/toolkit": "5.2.0-next.67",
|
|
51
|
+
"@arcgis/lumina": "5.2.0-next.67"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcgis/core": "^5.2.0-next",
|
|
55
|
-
"@esri/calcite-components": "^5.
|
|
55
|
+
"@esri/calcite-components": "^5.2.0-next.43"
|
|
56
56
|
},
|
|
57
57
|
"css.customData": [
|
|
58
58
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/2CRPXLAY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./XEK22IDA.js";import o from"./3EYX5DTH.js";import n from"./3Y5SDD5P.js";import"./VZ3LSB3Z.js";import{a as p}from"./JCRPP54Z.js";import{a as H,b as j,c as q,g as z,h as J,j as K,k as Q,m as c,n as F}from"./LDDAJOTV.js";import{a as G}from"./BOHA6O3E.js";import{a as b}from"./AOZTFK3U.js";import l from"./3TZJEZDM.js";import k from"./MZWO5JYA.js";import i from"./PT7XD6RE.js";import"./VJVKFKSG.js";import h from"./2WLXD7OI.js";import{a as B}from"./PTHSNQL2.js";import{a as w}from"./JD74LG7K.js";import{a as S}from"./LFK5PEIC.js";import g from"./RTXRLIYL.js";import e from"./AM3UJO3A.js";import{g as N}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import a from"./LIBO3YUY.js";import"./QUZTFUWM.js";import{d as x}from"./M3DP7XNI.js";import{A as P,L,M as f,N as R,O as v,Q as E,R as M,T as D,b as d,w as m}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([te,g,{on:A,watch:ie},,,{a:k},U,,,,,{a:V,b:W,c:X}])=>{var Y="nested",se=U(te),T=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=B(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=c(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),u=F(l),y=this._getContainerItem(o),_=F(o),$=!!u&&!!_&&u===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,Z=n?.layer?.type??"",ee=y?.layer?.type??"",O=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!O.has(Z)&&!O.has(ee)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(p.item)),i=c(t,this.operationalItems);this._activeItem=i},this.viewModel=se(this),this.arcgisClose=S(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new g(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new g,this.tileOptions=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.closed=!1,this.icon="layers",this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.layerTablesAvailable=new g(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minDragEnabledItems=q,this.minFilterItems=j,this.openedLayers=new g,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new g,this.selectionMode="none",this.visibilityAppearance="default",this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=N()("state"),this.arcgisReady=m(),this.arcgisFilterChange=m(),this.arcgisSelectedItemsChange=m(),this.arcgisOpenedLayersChange=m(),this.arcgisTriggerAction=k(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,icon:1,catalogLayerList:32,catalogOptions:0,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,selectedItems:0,selectionMode:1,tableList:32,visibilityAppearance:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,messageOverrides:0,label:1,state:32}}static{this.styles=[X,W]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>z(this.selectedItems),{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),ie(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=c(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||this.viewModel.moveListItem(l,n,o,a)}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=c(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>c(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(x(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(p.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return G(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:u,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${Y} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${H} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${u} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,V({activeItem:this._activeItem,canMove:this._canMove,css:p,displayMode:Y,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};D("arcgis-layer-list-next",T);return T},"widgets/LayerList/LayerListViewModel","core/Collection","core/reactiveUtils",a,e,g,h,i,k,l,n,o)
|
package/dist/cdn/3EYX5DTH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./3Y5SDD5P.js";import{d as ne,f as le,i as ce,m as se,o as de,p as pe,q as R}from"./LDDAJOTV.js";import{a as D}from"./AOZTFK3U.js";import a from"./LIBO3YUY.js";import{d as $}from"./M3DP7XNI.js";import{L as P,M as Y,O as d,P as ae,Q as c,a as O,b as n}from"./QL3M4ZI7.js";export default $arcgis.t(([{isLayerFromCatalog:Oe},{h:oe},{a:U,b:ge}])=>{var fe=new Map;function he(t){return t?fe.get(t)??!1:!1}function Pe(t,e){let o=!(t.aria?.pressed??he(e));return t.aria={...t.aria,pressed:o},e&&fe.set(e,o),o}function V(t){return t&&"visibilityMode"in t?t.visibilityMode:null}function me(t,e){"visible"in t&&(V(e)==="exclusive"&&t.visible||(t.visible=!t.visible))}function Ye(t,e){t.panel.open=!t.panel.open,t.panel.open&&e&&e()}function De(t,e,o,p){t&&o===e.layer?.uid&&(oe(t),p?.(null))}function Re(t,e,o){o.type==="toggle"&&(o.value=!o.value),t(o,e)}function Ue(t){return t.actionsSections.map(e=>e.filter(o=>o.visible))}function be(t,e){let{icon:o}=e;if(o)return null;let p="image"in e?e.image:void 0;return p?n`<span aria-hidden=true class=${d($(t.itemActionIcon,{[t.itemActionImage]:!!p}))} style=${ae(ge(p))}></span>`:null}function ue(t,e,o){let{item:p,css:k,handleAction:r}=t,{active:v,disabled:z,title:_,type:x,indicator:I}=e,w=U(e);return n`<calcite-action .active=${x==="toggle"?e.value:!1} data-action-id=${e.id??c} .disabled=${z} .icon=${w} .indicator=${I} .loading=${v} @click=${()=>Re(r,p,e)} scale=s slot=${(o?void 0:"actions-end")??c} .text=${_??""} .textEnabled=${o} title=${_??void 0??c}>${be(k,e)}</calcite-action>`}function Ve(t){let{item:e,itemType:o="layer",parent:p,hideStatusIndicators:k,css:r,visibilityAppearance:v,hideCatalogLayerList:z,dragEnabled:_=!1,rootGroupUid:x,listModeDisabled:I=!1,selectionMode:w,displayMode:ve,layerTablesEnabled:A,showErrors:_e,parentTitles:Z,selectedItems:xe,activeItem:we,handleCatalogOpen:ye,handleTablesOpen:$e,selectedDragItemLayerUid:ke,handleSelectedDragItemLayerUidChange:ze,handlePanelOpen:Ie,messages:a,setCurrentActiveItem:B,clearActiveItem:q}=t,u=P(),T=P(),Ae=o==="table"?a.untitledTable??"":a.untitledLayer??"",h=e.title||Ae||"",F=null;k||(F=n`<arcgis-layer-list-item-indicator class=${d(r.statusIndicator)} .messages=${a} .item=${e} .parent=${p} slot=content-end></arcgis-layer-list-item-indicator>`);let G=null;{let{layer:i}=e,l=i&&"persistenceEnabled"in i&&(Oe(i)||!i.persistenceEnabled);(t.showTemporaryLayerIndicators||t.showTemporaryTableIndicators)&&l&&(G=n`<calcite-icon class=${d(r.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${a.temporary??c}></calcite-icon>`)}let H=null;if("visible"in e&&"visibleToggle"in r&&v){let i=V(p);if(i!=="inherited"){let l=ne({visible:e.visible,exclusive:i==="exclusive",visibilityAppearance:v}),s=v==="checkbox",g=a.layerVisibility,b=e.title??e.layer?.title??"",f=b?`${g??""}: ${b}`:g??"",S=he(e.layer?.id);H=n`<calcite-action .aria=${{pressed:S}} class=${d(r.visibleToggle)} .icon=${s?l:void 0} .label=${f} @click=${j=>{Pe(j.currentTarget,e.layer?.id),me(e,p)}} .slot=${s?"actions-start":"actions-end"} .text=${g??""} title=${g??c}>${s?null:n`<calcite-icon class=${d($({[r.visibleIcon]:i!=="exclusive"&&e.visible}))} .icon=${l} scale=s></calcite-icon>`}</calcite-action>`}}let J=null;{let i=e.panel;i?.open&&!i.disabled&&!i.flowEnabled&&(J=n`<div class=${d(r.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${t.view}></arcgis-layer-list-item-panel></div>`)}let K=null;{let i=e.panel;if(i?.visible){let{open:l,title:s,disabled:g}=i,b={icon:i.icon,image:i.image,indicator:!1},f=U(b);K=n`<calcite-action .active=${l} .disabled=${g} .icon=${f} @click=${()=>Ye(e,Ie)} slot=actions-end .text=${s??""} title=${s??void 0??c}>${be(r,i)}</calcite-action>`}}let N=null;{let i=e.layer,l=i?.type==="catalog-footprint",s=i?.type==="sublayer"&&R(i,"footprints");"itemCatalogIcon"in r&&(l||s)&&(N=n`<calcite-icon class=${d(r.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`)}let Q=null;{let i=e.layer,l=i?.type==="catalog-dynamic-group",s=i?.type==="sublayer"&&R(i,"layers-in-view");"itemCatalogIcon"in r&&(l||s)&&(Q=n`<calcite-icon class=${d(r.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`)}let W=null;if("visible"in e){let i=e.layer;!z&&i?.type==="catalog-dynamic-group"&&(W=n`<calcite-action .disabled=${!i.visible} icon=chevron-right icon-flip-rtl @click=${()=>ye?.(e)} scale=s slot=actions-end .text=${h??""}></calcite-action>`)}let X=null,C=!1;{let i=e.layer;if(A&&i)switch(i.type){case"knowledge-graph":C=A.includes(i.type)&&"tables"in i&&!!i.tables?.length;break;case"map-image":case"tile":C=A.includes(i.type)&&"subtables"in i&&!!i.subtables?.length;break}"itemTableIcon"in r&&"visible"in e&&"tables"in a&&C&&(X=D(`${e.uid}-tables`,n`<calcite-list-item class=${d(r.item)} data-layer-id=${i?.id??c} drag-disabled .label=${a.tables} title=${a.tables??c} @calciteListItemSelect=${()=>$e?.(e)} .value=${e}><calcite-icon class=${d(r.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`))}let ee=null;if("children"in e){let i=[...Z??[],e.title],{children:l,layer:s}=e,g=s?.type!=="catalog-dynamic-group"&&de(e),b=I?!1:le(s),f=s?.type==="group",S=!b&&!g&&_&&f,j=f&&"sortable"in e&&e.sortable,Se=_&&("childrenSortable"in e&&e.childrenSortable||j)&&ce(e),je=g?(l?.filter(m=>!m.hidden&&(_e||!m.error)).toArray()??[]).map(m=>Ve({...t,item:m,parent:e,parentTitles:i})):null;(g||S)&&(ee=n`<calcite-list .canPull=${m=>t.canMove?t.canMove(m,"pull"):!1} .canPut=${m=>t.canMove?t.canMove(m,"put"):!1} data-item=${e.uid??c} data-layer-type=${x??c} .displayMode=${ve} .dragEnabled=${Se} .group=${f?x:`${x}-${s?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${w}>${je}${X}</calcite-list>`)}let E=null;if(e.error){let i="layerError"in a?a.layerError:a.tableError;E=n`<div class=${d(r.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${i}</div></calcite-notice></div>`}else"incompatible"in e&&e.incompatible&&"layerIncompatible"in a&&(E=n`<div class=${d(r.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(T)}><div slot=message>${a.layerIncompatible}</div></calcite-notice></div>`);let ie=Ue(e),M=e.actionsSections.reduce((i,l)=>i+l.length,0),te=pe(ie),Te=ie.toArray().map(i=>n`<calcite-action-group>${i.toArray().map(l=>ue(t,l,!0))}</calcite-action-group>`),Ce=i=>{e.actionsOpen=i.currentTarget.open},re=null;M>1&&(re=n`<calcite-action-menu appearance=transparent .label=${a.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Ce}><calcite-action .aria=${{expanded:e.actionsOpen??!1,hasPopup:"true"}} icon=ellipsis scale=s slot=trigger .text=${a.options??""} title=${a.options??c}></calcite-action>${Te}</calcite-action-menu>`);let L=null;M===1&&te?L=ue(t,te,!1):M>1&&(L=re);let Ee="visibleAtCurrentTimeExtent"in e&&"layerInvisibleAtTime"in a&&!e.visibleAtCurrentTimeExtent?`${h} (${a.layerInvisibleAtTime})`:"visibleAtCurrentScale"in e&&"layerInvisibleAtScale"in a&&!e.visibleAtCurrentScale?`${h} (${a.layerInvisibleAtScale})`:h,Me="parent"in e&&e.parent?.layer?.type==="catalog",y=e.layer,Le="visibleAtCurrentScale"in e&&!e.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in e&&!e.visibleAtCurrentTimeExtent;return queueMicrotask(()=>{De(u.value??null,e,ke,ze),T.value&&(t.handleTooltipReferenceChange?.(y?.uid,T.value),queueMicrotask(()=>t.handleTooltipReferenceChange?.(y?.uid,null))),e.panel&&(e.panel.container=u.value)}),D(e.uid,n`<calcite-list-item class=${d($(r.item,"itemActive"in r&&{[r.itemActive]:we?.uid===e.uid}))} data-item=${e.uid??c} data-layer-id=${y?.id??c} .dragDisabled=${!("sortable"in e&&e.sortable)||Me} id=${y?.uid??c} .label=${h} .metadata=${{parentTitles:Z??[],_title:h}} .expanded=${"open"in e&&e.open} .selected=${w!=="none"?xe.includes(e):!1} title=${Ee??c} .unavailable=${Le} .value=${e} @focusin=${()=>{B?.(e),u.value?.classList.add(r.itemActive)}} @focusout=${()=>{q?.(),u.value?.classList.remove(r.itemActive)}} @mouseover=${()=>{B?.(e),u.value?.classList.add(r.itemActive)}} @mouseleave=${()=>{q?.(),u.value?.classList.remove(r.itemActive)}} @calciteListItemSelect=${i=>{i.target===i.currentTarget&&"visible"in e&&se(i.currentTarget,t.operationalItems)===e&&w==="none"&&V(p)!=="inherited"&&me(e,p)}} @calciteListItemToggle=${i=>{"open"in e&&(i.stopPropagation(),e.open=i.target.expanded)}} ${Y(u)}>${N}${Q}${F}${H}${W}${G}${ee}${E}${J}${K}${L}</calcite-list-item>`)}var Xe=O`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.esri-legend{display:none}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,ei=O`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-space-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-space-xl);width:var(--calcite-space-xl);height:var(--calcite-space-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`;return{a:Ve,b:Xe,c:ei}},"layers/catalog/catalogUtils",a,b)
|
package/dist/cdn/74IVEAEO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import n from"./3EYX5DTH.js";import l from"./3Y5SDD5P.js";import"./VZ3LSB3Z.js";import{a as K}from"./JCRPP54Z.js";import"./BNRS5ISC.js";import{a as S,b as U,g as G,h as v,j as H,k as q,m as c,n as $}from"./LDDAJOTV.js";import{a as N}from"./BOHA6O3E.js";import{a as m}from"./AOZTFK3U.js";import j from"./3TZJEZDM.js";import i from"./MZWO5JYA.js";import h from"./PT7XD6RE.js";import"./VJVKFKSG.js";import f from"./2WLXD7OI.js";import{a as O}from"./PTHSNQL2.js";import{a as y}from"./JD74LG7K.js";import{a as k}from"./LFK5PEIC.js";import e from"./RTXRLIYL.js";import b from"./AM3UJO3A.js";import{g as B}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import a from"./LIBO3YUY.js";import"./QUZTFUWM.js";import{d as P}from"./M3DP7XNI.js";import{A as R,L as d,M as g,N as M,O as p,Q as u,R as w,T as A,a as C,b as o,w as I}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([ie,b,{on:se,watch:ae},,,{a:D},x,,,,,{a:j,b:z,c:J}])=>{var f={...K,section:"section",editing:"editing",editingForm:"editing-form"},re=C`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,Q="nested",le=".*\\S+.*",V="data-basemap-layer-type",oe=x(ie),F=class extends M{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this._lastDragDetail=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${R()}`,this._openedLayersController=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=O(),this.viewModel=oe(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let r=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=c(e,this._allItems);if(!l?.sortable)return!1;let a=c(t,this._allItems),n=$(t),h=c(i,this._allItems),L=$(i),_=!!n&&!!L&&n===L,X={selected:l,from:a,to:h},Y=t.group,Z=i.group,ee=a?.layer?.type??"",te=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Y&&Z&&typeof r=="function"?r(X):_&&!T.has(ee)&&!T.has(te)&&l.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(i=>i.classList?.contains(f.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new b,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseListItemCreatedFunction=this.viewModel.baseListItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.icon="layers",this.layerTablesEnabled=new b(["knowledge-graph"]),this.minFilterItems=U,this.openedLayers=new b,this.referenceFilterText="",this.referenceListItemCreatedFunction=this.viewModel.referenceListItemCreatedFunction,this.selectedItems=new b,this.selectionMode="none",this.visibilityAppearance="default",this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=B()("state"),this.arcgisReady=I(),this.arcgisBaseFilterChange=I(),this.arcgisReferenceFilterChange=I(),this.arcgisOpenedLayersChange=I(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItems:32,baseListItemCreatedFunction:0,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,mapImageOptions:0,minFilterItems:9,openedLayers:32,position:1,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceListItemCreatedFunction:0,selectedItems:0,selectionMode:1,tableList:32,tileOptions:0,visibilityAppearance:1,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideReferenceLayers:5,hideStatusIndicators:5,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,showFilter:5,showTemporaryLayerIndicators:5,messageOverrides:0,state:32}}static{this.styles=[J,re,z]}get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this._renderLayerFlowItem(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[se(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),ae(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){v(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),v(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let s=new AbortController,{signal:r}=s;this._openedLayersController=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let l=await Promise.all(t.map(n=>this._createFlowList(n,r)));if(r.aborted)return;i.removeAll(),i.addMany(l);let a=i.at(-1);a?"catalogLayer"in a?(this._catalogLayerList=a,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=a):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:s,minFilterItems:r,selectionMode:l,visibilityAppearance:a,layerTablesEnabled:n}=this;return w(o`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??a} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let t=this._getTableListParams(e);return w(o`<arcgis-table-list .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list>`)}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let r=c(i,this._allItems),l=c(e,this._allItems),a=c(t,this._allItems),n=W(t),h=W(e);s==null||!r||!a||!l||!n||!h||this.viewModel.moveListItem({targetItem:r,fromParentItem:a,toParentItem:l,newIndex:s,from:n,to:h})}_handleCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:r}=e;if(t!==i){s.remove();return}r==null||!t||!s||t.insertBefore(s,t.children[r])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:r,newIndex:l}=e,a=t?.newIndex===l&&t?.dragEl===r&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||a)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=r.value.layer?.uid??null;let n=s,h=i;if(n===h){let L=Array.from(s.children).filter(_=>_?.matches("calcite-list-item")).map(_=>_.value.layer?.uid??"");this._sortLayers(n,L);return}this._moveLayerFromChildList({toEl:h,fromEl:n,dragEl:r,newIndex:l})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}_handleCalciteListChange(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}_focusFlowItem(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[y.hidden]:this.state==="loading",[y.disabled]:this.state==="disabled"};return o`<div class=${p(P(y.widget,y.panel,e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`}_renderItemTooltip(e){return e?o`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i));return t?.length?t:null}_renderItemTooltips(){return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoLayersInfoMessage(e){return o`<div slot=message>${e}</div>`}_renderNoLayersInfo(e,t){return this.hideNoItemsNotice?null:o`<div class=${p(f.itemMessage)}>${m(t,o`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`}_renderEditingInput(){return o`<div class=${p(f.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${le} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??u} type=text .value=${this.viewModel.basemapTitle??void 0} ${g(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}_renderEditingForm(){return this.editingTitle?o`<form class=${p(f.editingForm)} @submit=${this._formSubmit}><calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${g(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item></form>`:null}_renderEditTitleButton(){return this.showEditTitleButton&&!this.editingTitle?o`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??u}></calcite-action>`:null}_renderItems(){let e=[m("root-flow-item",o`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${g(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),this._renderEditingForm(),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this._focusRootFlowItem=this._focusFlowItem(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this._focusFlowItem(this._editingFlowItemRef.value,this._focusEditingFlowItem),this.closed?null:m("root-flow",o`<calcite-flow>${e}</calcite-flow>`)}_renderPanelFlowItems(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,r=()=>this._handlePanelFlowItemBack(i);return this._focusPanelFlowItem=this._focusFlowItem(this._panelFlowItemRef.value,this._focusPanelFlowItem),o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${l=>{l.preventDefault(),r()}} ${g(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${r} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderLayerFlowItem(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this._focusFlowItem(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,o`<calcite-flow-item data-layer-uid=${e.uid??u} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let r=this.openedLayers.at(-1);r?this._focusLayerFlowItem=r.uid:this._focusRootFlowItem=!0}} ${g(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderList(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,r=t==="reference"?this.referenceFilterText:this.baseFilterText,l=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,o`<calcite-block class=${p(f.section)} collapsible expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this._renderNoLayersInfo(l,t)}${m(`list-${t}`,o`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${a=>this._canMove(a,"pull")} .canPut=${a=>this._canMove(a,"put")} data-basemap-layer-type=${t??u} data-layer-type=${this._rootGroupUid??u} .displayMode=${Q} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?r:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${a=>this._handleCalciteListDragEnd(a.detail)} @calciteListFilter=${a=>{let n=a.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${a=>this._onCalciteListOrderChange(a.detail)} ${g(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(a=>this._renderItem(a,i))}${s&&!this.hideNoFilterResultsNotice?o`<div class=${p(f.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(l)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}_renderBaseSection(){return this.hideBaseLayers?null:this._renderList(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}_renderReferenceSection(){return this.hideReferenceLayers?null:this._renderList(this._visibleReferenceItems,"reference",!1)}_renderItem(e,t,i,s){return m(e.uid,j({activeItem:this._activeItem,canMove:this._canMove,css:f,displayMode:Q,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function W(E){let e=E.closest(`[${V}]`)?.getAttribute(V);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"widgets/BasemapLayerList/BasemapLayerListViewModel","core/Collection","core/reactiveUtils",a,b,e,f,h,i,j,l,n)
|
package/dist/cdn/EF7LH4GQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import b from"./HX5ZGPW4.js";import a from"./PT7XD6RE.js";import"./VJVKFKSG.js";import{a as C}from"./PTHSNQL2.js";import"./CNA7TDZN.js";import"./VJMC3CMB.js";import"./QUZTFUWM.js";import"./M3DP7XNI.js";import{L as u,M as f,N as y,T as w,a as g,b as p,o as _}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:d,subclass:b},M,,P,{watch:m},{rotateDimensions:I,registerPanConstraint:G},z,,{b:c},R])=>{var L=g`:host{height:100%;--arcgis-view-color-focus: none}`,O=Object.defineProperty,x=Object.getOwnPropertyDescriptor,h=(t,e,r,i)=>{for(var a=i>1?void 0:i?x(e,r):e,s=t.length-1,o;s>=0;s--)(o=t[s])&&(a=(i?o(e,r,a):o(a))||a);return i&&a&&O(e,r,a),a},n=class extends M{constructor(t){super(t),this.autoLoad=!1}static isNonPanoramicMedia(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&t.declaredClass==="components.oriented-imagery-viewer.support.NonPanoramicMedia"}destroy(){this._cache?.destroy(),this._cache=void 0}get layer(){return this._cache}get size(){if(!this._cache||this._cache.destroyed||this._cache.loadError||!this._cache.serviceRasterInfo)return;let{serviceRasterInfo:t}=this._cache;return[t.width,t.height]}async load(t){if(this._cache&&!this._cache.destroyed)return await this._cache.load(t),{layer:this._cache,size:this.size};let{url:e,customParameters:r}=this,i=this.datasetFormat;if(!e)throw new Error("URL is required to load NonPanoramicMedia.");if(!i){let o=await import("./DBA7NSTP.js").then(m=>m.default);if(c(t),i=o.guessExtensionFromURI(e),!i){try{i=await o.getDatasetFormat(e)}catch{_("warn",this,"Failed to determine dataset format from URL or response headers."),i="UNKNOWN FORMAT"}c(t)}}this.datasetFormat=i;let a=(await $arcgis.t(m=>m[0],"layers/ImageryTileLayer")).default;c(t);let s=new a({url:e,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:i},customParameters:r??void 0});return await s.load(t),c(t),this._cache=s,{layer:this._cache,size:this.size}}};h([d()],n.prototype,"_cache",2);h([d()],n.prototype,"autoLoad",2);h([d()],n.prototype,"customParameters",2);h([d()],n.prototype,"datasetFormat",2);h([d()],n.prototype,"url",2);h([d()],n.prototype,"layer",1);h([d()],n.prototype,"size",1);n=h([b("components.oriented-imagery-viewer.support.NonPanoramicMedia")],n);function E(t,e,r,i,a){let{width:s,height:o}=I(t,e,a);return Math.max(s/r,o/i)}var F=96,A=39.37,v=A*F;function N(t){let e=v*.25,r=v*t,i=[],a=r;for(;a>e;)i.push(a),a*=.5;i.push(e);let{lods:s}=z.create({scales:i});return{minScale:r,lods:s}}var l=class extends y{constructor(){super(...arguments),this._messages=C(),this._graphicsController=new R(this),this._imageChanged=!1,this._internalMap=u(),this._loading=!1,this.hideHeader=!1,this.hideLoader=!1,this.hideZoomControls=!1,this.rotation=0}static{this.properties={_imageChanged:16,_internalMap:16,_image:16,_loading:16,_media:16,hideHeader:5,hideLoader:5,hideZoomControls:5,messageOverrides:0,media:0,rotation:9}}static{this.styles=[L]}get imageRenderer(){return this._internalMap?.value?.view}get map(){return this.imageRenderer?.map}get media(){return this._media}set media(e){if(!e){this._mediaAbortController?.abort(),this._media=void 0,this._clearImage();return}this._media=e instanceof n?e:new n(e)}addGraphic(e){this._graphicsController.addGraphic(e)}addGraphics(e){this._graphicsController.addGraphics(e)}clearGraphics(){this._graphicsController.clearGraphics()}async mediaOnLoad(){return this._mediaPromise&&await this._mediaPromise,this._media}removeGraphic(e){this._graphicsController.removeGraphic(e)}removeGraphics(e){this._graphicsController.removeGraphics(e)}loaded(){this.manager.onLifecycle(()=>[this._createResizeConstraint(),this._createRotationHandler(),this._createPanConstraint(),m(()=>this._media,e=>{this._mediaAbortController?.abort(),e&&(this._mediaAbortController=new AbortController,this._mediaPromise=this._loadMediaInternal(e,this._mediaAbortController))},{initial:!0,sync:!0})])}_createPanConstraint(){return m(()=>({image:this._image,imageRenderer:this.imageRenderer}),({image:e,imageRenderer:r})=>{!e||!r?.ready||G(r,e)},{sync:!0,initial:!0})}_createResizeConstraint(){return m(()=>{if(!this.imageRenderer?.ready||!this._image)return;let{width:e,height:r}=this._image.serviceRasterInfo,{width:i,height:a,rotation:s}=this.imageRenderer;return E(e,r,i,a,s)},e=>{if(!e||!this.imageRenderer)return;let{constraints:r,scale:i}=this.imageRenderer,a=r.minScale,{lods:s,minScale:o}=N(e);r.set({minScale:o,lods:s}),this.imageRenderer.scale=this._imageChanged||Math.abs(i-a)<=1e-6?o:i,this._imageChanged=!1},{sync:!0,initial:!0})}_createRotationHandler(){return m(()=>this.rotation,e=>{this.imageRenderer&&(this.imageRenderer.constraints.rotationEnabled=!0,this.imageRenderer.rotation=e,this.imageRenderer.constraints.rotationEnabled=!1)},{sync:!0,initial:!0})}_clearImage(){this._image?.destroy(),this._image=void 0}async _loadMediaInternal(e,r){if(this._loading=!0,this._clearImage(),!e)throw new Error("No media provided");let{layer:i}=await e.load(r).finally(()=>{this._loading=!1});c(r),this._imageChanged=!0,this._image=i,this.imageRenderer?.map?.layers.add(this._image)}render(){return p`<calcite-panel .loading=${this.hideLoader?void 0:this._loading} .heading=${this.hideHeader?void 0:this._messages.title}><arcgis-map hide-attribution .spatialReference=${P.WebMercator} ${f(this._internalMap)}><arcgis-zoom .hidden=${this.hideZoomControls} .messageOverrides=${this.messageOverrides} slot=top-left></arcgis-zoom></arcgis-map></calcite-panel>`}};w("arcgis-oriented-imagery-viewer-image-viewer",l);return l},"core/accessorSupport/decorators","core/Accessor","views/MapView","geometry/SpatialReference","core/reactiveUtils","applications/Components/OrientedImageryViewer/ImageViewer/utils","layers/support/TileInfo","Graphic",a,b)
|
package/dist/cdn/GBLPYWL2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import j from"./3EYX5DTH.js";import i from"./3Y5SDD5P.js";import{a as J}from"./JCRPP54Z.js";import{a as S,b as H,g as G,h as U,m as F}from"./LDDAJOTV.js";import{a as B}from"./BOHA6O3E.js";import{a as w}from"./AOZTFK3U.js";import h from"./3TZJEZDM.js";import g from"./MZWO5JYA.js";import f from"./PT7XD6RE.js";import"./VJVKFKSG.js";import e from"./2WLXD7OI.js";import{a as x}from"./PTHSNQL2.js";import{a as p}from"./JD74LG7K.js";import d from"./RTXRLIYL.js";import b from"./AM3UJO3A.js";import{g as k}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import a from"./LIBO3YUY.js";import"./QUZTFUWM.js";import{d as R}from"./M3DP7XNI.js";import{A as T,L as O,M as m,N as P,O as y,Q as $,R as L,T as A,b as r,w as c}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:K},I,{on:C,watch:W},X,Y,{h:f},,{a:D},N,,,,,{a:j,b:q,c:z}])=>{var g=J,Z=u=>{let e=u?.type;return e==="knowledge-graph"||e==="map-image"||e==="tile"},ee=u=>u?.type==="catalog",Q="nested",te=I.ofType(Y),se=N(X),_=class extends P{constructor(){super(...arguments),this.#o=`operational-${T()}`,this.#e=null,this.#l=O(),this.#i=!1,this.#t=!1,this.messages=x(),this.#r=()=>{this._activeItem=null},this.#n=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(s=>s.classList?.contains(g.item));this._activeItem=F(t)},this.#a=K(),this.#s=K(),this.#h=e=>{e&&this.#v(e)},this.#c=e=>{e&&this.#b(e)},this.#d=e=>{e&&this.#$(e)},this.viewModel=se(this),this._activeItem=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this.layerTablesEnabled=new I(["knowledge-graph"]),this.mapImageOptions=null,this.tileOptions=null,this.view=this.viewModel.view,this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.closed=!1,this.topLayerDisabled=!1,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.openedLayers=new I,this.openedLayerLists=new I,this.collapsed=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minFilterItems=H,this.selectedItems=new te,this.selectionMode="none",this.visibilityAppearance="default",this.arcgisPropertyChange=k()("state"),this.arcgisReady=c(),this.arcgisCatalogItemsChange=c(),this.arcgisFilterChange=c(),this.arcgisSelectedItemsChange=c(),this.arcgisOpenedLayersChange=c(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_activeItem:16,_focusRootFlowItem:16,_focusPanelFlowItem:16,_focusLayerFlowItem:16,_totalItems:16,_filterEnabled:16,_visibleItems:16,_openedPanelItems:16,_renderedOpenLayerFlowItems:16,layerTablesEnabled:16,mapImageOptions:16,tileOptions:16,view:0,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,closed:5,topLayerDisabled:5,autoDestroyDisabled:5,referenceElement:1,state:32,openedLayers:32,openedLayerLists:32,catalogItems:0,catalogLayer:0,catalogOptions:0,collapsed:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,label:1,listItemCreatedFunction:0,minFilterItems:9,selectedItems:0,selectionMode:1,visibilityAppearance:1,messageOverrides:0,onCatalogOpen:0,onTablesOpen:0}}static{this.styles=[z,q]}#o;#e;#l;#i;#t;#r;#n;#a;#s;#h;#c;#d;get _totalItems(){return this.catalogItems?.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length??0}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,s)=>this.#k(t,s===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}async destroy(){this.#i||this.#t||(this.#i=!0,this.#e?.abort(),this.#e=null,await this.manager.destroy(),this.openedLayerLists.removeAll(),this.openedLayers.removeAll(),this.#s.clear(),this.#a.clear(),this.#t=!0,this.#i=!1)}loaded(){this.manager.onLifecycle(()=>[C(()=>this.openedLayers,"change",()=>{this.#w()}),C(()=>this.viewModel.catalogItems,"change",()=>{G(this.selectedItems),this.arcgisCatalogItemsChange.emit()}),C(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),W(()=>[this.filterPredicate,this.#l.value],()=>U(this.#l.value,this.filterPredicate))])}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort(),this.#e=null,!this.autoDestroyDisabled&&!this.#t&&!this.#i&&this.destroy()}#y(e,t){return this.viewModel.triggerAction(e,t)}async#f(e,t){let s=this.#s.get(e);if(s)return s;let a=e.type==="catalog"?await this.#L(e):await this.#C(e);return t.aborted||!this.isConnected||this.#t?(a?.destroy?.(),a):(t.aborted||this.#s.set(e,a),a)}async#w(){if(!this.isConnected||this.#t)return;let{openedLayers:e,openedLayerLists:t}=this;this.#e?.abort();let s=new AbortController,{signal:a}=s;this.#e=s,this.#s.forEach((n,h)=>{e.includes(h)||(n?.destroy?.(),this.#s.delete(h))});let l=await Promise.all(e.map(n=>this.#f(n,a)));if(a.aborted||!this.isConnected||this.#t)return;t.removeAll(),t.addMany(l);let i=t.at(-1),o=i&&"catalogLayer"in i?i:void 0;this._catalogLayerList!==o&&(this._catalogLayerList=o),this.arcgisOpenedLayersChange.emit()}#I(e){e.open=!1,this._focusRootFlowItem=!0}#b(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,f(e))}#v(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,f(e))}#$(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,f(e))}async#L(e){let{headingLevel:t,catalogOptions:s,view:a,referenceElement:l,filterPlaceholder:i,listItemCreatedFunction:o,minFilterItems:n,selectionMode:h,visibilityAppearance:d}=this;return L(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder??i} .listItemCreatedFunction=${s?.listItemCreatedFunction??o} .minFilterItems=${s?.minFilterItems??n} .selectionMode=${s?.selectionMode??h} .visibilityAppearance=${s?.visibilityAppearance??d} .showErrors=${s?.visibleElements?.errors??this.showErrors} .showFilter=${s?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${b=>b.stopPropagation()} .catalogLayer=${e} .view=${a} .referenceElement=${l} @catalogOpen=${this.#p} @tablesOpen=${this.#m}></arcgis-catalog-layer-list-next>`)}#F(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async#C(e){let{headingLevel:t,selectionMode:s,referenceElement:a,view:l}=this,i=this.#F(e);return L(r`<arcgis-table-list .headingLevel=${i?.headingLevel??t} .selectionMode=${i?.selectionMode??s} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .label=${i?.label} .tables=${i?.tables} .view=${l} .referenceElement=${a} @arcgisReady=${o=>o.stopPropagation()}></arcgis-table-list>`)}#m(e){if(this.onTablesOpen){this.onTablesOpen(e);return}let t=e.layer;Z(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=t.uid)}#p(e){if(this.onCatalogOpen){this.onCatalogOpen(e);return}let t=e.layer?.parent;ee(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=e.layer?.uid)}#_(e,t){t?this.#a.set(e,t):this.#a.delete(e)}#M(e,t){this.#y(e,t)}#E(e){let{selectionMode:t,selectedItems:s}=this;if(t==="none")return;let a=e.target.selectedItems.map(l=>F(l)).filter(Boolean);s.removeAll(),s.addMany(a)}render(){let{state:e}=this,t={[p.hidden]:e==="loading",[p.disabled]:e==="disabled"};return r`<div class=${y(R(p.widget,p.panel,t))}>${this._visibleItems?.length?this.#O():null}${this.#R()}</div>`}#T(e){let t=this.#a,s=this.messages;return e?.layer?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>`:null}#g(e){return e.incompatible?this.#T(e):e.children?.filter(t=>!t.hidden).toArray().map(t=>this.#g(t))}#O(){return this._visibleItems?.toArray().map(e=>this.#g(e))}#u(){return r`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#P(){return this.hideNoItemsNotice?null:r`<div class=${y(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#u()}</calcite-notice></div>`}#A(){let{_openedPanelItems:e,openedLayers:t}=this;return B(e.toArray(),({uid:s})=>s,(s,a)=>{let{uid:l,title:i,panel:o}=s,n=()=>this.#I(o);return r`<calcite-flow-item .description=${i} .heading=${o.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${h=>{h.preventDefault(),n()}} ${m(this.#h)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${n}>Back</calcite-button></calcite-flow-item>`})}#R(){let{collapsed:e,_visibleItems:t,_filterEnabled:s,showCloseButton:a,showCollapseButton:l,showHeading:i,selectionMode:o,filterText:n,filterPlaceholder:h,openedLayers:d,_openedPanelItems:b}=this,M=this.#o,E=this.label??this.messages.componentLabel??"",V=[r`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${i?E:void 0} .headingLevel=${this.headingLevel} .selected=${!d.length&&!b.length} @calciteFlowItemClose=${()=>this.closed=!0} ${m(this.#c)}>${t?.length?r`<calcite-list data-layer-type=${M??$} .displayMode=${Q} .filterEnabled=${s} .filterPlaceholder=${h} .filterProps=${S} .filterText=${s?n:""} .group=${M} .label=${E} @focusin=${this.#n} @focusout=${this.#r} selection-appearance=border .selectionMode=${o} @calciteListChange=${this.#E} @calciteListFilter=${v=>{this.filterText=v.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @mouseleave=${this.#r} @mouseover=${this.#n} ${m(this.#l)}>${t.toArray().map(v=>this.#x(v))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${y(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#u()}</calcite-notice></div>`:null}</calcite-list>`:this.#P()}</calcite-flow-item>`,this.#A(),this._renderedOpenLayerFlowItems];return this.closed?null:w("root-flow",r`<calcite-flow>${V}</calcite-flow>`)}#k(e,t){let{openedLayers:s}=this,a=e.title||this.messages.untitledLayer;return w(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??$} .description=${a} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${l=>{l.preventDefault(),s.pop();let i=s.at(-1);i?this._focusLayerFlowItem=i.uid:this._focusRootFlowItem=!0}} ${m(this.#d)}>${this.#s.get(e)}</calcite-flow-item>`)}#x(e,t,s){let{hideStatusIndicators:a,showCloseButton:l,showCollapseButton:i,showErrors:o,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d}=this;return w(e.uid,j({activeItem:this._activeItem??void 0,css:{...g,itemCatalogIcon:g.itemActionIcon},displayMode:Q,dragEnabled:!1,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,parent:t,parentTitles:s,rootGroupUid:this.#o,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,hideStatusIndicators:a,showCloseButton:l,showCollapseButton:i,showErrors:o,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d,handleAction:this.#M.bind(this),handleCatalogOpen:this.#p.bind(this),handleTablesOpen:this.#m.bind(this),handleTooltipReferenceChange:this.#_.bind(this),view:this.view}))}};A("arcgis-catalog-layer-list-next",_);return _},"applications/Components/featureUtils","core/Collection","core/reactiveUtils","widgets/CatalogLayerList/CatalogLayerListViewModel","widgets/LayerList/ListItem",a,b,d,e,f,g,h,i,j)
|
package/dist/cdn/JA3PSEUL.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import j from"./VVC4QG6F.js";import{a as V,b as $,e as u,g as m,j as S,k as U}from"./G5VPRDMX.js";import{a as g}from"./POKO37D3.js";import i from"./PT7XD6RE.js";import"./VJVKFKSG.js";import h from"./2WLXD7OI.js";import{a as z}from"./PTHSNQL2.js";import{a as p}from"./JD74LG7K.js";import e from"./RTXRLIYL.js";import d from"./AM3UJO3A.js";import{g as y}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import a from"./LIBO3YUY.js";import"./QUZTFUWM.js";import"./M3DP7XNI.js";import{N as f,O as v,Q as b,T as x,a as _,b as c,w}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([D,{property:n,subclass:E},{watch:j},A,,,,O,{f:k},M])=>{var L=_`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,B=Object.defineProperty,P=Object.getOwnPropertyDescriptor,a=(i,e,l,o)=>{for(var t=o>1?void 0:o?P(e,l):e,s=i.length-1,d;s>=0;s--)(d=i[s])&&(t=(o?d(e,l,t):d(t))||t);return o&&t&&B(e,l,t),t},r=class extends M{constructor(){super(...arguments),this.snappingOptions=new A,this.supportedViewType="2d",this.unsupportedErrorMessage="The Area Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles([j(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:i,unit:e})=>{e&&(i.unit=e)},{sync:!0,initial:!0}),j(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:i,snappingOptions:e})=>{i&&"snappingOptions"in i&&(i.snappingOptions=e)},{sync:!0,initial:!0})])}get state(){let{analysis:i,disabled:e,operationState:l,ready:o,supported:t}=this,{valid:s}=i;return V({supported:t,disabled:e,ready:o,operationState:l,valid:s})}get displayState(){return $(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",area:m(this.analysis.valid?this.analysisView?.result?.area:void 0),perimeter:m(this.analysis.valid?this.analysisView?.result?.perimeter:void 0)}}get unitOptions(){return S(this._userUnitOptions,u,u)}set unitOptions(i){this._userUnitOptions=i}get unit(){return U(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(i){this._userUnit=i}async place(i){this.analysisView&&(await this.analysisView.place(i),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new D}};a([n({readOnly:!0})],r.prototype,"state",1);a([n({readOnly:!0})],r.prototype,"displayState",1);a([n()],r.prototype,"measurement",1);a([n({type:A})],r.prototype,"snappingOptions",2);a([n()],r.prototype,"unitOptions",1);a([n()],r.prototype,"_userUnitOptions",2);a([n()],r.prototype,"unit",1);a([n()],r.prototype,"_userUnit",2);r=a([E("components.area-measurement-2d.AreaMeasurement2dViewModel")],r);var Z=O(r),h=class extends f{constructor(){super(...arguments),this.viewModel=Z(this),this.messages=z({name:"area-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-area",this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=y()("analysis","state"),this.arcgisReady=w()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=L}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){k(this.viewModel.start())}render(){let{messages:e,unit:l,unitOptions:o,viewModel:t}=this,{measurement:s,state:d}=t;return c`<div aria-label=${e.componentLabel??b} class=${v({[p.widget]:!0,[p.panel]:!0})} role=presentation><arcgis-measurement-content .state=${t.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.area,measurement:s.area},{title:e.perimeter,measurement:s.perimeter}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${l} @arcgisUnitSelectChange=${C=>{this.unit=C.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${d==="unsupported"||d==="disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};x("arcgis-area-measurement-2d",h);return h},"analysis/AreaMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/snapping/SnappingOptions",a,d,e,h,i,j)
|
package/dist/cdn/KAXVBIZ7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as c,c as d}from"./LH246IIL.js";import{c as r,e as m}from"./CNA7TDZN.js";import{b as h}from"./M3DP7XNI.js";import{L as u,b as a,w as s,y as l}from"./QL3M4ZI7.js";export default $arcgis.t(([{when:E,watch:w}])=>{var b=class extends l{constructor(t){super(t),this.direction=m(),this.popupRef=u(),this.slotGroupRefs=c(),this.attributionHeight=0,this._uiContainer=null,this.component.listenOn(globalThis,"unhandledrejection",o=>{let e=o.reason;if(e?.name==="webgl:required"){let{name:p}=e;this.webGLError={name:p}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)}),this.component.view.on("click",[],t=>{let o=t.native;t.button!==0||o?.ctrlKey||o?.metaKey||this._handleOpenPopup(t)},-2)]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o,shouldFocus:e,title:p,...n}=t;delete t.fetchFeatures,Object.assign(this.popupElement,n),p!==void 0&&(this.popupElement.heading=p),e&&await this.popupElement.setFocus(),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}_maybeDisableViewPopup(){this.component.view&&(this.component.popupComponentEnabled||this.popupElement)&&(this.previousViewPopupEnabled=this.component.view.popupEnabled,this.component.view.popupEnabled=!1)}_maybeResetViewPopup(){this.component.view&&this.previousViewPopupEnabled!==void 0&&(this.component.view.popupEnabled=this.previousViewPopupEnabled,this.previousViewPopupEnabled=void 0)}async _handleOpenPopup(t){if(this._assignDefaultPopup(),!this.component.popupDisabled){if(this._maybeDisableViewPopup(),this.popupElement){let{location:o,promises:e}=await this.popupElement?.handleViewClick(t)??{};e?.length?this.openPopup({location:o,promises:e}):this.popupElement?.open&&this.closePopup()}this._maybeResetViewPopup()}}_handlePopupSlotChange(t){let o=h(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return d({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},C=r((i,t)=>{let o=s();return t.onLifecycle(()=>w(()=>{let{map:e}=i;if(!e||e.destroyed)return[];let p=[];return e.loadError&&p.push(e),e.basemap?.loadError&&p.push(e.basemap),e.ground.loadError&&p.push(e.ground),[...e.allLayers,...e.allTables].forEach(n=>{n.loadError&&p.push(n)}),p},e=>{e.length&&(i.loadErrorSources=e,o.emit())})),o}),G=r((i,t)=>{let o=s();return t.onLifecycle(()=>w(()=>i.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:b,b:C,c:G}},"core/reactiveUtils")
|
package/dist/cdn/QNQQA4BU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./XEK22IDA.js";import j from"./3EYX5DTH.js";import i from"./3Y5SDD5P.js";import{a as G}from"./JCRPP54Z.js";import{a as A,b as x,c as B,g as R}from"./LDDAJOTV.js";import{a as U}from"./BOHA6O3E.js";import{a as w}from"./AOZTFK3U.js";import g from"./3TZJEZDM.js";import f from"./MZWO5JYA.js";import e from"./PT7XD6RE.js";import"./VJVKFKSG.js";import d from"./2WLXD7OI.js";import{a as T}from"./PTHSNQL2.js";import{a as m}from"./JD74LG7K.js";import c from"./RTXRLIYL.js";import b from"./AM3UJO3A.js";import{g as D}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import a from"./LIBO3YUY.js";import"./QUZTFUWM.js";import{d as F}from"./M3DP7XNI.js";import{A as y,L as C,M as $,N as E,O as p,Q as M,T as L,b as o,w as h}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([j,{watch:_,on:q},V,,,{a:P},N,,,,,{a:O,b:S,c:k}])=>{var b=G,H="nested",J=N(V),v=class extends E{constructor(){super(...arguments),this._lastDragDetail=null,this._rootGroupUid=`table-${y()}`,this._rootListRef=C(),this._selectedDragItemLayerUid=null,this.messages=T(),this.viewModel=J(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=this._getItem(e);if(!l||!("sortable"in l)||!l.sortable)return!1;let c=this._getItem(t),d=this._getLayerType(t),n=this._getItem(i),g=this._getLayerType(i),I=!!d&&!!g&&d===g,u={selected:l,from:c,to:n},f=t?.group,r=i?.group;return f&&r&&typeof a=="function"?a(u):I},this._onPanelOpen=()=>{this.requestUpdate()},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.icon="table",this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.map=this.viewModel.map,this.minDragEnabledItems=B,this.minFilterItems=x,this.selectedItems=new j,this.selectionMode="none",this.tables=this.viewModel.tables,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryTableIndicators=!1,this.arcgisClose=h(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=h(),this.arcgisFilterChange=h(),this.arcgisSelectedItemsChange=h(),this.arcgisTableItemsChanged=h(),this.arcgisTriggerAction=P(()=>this.viewModel,"trigger-action")}static{this.properties={_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,icon:1,label:1,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,map:0,minDragEnabledItems:9,minFilterItems:9,selectedItems:0,selectionMode:1,state:32,tableItems:32,tables:0,showCloseButton:5,showCollapseButton:5,showErrors:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryTableIndicators:5,messageOverrides:0}}static{this.styles=[k,S]}get _visibleItems(){return this.tableItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this.viewModel.totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.showFilter}get state(){return this.viewModel.state}get tableItems(){return this.viewModel.tableItems}async destroy(){await this.manager.destroy()}willUpdate(e){e.has("map")&&(this.viewModel.map=this.map),e.has("tables")&&(this.viewModel.tables=this.tables),e.has("listItemCreatedFunction")&&(this.viewModel.listItemCreatedFunction=this.listItemCreatedFunction)}loaded(){this.manager.onLifecycle(()=>[_(()=>this.view?.map,e=>{this.map||(this.viewModel.map=e)},{initial:!0}),q(()=>this.viewModel.tableItems,"change",()=>{R(this.selectedItems),this.arcgisTableItemsChanged.emit(),this.requestUpdate()},{initial:!0}),q(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),_(()=>[this.viewModel.state,this.viewModel.totalItems],()=>this.requestUpdate(),{initial:!0}),_(()=>[this.filterPredicate,this._rootListRef.value],()=>this._setFilterPredicate())])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_getItem(e){if(e?.tagName.toLowerCase()==="calcite-list-item")return e.value;let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.tableItems?.toArray()??[];for(;t.length;){let i=t.shift();if(i){if(i.uid===e)return i;t.push(...i.children?.toArray()??[])}}return null}_getLayerType(e){return e?.getAttribute("data-layer-type")??null}_setFilterPredicate(){let e=this._rootListRef.value;e&&(e.filterPredicate=this.filterPredicate?t=>{let i=this._getItem(t);return i?this.filterPredicate(i):!1}:void 0)}_handlePanelFlowItemBack(e){e.open=!1}_sortTablesToIds(e,t){e?.sort((i,s)=>{let a=i.uid!=null?t.indexOf(i.uid):-1,l=s.uid!=null?t.indexOf(s.uid):-1;return a>l?-1:a<l?1:0})}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:s}=e;s==null||!t||!i||t.insertBefore(i,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:l}=e,c=t?.newIndex===l&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||c)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value;let d=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortTablesToIds(this.viewModel.tables,d)}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let s=e.target.selectedItems.map(a=>this._getItem(a)).filter(Boolean);i.removeAll(),i.addMany(s)}_handleFlowItemClose(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}render(){let{state:e}=this,t={[m.hidden]:e==="loading",[m.disabled]:e==="disabled"};return o`<div class=${p(F(m.widget,m.panel,t))}>${this._renderItems()}</div>`}_renderNoItemsMessage(){return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:o`<div class=${p(b.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderPanelFlowItems(){return U(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t===this._openedPanelItems.length-1} @calciteFlowItemBack=${l=>{l.preventDefault(),a()}}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_filterEnabled:i,_rootGroupUid:s,showCloseButton:a,showCollapseButton:l,showHeading:c,_dragEnabled:d,selectionMode:n,filterText:g,filterPlaceholder:I,messages:u}=this,f=[o`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${c?this.label??u.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${()=>this._handleFlowItemClose()}>${t?.length?o`<calcite-list .canPull=${r=>this._canMove(r,"pull")} .canPut=${r=>this._canMove(r,"put")} data-layer-type=${s??M} .displayMode=${H} .dragEnabled=${d} .filterEnabled=${i} .filterPlaceholder=${I} .filterProps=${A} .filterText=${i?g:""} .group=${s} .label=${this.label??u.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${r=>this._handleCalciteListDragEnd(r.detail)} @calciteListFilter=${r=>{this.filterText=r.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${r=>this._onCalciteListOrderChange(r.detail)} ${$(this._rootListRef)}>${t.toArray().map(r=>this._renderItem(r))}${i&&!this.hideNoFilterResultsNotice?o`<div class=${p(b.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems()];return this.closed?null:w("root-flow",o`<calcite-flow>${f}</calcite-flow>`)}_renderItem(e){return w(e.uid,O({canMove:this._canMove,css:b,displayMode:H,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,item:e,itemType:"table",listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,showErrors:this.showErrors,showFilter:this.showFilter,showTemporaryTableIndicators:this.showTemporaryTableIndicators,handleAction:(t,i)=>this._onTriggerAction(t,i),handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,view:this.view}))}};L("arcgis-table-list-next",v);return v},"core/Collection","core/reactiveUtils","widgets/TableList/TableListViewModel",a,b,c,d,e,f,g,i,j)
|
package/dist/cdn/VAISR7CN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as z}from"./6OVA7KIZ.js";import i from"./2WLXD7OI.js";import{a as y}from"./PTHSNQL2.js";import{a as d}from"./JD74LG7K.js";import h from"./RTXRLIYL.js";import g from"./AM3UJO3A.js";import{g as x}from"./CNA7TDZN.js";import"./VJMC3CMB.js";import e from"./LIBO3YUY.js";import"./QUZTFUWM.js";import{d as a}from"./M3DP7XNI.js";import{N as w,O as r,P as c,Q as o,T as _,a as b,b as t,w as f}from"./QL3M4ZI7.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getBasemapThumbnailUrl:T},C,,,,k])=>{var S=b`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.root{box-shadow:none;background-color:var(--calcite-color-transparent)}.root calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.container,.image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.container{box-shadow:0 1px 2px #0000004d}.image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.image-loading{background-image:unset;justify-content:center;align-items:center;display:flex}.image-secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}.overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.overlay .root:hover{background-color:var(--calcite-color-background)}.title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.title-wrap{text-wrap:wrap}`,j=k(C),g=class extends w{constructor(){super(...arguments),this.messages=y(),this.viewModel=j(this),this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.icon="layer-basemap",this.nextBasemap=this.viewModel.nextBasemap,this.showTitle=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=x()("activeBasemap","nextBasemap","state"),this.arcgisReady=f()}static{this.properties={view:0,activeBasemap:32,autoDestroyDisabled:5,icon:1,label:1,messageOverrides:0,nextBasemap:1,referenceElement:1,showTitle:5,state:32}}static{this.styles=[S,z]}async destroy(){await this.manager.destroy()}async toggle(){return await this.viewModel.toggle()}_getThumbnailStyles(e){let s=T(e);return s?{backgroundImage:`url(${s})`}:{backgroundImage:""}}render(){let e=this.viewModel,s=e.state==="disabled"?null:e.activeBasemap,i=e.state==="disabled"?null:e.nextBasemap,$=e.state==="loading",p=e.state==="incompatible-next-basemap",n=i?.title??"",h=i&&i.loadStatus!=="loaded",m,u=this.showTitle&&n,v=p,B=u||v,M=this._getThumbnailStyles(s),E=this._getThumbnailStyles(i);B&&(m=t`<div class="overlay">${u?t`<span class=${r(a("title","title-wrap"))} title=${n??o}>${n}</span>`:null}${v?t`<calcite-scrim class="overlay-scrim" title=${this.messages.incompatibleSpatialReference??o}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>`:null}</div>`);let l=this.label??this.messages.componentLabel;return t`<div class=${r(a("root",d.widget))}><calcite-button appearance=transparent data-basemap-id=${(i?i.id:"")??o} .disabled=${p} kind=neutral .label=${l} @click=${()=>{this.toggle()}} title=${l??o}><span class="sr-only">${l}</span><div class=${r(a("container","image-secondary"))}><div class="image" style=${c(M)}></div></div><div class="container"><div class=${r(a("image",h?"image-loading":null))} style=${c(E)}>${h||$?t`<calcite-scrim><span aria-hidden=true class=${r(d.loaderAnimation)} role=presentation></span></calcite-scrim>`:null}</div>${m}</div></calcite-button></div>`}};_("arcgis-basemap-toggle",g);return g},"applications/Components/basemapUtils","widgets/BasemapToggle/BasemapToggleViewModel",e,g,h,i)
|
package/dist/cdn/XCCZTOXH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{j as m}from"./4IOVE754.js";import"./VC4FPVTG.js";import"./FWYUKFIR.js";import{v as p}from"./54DPKOI2.js";import"./FOHSM4R7.js";import"./YYY2B7Z3.js";import"./OCYNG6CZ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getLocale:a,getLocaleLanguage:n}])=>{p("AM5C241025748");var e="en-US",o=new Map([["ar",()=>import("./7IA62IHQ.js")],["bg-BG",()=>import("./SF5BNNTL.js")],["bs-BA",()=>import("./POCKSTPT.js")],["ca-ES",()=>import("./FFKWCM3U.js")],["cs-CZ",()=>import("./6IZPSVRK.js")],["da-DK",()=>import("./KUGHB56Z.js")],["de-DE",()=>import("./3PLX2VZZ.js")],["de-CH",()=>import("./A4LOY55I.js")],["el-GR",()=>import("./2WS6ADGC.js")],["en-US",()=>import("./KU2D7B6L.js")],["en-CA",()=>import("./ULVWM2Z5.js")],["es-ES",()=>import("./RDWKI3KP.js")],["et-EE",()=>import("./BSA3D7EV.js")],["fi-FI",()=>import("./Y3QCO64W.js")],["fr-FR",()=>import("./INJXVNS3.js")],["he-IL",()=>import("./M5YTVQ3E.js")],["hr-HR",()=>import("./I62OLA5J.js")],["hu-HU",()=>import("./UHL5U7GJ.js")],["id-ID",()=>import("./VXYZPWDK.js")],["it-IT",()=>import("./5D5K4ODL.js")],["ja-JP",()=>import("./6D7LJWC3.js")],["ko-KR",()=>import("./Z5KZ3J36.js")],["lt-LT",()=>import("./MUMLZBK2.js")],["lv-LV",()=>import("./UT4Y7W2I.js")],["no-NO",()=>import("./ZIHLJCFU.js")],["nb-NO",()=>import("./ZIHLJCFU.js")],["nl-NL",()=>import("./X7DC4UOR.js")],["pl-PL",()=>import("./SMOBVQX6.js")],["pt-BR",()=>import("./TDMJD6KE.js")],["pt-PT",()=>import("./SKVY2FTI.js")],["ro-RO",()=>import("./F3MJCQ74.js")],["ru-RU",()=>import("./YKVEZBMI.js")],["sk-SK",()=>import("./4WTMWS4L.js")],["sl-SL",()=>import("./4B2SV3DL.js")],["sr-RS",()=>import("./3J2BDZNE.js")],["sv-SE",()=>import("./GJRDLFOY.js")],["th-TH",()=>import("./3XZU4KZX.js")],["tr-TR",()=>import("./EAN2ER5F.js")],["uk-UA",()=>import("./JYWV4RJT.js")],["vi-VN",()=>import("./WLNDY4AF.js")],["zh-CN",()=>import("./CGM2YWJH.js")],["zh-HK",()=>import("./57URHW23.js")],["zh-TW",()=>import("./57URHW23.js")]]);function s(t){if(!t)return e;if(o.has(t))return t;let r=n();return r&&o.has(r)?r:e}async function l(t,r=a()){let i=m.new(t);return i.locale=(await o.get(s(r))()).default,i}return l},"intl")
|