@arcgis/map-components 5.2.0-next.87 → 5.2.0-next.88

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.
Files changed (131) hide show
  1. package/dist/cdn/{IOZ5U2X7.js → 2GQ6KVNI.js} +1 -1
  2. package/dist/cdn/3CFRD2EN.js +2 -0
  3. package/dist/cdn/{7IWMEBK6.js → 6BNYO33V.js} +1 -1
  4. package/dist/cdn/{3IY3D62Z.js → JXBEE5GW.js} +1 -1
  5. package/dist/cdn/JZC42PXS.js +2 -0
  6. package/dist/cdn/NB5DQKQY.js +2 -0
  7. package/dist/cdn/TRFWUKXA.js +2 -0
  8. package/dist/cdn/index.js +1 -1
  9. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +10 -0
  10. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +10 -0
  11. package/dist/components/arcgis-attachments/customElement.d.ts +10 -0
  12. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -0
  13. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -0
  14. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +604 -51
  15. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +2 -2
  16. package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +39 -0
  17. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +10 -0
  18. package/dist/components/arcgis-bookmarks/customElement.d.ts +20 -0
  19. package/dist/components/arcgis-building-explorer/customElement.d.ts +10 -0
  20. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +23 -0
  21. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +433 -59
  22. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +2 -2
  23. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +41 -6
  24. package/dist/components/arcgis-compass/customElement.d.ts +10 -0
  25. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +10 -0
  26. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +10 -0
  27. package/dist/components/arcgis-daylight/customElement.d.ts +10 -0
  28. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +10 -0
  29. package/dist/components/arcgis-directional-pad/customElement.d.ts +10 -0
  30. package/dist/components/arcgis-directions/customElement.d.ts +10 -0
  31. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +10 -0
  32. package/dist/components/arcgis-editor/customElement.d.ts +10 -0
  33. package/dist/components/arcgis-elevation-profile/customElement.d.ts +10 -0
  34. package/dist/components/arcgis-expand/customElement.d.ts +10 -0
  35. package/dist/components/arcgis-feature/customElement.d.ts +10 -0
  36. package/dist/components/arcgis-feature-form/customElement.d.ts +10 -0
  37. package/dist/components/arcgis-feature-next/customElement.d.ts +32 -1
  38. package/dist/components/arcgis-feature-table/customElement.d.ts +10 -0
  39. package/dist/components/arcgis-feature-templates/customElement.d.ts +10 -0
  40. package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +10 -0
  41. package/dist/components/arcgis-features/customElement.d.ts +20 -0
  42. package/dist/components/arcgis-features-next/customElement.d.ts +32 -1
  43. package/dist/components/arcgis-features-next/customElement.js +1 -1
  44. package/dist/components/arcgis-floor-filter/customElement.d.ts +10 -0
  45. package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -0
  46. package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +10 -0
  47. package/dist/components/arcgis-home/customElement.d.ts +10 -0
  48. package/dist/components/arcgis-layer-list/customElement.d.ts +20 -0
  49. package/dist/components/arcgis-layer-list-next/customElement.d.ts +285 -123
  50. package/dist/components/arcgis-layer-list-next/customElement.js +2 -3
  51. package/dist/components/arcgis-layer-list-next/types.d.ts +44 -6
  52. package/dist/components/arcgis-legend/customElement.d.ts +10 -0
  53. package/dist/components/arcgis-line-of-sight/customElement.d.ts +10 -0
  54. package/dist/components/arcgis-link-chart/customElement.d.ts +10 -0
  55. package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +10 -0
  56. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +10 -0
  57. package/dist/components/arcgis-locate/customElement.d.ts +10 -0
  58. package/dist/components/arcgis-map/customElement.d.ts +10 -0
  59. package/dist/components/arcgis-measurement/customElement.d.ts +10 -0
  60. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +25 -1
  61. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +10 -0
  62. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -0
  63. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +10 -0
  64. package/dist/components/arcgis-paste/customElement.d.ts +10 -0
  65. package/dist/components/arcgis-popup/customElement.d.ts +20 -0
  66. package/dist/components/arcgis-popup/customElement.js +1 -1
  67. package/dist/components/arcgis-presentation/customElement.d.ts +10 -0
  68. package/dist/components/arcgis-presentation/customElement.js +70 -71
  69. package/dist/components/arcgis-print/customElement.d.ts +10 -0
  70. package/dist/components/arcgis-scale-bar/customElement.d.ts +10 -0
  71. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +10 -0
  72. package/dist/components/arcgis-scene/customElement.d.ts +10 -0
  73. package/dist/components/arcgis-search/customElement.d.ts +10 -0
  74. package/dist/components/arcgis-search-result-renderer/customElement.d.ts +10 -0
  75. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
  76. package/dist/components/arcgis-shadow-cast/customElement.d.ts +10 -0
  77. package/dist/components/arcgis-sketch/customElement.d.ts +10 -0
  78. package/dist/components/arcgis-slice/customElement.d.ts +10 -0
  79. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +10 -0
  80. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +10 -0
  81. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +10 -0
  82. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +10 -0
  83. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +10 -0
  84. package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +10 -0
  85. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +10 -0
  86. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +10 -0
  87. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +10 -0
  88. package/dist/components/arcgis-snapping-controls/customElement.d.ts +10 -0
  89. package/dist/components/arcgis-swipe/customElement.d.ts +10 -0
  90. package/dist/components/arcgis-table-list/customElement.d.ts +102 -15
  91. package/dist/components/arcgis-table-list-next/customElement.d.ts +310 -44
  92. package/dist/components/arcgis-table-list-next/customElement.js +2 -3
  93. package/dist/components/arcgis-table-list-next/types.d.ts +37 -0
  94. package/dist/components/arcgis-time-bar/customElement.d.ts +10 -0
  95. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +10 -0
  96. package/dist/components/arcgis-time-slider/customElement.d.ts +10 -0
  97. package/dist/components/arcgis-track/customElement.d.ts +10 -0
  98. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +10 -0
  99. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +10 -0
  100. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +10 -0
  101. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +10 -0
  102. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +10 -0
  103. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +10 -0
  104. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +10 -0
  105. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.d.ts +10 -0
  106. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +10 -0
  107. package/dist/components/arcgis-utility-network-trace-location-next/customElement.d.ts +10 -0
  108. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +10 -0
  109. package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -0
  110. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +10 -0
  111. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +10 -0
  112. package/dist/components/arcgis-version-management/customElement.d.ts +10 -0
  113. package/dist/components/arcgis-video/customElement.d.ts +10 -0
  114. package/dist/components/arcgis-video-player/customElement.d.ts +10 -0
  115. package/dist/components/arcgis-volume-measurement/customElement.d.ts +22 -1
  116. package/dist/components/arcgis-weather/customElement.d.ts +10 -0
  117. package/dist/components/arcgis-zoom/customElement.d.ts +10 -0
  118. package/dist/docs/api.json +1 -1
  119. package/dist/docs/docs.json +1 -1
  120. package/dist/docs/vscode.html-custom-data.json +1 -1
  121. package/dist/docs/web-types.json +1 -1
  122. package/dist/loader.js +1 -1
  123. package/dist/types/lumina.d.ts +1 -1
  124. package/dist/types/preact.d.ts +1 -1
  125. package/dist/types/react.d.ts +1 -1
  126. package/dist/types/stencil.d.ts +1 -1
  127. package/package.json +5 -5
  128. package/dist/cdn/3UUQJCZL.js +0 -2
  129. package/dist/cdn/FZHWZNBO.js +0 -2
  130. package/dist/cdn/TCMRGJTC.js +0 -2
  131. package/dist/cdn/TUTTPXC5.js +0 -2
