@arcgis/map-components 5.2.0-next.4 → 5.2.0-next.6

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 (103) hide show
  1. package/dist/cdn/5DNVHLO6.js +2 -0
  2. package/dist/cdn/5T3MHTWU.js +2 -0
  3. package/dist/cdn/{AOC4VUP6.js → 6OOQ7GIC.js} +1 -1
  4. package/dist/cdn/{A7P3DUN2.js → 7DIC4O5E.js} +1 -1
  5. package/dist/cdn/ABPHGXQN.js +2 -0
  6. package/dist/cdn/BMQSD7CZ.js +2 -0
  7. package/dist/cdn/CZXCSL3K.js +2 -0
  8. package/dist/cdn/{6BUPJWLA.js → J2IWIVXJ.js} +1 -1
  9. package/dist/cdn/L34RL7Y3.js +2 -0
  10. package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
  11. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  12. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  13. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  14. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  15. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  16. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  17. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  18. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  19. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  20. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  21. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  22. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  23. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  24. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  25. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  26. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  27. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  28. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  29. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  30. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  31. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  32. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  33. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  34. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  51. package/dist/cdn/index.js +1 -1
  52. package/dist/cdn/main.css +1 -1
  53. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  54. package/dist/components/arcgis-daylight/customElement.js +34 -27
  55. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +20 -20
  56. package/dist/components/arcgis-feature-table/customElement.js +27 -27
  57. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  58. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  59. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  60. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  61. package/dist/components/arcgis-feature-templates/index.js +13 -0
  62. package/dist/components/arcgis-features/customElement.d.ts +4 -17
  63. package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
  64. package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
  65. package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
  66. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
  67. package/dist/components/arcgis-link-chart/customElement.d.ts +27 -3
  68. package/dist/components/arcgis-map/customElement.d.ts +26 -2
  69. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
  70. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  71. package/dist/components/arcgis-paste/customElement.js +27 -38
  72. package/dist/components/arcgis-paste/index.js +1 -1
  73. package/dist/components/arcgis-popup/customElement.d.ts +13 -20
  74. package/dist/components/arcgis-scene/customElement.d.ts +26 -2
  75. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +10 -10
  76. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +6 -6
  77. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +6 -6
  78. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +10 -10
  79. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +10 -10
  80. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +10 -10
  81. package/dist/components/arcgis-slider-scale-range/customElement.js +16 -16
  82. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +10 -10
  83. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  84. package/dist/components/arcgis-template-image/customElement.js +119 -0
  85. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  86. package/dist/components/arcgis-template-image/index.js +1 -0
  87. package/dist/components/arcgis-version-management/customElement.js +21 -20
  88. package/dist/components/arcgis-version-management/index.js +1 -0
  89. package/dist/docs/api.json +1 -1
  90. package/dist/docs/docs.json +1 -1
  91. package/dist/docs/vscode.html-custom-data.json +1 -1
  92. package/dist/docs/web-types.json +1 -1
  93. package/dist/index.d.ts +14 -0
  94. package/dist/loader.js +2 -0
  95. package/dist/types/lumina.d.ts +14 -0
  96. package/dist/types/preact.d.ts +16 -0
  97. package/dist/types/react.d.ts +18 -0
  98. package/dist/types/stencil.d.ts +14 -0
  99. package/package.json +5 -5
  100. package/dist/cdn/IBTOXDST.js +0 -2
  101. package/dist/cdn/PMZAIPWC.js +0 -2
  102. package/dist/cdn/RL5PFJGE.js +0 -2
  103. package/dist/cdn/YJCBT5VK.js +0 -2
@@ -27,7 +27,7 @@ import type { ArcgisPopup } from "../arcgis-popup/customElement.js";
27
27
  import type { DoubleTapDragEvent, VerticalTwoFingerDragEvent, PointerUpEvent, PointerMoveEvent, PointerLeaveEvent, PointerEnterEvent, PointerDownEvent, ViewMouseWheelEvent, LayerViewDestroyEvent, LayerViewCreateErrorEvent, LayerViewCreateEvent, KeyUpEvent, KeyDownEvent, ImmediateDoubleClickEvent, ImmediateClickEvent, HoldEvent, DragEvent, DoubleClickEvent, ClickEvent } from "@arcgis/core/views/input/types.js";
