@arcgis/map-components 5.2.0-next.61 → 5.2.0-next.62

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 (162) hide show
  1. package/dist/cdn/2SZEQV37.js +2 -0
  2. package/dist/cdn/3WTBTYMS.js +2 -0
  3. package/dist/cdn/4ZHTGN7K.js +2 -0
  4. package/dist/cdn/55DP6FNP.js +2 -0
  5. package/dist/cdn/{X6K2RSPI.js → 5IYDETJ3.js} +1 -1
  6. package/dist/cdn/{WYZPOKJF.js → 7MH3SB7P.js} +1 -1
  7. package/dist/cdn/A2T36WPR.js +2 -0
  8. package/dist/cdn/AEIJFBBW.js +2 -0
  9. package/dist/cdn/{NRHOAASJ.js → APOCPBJG.js} +1 -1
  10. package/dist/cdn/AZFN3LR3.js +2 -0
  11. package/dist/cdn/{F3VS53GP.js → B4IHQKAA.js} +1 -1
  12. package/dist/cdn/{AFJW3C3J.js → CZ35ZBQO.js} +1 -1
  13. package/dist/cdn/DBA7NSTP.js +2 -0
  14. package/dist/cdn/{KEV6I36K.js → DJ5IUHJS.js} +1 -1
  15. package/dist/cdn/GU3M4JMW.js +2 -0
  16. package/dist/cdn/HFKN54XG.js +2 -0
  17. package/dist/cdn/{2JV5SN44.js → IDKRMHDS.js} +1 -1
  18. package/dist/cdn/{Y3X3K2RU.js → IYLOUQFV.js} +1 -1
  19. package/dist/cdn/{CJS5I43A.js → MZBHKC3U.js} +1 -1
  20. package/dist/cdn/{OMGRHB7H.js → ND6OMAWU.js} +1 -1
  21. package/dist/cdn/{KKBZEDN4.js → OIYQ43VS.js} +1 -1
  22. package/dist/cdn/{UX6QVJG6.js → ORL32J3S.js} +1 -1
  23. package/dist/cdn/{5W6NJGFF.js → QKCBSK73.js} +1 -1
  24. package/dist/cdn/{SCPSWHG4.js → QU6ARDF6.js} +1 -1
  25. package/dist/cdn/{QVOYYXIU.js → RLA7OC3V.js} +1 -1
  26. package/dist/cdn/{ALUQRMZW.js → RUI2QLEM.js} +1 -1
  27. package/dist/cdn/S3XR7KRN.js +2 -0
  28. package/dist/cdn/{T6CKYPI7.js → SADIYG5D.js} +1 -1
  29. package/dist/cdn/SRTPZO5Z.js +2 -0
  30. package/dist/cdn/U4S4I3VD.js +2 -0
  31. package/dist/cdn/{N2KU7FO4.js → UAA66BVA.js} +1 -1
  32. package/dist/cdn/VDTRRLON.js +2 -0
  33. package/dist/cdn/{CFIH5Y4K.js → YAXMVCUT.js} +1 -1
  34. package/dist/cdn/{5F6Q3XF5.js → ZV5BQFVT.js} +1 -1
  35. package/dist/cdn/assets/oriented-imagery-viewer-panoramic-viewer/t9n/messages.en.json +1 -0
  36. package/dist/cdn/index.js +1 -1
  37. package/dist/cdn/main.css +1 -1
  38. package/dist/chunks/action-utils.js +9 -9
  39. package/dist/chunks/graphicsLayerController.js +74 -0
  40. package/dist/chunks/utils3.js +13 -45
  41. package/dist/chunks/utils4.js +51 -0
  42. package/dist/chunks/zoom.js +32 -0
  43. package/dist/components/arcgis-aggregated-features/customElement.js +11 -11
  44. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +4 -4
  45. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +2 -2
  46. package/dist/components/arcgis-basemap-gallery/customElement.d.ts +2 -2
  47. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +2 -2
  48. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +2 -2
  49. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +2 -2
  50. package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
  51. package/dist/components/arcgis-building-explorer/customElement.d.ts +2 -2
  52. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +2 -2
  53. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +23 -18
  54. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +125 -114
  55. package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
  56. package/dist/components/arcgis-compass/customElement.d.ts +2 -2
  57. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
  58. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +2 -2
  59. package/dist/components/arcgis-daylight/customElement.d.ts +2 -2
  60. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +2 -2
  61. package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -2
  62. package/dist/components/arcgis-directions/customElement.d.ts +2 -2
  63. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
  64. package/dist/components/arcgis-editor/customElement.d.ts +3 -3
  65. package/dist/components/arcgis-elevation-profile/customElement.d.ts +2 -2
  66. package/dist/components/arcgis-expand/customElement.d.ts +2 -2
  67. package/dist/components/arcgis-feature/customElement.d.ts +2 -2
  68. package/dist/components/arcgis-feature-next/customElement.d.ts +2 -2
  69. package/dist/components/arcgis-feature-next/customElement.js +1 -1
  70. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  71. package/dist/components/arcgis-feature-table/customElement.d.ts +2 -2
  72. package/dist/components/arcgis-feature-templates/customElement.d.ts +2 -2
  73. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  74. package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
  75. package/dist/components/arcgis-features-next/customElement.js +1 -1
  76. package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
  77. package/dist/components/arcgis-grid-controls/customElement.d.ts +2 -2
  78. package/dist/components/arcgis-home/customElement.d.ts +2 -2
  79. package/dist/components/arcgis-layer-list/customElement.d.ts +2 -2
  80. package/dist/components/arcgis-layer-list-next/customElement.d.ts +2 -2
  81. package/dist/components/arcgis-legend/customElement.d.ts +2 -2
  82. package/dist/components/arcgis-line-of-sight/customElement.d.ts +2 -2
  83. package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +2 -2
  84. package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +2 -2
  85. package/dist/components/arcgis-locate/customElement.d.ts +2 -2
  86. package/dist/components/arcgis-measurement/customElement.d.ts +2 -2
  87. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +2 -2
  88. package/dist/components/arcgis-navigation-toggle/customElement.d.ts +2 -2
  89. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +2 -2
  90. package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +64 -132
  91. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.d.ts +51 -0
  92. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1006 -0
  93. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.d.ts +1 -0
  94. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/index.js +5 -0
  95. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicMedia.d.ts +49 -0
  96. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTilePlanner.d.ts +18 -0
  97. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/support/PanoramicTileSource.d.ts +36 -0
  98. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +91 -0
  99. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +93 -0
  100. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.d.ts +1 -0
  101. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/index.js +2 -0
  102. package/dist/components/arcgis-paste/customElement.d.ts +2 -2
  103. package/dist/components/arcgis-popup/customElement.d.ts +3 -3
  104. package/dist/components/arcgis-popup/customElement.js +1 -1
  105. package/dist/components/arcgis-presentation/customElement.d.ts +2 -2
  106. package/dist/components/arcgis-print/customElement.d.ts +2 -2
  107. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  108. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  109. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  110. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  111. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  112. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  113. package/dist/components/arcgis-scale-bar/customElement.d.ts +2 -2
  114. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +2 -2
  115. package/dist/components/arcgis-search/customElement.d.ts +2 -2
  116. package/dist/components/arcgis-shadow-cast/customElement.d.ts +2 -2
  117. package/dist/components/arcgis-sketch/customElement.d.ts +2 -2
  118. package/dist/components/arcgis-slice/customElement.d.ts +2 -2
  119. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +2 -2
  120. package/dist/components/arcgis-snapping-controls/customElement.d.ts +2 -2
  121. package/dist/components/arcgis-swipe/customElement.d.ts +2 -2
  122. package/dist/components/arcgis-table-list/customElement.d.ts +2 -2
  123. package/dist/components/arcgis-table-list-next/customElement.d.ts +2 -2
  124. package/dist/components/arcgis-time-bar/customElement.d.ts +5 -5
  125. package/dist/components/arcgis-time-bar/customElement.js +1 -1
  126. package/dist/components/arcgis-time-bar-slider/customElement.js +11 -11
  127. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  128. package/dist/components/arcgis-time-zone-label/customElement.d.ts +2 -2
  129. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  130. package/dist/components/arcgis-utility-network-associations/customElement.d.ts +2 -2
  131. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -2
  132. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +2 -2
  133. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +2 -2
  134. package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +2 -2
  135. package/dist/components/arcgis-utility-network-trace-location-list/customElement.d.ts +2 -2
  136. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -2
  137. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +2 -2
  138. package/dist/components/arcgis-video-player/customElement.d.ts +2 -2
  139. package/dist/components/arcgis-volume-measurement/customElement.d.ts +2 -2
  140. package/dist/components/arcgis-weather/customElement.d.ts +2 -2
  141. package/dist/components/arcgis-zoom/customElement.d.ts +2 -2
  142. package/dist/components/arcgis-zoom/customElement.js +21 -45
  143. package/dist/controllers/useT9n.d.ts +3 -0
  144. package/dist/docs/api.json +1 -1
  145. package/dist/docs/docs.json +1 -1
  146. package/dist/docs/vscode.html-custom-data.json +1 -1
  147. package/dist/docs/web-types.json +1 -1
  148. package/dist/index.d.ts +14 -0
  149. package/dist/loader.js +3 -1
  150. package/dist/types/lumina.d.ts +13 -0
  151. package/dist/types/preact.d.ts +15 -0
  152. package/dist/types/react.d.ts +17 -0
  153. package/dist/types/stencil.d.ts +13 -0
  154. package/package.json +4 -4
  155. package/dist/cdn/A5XIQWD5.js +0 -2
  156. package/dist/cdn/AK62SYBC.js +0 -2
  157. package/dist/cdn/D7DH54CE.js +0 -2
  158. package/dist/cdn/KBBYF7KD.js +0 -2
  159. package/dist/cdn/M4HY5VMM.js +0 -2
  160. package/dist/cdn/MBRWWICI.js +0 -2
  161. package/dist/cdn/OO6NV5GK.js +0 -2
  162. /package/dist/cdn/{MOJH7XEP.js → 3ZXNGXHC.js} +0 -0
