@arcgis/core 4.33.0-next.20250217 → 4.33.0-next.20250219

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 (117) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{f5ce6af342c02a4b0d15.js → 030384851fa745908a6e.js} +13 -12
  3. package/assets/esri/core/workers/chunks/0e6762d69b7449f8a997.js +1 -0
  4. package/assets/esri/core/workers/chunks/{5ad51a68d20b0d0d404f.js → 1661ac4e1b6c6af6ee0f.js} +1 -1
  5. package/assets/esri/core/workers/chunks/186db99d05ca1183d4e9.js +1 -0
  6. package/assets/esri/core/workers/chunks/{a42ae5d5e5f66d120b4d.js → 21c7265f1f2a718de7c6.js} +1 -1
  7. package/assets/esri/core/workers/chunks/2a88909a03600349dff9.js +1 -0
  8. package/assets/esri/core/workers/chunks/5352b374454bc4f73d55.js +1 -0
  9. package/assets/esri/core/workers/chunks/5984ab09ea8010f8a874.js +1 -0
  10. package/assets/esri/core/workers/chunks/{ec62fffe07c4382e8796.js → 6c64ccf5f64b5025b239.js} +1 -1
  11. package/assets/esri/core/workers/chunks/717d7e9912d948e44d8d.js +1 -0
  12. package/assets/esri/core/workers/chunks/b9292cd91005137a2094.js +1 -0
  13. package/assets/esri/core/workers/chunks/b9d2f60b2d587a2b6cd7.js +1 -0
  14. package/assets/esri/core/workers/chunks/cf285e45c18cd4399dde.js +1 -0
  15. package/assets/esri/core/workers/chunks/{42f21349f488a14198e4.js → d4a08800c75051a5131d.js} +1 -1
  16. package/assets/esri/core/workers/chunks/dc68246df91af766593a.js +1 -0
  17. package/assets/esri/core/workers/chunks/e862f1b9ecafc6c92b86.js +314 -0
  18. package/assets/esri/core/workers/chunks/e96f4c76c8bc78a7f80f.js +1 -0
  19. package/assets/esri/core/workers/chunks/f06231c14c0c0e5525bd.js +1 -0
  20. package/assets/esri/core/workers/chunks/f24aef061e60d2c2f597.js +1 -0
  21. package/assets/esri/core/workers/chunks/f664cc15238c8e9856a0.js +1 -0
  22. package/assets/esri/themes/base/widgets/_Print.scss +1 -0
  23. package/assets/esri/themes/base/widgets/_ResponsiveToolbar.scss +14 -0
  24. package/assets/esri/themes/dark/main.css +1 -1
  25. package/assets/esri/themes/light/main.css +1 -1
  26. package/assets/esri/themes/light/view.css +1 -1
  27. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  28. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  29. package/chunks/RealisticTree.glsl.js +18 -17
  30. package/copyright.txt +71 -0
  31. package/geometry/support/meshUtils/elevation.js +1 -1
  32. package/interfaces.d.ts +178 -60
  33. package/layers/BuildingSceneLayer.js +1 -1
  34. package/layers/FeatureLayer.js +1 -1
  35. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  36. package/layers/IntegratedMeshLayer.js +1 -1
  37. package/layers/OrientedImageryLayer.js +1 -1
  38. package/layers/PointCloudLayer.js +1 -1
  39. package/layers/SceneLayer.js +1 -1
  40. package/layers/VoxelWasmPerSceneView.js +1 -1
  41. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  42. package/layers/graphics/OptimizedGeometry.js +1 -1
  43. package/layers/graphics/featureConversionUtils.js +1 -1
  44. package/layers/support/featureLayerUtils.js +1 -1
  45. package/package.json +1 -1
  46. package/portal/Portal.js +1 -1
  47. package/rest/support/AttributeBinsGrouping.js +1 -1
  48. package/rest/support/AttributeBinsQuery.js +1 -1
  49. package/support/revision.js +1 -1
  50. package/symbols/cim/cimAnalyzer.js +1 -1
  51. package/views/2d/FrameTask.js +1 -1
  52. package/views/2d/layers/features/sources/FeatureCache.js +1 -1
  53. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  54. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  55. package/views/2d/viewpointUtils.js +1 -1
  56. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  57. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  58. package/views/3d/layers/I3SMeshView3D.js +1 -1
  59. package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
  60. package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
  61. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  62. package/views/3d/layers/support/FeatureTile.js +1 -1
  63. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  64. package/views/3d/terrain/OverlayRenderer.js +1 -1
  65. package/views/3d/terrain/TerrainRenderer.js +1 -1
  66. package/views/3d/terrain/TileRenderer.js +1 -1
  67. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  68. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  69. package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
  70. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  71. package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
  72. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  73. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  74. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  75. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  76. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  77. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  78. package/views/3d/webgl-engine/materials/renderers/BufferRange.js +1 -1
  79. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  80. package/views/VideoView.js +1 -1
  81. package/views/View2D.js +1 -1
  82. package/views/Viewport2DMixin.js +5 -0
  83. package/views/webgl/Program.js +1 -1
  84. package/views/webgl/Texture.js +1 -1
  85. package/widgets/BasemapLayerList.js +1 -1
  86. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  87. package/widgets/BatchAttributeForm/templates/support/contingentValuesUtils.js +5 -0
  88. package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
  89. package/widgets/BatchAttributeForm.js +1 -1
  90. package/widgets/CatalogLayerList.js +1 -1
  91. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  92. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  93. package/widgets/LayerList.js +1 -1
  94. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  95. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  96. package/widgets/OrientedImageryViewer/digitizationUtils.js +1 -1
  97. package/widgets/OrientedImageryViewer/galleryUtils.js +1 -1
  98. package/widgets/OrientedImageryViewer.js +1 -1
  99. package/widgets/Print.js +1 -1
  100. package/widgets/ShadowCast.js +1 -1
  101. package/widgets/Sketch/SketchViewModel.js +1 -1
  102. package/widgets/VideoPlayer.js +1 -1
  103. package/assets/esri/core/workers/chunks/1cbea0c0b20a2963a86d.js +0 -1
  104. package/assets/esri/core/workers/chunks/238bcf6514a1f214cc8a.js +0 -1
  105. package/assets/esri/core/workers/chunks/26b5397f63dc602612f2.js +0 -1
  106. package/assets/esri/core/workers/chunks/33c6fd524711efd8ef13.js +0 -1
  107. package/assets/esri/core/workers/chunks/6039da57a2adedd3b83f.js +0 -1
  108. package/assets/esri/core/workers/chunks/842db06ce62758fab1e7.js +0 -1
  109. package/assets/esri/core/workers/chunks/916f0ca8e3aaed5a9508.js +0 -1
  110. package/assets/esri/core/workers/chunks/ace156db063b51797b1a.js +0 -1
  111. package/assets/esri/core/workers/chunks/aebbaa7ab7a6b3b1579c.js +0 -314
  112. package/assets/esri/core/workers/chunks/cb3148cf11a420d6e9ab.js +0 -1
  113. package/assets/esri/core/workers/chunks/d342c56558f164e9e786.js +0 -1
  114. package/assets/esri/core/workers/chunks/d3f7ff03ab5b40062d89.js +0 -1
  115. package/assets/esri/core/workers/chunks/ed89a108b032b982b12f.js +0 -1
  116. package/assets/esri/core/workers/chunks/ef6279f5c63ab1e88c71.js +0 -1
  117. package/assets/esri/core/workers/chunks/f088e7db4e7ac85aaff1.js +0 -1