28
28
  import type { AnalysisViewDestroyEvent, AnalysisViewCreateErrorEvent, AnalysisViewCreateEvent, ToScreenOptions2D, GoToOptions2D, GoToTarget2D } from "@arcgis/core/views/types.js";
29
29
  import type { AnalysisView2DUnion } from "@arcgis/core/views/2d/analysis/types.js";
30
- import type { ScreenPoint } from "@arcgis/core/core/types.js";
30
+ import type { ScreenPoint, ScreenRect } from "@arcgis/core/core/types.js";
31
31
  import type { FetchPopupFeaturesOptions, ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
32
32
  import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
33
33
  import type { ViewPadding } from "@arcgis/core/views/ui/types.js";
@@ -733,11 +733,35 @@ export abstract class ArcgisLinkChart extends LitElement {
733
733
  /**
734
734
  * Use this method to query for features at a given screen location. These features come from origins (layers and sublayers) configured with a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [FeatureLayer.popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled) set. One example could be a custom side panel that displays feature-specific information based on an end user's click location. This method allows a developer to control how the input location is handled, and then subsequently, what to do with the results.
735
735
  *
736
- * @param screenPoint
736
+ * @param hitTarget
737
737
  * @param options
738
738
  * @since 5.1
739
+ * @example
740
+ * ```js
741
+ * const viewElement = document.querySelector("arcgis-map");
742
+ * // Get viewElement's click event
743
+ * viewElement.addEventListener("arcgisViewClick", async (event) => {
744
+ * const generator = await viewElement.fetchPopupFeatures(event.detail.screenPoint, {
745
+ * pointerType: event.detail.pointerType
746
+ * });
747
+ * // Access the features returned from the generator
748
+ * for await (const feature of generator) {
749
+ * console.log(feature);
750
+ * }
751
+ * });
752
+ * ```
753
+ * @example
754
+ * ```js
755
+ * // Wait for all the features to be available
756
+ * view.on("click", async (event) => {
757
+ * const generator = view.fetchPopupFeatures(event.screenPoint, {
758
+ * pointerType: event.pointerType
759
+ * });
760
+ *
761
+ * const features = await Array.fromAsync(generator);
762
+ * });
739
763
  */
740
- fetchPopupFeatures(screenPoint: ScreenPoint, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
764
+ fetchPopupFeatures(hitTarget: ScreenPoint | ScreenRect, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
741
765
  /**
742
766
  * Sets the view to a given target.
743
767
  *
@@ -914,11 +914,35 @@ export abstract class ArcgisMap extends LitElement {
914
914
  /**
915
915
  * Use this method to query for features at a given screen location. These features come from origins (layers and sublayers) configured with a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [FeatureLayer.popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled) set. One example could be a custom side panel that displays feature-specific information based on an end user's click location. This method allows a developer to control how the input location is handled, and then subsequently, what to do with the results.
916
916
  *
917
- * @param screenPoint
917
+ * @param hitTarget
918
918
  * @param options
919
919
  * @since 5.1
920
+ * @example
921
+ * ```js
922
+ * const viewElement = document.querySelector("arcgis-map");
923
+ * // Get viewElement's click event
924
+ * viewElement.addEventListener("arcgisViewClick", async (event) => {
925
+ * const generator = await viewElement.fetchPopupFeatures(event.detail.screenPoint, {
926
+ * pointerType: event.detail.pointerType
927
+ * });
928
+ * // Access the features returned from the generator
929
+ * for await (const feature of generator) {
930
+ * console.log(feature);
931
+ * }
932
+ * });
933
+ * ```
934
+ * @example
935
+ * ```js
936
+ * // Wait for all the features to be available
937
+ * view.on("click", async (event) => {
938
+ * const generator = view.fetchPopupFeatures(event.screenPoint, {
939
+ * pointerType: event.pointerType
940
+ * });
941
+ *
942
+ * const features = await Array.fromAsync(generator);
943
+ * });
920
944
  */
921
- fetchPopupFeatures(screenPoint: ScreenPoint, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
945
+ fetchPopupFeatures(hitTarget: ScreenPoint | ScreenRect, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
922
946
  /**
923
947
  * Sets the view to a given target.
924
948
  *
@@ -9,11 +9,11 @@ import { m as g } from "../../chunks/useWidget.js";
9
9
  import { css as c } from "lit";
10
10
  import { s as m } from "../../chunks/esri-main.js";
11
11
  import { u as v } from "../../chunks/useLayerById.js";
12
- const h = c`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px)}.esri-imagery-viewer{width:100%;height:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto;border:1px solid var(--calcite-color-border-2);align-items:center;width:100%;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);border-radius:0 0 3px 3px;flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__message-box{text-align:center;word-break:break-word;justify-content:center;align-items:center;width:100%;height:100%;padding:0 25%;font-size:var(--calcite-font-size-sm);display:flex;position:relative}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);pointer-events:none;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);cursor:not-allowed;width:160px;height:160px;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);background-color:rgba(var(--calcite-color-brand),var(--calcite-opacity-half));border-radius:50%}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;transform:perspective(400px) rotateX(60deg) var(--rotate-transform);filter:drop-shadow(0 2px 1px #00000080);width:330px;height:330px}.esri-oriented-imagery-viewer__navigation-ui__direction--top{transform-style:preserve-3d;top:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--bottom{transform-style:preserve-3d;bottom:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--left{transform-style:preserve-3d;top:50%;left:0;transform:translateY(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--right{transform-style:preserve-3d;top:50%;right:0;transform:translateY(-50%)}.esri-panoramic-viewer{z-index:1;position:relative;width:100%;height:100%}`, w = g(n), y = "map-components:arcgis-oriented-imagery-viewer";
12
+ const h = c`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px)}.esri-imagery-viewer{width:100%;height:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto;border:1px solid var(--calcite-color-border-2);align-items:center;width:100%;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);border-radius:0 0 3px 3px;flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);pointer-events:none;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);cursor:not-allowed;width:160px;height:160px;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);background-color:rgba(var(--calcite-color-brand),var(--calcite-opacity-half));border-radius:50%}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;transform:perspective(400px) rotateX(60deg) var(--rotate-transform);filter:drop-shadow(0 2px 1px #00000080);width:330px;height:330px}.esri-oriented-imagery-viewer__navigation-ui__direction--top{transform-style:preserve-3d;top:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--bottom{transform-style:preserve-3d;bottom:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--left{transform-style:preserve-3d;top:50%;left:0;transform:translateY(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--right{transform-style:preserve-3d;top:50%;right:0;transform:translateY(-50%)}.esri-oriented-imagery-viewer--notice{margin-block:auto}.esri-panoramic-viewer{z-index:1;position:relative;width:100%;height:100%}`, y = g(n), w = "map-components:arcgis-oriented-imagery-viewer";
13
13
  class p extends s {
14
14
  constructor() {
15
- super(...arguments), this.widget = w(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = v(this, (e) => {
16
- e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${y} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`));
15
+ super(...arguments), this.widget = y(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = v(this, (e) => {
16
+ e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${w} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`));
17
17
  }), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = a()("imageGalleryEnabled", "layer"), this.arcgisReady = d();
18
18
  }
19
19
  static {
@@ -8,8 +8,8 @@ import type Collection from "@arcgis/core/core/Collection.js";
8
8
  import type SceneView from "@arcgis/core/views/SceneView.js";
9
9
  import type MapView from "@arcgis/core/views/MapView.js";
10
10
  import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
11
- import type TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";
12
11
  import type BatchAttributeFormViewModel from "@arcgis/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js";
12
+ import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
13
13
  import type { EsriClipboard, ClipboardItem as EsriClipboardItem } from "@arcgis/core/applications/Components/clipboard.js";
14
14
  import type { ApplySet, ApplySetLayerEditResult, ApplySetServiceEditResult } from "@arcgis/core/applications/Components/applySetUtils.js";
15
15
  import type { ClipboardMove } from "./ClipboardMove.js";
@@ -43,7 +43,7 @@ function Ee(e, t, i, a, s, o) {
43
43
  const g = o.objectIdField ?? "";
44
44
  return e.forEach((m) => {
45
45
  if (m.name !== g && !h.includes(m.name) && !p.includes(m.name) && !s.includes(m.name) && m.type !== "global-id" && (u === "" || u !== m.name)) {
46
- const f = Ge(m, t);
46
+ const f = Oe(m, t);
47
47
  f.match && f.targetField && (l[f.targetField?.name] = i[m.name]);
48
48
  }
49
49
  }), l;
@@ -68,7 +68,7 @@ function Te(e, t) {
68
68
  return !1;
69
69
  }
70
70
  }
71
- function Ge(e, t) {
71
+ function Oe(e, t) {
72
72
  const i = { match: !1, sourceField: null, targetField: null };
73
73
  for (const a of t)
74
74
  if (Te(e, a)) {
@@ -82,7 +82,7 @@ async function se(e, t, i, a) {
82
82
  let s = !0;
83
83
  const o = { hasAsyncArcadeExpressions: !1 }, l = e.items.filter((h) => h.type === "add");
84
84
  for (const h of l) {
85
- const p = h.graphic.clone(), u = Oe(
85
+ const p = h.graphic.clone(), u = Ge(
86
86
  h.graphic,
87
87
  h.layer
88
88
  );
@@ -109,7 +109,7 @@ async function se(e, t, i, a) {
109
109
  }
110
110
  return s;
111
111
  }
112
- function Oe(e, t) {
112
+ function Ge(e, t) {
113
113
  if (t.type === "feature" || t.type === "subtype-sublayer")
114
114
  return t;
115
115
  const i = t.findSublayerForFeature(e);
@@ -416,7 +416,7 @@ A([
416
416
  v = A([
417
417
  C("components.paste.commands.PasteCommand")
418
418
  ], v);
419
- var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor, G = (e, t, i, a) => {
419
+ var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor, O = (e, t, i, a) => {
420
420
  for (var s = a > 1 ? void 0 : a ? je(t, i) : t, o = e.length - 1, l; o >= 0; o--)
421
421
  (l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
422
422
  return a && s && Be(t, i, s), s;
@@ -533,25 +533,25 @@ let F = class extends v {
533
533
  return e.pasteAppendTitle;
534
534
  }
535
535
  };
536
- G([
536
+ O([
537
537
  r()
538
538
  ], F.prototype, "id", 1);
539
- G([
539
+ O([
540
540
  r()
541
541
  ], F.prototype, "icon", 1);
542
- G([
542
+ O([
543
543
  r()
544
544
  ], F.prototype, "immediate", 1);
545
- G([
545
+ O([
546
546
  r()
547
547
  ], F.prototype, "mustShowOnCommandPage", 1);
548
- G([
548
+ O([
549
549
  r()
550
550
  ], F.prototype, "commandEnabled", 1);
551
- F = G([
551
+ F = O([
552
552
  C("components.paste.commands.PasteAppendCommand")
553
553
  ], F);
554
- var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, O = (e, t, i, a) => {
554
+ var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, G = (e, t, i, a) => {
555
555
  for (var s = a > 1 ? void 0 : a ? Re(t, i) : t, o = e.length - 1, l; o >= 0; o--)
556
556
  (l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
557
557
  return a && s && We(t, i, s), s;
@@ -669,22 +669,22 @@ let _ = class extends v {
669
669
  return e.pasteSubtractTitle;
670
670
  }
671
671
  };
672
- O([
672
+ G([
673
673
  r()
674
674
  ], _.prototype, "id", 1);
675
- O([
675
+ G([
676
676
  r()
677
677
  ], _.prototype, "icon", 1);
678
- O([
678
+ G([
679
679
  r()
680
680
  ], _.prototype, "immediate", 1);
681
- O([
681
+ G([
682
682
  r()
683
683
  ], _.prototype, "mustShowOnCommandPage", 1);
684
- O([
684
+ G([
685
685
  r()
686
686
  ], _.prototype, "commandEnabled", 1);
687
- _ = O([
687
+ _ = G([
688
688
  C("components.paste.commands.PasteSubtractCommand")
689
689
  ], _);
690
690
  var Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, k = (e, t, i, a) => {
@@ -1690,25 +1690,14 @@ class st extends he {
1690
1690
  if (!this._templateGallery.value || this.viewModel.activeFlowPage !== "gallery-page")
1691
1691
  return;
1692
1692
  const t = this._templateGallery.value;
1693
- if (t.state !== "ready")
1694
- return;
1695
1693
  if (this.viewModel.pasteTemplateIsValid || (this.viewModel.pasteTemplate = void 0), this.viewModel.pasteTemplate !== void 0) {
1696
- t.selectedItem || this._templateGallery.value?.select(this.viewModel.pasteTemplate);
1694
+ t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
1697
1695
  return;
1698
1696
  }
1699
- let i;
1700
- for (const a of t.items) {
1701
- if ("items" in a) {
1702
- if (a.items.length > 0) {
1703
- i = a.items[0];
1704
- break;
1705
- }
1706
- continue;
1707
- }
1708
- i = a;
1709
- break;
1710
- }
1711
- i && t.select(i);
1697
+ if (t.effectiveTemplates.length === 0)
1698
+ return;
1699
+ const i = t.effectiveTemplates[0].templates[0];
1700
+ i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
1712
1701
  });
1713
1702
  }
1714
1703
  _renderFlowCommandStart(t) {
@@ -1775,11 +1764,11 @@ class st extends he {
1775
1764
  this.viewModel.activeFlowPage = "merge-page";
1776
1765
  }} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
1777
1766
  this.viewModel.activeFlowPage = "merge-page";
1778
- }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates-legacy .disabledItemFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single @arcgisPropertyChange=${(i) => {
1767
+ }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
1779
1768
  this._checkAndUpdateInitialPasteTemplate();
1780
- }} @arcgisSelect=${(i) => {
1781
- this.viewModel.pasteTemplate = i.detail.item;
1782
- }} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates-legacy>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
1769
+ }} @arcgisSelectTemplate=${(i) => {
1770
+ this.viewModel.pasteTemplate = i.detail.template;
1771
+ }} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
1783
1772
  i.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.viewModel.activeFlowPage = "commands-page");
1784
1773
  }}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);
1785
1774
  }
@@ -10,7 +10,7 @@ import "@esri/calcite-components/components/calcite-link";
10
10
  import "@esri/calcite-components/components/calcite-list";
11
11
  import "@esri/calcite-components/components/calcite-list-item";
12
12
  import "@esri/calcite-components/components/calcite-icon";
13
- import "../arcgis-feature-templates-legacy/index.js";
13
+ import "../arcgis-feature-templates/index.js";
14
14
  import "../arcgis-feature-title/index.js";
15
15
  import "../arcgis-feature-image/index.js";
16
16
  import "@esri/calcite-components/components/calcite-chip";
@@ -35,7 +35,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
35
35
  *
36
36
  * The Popup component can also be opened manually at a specific location using the [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#open) property.
37
37
  * To prevent the popup from opening automatically when clicking on features within view components, set the `popup-disabled` attribute to `true` and add the Popup component to the [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/), [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/), or [arcgis-link-chart](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/) using the `popup` slot.
38
- * Before setting the `open` property to `true`, you must set the [location](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#location) property to specify where the popup should open or call the [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#fetchFeatures) method to open the popup template for features at a specific screen location.
38
+ * Before setting the `open` property to `true`, you must set the [location](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#location) property to specify where the popup should open.
39
39
  *
40
40
  * Example of opening the popup at a clicked location with custom content:
41
41
  *
@@ -59,7 +59,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
59
59
  * </script>
60
60
  * ```
61
61
  *
62
- * Alternatively, you can call the [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#fetchFeatures) method within the view element's click event listener to open the popup with features at the clicked location.
62
+ * Alternatively, you can call the [arcgis-map.fetchPopupFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#fetchPopupFeatures) method within the view element's click event listener to open the popup with features at the clicked location.
63
63
  * ```html
64
64
  * <!-- Set popup-disabled and popup-component-enabled attributes -->
65
65
  * <arcgis-map id="06ca49d0ddb447e7817cfc343ca30df9" popup-disabled>
@@ -71,7 +71,12 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
71
71
  * const popupComponent = document.querySelector("arcgis-popup");
72
72
  * // Listen for clicks on the view and populate the popup with features at that location.
73
73
  * viewElement.addEventListener("arcgisViewClick", async (event) => {
74
- * await popupComponent.fetchFeatures(event.detail);
74
+ * const generator = await viewElement.fetchPopupFeatures(event.detail.screenPoint, {
75
+ * pointerType: event.detail.pointerType,
76
+ * });
77
+ *
78
+ * const features = await Array.fromAsync(generator);
79
+ * popupComponent.features = features;
75
80
  * });
76
81
  * // Open the popup when the features property changes.
77
82
  * reactiveUtils.watch(
@@ -426,7 +431,7 @@ export abstract class ArcgisPopup extends LitElement {
426
431
  accessor label: string | undefined;
427
432
  /**
428
433
  * Point used to position the popup. This is automatically set when viewing the
429
- * popup by selecting a feature or when calling the [fetchFeatures()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#fetchFeatures) method. If using the Popup to display content not related
434
+ * popup by selecting a feature. If using the Popup to display content not related
430
435
  * to features in the map, such as the results from a task, then you must set this
431
436
  * property before [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#open) the popup.
432
437
  *
@@ -505,6 +510,8 @@ export abstract class ArcgisPopup extends LitElement {
505
510
  * no pending promises, the value is `null`. When the pending promises are
506
511
  * resolved they are removed from this array and the features they return
507
512
  * are pushed into the [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#features) array.
513
+ *
514
+ * @deprecated since 5.1.
508
515
  */
509
516
  accessor promises: Array<Promise<Array<Graphic>>>;
510
517
  /**
@@ -570,25 +577,11 @@ export abstract class ArcgisPopup extends LitElement {
570
577
  /**
571
578
  * Use this method to return feature(s) at a given screen location. These features are fetched from all of the [LayerViews](https://developers.arcgis.com/javascript/latest/references/core/views/layers/LayerView/) in the [view](https://developers.arcgis.com/javascript/latest/references/core/views/View/). In order to use this, a layer must already have an associated [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled). This method allows a developer to control how the input location is handled. For example, you may want to fetch features on a `click` event or on a `pointer-move` event. This method automatically sets the [location](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#location) based on the input event's screen coordinates.
572
579
  *
580
+ * @deprecated since 5.1. Use the `fetchPopupFeatures` method on the [Map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#fetchPopupFeatures), [Scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#fetchPopupFeatures), or [Link Chart](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-link-chart/#fetchPopupFeatures) component to fetch features based on a screen location.
573
581
  * @param screenPoint
574
582
  * @param options
583
+ * @deprecated
575
584
  * @see [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#open)
576
- * @example
577
- * ```js
578
- * const viewElement = document.querySelector("arcgis-map");
579
- * // Get viewElement's click event
580
- * reactiveUtils.on(()=>viewElement, "arcgisViewClick", async (event)=>{
581
- * // Call fetchFeatures on the component and pass in the click event detail
582
- * await component.fetchFeatures(event.detail);
583
- * });
584
- * // Watch for changes to the features property and open the component when features are available.
585
- * reactiveUtils.watch(
586
- * () => component.features,
587
- * () => {
588
- * component.open = component.features ? true : false;
589
- * },
590
- * );
591
- * ```
592
585
  */
593
586
  fetchFeatures(screenPoint?: ScreenPoint, options?: FetchFeaturesOptions): Promise<void>;
594
587
  /**
@@ -897,11 +897,35 @@ export abstract class ArcgisScene extends LitElement {
897
897
  /**
898
898
  * Use this method to query for features at a given screen location. These features come from origins (layers and sublayers) configured with a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [FeatureLayer.popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled) set. One example could be a custom side panel that displays feature-specific information based on an end user's click location. This method allows a developer to control how the input location is handled, and then subsequently, what to do with the results.
899
899
  *
900
- * @param screenPoint
900
+ * @param hitTarget
901
901
  * @param options
902
902
  * @since 5.1
903
+ * @example
904
+ * ```js
905
+ * const viewElement = document.querySelector("arcgis-map");
906
+ * // Get viewElement's click event
907
+ * viewElement.addEventListener("arcgisViewClick", async (event) => {
908
+ * const generator = await viewElement.fetchPopupFeatures(event.detail.screenPoint, {
909
+ * pointerType: event.detail.pointerType
910
+ * });
911
+ * // Access the features returned from the generator
912
+ * for await (const feature of generator) {
913
+ * console.log(feature);
914
+ * }
915
+ * });
916
+ * ```
917
+ * @example
918
+ * ```js
919
+ * // Wait for all the features to be available
920
+ * view.on("click", async (event) => {
921
+ * const generator = view.fetchPopupFeatures(event.screenPoint, {
922
+ * pointerType: event.pointerType
923
+ * });
924
+ *
925
+ * const features = await Array.fromAsync(generator);
926
+ * });
903
927
  */
904
- fetchPopupFeatures(screenPoint: ScreenPoint, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
928
+ fetchPopupFeatures(hitTarget: ScreenPoint | ScreenRect, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
905
929
  /**
906
930
  * Sets the view to a given target.
907
931
  *
@@ -113,10 +113,10 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
113
113
  * numBins: 30,
114
114
  * });
115
115
  *
116
- * slider.histogramConfig = {
117
- * bins: histogramResult.bins
118
- * };
119
- * ```
116
+ * slider.histogramConfig = {
117
+ * bins: histogramResult.bins
118
+ * };
119
+ * ```
120
120
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
121
121
  */
122
122
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -167,7 +167,7 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
167
167
  * }
168
168
  * return value.toFixed(0);
169
169
  * };
170
- * ```
170
+ * ```
171
171
  */
172
172
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
173
173
  /**
@@ -212,7 +212,7 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
212
212
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
213
213
  * return (type === "value") ? value.toFixed(0) : value.toString();
214
214
  * };
215
- * ```
215
+ * ```
216
216
  */
217
217
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
218
218
  /**
@@ -336,12 +336,12 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
336
336
  * min: 10,
337
337
  * max: 25
338
338
  * };
339
- * ```
339
+ * ```
340
340
  * @example
341
341
  * ```js
342
342
  * // disables zooming on the slider
343
343
  * slider.zoomOptions = null;
344
- * ```
344
+ * ```
345
345
  * @example
346
346
  * ```js
347
347
  * // zooms the slider so thumbs can only be moved to positions above
@@ -349,7 +349,7 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
349
349
  * slider.zoomOptions = {
350
350
  * min: 10
351
351
  * };
352
- * ```
352
+ * ```
353
353
  * @example
354
354
  * ```js
355
355
  * // zooms the slider so thumbs can only be moved to positions below
@@ -357,7 +357,7 @@ export abstract class ArcgisSliderBinaryColorSizeLegacy extends LitElement {
357
357
  * slider.zoomOptions = {
358
358
  * max: 25
359
359
  * };
360
- * ```
360
+ * ```
361
361
  */
362
362
  accessor zoomOptions: ZoomOptions | null | undefined;
363
363
  /** Permanently destroy the component. */
@@ -128,10 +128,10 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
128
128
  * numBins: 30,
129
129
  * });
130
130
  *
131
- * slider.histogramConfig = {
132
- * bins: histogramResult.bins
133
- * };
134
- * ```
131
+ * slider.histogramConfig = {
132
+ * bins: histogramResult.bins
133
+ * };
134
+ * ```
135
135
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
136
136
  */
137
137
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -182,7 +182,7 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
182
182
  * }
183
183
  * return value.toFixed(0);
184
184
  * };
185
- * ```
185
+ * ```
186
186
  */
187
187
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
188
188
  /**
@@ -227,7 +227,7 @@ export abstract class ArcgisSliderClassedColorLegacy extends LitElement {
227
227
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
228
228
  * return (type === "value") ? value.toFixed(0) : value.toString();
229
229
  * };
230
- * ```
230
+ * ```
231
231
  */
232
232
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
233
233
  /**
@@ -121,10 +121,10 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
121
121
  * numBins: 30,
122
122
  * });
123
123
  *
124
- * slider.histogramConfig = {
125
- * bins: histogramResult.bins
126
- * };
127
- * ```
124
+ * slider.histogramConfig = {
125
+ * bins: histogramResult.bins
126
+ * };
127
+ * ```
128
128
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
129
129
  */
130
130
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -175,7 +175,7 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
175
175
  * }
176
176
  * return value.toFixed(0);
177
177
  * };