@@ -797,8 +797,8 @@ export abstract class ArcgisTimeBar extends LitElement {
797
797
  */
798
798
  accessor timeZone: string | undefined;
799
799
  /**
800
- * The view associated with the component.
801
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-bar component will be associated with a map or scene component rather than using the `view` property.
800
+ * The view associated with the component.
801
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-bar component will be associated with a map or scene component rather than using the `view` property.
802
802
  */
803
803
  accessor view: MapView | SceneView | undefined;
804
804
  /**
@@ -810,7 +810,7 @@ export abstract class ArcgisTimeBar extends LitElement {
810
810
  *
811
811
  * @param settings - The `arcgis-time-bar` settings to apply to the component. This should be in the format returned by `getTimeSliderSettingsFromWebDocument`.
812
812
  * @example
813
- * The following example demonstrates how to use `getTimeSliderSettingsFromWebDocument` and `applyTimeSliderSettings`
813
+ * The following example demonstrates how to use `getTimeSliderSettingsFromWebDocument` and `applyTimeSettings`
814
814
  * together to extract `arcgis-time-bar` settings from a web map and apply them to the `arcgis-time-bar` component.
815
815
  * ```html
816
816
  * <arcgis-map basemap="satellite" zoom="6" center="-2,54">
@@ -834,11 +834,11 @@ export abstract class ArcgisTimeBar extends LitElement {
834
834
  *
835
835
  * const timeBarElement = document.querySelector("arcgis-time-bar");
836
836
  * const timeBar = await timeBarElement.componentOnReady();
837
- * timeBar.applyTimeSliderSettings(timeSliderSettings);
837
+ * timeBar.applyTimeSettings(timeSliderSettings);
838
838
  * </script>
839
839
  * ```
840
840
  */
841
- applyTimeSliderSettings(settings: Pick<ArcgisTimeBar, "fullTimeExtent" | "loop" | "mode" | "playRate" | "stops" | "timeExtent">): Promise<void>;
841
+ applyTimeSettings(settings: Pick<ArcgisTimeBar, "fullTimeExtent" | "loop" | "mode" | "playRate" | "stops" | "timeExtent">): Promise<void>;
842
842
  /** Permanently destroy the component. */
843
843
  destroy(): Promise<void>;
844
844
  /**
@@ -513,7 +513,7 @@ class St extends ot {
513
513
  #t;
514
514
  #e;
515
515
  #i;
516
- async applyTimeSliderSettings(e) {
516
+ async applyTimeSettings(e) {
517
517
  this._viewModel.set(e);
518
518
  }
519
519
  async destroy() {
@@ -1,18 +1,18 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as u } from "../../chunks/runtime.js";
3
3
  import { css as h, html as a } from "lit";
4
- import o from "@arcgis/core/time/TimeExtent.js";
4
+ import c from "@arcgis/core/time/TimeExtent.js";
5
5
  import { LitElement as v, nothing as f, safeClassMap as g } from "@arcgis/lumina";
6
- import { createRef as c, ref as d } from "lit/directives/ref.js";
6
+ import { createRef as o, ref as d } from "lit/directives/ref.js";
7
7
  import { m as w } from "../../chunks/handle.js";
8
8
  import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
9
- const p = h`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}.slider{--labels-container-width: 100%;flex:1 1 auto;min-inline-size:0}.slider--has-ticks{margin-top:calc(var(--calcite-spacing-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.max-date,.min-date{inline-size:calc(var(--calcite-size-md) * 3.125)}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%}.major-ticks,.minor-ticks{inset:0;position:absolute}.major-ticks,.minor-ticks{--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}.minor-ticks{--arcgis-ticks-tick-length: var(--calcite-size-fixed-xxs)}.major-ticks{--arcgis-ticks-font-weight: var(--calcite-font-weight-normal)}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}`;
9
+ const p = h`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{--labels-container-width: 100%;flex:1 1 auto;min-inline-size:calc(var(--calcite-spacing-md) * 15)}.slider--has-ticks{margin-top:calc(var(--calcite-spacing-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.max-date,.min-date{inline-size:calc(var(--calcite-size-md) * 3.125)}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%}.major-ticks,.minor-ticks{inset:0;position:absolute}.major-ticks,.minor-ticks{--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}.minor-ticks{--arcgis-ticks-tick-length: var(--calcite-size-fixed-xxs)}.major-ticks{--arcgis-ticks-font-weight: var(--calcite-font-weight-normal)}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}`;
10
10
  class T extends v {
11
11
  constructor() {
12
12
  super(...arguments), this.#e = new ResizeObserver(() => {
13
13
  const e = this.#r.value?.clientWidth;
14
14
  e && (this._sliderWidth = e);
15
- }), this.#n = 3, this.#a = c(), this.#r = c(), this._sliderWidth = 100, this.autoDestroyDisabled = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1, this.showTimeExtentPopover = !1;
15
+ }), this.#n = 3, this.#a = o(), this.#r = o(), this._sliderWidth = 100, this.autoDestroyDisabled = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1, this.showTimeExtentPopover = !1;
16
16
  }
17
17
  static {
18
18
  this.properties = { _activeValue: 16, _sliderFillPlacement: 16, _sliderWidth: 16, _timeExtentEpochValues: 16, activeValue: 32, autoDestroyDisabled: 5, showMax: 5, showMin: 5, showTicks: 5, showTimeExtentPopover: 5, viewModel: 0 };
@@ -91,23 +91,23 @@ class T extends v {
91
91
  const n = (r.getTime() - s.getTime()) / t;
92
92
  return i.tickFormats.find(({ duration: m }) => m > this.#n * n) ?? i.tickFormats.at(-1);
93
93
  }
94
- #o(e) {
94
+ #c(e) {
95
95
  this._activeValue = e.target.activeValue;
96
96
  }
97
- #c(e) {
97
+ #o(e) {
98
98
  const { viewModel: t } = this, i = t?.mode;
99
99
  i && (t.timeExtent = this.#d(e.target.values, i), this._activeValue = e.target.activeValue);
100
100
  }
101
101
  #d([e, t], i) {
102
102
  switch (i) {
103
103
  case "cumulative-from-end":
104
- return new o({ start: new Date(e), end: null });
104
+ return new c({ start: new Date(e), end: null });
105
105
  case "cumulative-from-start":
106
- return new o({ start: null, end: new Date(e) });
106
+ return new c({ start: null, end: new Date(e) });
107
107
  case "instant":
108
- return new o({ start: new Date(e), end: new Date(e) });
108
+ return new c({ start: new Date(e), end: new Date(e) });
109
109
  case "time-window":
110
- return new o({ start: new Date(e), end: new Date(t ?? e) });
110
+ return new c({ start: new Date(e), end: new Date(t ?? e) });
111
111
  }
112
112
  }
113
113
  render() {
@@ -138,7 +138,7 @@ class T extends v {
138
138
  slider: !0,
139
139
  "slider--has-ticks": this.showTicks,
140
140
  "slider--out-of-range": e.isOutOfRange
141
- })} .disabled=${!e.interactive} fill-placement=${this._sliderFillPlacement ?? f} .max=${s} .min=${i} @arcgisActiveValueChange=${this.#o} @arcgisInput=${this.#c} precision=0 .steps=${e.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} ${d(this.#r)}>${this.#h()}${this.#g(e, i, s)}</arcgis-slider>`;
141
+ })} .disabled=${!e.interactive} fill-placement=${this._sliderFillPlacement ?? f} .max=${s} .min=${i} @arcgisActiveValueChange=${this.#c} @arcgisInput=${this.#o} precision=0 .steps=${e.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} ${d(this.#r)}>${this.#h()}${this.#g(e, i, s)}</arcgis-slider>`;
142
142
  }
143
143
  #g(e, t, i) {
144
144
  return this.showTicks ? a`<div slot=content-end class="ticks-container"><arcgis-ticks class="minor-ticks" .max=${i} .min=${t} mode=value .values=${this.#s}></arcgis-ticks><arcgis-ticks class="major-ticks" .labelFormatter=${e.majorTickFormatter} .max=${i} .min=${t} mode=value show-labels .values=${this.#i}></arcgis-ticks></div>` : null;
@@ -448,8 +448,8 @@ export abstract class ArcgisTimeSlider extends LitElement {
448
448
  */
449
449
  accessor timeZone: string;
450
450
  /**
451
- * The view associated with the component.
452
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-slider component will be associated with a map or scene component rather than using the `view` property.
451
+ * The view associated with the component.
452
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-slider component will be associated with a map or scene component rather than using the `view` property.
453
453
  *
454
454
  * @example
455
455
  * ```js
@@ -61,8 +61,8 @@ export abstract class ArcgisTimeZoneLabel extends LitElement {
61
61
  /** The state of the component. */
62
62
  get state(): State;
63
63
  /**
64
- * The view associated with the component.
65
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-zone-label component will be associated with a map or scene component rather than using the `view` property.
64
+ * The view associated with the component.
65
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-time-zone-label component will be associated with a map or scene component rather than using the `view` property.
66
66
  */
67
67
  accessor view: MapView | undefined;
68
68
  /** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
@@ -219,8 +219,8 @@ export abstract class ArcgisTrack extends LitElement {
219
219
  */
220
220
  get tracking(): boolean;
221
221
  /**
222
- * The view associated with the component.
223
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-track component will be associated with a map or scene component rather than using the `view` property.
222
+ * The view associated with the component.
223
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-track component will be associated with a map or scene component rather than using the `view` property.
224
224
  */
225
225
  accessor view: MapView | SceneView | undefined;
226
226
  /**
@@ -219,8 +219,8 @@ export abstract class ArcgisUtilityNetworkAssociations extends LitElement {
219
219
  */
220
220
  accessor utilityNetwork: UtilityNetwork | null | undefined;
221
221
  /**
222
- * The view associated with the component.
223
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-associations component will be associated with a map or scene component rather than using the `view` property.
222
+ * The view associated with the component.
223
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-associations component will be associated with a map or scene component rather than using the `view` property.
224
224
  *
225
225
  * @since 4.26
226
226
  */
@@ -205,8 +205,8 @@ export abstract class ArcgisUtilityNetworkTrace extends LitElement {
205
205
  */
206
206
  get traceResults(): TraceResultExtend[];
207
207
  /**
208
- * The view associated with the component.
209
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace component will be associated with a map or scene component rather than using the `view` property.
208
+ * The view associated with the component.
209
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace component will be associated with a map or scene component rather than using the `view` property.
210
210
  */
211
211
  accessor view: MapView | null | undefined;
212
212
  checkCanTrace(): Promise<void>;
@@ -276,8 +276,8 @@ export abstract class ArcgisUtilityNetworkTraceAnalysis extends LitElement {
276
276
  */
277
277
  get traceResultFeatures(): Graphic[];
278
278
  /**
279
- * The view associated with the component.
280
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-analysis component will be associated with a map or scene component rather than using the `view` property.
279
+ * The view associated with the component.
280
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-analysis component will be associated with a map or scene component rather than using the `view` property.
281
281
  */
282
282
  accessor view: MapView | null | undefined;
283
283
  /** Permanently destroy the component. */
@@ -161,8 +161,8 @@ export abstract class ArcgisUtilityNetworkTraceInputs extends LitElement {
161
161
  get traceLocationFlagInfos(): Collection<FlagInfo>;
162
162
  get traceLocations(): TraceLocation[];
163
163
  /**
164
- * The view associated with the component.
165
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-inputs component will be associated with a map or scene component rather than using the `view` property.
164
+ * The view associated with the component.
165
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-inputs component will be associated with a map or scene component rather than using the `view` property.
166
166
  */
167
167
  accessor view: MapView | undefined;
168
168
  /** Permanently destroy the component. */
@@ -107,8 +107,8 @@ export abstract class ArcgisUtilityNetworkTraceLocation extends LitElement {
107
107
  /** @required */
108
108
  accessor utilityNetwork: UtilityNetwork | undefined;
109
109
  /**
110
- * The view associated with the component.
111
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location component will be associated with a map or scene component rather than using the `view` property.
110
+ * The view associated with the component.
111
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location component will be associated with a map or scene component rather than using the `view` property.
112
112
  */
113
113
  accessor view: MapView | undefined;
114
114
  /** Permanently destroy the component. */
@@ -36,8 +36,8 @@ export abstract class ArcgisUtilityNetworkTraceLocationList extends LitElement {
36
36
  /** @default "starting-point" */
37
37
  accessor traceLocationType: TraceLocationType;
38
38
  /**
39
- * The view associated with the component.
40
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location-list component will be associated with a map or scene component rather than using the `view` property.
39
+ * The view associated with the component.
40
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-location-list component will be associated with a map or scene component rather than using the `view` property.
41
41
  */
42
42
  accessor view: MapView | undefined;
43
43
  }
@@ -159,8 +159,8 @@ export abstract class ArcgisUtilityNetworkTraceResults extends LitElement {
159
159
  accessor traceResultFeatures: Graphic[];
160
160
  accessor utilityNetwork: UtilityNetwork | undefined;
161
161
  /**
162
- * The view associated with the component.
163
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-results component will be associated with a map or scene component rather than using the `view` property.
162
+ * The view associated with the component.
163
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-trace-results component will be associated with a map or scene component rather than using the `view` property.
164
164
  */
165
165
  accessor view: MapView | undefined;
166
166
  clearAggregatedGeometryGraphics(): void;
@@ -69,8 +69,8 @@ export abstract class ArcgisUtilityNetworkValidateTopology extends LitElement {
69
69
  */
70
70
  accessor utilityNetwork: UtilityNetwork | null | undefined;
71
71
  /**
72
- * The view associated with the component.
73
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-validate-topology component will be associated with a map or scene component rather than using the `view` property.
72
+ * The view associated with the component.
73
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-utility-network-validate-topology component will be associated with a map or scene component rather than using the `view` property.
74
74
  *
75
75
  * @since 4.27
76
76
  */
@@ -250,8 +250,8 @@ export abstract class ArcgisVideoPlayer extends LitElement {
250
250
  /** The current state of the component. */
251
251
  get state(): "error" | VideoState;
252
252
  /**
253
- * The view associated with the component.
254
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-video-player component will be associated with a map or scene component rather than using the `view` property.
253
+ * The view associated with the component.
254
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-video-player component will be associated with a map or scene component rather than using the `view` property.
255
255
  *
256
256
  * @example
257
257
  * // Set the video player view model's view to a map view.
@@ -392,8 +392,8 @@ export abstract class ArcgisVolumeMeasurement extends LitElement {
392
392
  */
393
393
  get state(): VolumeMeasurementState;
394
394
  /**
395
- * The view associated with the component.
396
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-volume-measurement component will be associated with a map or scene component rather than using the `view` property.
395
+ * The view associated with the component.
396
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-volume-measurement component will be associated with a map or scene component rather than using the `view` property.
397
397
  */
398
398
  accessor view: SceneView | undefined;
399
399
  /**
@@ -236,8 +236,8 @@ export abstract class ArcgisWeather extends LitElement {
236
236
  /** The current state of the component. */
237
237
  get state(): WeatherState;
238
238
  /**
239
- * The view associated with the component.
240
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-weather component will be associated with a map or scene component rather than using the `view` property.
239
+ * The view associated with the component.
240
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-weather component will be associated with a map or scene component rather than using the `view` property.
241
241
  */
242
242
  accessor view: SceneView | undefined;
243
243
  /** Permanently destroy the component. */
@@ -68,8 +68,8 @@ export abstract class ArcgisZoom extends LitElement {
68
68
  /** The current state of the component. */
69
69
  get state(): State;
70
70
  /**
71
- * The view associated with the component.
72
- * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-zoom component will be associated with a map or scene component rather than using the `view` property.
71
+ * The view associated with the component.
72
+ * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-zoom component will be associated with a map or scene component rather than using the `view` property.
73
73
  */
74
74
  accessor view: MapView | SceneView | undefined;
75
75
  /**
@@ -1,46 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as u } from "../../chunks/runtime.js";
3
- import { css as m, html as d } from "lit";
4
- import { when as h } from "@arcgis/core/core/reactiveUtils.js";
5
- import { LitElement as f, createEvent as i, nothing as r, safeClassMap as y } from "@arcgis/lumina";
6
- import { usePropertyChange as g } from "@arcgis/lumina/controllers";
7
- import { u as b } from "../../chunks/useT9n.js";
8
- import { u as p } from "../../chunks/useView.js";
2
+ import { c } from "../../chunks/runtime.js";
3
+ import { html as l } from "lit";
4
+ import { when as m } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as u, createEvent as a, nothing as e, safeClassMap as h } from "@arcgis/lumina";
6
+ import { usePropertyChange as d } from "@arcgis/lumina/controllers";
7
+ import { u as y } from "../../chunks/useT9n.js";
8
+ import { u as g } from "../../chunks/useView.js";
9
+ import { s as p, c as n, a as r } from "../../chunks/zoom.js";
9
10
  import { g as z } from "../../chunks/globalCss.js";
10
- function c(t) {
11
- if (!t)
12
- return !1;
13
- if (t.type === "3d")
14
- return t.ready;
15
- if (!t?.ready)
16
- return !1;
17
- const a = l(t), o = t.constraints?.effectiveMaxScale;
18
- return o === 0 || a > o;
19
- }
20
- function n(t) {
21
- if (!t)
22
- return !1;
23
- if (t.type === "3d")
24
- return t.ready;
25
- if (!t?.ready)
26
- return !1;
27
- const a = l(t), o = t.constraints?.effectiveMinScale;
28
- return o === 0 || a < o;
29
- }
30
- function l(t) {
31
- const e = t?.animation?.target;
32
- return (e && "then" in e ? void 0 : e?.scale) ?? t?.scale ?? 0;
33
- }
34
- const v = m`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;
35
- class x extends f {
11
+ class b extends u {
36
12
  constructor() {
37
- super(...arguments), this.messages = b({}), this._state = "disabled", this.view = p(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = i(), this.arcgisPropertyChange = g()("state"), this.arcgisReady = i();
13
+ super(...arguments), this.messages = y({}), this._state = "disabled", this.view = g(this), this.autoDestroyDisabled = !1, this.icon = "magnifying-glass-plus", this.layout = "vertical", this.visualScale = "m", this.arcgisActionZoom = a(), this.arcgisPropertyChange = d()("state"), this.arcgisReady = a();
38
14
  }
39
15
  static {
40
16
  this.properties = { _state: 16, view: 0, autoDestroyDisabled: 5, icon: 1, label: 1, layout: 3, messageOverrides: 0, referenceElement: 1, visualScale: 1, state: 32 };
41
17
  }
42
18
  static {
43
- this.styles = v;
19
+ this.styles = p;
44
20
  }
45
21
  get state() {
46
22
  return this._state;
@@ -56,24 +32,24 @@ class x extends f {
56
32
  }
57
33
  loaded() {
58
34
  this.manager.onLifecycle(() => [
59
- h(() => this.view?.ready ? "ready" : "disabled", (e) => {
60
- this._state = e;
35
+ m(() => this.view?.ready ? "ready" : "disabled", (o) => {
36
+ this._state = o;
61
37
  }, { sync: !0, initial: !0 })
62
38
  ]);
63
39
  }
64
- async zoomBy(e) {
65
- const { view: a } = this, o = e === 1;
66
- !(o ? c(a) : n(a)) || !a || (this.arcgisActionZoom.emit({ action: o ? "zoomIn" : "zoomOut" }), o ? await a.zoomIn() : await a.zoomOut());
40
+ async zoomBy(o) {
41
+ const { view: t } = this, s = o === 1;
42
+ !(s ? n(t) : r(t)) || !t || (this.arcgisActionZoom.emit({ action: s ? "zoomIn" : "zoomOut" }), s ? await t.zoomIn() : await t.zoomOut());
67
43
  }
68
44
  render() {
69
- const e = c(this.view), a = n(this.view), { zoomIn: o, zoomOut: s } = this.messages;
70
- return d`<div class=${y({
45
+ const o = n(this.view), t = r(this.view), { zoomIn: s, zoomOut: i } = this.messages;
46
+ return l`<div class=${h({
71
47
  [z.arcgisButton]: !0,
72
48
  horizontal: this.layout === "horizontal"
73
- })}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${o} @click=${this.zoomIn} .scale=${this.visualScale} title=${o ?? r}></calcite-button><calcite-button class="zoom-out" .disabled=${!a} icon-start=minus kind=neutral .label=${s} @click=${this.zoomOut} .scale=${this.visualScale} title=${s ?? r}></calcite-button></div>`;
49
+ })}><calcite-button class="zoom-in" .disabled=${!o} icon-start=plus kind=neutral .label=${s} @click=${this.zoomIn} .scale=${this.visualScale} title=${s ?? e}></calcite-button><calcite-button class="zoom-out" .disabled=${!t} icon-start=minus kind=neutral .label=${i} @click=${this.zoomOut} .scale=${this.visualScale} title=${i ?? e}></calcite-button></div>`;
74
50
  }
75
51
  }
76
- u("arcgis-zoom", x);
52
+ c("arcgis-zoom", b);
77
53
  export {
78
- x as ArcgisZoom
54
+ b as ArcgisZoom
79
55
  };
@@ -0,0 +1,3 @@
1
+ import type { UseT9n } from "@arcgis/lumina/controllers";
2
+
3
+ export const useT9n: UseT9n;