package/dist/loader.js CHANGED
@@ -9,7 +9,7 @@ const s = t(e, {
9
9
  "arcgis-basemap-gallery": [() => import("./components/arcgis-basemap-gallery/customElement.js"), "activeBasemap,autoDestroyDisabled,disabled,headingLevel,icon,label,messageOverrides:,messages:,referenceElement,source:,state:,view:;destroy"],
10
10
  "arcgis-basemap-gallery-item": [() => import("./components/arcgis-basemap-gallery-item/customElement.js"), "disabled,item:,itemIndex,messages:,viewModel:"],
11
11
  "arcgis-basemap-layer-list": [() => import("./components/arcgis-basemap-layer-list/customElement.js"), "autoDestroyDisabled,baseFilterPredicate:,baseFilterText,baseItems:,baseListItemCreatedFunction:,basemapTitle,catalogLayerList:,catalogOptions:,closed,collapsed,dragEnabled,editingTitle,filterPlaceholder,headingLevel,hideBaseLayers,hideHeading,hideReferenceLayers,hideStatusIndicators,icon,label,minFilterItems,referenceElement,referenceFilterPredicate:,referenceFilterText,referenceItems:,referenceListItemCreatedFunction:,selectedItems:,selectionMode,showCloseButton,showCollapseButton,showEditTitleButton,showErrors,showFilter,showTemporaryLayerIndicators,state:,view:,visibilityAppearance;destroy"],
12
- "arcgis-basemap-layer-list-next": [() => import("./components/arcgis-basemap-layer-list-next/customElement.js"), "autoDestroyDisabled,baseFilterPredicate:,baseFilterText,baseItemCreatedFunction:,baseItems:,basemapTitle,catalogLayerList:,catalogOptions:,closed,collapsed,dragEnabled,editingTitle,filterPlaceholder,headingLevel,hideBaseLayers,hideCatalogLayerList,hideHeading,hideNoFilterResultsNotice,hideNoItemsNotice,hideReferenceLayers,hideStatusIndicators,icon,knowledgeGraphOptions:,label,layerTablesEnabled:,listItemCanGiveFunction:,listItemCanReceiveFunction:,listModeDisabled,mapImageOptions:,messageOverrides:,messages:,minFilterItems,openedLayers:,position,referenceElement,referenceFilterPredicate:,referenceFilterText,referenceItemCreatedFunction:,referenceItems:,selectedItems:,selectionMode,showCloseButton,showCollapseButton,showEditTitleButton,showErrors,showFilter,showTemporaryLayerIndicators,state:,tableList:,tileOptions:,view:,visibilityAppearance;destroy"],
12
+ "arcgis-basemap-layer-list-next": [() => import("./components/arcgis-basemap-layer-list-next/customElement.js"), "autoDestroyDisabled,baseFilterPredicate:,baseFilterText,baseItemCreatedFunction:,baseItems:,basemapTitle,catalogLayerList:,catalogOptions:,closed,collapsed,dragEnabled,editingTitle,filterPlaceholder,headingLevel,hideBaseLayers,hideCatalogLayerList,hideHeading,hideNoFilterResultsNotice,hideNoItemsNotice,hideReferenceLayers,hideStatusIndicators,icon,knowledgeGraphOptions:,label,layerTablesEnabled:,listItemCanGiveFunction:,listItemCanReceiveFunction:,listModeDisabled,mapImageOptions:,messageOverrides:,messages:,minFilterItems,openedLayers:,referenceElement,referenceFilterPredicate:,referenceFilterText,referenceItemCreatedFunction:,referenceItems:,selectedItems:,selectionMode,showCloseButton,showCollapseButton,showEditTitleButton,showErrors,showFilter,showTemporaryLayerIndicators,state:,tableList:,tileOptions:,view:,visibilityAppearance;destroy"],
13
13
  "arcgis-basemap-toggle": [() => import("./components/arcgis-basemap-toggle/customElement.js"), "activeBasemap:,autoDestroyDisabled,icon,label,messageOverrides:,messages:,nextBasemap,referenceElement,showTitle,state:,view:;destroy,toggle"],
14
14
  "arcgis-bookmarks": [() => import("./components/arcgis-bookmarks/customElement.js"), "autoDestroyDisabled,bookmarks,closed,defaultCreateOptions:,defaultEditOptions:,disabled,dragEnabled,filterPlaceholder,filterText,goToOverride:,headingLevel,hideThumbnail,hideTime,icon,label,messageOverrides:,messages:,referenceElement,showAddBookmarkButton,showCloseButton,showCollapseButton,showEditBookmarkButton,showFilter,showHeading,state:,timeDisabled,view:;destroy,goTo"],
15
15
  "arcgis-building-explorer": [() => import("./components/arcgis-building-explorer/customElement.js"), "autoDestroyDisabled,headingLevel,hideDisciplines,hideLevels,hidePhases,icon,label,layers:,level,levelDisabled:,levels:,messages:,phase,phaseDisabled:,phases:,referenceElement,view:;destroy"],
@@ -183,7 +183,7 @@ interface LuminaArcgisBasemapLayerList extends Partial<Pick<ArcgisBasemapLayerLi
183
183
  onarcgisTriggerAction?: EventHandler<ArcgisBasemapLayerList["arcgisTriggerAction"]>;
184
184
  }
185
185
 
186
- interface LuminaArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, h.JSX.HTMLAttributes<ArcgisBasemapLayerListNext> {
186
+ interface LuminaArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, h.JSX.HTMLAttributes<ArcgisBasemapLayerListNext> {
187
187
  onarcgisBaseFilterChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]>;
188
188
  onarcgisClose?: EventHandler<ArcgisBasemapLayerListNext["arcgisClose"]>;
189
189
  onarcgisOpenedLayersChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisOpenedLayersChange"]>;
@@ -184,7 +184,7 @@ interface PreactArcgisBasemapLayerList extends Partial<Pick<ArcgisBasemapLayerLi
184
184
  onarcgisTriggerAction?: EventHandler<ArcgisBasemapLayerList["arcgisTriggerAction"]>;
185
185
  }
186
186
 
187
- interface PreactArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, HTMLAttributes<ArcgisBasemapLayerListNext> {
187
+ interface PreactArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, HTMLAttributes<ArcgisBasemapLayerListNext> {
188
188
  onarcgisBaseFilterChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]>;
189
189
  onarcgisClose?: EventHandler<ArcgisBasemapLayerListNext["arcgisClose"]>;
190
190
  onarcgisOpenedLayersChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisOpenedLayersChange"]>;
@@ -184,7 +184,7 @@ interface ReactArcgisBasemapLayerList extends Partial<Pick<ArcgisBasemapLayerLis
184
184
  onarcgisTriggerAction?: EventHandler<ArcgisBasemapLayerList["arcgisTriggerAction"]>;
185
185
  }
186
186
 
187
- interface ReactArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, HTMLProps<ArcgisBasemapLayerListNext> {
187
+ interface ReactArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, HTMLProps<ArcgisBasemapLayerListNext> {
188
188
  onarcgisBaseFilterChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]>;
189
189
  onarcgisClose?: EventHandler<ArcgisBasemapLayerListNext["arcgisClose"]>;
190
190
  onarcgisOpenedLayersChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisOpenedLayersChange"]>;
@@ -184,7 +184,7 @@ interface StencilArcgisBasemapLayerList extends Partial<Pick<ArcgisBasemapLayerL
184
184
  onArcgisTriggerAction?: EventHandler<ArcgisBasemapLayerList["arcgisTriggerAction"]>;
185
185
  }
186
186
 
187
- interface StencilArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisBasemapLayerListNext> {
187
+ interface StencilArcgisBasemapLayerListNext extends Partial<Pick<ArcgisBasemapLayerListNext, "autoDestroyDisabled" | "baseFilterPredicate" | "baseFilterText" | "baseItemCreatedFunction" | "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" | "referenceElement" | "referenceFilterPredicate" | "referenceFilterText" | "referenceItemCreatedFunction" | "selectedItems" | "selectionMode" | "showCloseButton" | "showCollapseButton" | "showEditTitleButton" | "showErrors" | "showFilter" | "showTemporaryLayerIndicators" | "tileOptions" | "view" | "visibilityAppearance">>, StencilJsx.HTMLAttributes<ArcgisBasemapLayerListNext> {
188
188
  onArcgisBaseFilterChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisBaseFilterChange"]>;
189
189
  onArcgisClose?: EventHandler<ArcgisBasemapLayerListNext["arcgisClose"]>;
190
190
  onArcgisOpenedLayersChange?: EventHandler<ArcgisBasemapLayerListNext["arcgisOpenedLayersChange"]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/map-components",
3
- "version": "5.2.0-next.87",
3
+ "version": "5.2.0-next.88",
4
4
  "description": "ArcGIS Map Components",
5
5
  "keywords": [
6
6
  "2D",
@@ -43,15 +43,15 @@
43
43
  "license": "SEE LICENSE IN LICENSE.md",
44
44
  "dependencies": {
45
45
  "@amcharts/amcharts5": "~5.20.2",
46
- "@arcgis/common-components": "5.2.0-next.87",
47
- "@arcgis/lumina": "5.2.0-next.87",
48
- "@arcgis/toolkit": "5.2.0-next.87",
46
+ "@arcgis/common-components": "5.2.0-next.88",
47
+ "@arcgis/lumina": "5.2.0-next.88",
48
+ "@arcgis/toolkit": "5.2.0-next.88",
49
49
  "lit": "^3.3.0",
50
50
  "lodash-es": "^4.18.1",
51
51
  "tslib": "^2.8.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@arcgis/core": "5.2.0-next.87",
54
+ "@arcgis/core": "5.2.0-next.88",
55
55
  "@esri/calcite-components": "^5.2.0-next.52"
56
56
  },
57
57
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./XEK22IDA.js";import o from"./XWALVOZP.js";import n from"./C4LCKYWW.js";import"./AG6XG3QV.js";import{a as g}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,n as F}from"./LDDAJOTV.js";import{a as G}from"./RHXVVGD3.js";import{a as b}from"./LTOXLO3L.js";import l from"./7HL2TQ7E.js";import k from"./MZWO5JYA.js";import i from"./FHWOIM57.js";import"./VJVKFKSG.js";import h from"./3T7L7UT5.js";import{a as B}from"./2BVXNQ3U.js";import{a as w}from"./JD74LG7K.js";import{a as S}from"./VNUQ4CCT.js";import e from"./2FM2FJAY.js";import c from"./YHNRTH56.js";import{g as N}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import{d as x}from"./4W3T75SY.js";import{A as D,L,M as f,N as P,O as v,Q as E,R as M,T as R,b as d,w as p}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([ie,u,{on:T,watch:se},,,{a:k},U,,,,,{a:V,b:W,c:X,d:Y}])=>{var Z="nested",ae=U(ie),A=class extends P{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${D()}`,this._openedLayersController=null,this.messages=B(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=F(l),y=this._getContainerItem(o),_=F(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,ee=n?.layer?.type??"",te=y?.layer?.type??"",O=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!O.has(ee)&&!O.has(te)&&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(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=ae(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 u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,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 u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=q,this.minFilterItems=j,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,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=p(),this.arcgisFilterChange=p(),this.arcgisSelectedItemsChange=p(),this.arcgisOpenedLayersChange=p(),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,listModeDisabled:5,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=[Y,X]}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(()=>[T(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),T(()=>this.viewModel.operationalItems,"change",()=>z(this.selectedItems),{initial:!0}),T(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),se(()=>[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?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??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=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),V(this,l.uid,c=>this._resolveListContainer(c.parentElement)===s))}_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=m(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=>m(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(g.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:c,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=${Z} .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=${c} @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(g.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,W({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:Z,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}))}};R("arcgis-layer-list-next",A);return A},"layers/list/LayerItemCollection","core/Collection","core/reactiveUtils",a,c,e,h,i,k,l,n,o)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./XWALVOZP.js";import n from"./C4LCKYWW.js";import"./AG6XG3QV.js";import{a as Q}from"./JCRPP54Z.js";import"./KKBLRTCV.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"./RHXVVGD3.js";import{a as m}from"./LTOXLO3L.js";import l from"./7HL2TQ7E.js";import j from"./MZWO5JYA.js";import i from"./FHWOIM57.js";import"./VJVKFKSG.js";import h from"./3T7L7UT5.js";import{a as O}from"./2BVXNQ3U.js";import{a as b}from"./JD74LG7K.js";import{a as k}from"./VNUQ4CCT.js";import f from"./2FM2FJAY.js";import e from"./YHNRTH56.js";import{g as B}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import{d as P}from"./4W3T75SY.js";import{A as M,L as d,M as p,N as R,O as g,Q as _,R as w,T as A,a as C,b as r,w as y}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([se,L,{on:ae,watch:le},,,{a:x},D,,,,,{a:j,b:z,c:J,d:K}])=>{var u={...Q,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)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=D(se),F=class extends R{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-${M()}`,this._openedLayersController=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=O(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let l=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:l,to:h},Z=t.group,ee=i.group,te=l?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.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(u.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 L,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,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 L(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new L,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new L,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=y(),this.arcgisBaseFilterChange=y(),this.arcgisReferenceFilterChange=y(),this.arcgisOpenedLayersChange=y(),this.arcgisTriggerAction=x(()=>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,baseItemCreatedFunction: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,listModeDisabled:5,mapImageOptions:0,minFilterItems:9,openedLayers:32,position:1,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction: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=[K,re,J]}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(()=>[ae(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),le(()=>[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:a}=s;this._openedLayersController=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this._createFlowList(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);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:s,minFilterItems:a,selectionMode:o,visibilityAppearance:l,layerTablesEnabled:n}=this;return w(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??l} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??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-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 t=this._getTableListParams(e);return w(r`<arcgis-table-list-next .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-next>`)}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,l=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:l,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}_handleCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,l=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||l)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this._moveLayerFromChildList({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_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={[b.hidden]:this.state==="loading",[b.disabled]:this.state==="disabled"};return r`<div class=${g(P(b.widget,b.panel,e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`}_renderItemTooltip(e){return e?r`<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 r`<div slot=message>${e}</div>`}_renderNoLayersInfo(e,t){return this.hideNoItemsNotice?null:r`<div class=${g(u.itemMessage)}>${m(t,r`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`}_renderEditingInput(){return r`<div class=${g(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??_} type=text .value=${this.viewModel.basemapTitle??void 0} ${p(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}_renderEditingForm(){return this.editingTitle?r`<form class=${g(u.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()}} ${p(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?r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??_}></calcite-action>`:null}_renderItems(){let e=[m("root-flow-item",r`<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}} ${p(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",r`<calcite-flow>${e}</calcite-flow>`)}_renderPanelFlowItems(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return this._focusPanelFlowItem=this._focusFlowItem(this._panelFlowItemRef.value,this._focusPanelFlowItem),r`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${p(this._panelFlowItemRef)}><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>`})}_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,r`<calcite-flow-item data-layer-uid=${e.uid??_} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${p(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderList(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,r`<calcite-block class=${g(u.section)} collapsible expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this._renderNoLayersInfo(o,t)}${m(`list-${t}`,r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${l=>this._canMove(l,"pull")} .canPut=${l=>this._canMove(l,"put")} data-basemap-layer-type=${t??_} data-layer-type=${this._rootGroupUid??_} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${l=>this._handleCalciteListDragEnd(l.detail)} @calciteListFilter=${l=>{let n=l.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${l=>this._onCalciteListOrderChange(l.detail)} ${p(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(l=>this._renderItem(l,i))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${g(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(o)}</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,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,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 X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layers/list/BasemapItemCollection","core/Collection","core/reactiveUtils",a,e,f,h,i,j,l,n,o)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./5L5UYV3H.js";import{c as S}from"./TN5C3MSL.js";import d from"./3T7L7UT5.js";import{a as O}from"./2BVXNQ3U.js";import c from"./2FM2FJAY.js";import b from"./YHNRTH56.js";import{a as R,e as B}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import"./4W3T75SY.js";import{N as F,Q as m,T as E,a as C,b as u,w as v,y as x}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:c,subclass:H},j,_,{ignoreAbortErrors:V},{watch:g,on:M,whenOnce:I},W,U,K,Q,q,J,X,Y,{fetchPopupFeaturesFromGraphics:z},,,,G])=>{var Z=C`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--internal-attribution-height));width:fit-content;height:100%}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{height:100%;align-content:center;border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-list-action{padding-inline:var(--calcite-space-sm)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{padding:var(--esri-widget-padding);background-color:var(--calcite-color-surface-2)}`,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,d=(i,e,t,s)=>{for(var n=s>1?void 0:s?te(e,t):e,r=i.length-1,a;r>=0;r--)(a=i[r])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ee(e,t,n),n},l=class extends j{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),r=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(r,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(g(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(g(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new _}get slides(){return this.view?.map?.presentation?.slides??new _}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this.applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(i){if(!this.view?.analyses?.length)return;let e=this.view.analyses.find(s=>s.type==="slice"&&s.origin?.type==="web-scene");if(!e)return;let t=await this.view.whenAnalysisView(e);t&&(t.interactive=i)}getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async applySlide(i,e,t){if(this.view){let s=t?{signal:t?.signal}:{};await V(i.applyTo(this.view,{...s,animate:!e}))}}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this.getSlideBySlideId(i):void 0;e&&await this.applySlide(e)}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(M(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new _(i.added)),this._unsubscribeToSlideEvents(new _(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideCancel?.(i)}};d([c()],l.prototype,"_slideId",2);d([c()],l.prototype,"view",2);d([c()],l.prototype,"slideId",1);d([c()],l.prototype,"transitionActive",2);d([c()],l.prototype,"showLegend",2);d([c()],l.prototype,"keyboardNavigationEnabled",2);d([c()],l.prototype,"visibleSlides",1);d([c()],l.prototype,"slides",1);d([c()],l.prototype,"lastSlideSelected",1);d([c()],l.prototype,"firstSlideSelected",1);d([c()],l.prototype,"slideSelected",1);d([c()],l.prototype,"hasOnlyOneSlide",1);d([c()],l.prototype,"onApplySlideStart",2);d([c()],l.prototype,"onApplySlideComplete",2);d([c()],l.prototype,"onApplySlideCancel",2);d([c()],l.prototype,"getSlideIndexBySlideId",1);l=d([H("components.presentation.PresentationViewModel")],l);var A=class extends x{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;I(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(e){(!this.component.slidePopupDisabled||e)&&this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:r,sublayer:a}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!r)return{success:!1,features:s};let p=a??r;if(!p||!this._layerTypeSupportsCapturePopup(p))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,r,a,p),s&&this._featureHasBeenFilledWithAttributes(s)){let o=s[0];return this._setFallbackPopupTemplate(o,a,r),this._setFallbackGeometry(o,t?.location),{success:!0,features:s,popupInfo:t}}return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,r=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:r}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,r){let a=t.features?.getItemAt(t.selectedFeatureIndex);if(a?.id==null)return await Promise.resolve([]);let p=await e.whenLayerView(s);await I(()=>!p.updating);let o=this._tryGetBuildingComponentSublayerView(s,n,p)??p;await I(()=>!o.updating);let h=this._createFeatureGraphic(s,n,r,a.id),b=await z(o,[h]);return this._featureHasBeenFilledWithAttributes(b)||(await I(()=>!e.updating),b=await z(o,[h])),b}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(r=>r.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let r=this._getGlobalIdFieldNameFromLayer(s),a=n.type==="global-id"&&r?r:s.objectIdField,p=this._getGraphicOrigin(e,t),o=new W({attributes:{},layer:e,origin:p});return o.attributes[a]=n.value,o}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new Y(e);case"geojson":return new Q(e);case"scene":return new q(e);case"wfs":return new J(e);case"building-scene":return t?new X(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof U}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ie=i=>new A(i),y=Object.freeze({width:0,height:0}),w=new WeakMap,f=()=>({topCenter:{...y},topLeft:{...y},topRight:{...y},bottomCenter:{...y},bottomLeft:{...y},bottomRight:{...y}}),D=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),N=i=>{let e=w.get(i);return e||(e={observedGroups:new Map,observedSizes:f(),subscribers:new Set},w.set(i,e)),e},se=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,r=i?.bottomLeft.value,a=i?.bottomRight.value;return e&&t&&s&&n&&r&&a?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:r,bottomRight:a}:null},ne=(i,e)=>S.every(t=>i.get(t)===e[t]),re=i=>{let e=D(i.observedSizes);i.subscribers.forEach(t=>t(e))},ae=(i,e)=>{let t=w.get(i);if(!t)return;let s=!1;e.forEach(n=>{let r=S.find(b=>t.observedGroups.get(b)===n.target);if(!r)return;let{width:a,height:p}=n.contentRect,o={width:a,height:p},h=t.observedSizes[r];h.width===o.width&&h.height===o.height||(t.observedSizes[r]=o,s=!0)}),s&&re(t)},L=(i,e)=>{let t=N(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{ae(i,n)}));let s=se(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ne(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),S.forEach(n=>{let r=s[n];t.observedGroups.set(n,r),t.resizeObserver?.observe(r)}))},le=(i,e)=>{let t=N(i);return t.subscribers.add(e),e(D(t.observedSizes)),()=>{let s=w.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),w.delete(i)))}},P=class extends x{#e;#t;#i;constructor(e){super(e),this.exports=f()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#t=void 0,this.#e=void 0,this.exports=f()}hostLifecycle(){return[g(()=>this.#s(),e=>{if(this.#t!==e){if(this.#i?.(),this.#i=void 0,this.#t=e,this.#e=e?.slotGroupRefs,!e){this.exports=f();return}this.#i=le(e,t=>{this.#n(t)||(this.exports=t)}),L(e,this.#e)}},{sync:!0,initial:!0}),g(()=>this.#s()?.slotGroupRefs,e=>{this.#e=e,this.#t&&e&&L(this.#t,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#t||!this.#e||L(this.#t,this.#e)}#n(e){let t=this.exports??f();return S.every(s=>{let n=t[s],r=e[s];return n.width===r.width&&n.height===r.height})}},oe=R(P),de=G(l),$=class extends F{constructor(){super(...arguments),this._messages=O(),this.#e=de(this),this.#t=B(),this.#s=e=>{this.#e.captureArrowKeysForNavigation(e,this.#t)},this.#n=ie(this),this.#a=null,this.#o=e=>{this.#n.closePopup(),this.arcgisSlideApplyStart.emit({slide:e})},this.#d=e=>{this.#n.openPopup(e),this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyComplete.emit({slide:e})},this.#c=e=>{this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyCancel.emit({slide:e})},this.#p=e=>{let t=e.detail?.selectedSlide;if(!t)return;this.#r?.abort(),this.#r=new AbortController;let s=Date.now(),n=this.#a!==null&&s-this.#a<300;if(this.#a=s,this.#e.applySlide(t,n,this.#r),n){this._showSlideList=!1;return}setTimeout(()=>{this.#r?.signal.aborted||(this._showSlideList=!1,this.#e.applySlide(t,!1,this.#r))},300)},this.#l=()=>{this._showSlideList=!1},this._showSlideList=!1,this.autoDestroyDisabled=!1,this.view=this.#e.view,this.visualScale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=!1,this.sliceAnalysisInteractive=!1,this.navigationHidden=!1,this.arcgisPopupFeatureNotFound=v(),this.arcgisPopupFeaturesRetrieved=v(),this.arcgisReady=v(),this.arcgisSlideApplyCancel=v(),this.arcgisSlideApplyComplete=v(),this.arcgisSlideApplyStart=v()}static{this.properties={_slotSizesController:16,_showSlideList:16,slideId:1,autoDestroyDisabled:5,view:0,visualScale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5,navigationHidden:5}}static{this.styles=Z}#e;#t;#i;#s;#n;#r;#a;#o;#d;#c;#p;#l;#u;#h;get slideId(){return this.#e.slideId}set slideId(e){this.#e.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.#e.onApplySlideStart=this.#o,this.#e.onApplySlideComplete=this.#d,this.#e.onApplySlideCancel=this.#c,this.#y();let e=this;this.manager.onLifecycle(()=>[g(()=>this.slidePopupDisabled,t=>{if(this.slideId&&!t){let s=this.#e.getSlideBySlideId(this.slideId);s&&this.#n?.openPopup(s)}else t&&this.#n?.closePopup(!0)}),g(()=>this.sliceAnalysisInteractive,t=>{this.#e.setSliceAnalysisInteractive(t)},{initial:!0}),g(()=>e.referenceElement,t=>{this.#g(t)&&(this._slotSizesController=oe(this),this.#h=this.#v())},{once:!0,initial:!0}),{remove:()=>{document.removeEventListener("keydown",this.#s),this.#u?.removeEventListener("arcgisSlideListClose",this.#l),this.#i?.remove(),this.#h?.remove(),this.#r?.abort()}}])}#g(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}#v(){return g(()=>this._slotSizesController,e=>this.#m(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}#m(e,t,s,n){let r=this.#t==="ltr"?e?.width??0:t?.width??0,a=this.#t==="ltr"?t?.width??0:e?.width??0,p=Math.max(e?.height??0,t?.height??0),o=Math.max(s?.height??0,n?.height??0);r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-space-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-space-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=r<=Math.max(p,o)&&a<=Math.max(p,o);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${p}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${o}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${r}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${a}px`:"0")}#y(){this.#i=g(()=>this.keyboardNavigationEnabled,e=>{document.removeEventListener("keydown",this.#s),e&&document.addEventListener("keydown",this.#s)},{initial:!0})}render(){if(this.#e?.visibleSlides?.length===0)return u`<div></div>`;let e=this.#e.visibleSlides.find(r=>r.id===this.slideId),t=this.#b(),s=this.#f(e),n=this.#w();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}#b(){if(this.navigationHidden)return null;let e=this.#e.lastSlideSelected&&!this.#e.hasOnlyOneSlide,t=this.#t==="rtl",s=t?"chevron-right":"chevron-left",n=t?"chevron-left":"chevron-right",r=this.#_();return u`<div class="navigation-container"><div class="navigation-slide-list-container">${r}</div><div class="navigation"><div class="slide-list-action-container"><calcite-action id=${k} class="slide-list-action" .text=${this._messages.slideList??""} selection-appearance=highlight icon=list .scale=${this.visualScale==="l"?"m":"s"} .label=${this._messages.slideList} title=${this._messages.slideList??m} .active=${this._showSlideList} @click=${()=>this._showSlideList=!this._showSlideList}></calcite-action></div><calcite-button appearance=transparent icon-start=${s??m} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected||!this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??m} @click=${()=>this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#S()}</div><calcite-button appearance=transparent icon-start=${(e?"reset":n)??m} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??m} @click=${()=>this.#e.navigateInPresentation(1)}></calcite-button></div></div>`}#S(){let e=this.#e.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.#e.visibleSlides.length.toString());return this.#e.slideSelected?u`<p role=banner aria-label=${t??m} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div>/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides?.length} ${this._messages?.slides}</p>`}#f(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.#e.transitionActive}></arcgis-presentation-captions>`}#w(){return this.slideLegendDisabled||!this.#e.showLegend?null:u`<calcite-panel data-testid=presentation-legend class="legend-container" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.#e.showLegend=!1}><arcgis-legend class="legend" .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`}#_(){return this._showSlideList?u`<arcgis-presentation-slide-list .slides=${this.#e.visibleSlides} .slideId=${this.#e.slideId} .label=${this._messages.slideList} .visualScale=${this.visualScale} @arcgisSlideListItemSelected=${this.#p} @arcgisSlideListOutsideClick=${this.#l}></arcgis-presentation-slide-list>`:null}};E("arcgis-presentation",$);return $},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,b,c,d)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./XEK22IDA.js";import j from"./XWALVOZP.js";import i from"./C4LCKYWW.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"./RHXVVGD3.js";import{a as w}from"./LTOXLO3L.js";import g from"./7HL2TQ7E.js";import f from"./MZWO5JYA.js";import e from"./FHWOIM57.js";import"./VJVKFKSG.js";import d from"./3T7L7UT5.js";import{a as T}from"./2BVXNQ3U.js";import{a as m}from"./JD74LG7K.js";import c from"./2FM2FJAY.js";import b from"./YHNRTH56.js";import{g as D}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import{d as F}from"./4W3T75SY.js";import{A as y,L as C,M as $,N as M,O as p,Q as E,T as L,b as o,w as h}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([j,{watch:b,on:q},V,,,{a:P},N,,,,,{b:O,c:S,d:k}])=>{var _=G,H="nested",J=N(V),v=class extends M{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.listModeDisabled=this.viewModel.listModeDisabled,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,listModeDisabled:5,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(()=>[b(()=>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()),b(()=>[this.viewModel.state,this.viewModel.totalItems],()=>this.requestUpdate(),{initial:!0}),b(()=>[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(_.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??E} .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(_.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:_,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","layers/list/TableItemCollection",a,b,c,d,e,f,g,i,j)