178
- * ```
178
+ * ```
179
179
  */
180
180
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
181
181
  /**
@@ -220,7 +220,7 @@ export abstract class ArcgisSliderClassedSizeLegacy extends LitElement {
220
220
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
221
221
  * return (type === "value") ? value.toFixed(0) : value.toString();
222
222
  * };
223
- * ```
223
+ * ```
224
224
  */
225
225
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
226
226
  /**
@@ -127,10 +127,10 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
127
127
  * numBins: 30,
128
128
  * });
129
129
  *
130
- * slider.histogramConfig = {
131
- * bins: histogramResult.bins
132
- * };
133
- * ```
130
+ * slider.histogramConfig = {
131
+ * bins: histogramResult.bins
132
+ * };
133
+ * ```
134
134
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
135
135
  */
136
136
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -181,7 +181,7 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
181
181
  * }
182
182
  * return value.toFixed(0);
183
183
  * };
184
- * ```
184
+ * ```
185
185
  */
186
186
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
187
187
  /**
@@ -226,7 +226,7 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
226
226
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
227
227
  * return (type === "value") ? value.toFixed(0) : value.toString();
228
228
  * };
229
- * ```
229
+ * ```
230
230
  */
231
231
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
232
232
  /**
@@ -332,12 +332,12 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
332
332
  * min: 10,
333
333
  * max: 25
334
334
  * };
335
- * ```
335
+ * ```
336
336
  * @example
337
337
  * ```js
338
338
  * // disables zooming on the slider
339
339
  * slider.zoomOptions = null;
340
- * ```
340
+ * ```
341
341
  * @example
342
342
  * ```js
343
343
  * // zooms the slider so thumbs can only be moved to positions above
@@ -345,7 +345,7 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
345
345
  * slider.zoomOptions = {
346
346
  * min: 10
347
347
  * };
348
- * ```
348
+ * ```
349
349
  * @example
350
350
  * ```js
351
351
  * // zooms the slider so thumbs can only be moved to positions below
@@ -353,7 +353,7 @@ export abstract class ArcgisSliderColorLegacy extends LitElement {
353
353
  * slider.zoomOptions = {
354
354
  * max: 25
355
355
  * };
356
- * ```
356
+ * ```
357
357
  */
358
358
  accessor zoomOptions: ZoomOptions | null | undefined;
359
359
  /** Permanently destroy the component. */