package/interfaces.d.ts CHANGED
@@ -1520,8 +1520,7 @@ declare namespace __esri {
1520
1520
  layer: VideoLayer | nullish;
1521
1521
  ready: boolean;
1522
1522
  resizing: boolean;
1523
- videoHeight: number;
1524
- videoWidth: number;
1523
+ videoSize: number[];
1525
1524
  width: number;
1526
1525
  }
1527
1526
 
@@ -4707,7 +4706,7 @@ declare namespace __esri {
4707
4706
  | (RangeDomainProperties & { type: "range" })
4708
4707
  | nullish);
4709
4708
  /**
4710
- * The module:esri/form/elements/inputs/Input to use for the element.
4709
+ * The input to use for the element.
4711
4710
  *
4712
4711
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#input Read more...}
4713
4712
  */
@@ -4773,7 +4772,7 @@ declare namespace __esri {
4773
4772
  */
4774
4773
  hint?: string | nullish;
4775
4774
  /**
4776
- * The module:esri/form/elements/inputs/Input to use for the element.
4775
+ * The input to use for the element.
4777
4776
  *
4778
4777
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#input Read more...}
4779
4778
  */
@@ -14770,12 +14769,6 @@ declare namespace __esri {
14770
14769
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#customParameters Read more...}
14771
14770
  */
14772
14771
  declare customParameters: CustomParametersMixin["customParameters"];
14773
- /**
14774
- * Specifies how features are placed on the vertical axis (z).
14775
- *
14776
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo Read more...}
14777
- */
14778
- elevationInfo: BuildingSceneLayerElevationInfo;
14779
14772
  /**
14780
14773
  * The layer ID, or layer index, of a Scene Service layer.
14781
14774
  *
@@ -14854,6 +14847,13 @@ declare namespace __esri {
14854
14847
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html Read more...}
14855
14848
  */
14856
14849
  constructor(properties?: BuildingSceneLayerProperties);
14850
+ /**
14851
+ * Specifies how features are placed on the vertical axis (z).
14852
+ *
14853
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo Read more...}
14854
+ */
14855
+ get elevationInfo(): BuildingSceneLayerElevationInfo | nullish;
14856
+ set elevationInfo(value: BuildingSceneLayerElevationInfoProperties | nullish);
14857
14857
  /**
14858
14858
  * Collection of filters that can be used to show or hide specific features in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
14859
14859
  *
@@ -14931,7 +14931,7 @@ declare namespace __esri {
14931
14931
  *
14932
14932
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo Read more...}
14933
14933
  */
14934
- elevationInfo?: BuildingSceneLayerElevationInfo;
14934
+ elevationInfo?: BuildingSceneLayerElevationInfoProperties | nullish;
14935
14935
  /**
14936
14936
  * Collection of filters that can be used to show or hide specific features in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
14937
14937
  *
@@ -14994,12 +14994,18 @@ declare namespace __esri {
14994
14994
  url?: SceneServiceProperties["url"];
14995
14995
  }
14996
14996
 
14997
- export interface BuildingSceneLayerElevationInfo {
14998
- mode: "absolute-height";
14997
+ export interface BuildingSceneLayerElevationInfoProperties {
14998
+ mode?: "absolute-height";
14999
14999
  offset?: number | nullish;
15000
15000
  unit?: ElevationUnit | nullish;
15001
15001
  }
15002
15002
 
15003
+ export interface BuildingSceneLayerElevationInfo extends AnonymousAccessor {
15004
+ mode: "absolute-height";
15005
+ offset: number | nullish;
15006
+ unit: ElevationUnit | nullish;
15007
+ }
15008
+
15003
15009
  export interface BuildingSceneLayerSaveAsOptions {
15004
15010
  folder?: PortalFolder;
15005
15011
  }
@@ -22617,12 +22623,6 @@ declare namespace __esri {
22617
22623
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMesh3DTilesLayer.html#customParameters Read more...}
22618
22624
  */
22619
22625
  declare customParameters: CustomParametersMixin["customParameters"];
22620
- /**
22621
- * Specifies how the mesh is placed on the vertical axis (z).
22622
- *
22623
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMesh3DTilesLayer.html#elevationInfo Read more...}
22624
- */
22625
- elevationInfo: IntegratedMesh3DTilesLayerElevationInfo | nullish;
22626
22626
  /**
22627
22627
  * The maximum scale (most zoomed in) at which the layer is visible in the view.
22628
22628
  *
@@ -22661,6 +22661,13 @@ declare namespace __esri {
22661
22661
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMesh3DTilesLayer.html Read more...}
22662
22662
  */
22663
22663
  constructor(properties?: IntegratedMesh3DTilesLayerProperties);
22664
+ /**
22665
+ * Specifies how the mesh is placed on the vertical axis (z).
22666
+ *
22667
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMesh3DTilesLayer.html#elevationInfo Read more...}
22668
+ */
22669
+ get elevationInfo(): IntegratedMesh3DTilesLayerElevationInfo | nullish;
22670
+ set elevationInfo(value: IntegratedMesh3DTilesLayerElevationInfoProperties | nullish);
22664
22671
  /**
22665
22672
  * The portal item from which the layer is loaded.
22666
22673
  *
@@ -22696,7 +22703,7 @@ declare namespace __esri {
22696
22703
  *
22697
22704
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMesh3DTilesLayer.html#elevationInfo Read more...}
22698
22705
  */
22699
- elevationInfo?: IntegratedMesh3DTilesLayerElevationInfo | nullish;
22706
+ elevationInfo?: IntegratedMesh3DTilesLayerElevationInfoProperties | nullish;
22700
22707
  /**
22701
22708
  * The maximum scale (most zoomed in) at which the layer is visible in the view.
22702
22709
  *
@@ -22735,12 +22742,18 @@ declare namespace __esri {
22735
22742
  url?: string | nullish;
22736
22743
  }
22737
22744
 
22738
- export interface IntegratedMesh3DTilesLayerElevationInfo {
22739
- mode: "absolute-height";
22745
+ export interface IntegratedMesh3DTilesLayerElevationInfoProperties {
22746
+ mode?: "absolute-height";
22740
22747
  offset?: number | nullish;
22741
22748
  unit?: ElevationUnit | nullish;
22742
22749
  }
22743
22750
 
22751
+ export interface IntegratedMesh3DTilesLayerElevationInfo extends AnonymousAccessor {
22752
+ mode: "absolute-height";
22753
+ offset: number | nullish;
22754
+ unit: ElevationUnit | nullish;
22755
+ }
22756
+
22744
22757
  export interface IntegratedMeshLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, CustomParametersMixin, APIKeyMixin, OperationalLayer {
22745
22758
  }
22746
22759
 
@@ -22763,12 +22776,6 @@ declare namespace __esri {
22763
22776
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#customParameters Read more...}
22764
22777
  */
22765
22778
  declare customParameters: CustomParametersMixin["customParameters"];
22766
- /**
22767
- * Specifies how the mesh is placed on the vertical axis (z).
22768
- *
22769
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo Read more...}
22770
- */
22771
- elevationInfo: IntegratedMeshLayerElevationInfo;
22772
22779
  /**
22773
22780
  * The layer ID, or layer index, of a Scene Service layer.
22774
22781
  *
@@ -22819,6 +22826,13 @@ declare namespace __esri {
22819
22826
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html Read more...}
22820
22827
  */
22821
22828
  constructor(properties?: IntegratedMeshLayerProperties);
22829
+ /**
22830
+ * Specifies how the mesh is placed on the vertical axis (z).
22831
+ *
22832
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo Read more...}
22833
+ */
22834
+ get elevationInfo(): IntegratedMeshLayerElevationInfo | nullish;
22835
+ set elevationInfo(value: IntegratedMeshLayerElevationInfoProperties | nullish);
22822
22836
  /**
22823
22837
  * A collection of {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html SceneModification} with polygons and types to apply client-side modifications.
22824
22838
  *
@@ -22884,7 +22898,7 @@ declare namespace __esri {
22884
22898
  *
22885
22899
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo Read more...}
22886
22900
  */
22887
- elevationInfo?: IntegratedMeshLayerElevationInfo;
22901
+ elevationInfo?: IntegratedMeshLayerElevationInfoProperties | nullish;
22888
22902
  /**
22889
22903
  * The layer ID, or layer index, of a Scene Service layer.
22890
22904
  *
@@ -22935,12 +22949,18 @@ declare namespace __esri {
22935
22949
  url?: SceneServiceProperties["url"];
22936
22950
  }
22937
22951
 
22938
- export interface IntegratedMeshLayerElevationInfo {
22939
- mode: "absolute-height";
22952
+ export interface IntegratedMeshLayerElevationInfoProperties {
22953
+ mode?: "absolute-height";
22940
22954
  offset?: number | nullish;
22941
22955
  unit?: ElevationUnit | nullish;
22942
22956
  }
22943
22957
 
22958
+ export interface IntegratedMeshLayerElevationInfo extends AnonymousAccessor {
22959
+ mode: "absolute-height";
22960
+ offset: number | nullish;
22961
+ unit: ElevationUnit | nullish;
22962
+ }
22963
+
22944
22964
  export interface IntegratedMeshLayerSaveAsOptions {
22945
22965
  folder?: PortalFolder;
22946
22966
  }
@@ -28310,12 +28330,6 @@ declare namespace __esri {
28310
28330
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#customParameters Read more...}
28311
28331
  */
28312
28332
  declare customParameters: CustomParametersMixin["customParameters"];
28313
- /**
28314
- * Specifies how points are placed on the vertical axis (z).
28315
- *
28316
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo Read more...}
28317
- */
28318
- elevationInfo: PointCloudLayerElevationInfo;
28319
28333
  /**
28320
28334
  * A convenient property that can be used to make case-insensitive lookups for a field by name.
28321
28335
  *
@@ -28396,6 +28410,13 @@ declare namespace __esri {
28396
28410
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html Read more...}
28397
28411
  */
28398
28412
  constructor(properties?: PointCloudLayerProperties);
28413
+ /**
28414
+ * Specifies how points are placed on the vertical axis (z).
28415
+ *
28416
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo Read more...}
28417
+ */
28418
+ get elevationInfo(): PointCloudLayerElevationInfo | nullish;
28419
+ set elevationInfo(value: PointCloudLayerElevationInfoProperties | nullish);
28399
28420
  /**
28400
28421
  * An array of fields accessible in the layer.
28401
28422
  *
@@ -28512,7 +28533,7 @@ declare namespace __esri {
28512
28533
  *
28513
28534
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo Read more...}
28514
28535
  */
28515
- elevationInfo?: PointCloudLayerElevationInfo;
28536
+ elevationInfo?: PointCloudLayerElevationInfoProperties | nullish;
28516
28537
  /**
28517
28538
  * An array of fields accessible in the layer.
28518
28539
  *
@@ -28603,12 +28624,18 @@ declare namespace __esri {
28603
28624
  url?: SceneServiceProperties["url"];
28604
28625
  }
28605
28626
 
28606
- export interface PointCloudLayerElevationInfo {
28607
- mode: "absolute-height";
28627
+ export interface PointCloudLayerElevationInfoProperties {
28628
+ mode?: "absolute-height";
28608
28629
  offset?: number | nullish;
28609
28630
  unit?: ElevationUnit | nullish;
28610
28631
  }
28611
28632
 
28633
+ export interface PointCloudLayerElevationInfo extends AnonymousAccessor {
28634
+ mode: "absolute-height";
28635
+ offset: number | nullish;
28636
+ unit: ElevationUnit | nullish;
28637
+ }
28638
+
28612
28639
  export interface PointCloudLayerQueryCachedStatisticsOptions {
28613
28640
  signal?: AbortSignal | nullish;
28614
28641
  }
@@ -40101,6 +40128,14 @@ declare namespace __esri {
40101
40128
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#legendEnabled Read more...}
40102
40129
  */
40103
40130
  legendEnabled: boolean;
40131
+ /**
40132
+ * Indicates how the layer should display in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html LayerList} widget.
40133
+ *
40134
+ * @default "show"
40135
+ *
40136
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#listMode Read more...}
40137
+ */
40138
+ listMode: "show" | "hide";
40104
40139
  /**
40105
40140
  * The Error object returned if an error occurred while loading.
40106
40141
  *
@@ -40531,6 +40566,12 @@ declare namespace __esri {
40531
40566
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#legendEnabled Read more...}
40532
40567
  */
40533
40568
  legendEnabled?: boolean;
40569
+ /**
40570
+ * Indicates how the layer should display in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html LayerList} widget.
40571
+ *
40572
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#listMode Read more...}
40573
+ */
40574
+ listMode?: "show" | "hide";
40534
40575
  /**
40535
40576
  * The maximum scale (most zoomed in) at which the layer is visible in the view.
40536
40577
  *
@@ -52296,6 +52337,15 @@ declare namespace __esri {
52296
52337
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchCategorySchema Read more...}
52297
52338
  */
52298
52339
  fetchCategorySchema(options?: PortalFetchCategorySchemaOptions | null): Promise<any[]>;
52340
+ /**
52341
+ * If present, fetches the organization's classification schema.
52342
+ *
52343
+ * @param options An object.
52344
+ * @param options.signal Signal object that can be used to abort the asynchronous task. The returned promise will be rejected with an {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html Error} named `AbortError` when an abort is signaled. See also [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) for more information on how to construct a controller that can be used to deliver abort signals.
52345
+ *
52346
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchClassificationSchema Read more...}
52347
+ */
52348
+ fetchClassificationSchema(options?: PortalFetchClassificationSchemaOptions | null): Promise<any | nullish>;
52299
52349
  /**
52300
52350
  * Fetches the default 3d {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html Basemap} to use in {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView} for this portal.
52301
52351
  *
@@ -52840,6 +52890,10 @@ declare namespace __esri {
52840
52890
  signal?: AbortSignal | nullish;
52841
52891
  }
52842
52892
 
52893
+ export interface PortalFetchClassificationSchemaOptions {
52894
+ signal?: AbortSignal | nullish;
52895
+ }
52896
+
52843
52897
  export interface PortalFetchDefault3DBasemapOptions {
52844
52898
  signal?: AbortSignal | nullish;
52845
52899
  }
@@ -62861,7 +62915,21 @@ declare namespace __esri {
62861
62915
 
62862
62916
  export const knowledgeGraphService: knowledgeGraphService;
62863
62917
 
62864
- export interface CIMFilteredFindPathsResultJSONError {
62918
+ export interface CIMFilteredFindPathsResultJSON {
62919
+ type: "CIMFilteredFindPathsResult";
62920
+ error?: knowledgeGraphServiceError;
62921
+ configurationWarning: | "None"
62922
+ | "AllOriginsAreExcluded"
62923
+ | "AllDestinationsAreExcluded"
62924
+ | "AllOptionalWaypointsAreExcluded"
62925
+ | "AtLeastOneMandatoryEntityWaypointIsExcluded"
62926
+ | "AtLeastOneMandatoryRelationshipWaypointIsExcluded"
62927
+ | "ReachedMaxPathLength";
62928
+ statistics: Statistics;
62929
+ paths: Paths;
62930
+ }
62931
+
62932
+ export interface knowledgeGraphServiceError {
62865
62933
  type: "CIMFilteredFindPathsError";
62866
62934
  error: | "None"
62867
62935
  | "ConfigurationHasTooManyInputEntities"
@@ -62873,6 +62941,11 @@ declare namespace __esri {
62873
62941
  detailedErrorMessage: string;
62874
62942
  }
62875
62943
 
62944
+ export interface knowledgeGraphServiceFetchClientDataAtKeysOptions {
62945
+ ignoreCache?: boolean;
62946
+ requestOptions?: RequestOptions;
62947
+ }
62948
+
62876
62949
  export interface Paths {
62877
62950
  type: "CIMKGPaths";
62878
62951
  entitiesUIDs?: string[];
@@ -62899,25 +62972,6 @@ declare namespace __esri {
62899
62972
  countWaypointsExpansionQueries?: number;
62900
62973
  }
62901
62974
 
62902
- export interface CIMFilteredFindPathsResultJSON {
62903
- type: "CIMFilteredFindPathsResult";
62904
- error?: CIMFilteredFindPathsResultJSONError;
62905
- configurationWarning: | "None"
62906
- | "AllOriginsAreExcluded"
62907
- | "AllDestinationsAreExcluded"
62908
- | "AllOptionalWaypointsAreExcluded"
62909
- | "AtLeastOneMandatoryEntityWaypointIsExcluded"
62910
- | "AtLeastOneMandatoryRelationshipWaypointIsExcluded"
62911
- | "ReachedMaxPathLength";
62912
- statistics: Statistics;
62913
- paths: Paths;
62914
- }
62915
-
62916
- export interface knowledgeGraphServiceFetchClientDataAtKeysOptions {
62917
- ignoreCache?: boolean;
62918
- requestOptions?: RequestOptions;
62919
- }
62920
-
62921
62975
  /**
62922
62976
  * A convenience module for importing {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html locator} functions when developing with
62923
62977
  * {@link https://developers.arcgis.com/javascript/latest/typescript-setup/ TypeScript}.
@@ -65400,6 +65454,12 @@ declare namespace __esri {
65400
65454
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsGrouping.html#value Read more...}
65401
65455
  */
65402
65456
  value: string;
65457
+ /**
65458
+ * Specifies the expected data type of the output from the `stackBy` or `splitBy` parameters.
65459
+ *
65460
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsGrouping.html#valueType Read more...}
65461
+ */
65462
+ valueType: "integer" | "string" | nullish;
65403
65463
  /**
65404
65464
  * AttributeBinsGrouping is a class that defines the `stackBy` or `splitBy` parameter in the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsQuery.html#binParameters AttributeBinsQuery}.
65405
65465
  *
@@ -65443,6 +65503,12 @@ declare namespace __esri {
65443
65503
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsGrouping.html#value Read more...}
65444
65504
  */
65445
65505
  value?: string;
65506
+ /**
65507
+ * Specifies the expected data type of the output from the `stackBy` or `splitBy` parameters.
65508
+ *
65509
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsGrouping.html#valueType Read more...}
65510
+ */
65511
+ valueType?: "integer" | "string" | nullish;
65446
65512
  }
65447
65513
 
65448
65514
  export interface AttributeBinsQuery extends Accessor, JSONSupport, QueryMixin {
@@ -65579,6 +65645,13 @@ declare namespace __esri {
65579
65645
  */
65580
65646
  get outStatistics(): StatisticDefinition[] | nullish;
65581
65647
  set outStatistics(value: StatisticDefinitionProperties[] | nullish);
65648
+ /**
65649
+ * A time extent for a temporal query against {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo time-aware layers}.
65650
+ *
65651
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsQuery.html#timeExtent Read more...}
65652
+ */
65653
+ get timeExtent(): TimeExtent | nullish;
65654
+ set timeExtent(value: TimeExtentProperties | nullish);
65582
65655
  /**
65583
65656
  * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
65584
65657
  *
@@ -65680,6 +65753,12 @@ declare namespace __esri {
65680
65753
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsQuery.html#spatialRelationship Read more...}
65681
65754
  */
65682
65755
  spatialRelationship?: QueryMixinProperties["spatialRelationship"];
65756
+ /**
65757
+ * A time extent for a temporal query against {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo time-aware layers}.
65758
+ *
65759
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsQuery.html#timeExtent Read more...}
65760
+ */
65761
+ timeExtent?: TimeExtentProperties | nullish;
65683
65762
  /**
65684
65763
  * The unit for calculating the buffer distance when {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttributeBinsQuery.html#distance distance} is specified in spatial queries.
65685
65764
  *
@@ -67543,6 +67622,18 @@ declare namespace __esri {
67543
67622
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#hideUpperBound Read more...}
67544
67623
  */
67545
67624
  declare hideUpperBound: BinParametersBase["hideUpperBound"];
67625
+ /**
67626
+ * Indicates whether the last bin should match the specified interval size exactly.
67627
+ *
67628
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#returnFullIntervalBin Read more...}
67629
+ */
67630
+ returnFullIntervalBin: boolean | nullish;
67631
+ /**
67632
+ * This property determines how the bins are aligned relative to the data points.
67633
+ *
67634
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#snapToData Read more...}
67635
+ */
67636
+ snapToData: "first" | "last" | nullish;
67546
67637
  /**
67547
67638
  * The start date value for bins to generate.
67548
67639
  *
@@ -67663,6 +67754,18 @@ declare namespace __esri {
67663
67754
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#offset Read more...}
67664
67755
  */
67665
67756
  offset?: DateBinTimeIntervalProperties | nullish;
67757
+ /**
67758
+ * Indicates whether the last bin should match the specified interval size exactly.
67759
+ *
67760
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#returnFullIntervalBin Read more...}
67761
+ */
67762
+ returnFullIntervalBin?: boolean | nullish;
67763
+ /**
67764
+ * This property determines how the bins are aligned relative to the data points.
67765
+ *
67766
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DateBinParameters.html#snapToData Read more...}
67767
+ */
67768
+ snapToData?: "first" | "last" | nullish;
67666
67769
  /**
67667
67770
  * The `splitBy` parameter divides data into separate bins for each unique value in the categorical field.
67668
67771
  *
@@ -75598,6 +75701,8 @@ declare namespace __esri {
75598
75701
  | nullish);
75599
75702
  get outSpatialReference(): SpatialReference | nullish;
75600
75703
  set outSpatialReference(value: SpatialReferenceProperties | nullish);
75704
+ get timeExtent(): TimeExtent | nullish;
75705
+ set timeExtent(value: TimeExtentProperties | nullish);
75601
75706
  }
75602
75707
 
75603
75708
  interface QueryMixinProperties {
@@ -75621,6 +75726,7 @@ declare namespace __esri {
75621
75726
  | "touches"
75622
75727
  | "within"
75623
75728
  | "relation";
75729
+ timeExtent?: TimeExtentProperties | nullish;
75624
75730
  units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers" | nullish;
75625
75731
  where?: string | nullish;
75626
75732
  }
@@ -108165,6 +108271,12 @@ declare namespace __esri {
108165
108271
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad-DirectionalPadViewModel.html#state Read more...}
108166
108272
  */
108167
108273
  readonly state: "disabled" | "ready" | "moving";
108274
+ /**
108275
+ * The view which the directional pad will control.
108276
+ *
108277
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad-DirectionalPadViewModel.html#view Read more...}
108278
+ */
108279
+ view: MapView | nullish;
108168
108280
  /**
108169
108281
  * Provides the logic for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad.html DirectionalPad} widget.
108170
108282
  *
@@ -108207,6 +108319,12 @@ declare namespace __esri {
108207
108319
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad-DirectionalPadViewModel.html#rotation Read more...}
108208
108320
  */
108209
108321
  rotation?: number;
108322
+ /**
108323
+ * The view which the directional pad will control.
108324
+ *
108325
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad-DirectionalPadViewModel.html#view Read more...}
108326
+ */
108327
+ view?: MapView | nullish;
108210
108328
  }
108211
108329
 
108212
108330
  /**
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import r from"../core/Collection.js";import t from"../core/CollectionFlattener.js";import s from"../core/Error.js";import{clone as i}from"../core/lang.js";import{loadAll as o}from"../core/loadAll.js";import a from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{join as p}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import{reader as y}from"../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import d from"../geometry/SpatialReference.js";import m from"./Layer.js";import h from"./buildingSublayers/BuildingComponentSublayer.js";import f from"./buildingSublayers/BuildingGroupSublayer.js";import{APIKeyMixin as b}from"./mixins/APIKeyMixin.js";import{ArcGISService as g}from"./mixins/ArcGISService.js";import{CustomParametersMixin as S}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{PortalLayer as j}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as w}from"./mixins/ScaleRangeLayer.js";import{SceneService as _,SaveOperationType as I}from"./mixins/SceneService.js";import{findAssociatedFeatureService as L}from"./support/associatedFeatureServiceUtils.js";import O from"./support/BuildingFilter.js";import T from"./support/BuildingSummaryStatistics.js";import{sceneLayerFullExtent as x,legendEnabled as A,readOnlyService as E,elevationInfo as F}from"./support/commonProperties.js";import{logInvalidElevationInfoWarning as P,elevationModeRequiredMessage as B,featureExpressionUnsupportedMessage as K}from"../support/elevationInfoUtils.js";const C=r.ofType(O),R=i(f.sublayersProperty),M=R.json?.origins;M&&(M["web-scene"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},M["portal-item"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let U=class extends(_(g(v(j(w(l(S(b(m))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new t({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new C,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,r,t){const s=f.readSublayers(e,r,t);return f.forEachSublayer(s,(e=>e.layer=this)),this._allSublayerOverrides&&(H(s,this._allSublayerOverrides),this._allSublayerOverrides=null),s}write(e,r){return e=super.write(e,r),!r||"web-scene"!==r.origin&&"portal-item"!==r.origin||(this.sublayers?G(this.sublayers,e,r):this._allSublayerOverrides&&V(this._allSublayerOverrides,e,r)),e}read(e,r){if(super.read(e,r),("web-scene"===r?.origin||"portal-item"===r?.origin)&&Array.isArray(e?.sublayers)){const t=k(e.sublayers,r);this.sublayers?N(this.sublayers,t):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(r.origin,t))}}readSummaryStatistics(e,r){if("string"==typeof r.statisticsHRef){const e=p(this.parsedUrl?.path,r.statisticsHRef);return new T({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const r=null!=e?e.signal:null,t=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(n).then((()=>this._fetchService(r))).then((()=>this._fetchAssociatedFeatureService(r)));return this.addResolvingPromise(t),Promise.resolve(this)}loadAll(){return o(this,(e=>{f.forEachSublayer(this.sublayers,(r=>{"building-group"!==r.type&&e(r)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,r){return this._debouncedSaveOperations(I.SAVE_AS,{...r,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(I.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:r}=await L(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=r}catch(r){a.getLogger(this).warn("Associated feature service item could not be loaded",r)}}_validateElevationInfo(){const e=this.elevationInfo,r="Building scene layers";P(a.getLogger(this),B(r,"absolute-height",e)),P(a.getLogger(this),K(r,e))}};function H(e,r){r.forEach((r=>N(e,r)))}function N(e,r){const{overrides:t,context:s}=r;f.forEachSublayer(e,(e=>e.read(t.get(e.id),s)))}function k(e,r){const t=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?t.set(i.id,i):r.messages?.push(new s("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:t,context:r}}function G(e,r,t){const s=[];f.forEachSublayer(e,(e=>{const r=e.write({},t);Object.keys(r).length>1&&s.push(r)})),s.length>0&&(r.sublayers=s)}function V(e,r,t){const s=t?.origin&&e.get(t.origin);s&&(r.sublayers=[],s.overrides.forEach((e=>{r.sublayers.push(i(e))})))}e([u({type:["BuildingSceneLayer"]})],U.prototype,"operationalLayerType",void 0),e([u({readOnly:!0})],U.prototype,"allSublayers",void 0),e([u(R)],U.prototype,"sublayers",void 0),e([y("service","sublayers")],U.prototype,"readSublayers",null),e([u({type:C,nonNullable:!0,json:{write:!0}})],U.prototype,"filters",void 0),e([u({type:String,json:{write:!0}})],U.prototype,"activeFilterId",void 0),e([u({readOnly:!0,type:T})],U.prototype,"summaryStatistics",void 0),e([y("summaryStatistics",["statisticsHRef"])],U.prototype,"readSummaryStatistics",null),e([u({type:[String],json:{read:!1}})],U.prototype,"outFields",void 0),e([u(x)],U.prototype,"fullExtent",void 0),e([u(A)],U.prototype,"legendEnabled",void 0),e([u({type:["show","hide","hide-children"]})],U.prototype,"listMode",void 0),e([u(E(d))],U.prototype,"spatialReference",void 0),e([u(F)],U.prototype,"elevationInfo",null),e([u({json:{read:!1},readOnly:!0})],U.prototype,"type",void 0),e([u()],U.prototype,"associatedFeatureServiceItem",void 0),U=e([c("esri.layers.BuildingSceneLayer")],U);const $=U;export{$ as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import r from"../core/Collection.js";import t from"../core/CollectionFlattener.js";import s from"../core/Error.js";import{clone as i}from"../core/lang.js";import{loadAll as o}from"../core/loadAll.js";import a from"../core/Logger.js";import{MultiOriginJSONMixin as l}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as n}from"../core/promiseUtils.js";import{join as p}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import{reader as y}from"../core/accessorSupport/decorators/reader.js";import{subclass as c}from"../core/accessorSupport/decorators/subclass.js";import d from"../geometry/SpatialReference.js";import m from"./Layer.js";import h from"./buildingSublayers/BuildingComponentSublayer.js";import f from"./buildingSublayers/BuildingGroupSublayer.js";import{APIKeyMixin as b}from"./mixins/APIKeyMixin.js";import{ArcGISService as g}from"./mixins/ArcGISService.js";import{CustomParametersMixin as S}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{PortalLayer as j}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as w}from"./mixins/ScaleRangeLayer.js";import{SceneService as _,SaveOperationType as I}from"./mixins/SceneService.js";import{findAssociatedFeatureService as L}from"./support/associatedFeatureServiceUtils.js";import O from"./support/BuildingFilter.js";import T from"./support/BuildingSummaryStatistics.js";import{sceneLayerFullExtent as x,legendEnabled as A,readOnlyService as E,elevationInfo as F}from"./support/commonProperties.js";import{logInvalidElevationInfoWarning as P,elevationModeRequiredMessage as B,featureExpressionUnsupportedMessage as K}from"../support/elevationInfoUtils.js";const C=r.ofType(O),R=i(f.sublayersProperty),M=R.json?.origins;M&&(M["web-scene"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},M["portal-item"]={type:[h],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let U=class extends(_(g(v(j(w(l(S(b(m))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new t({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new C,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,r,t){const s=f.readSublayers(e,r,t);return f.forEachSublayer(s,(e=>e.layer=this)),this._allSublayerOverrides&&(H(s,this._allSublayerOverrides),this._allSublayerOverrides=null),s}write(e,r){return e=super.write(e,r),!r||"web-scene"!==r.origin&&"portal-item"!==r.origin||(this.sublayers?G(this.sublayers,e,r):this._allSublayerOverrides&&V(this._allSublayerOverrides,e,r)),e}read(e,r){if(super.read(e,r),("web-scene"===r?.origin||"portal-item"===r?.origin)&&Array.isArray(e?.sublayers)){const t=k(e.sublayers,r);this.sublayers?N(this.sublayers,t):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(r.origin,t))}}readSummaryStatistics(e,r){if("string"==typeof r.statisticsHRef){const e=p(this.parsedUrl?.path,r.statisticsHRef);return new T({url:e})}return null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){const r=null!=e?e.signal:null,t=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(n).then((()=>this._fetchService(r))).then((()=>this._fetchAssociatedFeatureService(r)));return this.addResolvingPromise(t),Promise.resolve(this)}loadAll(){return o(this,(e=>{f.forEachSublayer(this.sublayers,(r=>{"building-group"!==r.type&&e(r)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,r){return this._debouncedSaveOperations(I.SAVE_AS,{...r,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(I.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:r}=await L(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=r}catch(r){a.getLogger(this).warn("Associated feature service item could not be loaded",r)}}_validateElevationInfo(e){const r="Building scene layers";P(a.getLogger(this),B(r,"absolute-height",e)),P(a.getLogger(this),K(r,e))}};function H(e,r){r.forEach((r=>N(e,r)))}function N(e,r){const{overrides:t,context:s}=r;f.forEachSublayer(e,(e=>e.read(t.get(e.id),s)))}function k(e,r){const t=new Map;for(const i of e)null!=i&&"object"==typeof i&&"number"==typeof i.id?t.set(i.id,i):r.messages?.push(new s("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:t,context:r}}function G(e,r,t){const s=[];f.forEachSublayer(e,(e=>{const r=e.write({},t);Object.keys(r).length>1&&s.push(r)})),s.length>0&&(r.sublayers=s)}function V(e,r,t){const s=t?.origin&&e.get(t.origin);s&&(r.sublayers=[],s.overrides.forEach((e=>{r.sublayers.push(i(e))})))}e([u({type:["BuildingSceneLayer"]})],U.prototype,"operationalLayerType",void 0),e([u({readOnly:!0})],U.prototype,"allSublayers",void 0),e([u(R)],U.prototype,"sublayers",void 0),e([y("service","sublayers")],U.prototype,"readSublayers",null),e([u({type:C,nonNullable:!0,json:{write:!0}})],U.prototype,"filters",void 0),e([u({type:String,json:{write:!0}})],U.prototype,"activeFilterId",void 0),e([u({readOnly:!0,type:T})],U.prototype,"summaryStatistics",void 0),e([y("summaryStatistics",["statisticsHRef"])],U.prototype,"readSummaryStatistics",null),e([u({type:[String],json:{read:!1}})],U.prototype,"outFields",void 0),e([u(x)],U.prototype,"fullExtent",void 0),e([u(A)],U.prototype,"legendEnabled",void 0),e([u({type:["show","hide","hide-children"]})],U.prototype,"listMode",void 0),e([u(E(d))],U.prototype,"spatialReference",void 0),e([u(F)],U.prototype,"elevationInfo",null),e([u({json:{read:!1},readOnly:!0})],U.prototype,"type",void 0),e([u()],U.prototype,"associatedFeatureServiceItem",void 0),U=e([c("esri.layers.BuildingSceneLayer")],U);const $=U;export{$ as default};