@arcgis/map-components 6.0.0-next.7 → 6.0.0-next.9

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 (82) hide show
  1. package/dist/cdn/4UDLUCTE.js +2 -0
  2. package/dist/cdn/5ITYFVDX.js +2 -0
  3. package/dist/cdn/{IDIAWXUO.js → 6XDLG2SC.js} +1 -1
  4. package/dist/cdn/7HS2SX6W.js +2 -0
  5. package/dist/cdn/7YHGGHJY.js +2 -0
  6. package/dist/cdn/{VOBRCUIE.js → BV6ID43I.js} +1 -1
  7. package/dist/cdn/CCBLZGVL.js +2 -0
  8. package/dist/cdn/{43ETXXS2.js → EVV5ZWO2.js} +1 -1
  9. package/dist/cdn/F4S2DPYN.js +2 -0
  10. package/dist/cdn/FMSA7336.js +2 -0
  11. package/dist/cdn/MSGW4PYB.js +2 -0
  12. package/dist/cdn/NUFSYQAJ.js +2 -0
  13. package/dist/cdn/{WO26ZR5Z.js → PIKYAUGU.js} +1 -1
  14. package/dist/cdn/{44CQCIZB.js → PSWXIEFK.js} +1 -1
  15. package/dist/cdn/QPW7LQT2.js +2 -0
  16. package/dist/cdn/QYUGC46B.js +2 -0
  17. package/dist/cdn/RK65HKUN.js +2 -0
  18. package/dist/cdn/SKP3TGF4.js +2 -0
  19. package/dist/cdn/U73UTEIN.js +2 -0
  20. package/dist/cdn/WJG5SEIL.js +2 -0
  21. package/dist/cdn/ZDTIOBXY.js +2 -0
  22. package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
  23. package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -1
  24. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/chunks/esri-main.js +1 -1
  27. package/dist/chunks/slots.js +1 -1
  28. package/dist/chunks/useArcgisViewReadyError.js +120 -106
  29. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
  30. package/dist/components/arcgis-editor/customElement.d.ts +10 -0
  31. package/dist/components/arcgis-editor/customElement.js +3 -0
  32. package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
  33. package/dist/components/arcgis-features/customElement.d.ts +1 -1
  34. package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
  35. package/dist/components/arcgis-features-next/customElement.js +102 -92
  36. package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
  37. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  38. package/dist/components/arcgis-link-chart/customElement.d.ts +20 -18
  39. package/dist/components/arcgis-link-chart/customElement.js +5 -5
  40. package/dist/components/arcgis-map/customElement.d.ts +22 -20
  41. package/dist/components/arcgis-map/customElement.js +9 -9
  42. package/dist/components/arcgis-measurement-content/customElement.js +6 -6
  43. package/dist/components/arcgis-popup/customElement.d.ts +2 -2
  44. package/dist/components/arcgis-popup/customElement.js +32 -28
  45. package/dist/components/arcgis-scene/customElement.d.ts +20 -18
  46. package/dist/components/arcgis-scene/customElement.js +9 -9
  47. package/dist/components/arcgis-slice/customElement.js +24 -24
  48. package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
  49. package/dist/components/arcgis-time-bar/customElement.js +24 -25
  50. package/dist/components/arcgis-time-bar-slider/customElement.js +46 -45
  51. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +16 -16
  52. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
  53. package/dist/components/arcgis-version-management/customElement.js +37 -37
  54. package/dist/components/arcgis-video/customElement.js +6 -6
  55. package/dist/components/arcgis-volume-measurement/customElement.js +62 -62
  56. package/dist/docs/api.json +1 -1
  57. package/dist/docs/docs.json +1 -1
  58. package/dist/docs/vscode.css-custom-data.json +1 -1
  59. package/dist/docs/vscode.html-custom-data.json +1 -1
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/loader.js +4 -4
  62. package/dist/types/lumina.d.ts +3 -3
  63. package/dist/types/preact.d.ts +3 -3
  64. package/dist/types/react.d.ts +3 -3
  65. package/dist/types/stencil.d.ts +3 -3
  66. package/package.json +6 -6
  67. package/dist/cdn/2BGZVOT3.js +0 -2
  68. package/dist/cdn/7FCZLFJD.js +0 -2
  69. package/dist/cdn/CBVICP6P.js +0 -2
  70. package/dist/cdn/EZCHUWDK.js +0 -2
  71. package/dist/cdn/KLVBRTYU.js +0 -2
  72. package/dist/cdn/KPUEQZ7O.js +0 -2
  73. package/dist/cdn/PGK2ZJCX.js +0 -2
  74. package/dist/cdn/PJ5OUPGO.js +0 -2
  75. package/dist/cdn/R5TCWJ6V.js +0 -2
  76. package/dist/cdn/SNNAV3AS.js +0 -2
  77. package/dist/cdn/W6PA72LV.js +0 -2
  78. package/dist/cdn/WQI5PKS4.js +0 -2
  79. package/dist/cdn/XCTPKDKL.js +0 -2
  80. package/dist/cdn/YFTQR2WS.js +0 -2
  81. package/dist/cdn/Z3W7LQ5M.js +0 -2
  82. package/dist/cdn/ZFO3PVZQ.js +0 -2
@@ -1,16 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as p } from "../../chunks/runtime.js";
2
+ import { c as l } from "../../chunks/runtime.js";
3
3
  import { html as a } from "lit";
4
- import l from "@arcgis/core/Camera.js";
4
+ import p from "@arcgis/core/Camera.js";
5
5
  import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import v from "@arcgis/core/geometry/Point.js";
7
7
  import u from "@arcgis/core/views/SceneView.js";
8
8
  import g from "@arcgis/core/WebScene.js";
9
9
  import { LitElement as d, createEvent as r, safeClassMap as o } from "@arcgis/lumina";
10
10
  import { reEmitEvent as t } from "@arcgis/lumina-toolkit/reEmitEvent";
11
- import { makeAccessorController as w, reCreateAccessor as y } from "@arcgis/lumina-toolkit/useAccessor";
11
+ import { makeAccessorController as w, reCreateAccessor as f } from "@arcgis/lumina-toolkit/useAccessor";
12
12
  import { createRef as n, ref as h } from "lit/directives/ref.js";
13
- import { U as f, u as b, a as V, b as C } from "../../chunks/useArcgisViewReadyError.js";
13
+ import { U as y, u as b, a as V, b as C } from "../../chunks/useArcgisViewReadyError.js";
14
14
  import { s as _ } from "../../chunks/esri-main.js";
15
15
  import { s as E } from "../../chunks/slots.js";
16
16
  import { C as c } from "../../chunks/resources.js";
@@ -18,12 +18,12 @@ import { d as R, e as P, b as A, c as M, p as D, i as I } from "../../chunks/com
18
18
  const S = w(g, {}), k = w(u, {});
19
19
  class F extends d {
20
20
  constructor() {
21
- super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = S(this), this.view = k(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.focusRegionEnabled = this.view.focusRegionEnabled, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.viewingMode = this.view.viewingMode, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = t(() => this.view, "focus-region-select"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), C(this), this.view.ui = {
21
+ super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new y(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = S(this), this.view = k(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, this.autoDestroyDisabled = !1, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.clippingArea = this.view.clippingArea, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.environment = this.view.environment, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.groundView = this.view.groundView, this.highlights = this.view.highlights, this.layerViews = this.view.layerViews, this.magnifier = this.view.magnifier, this.map = this.view.map, this.navigation = this.view.navigation, this.options = this.view.options, this.padding = this.view.padding, this.popup = this.view.popup, this.popupDisabled = this.view.popupEnabled, this.popupComponentEnabled = !1, this.qualityProfile = this.view.qualityProfile, this.ready = this.view.ready, this.selectionManager = this.view.selectionManager, this.focusRegionVisible = this.view.focusRegionVisible, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.viewingMode = this.view.viewingMode, this.arcgisViewAnalysisViewCreate = t(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = t(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = t(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = t(() => this.view, "click"), this.arcgisViewDoubleClick = t(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = t(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = t(() => this.view, "focus-region-select"), this.arcgisViewDrag = t(() => this.view, "drag"), this.arcgisViewHold = t(() => this.view, "hold"), this.arcgisViewImmediateClick = t(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = t(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = t(() => this.view, "key-down"), this.arcgisViewKeyUp = t(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = t(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = t(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = t(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = t(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = t(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = t(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = t(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = t(() => this.view, "pointer-move"), this.arcgisViewPointerUp = t(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = t(() => this.view, "vertical-two-finger-drag"), C(this), this.view.ui = {
22
22
  components: []
23
23
  };
24
24
  }
25
25
  static {
26
- this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, focusRegionEnabled: 5, focusRegion: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
26
+ this.properties = { _map: 16, aria: 0, view: 32, allLayerViews: 32, alphaCompositingEnabled: 5, analyses: 0, animationsDisabled: 5, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, basemap: 1, basemapView: 0, camera: 0, cameraFov: 9, cameraHeading: 9, cameraPosition: 1, cameraTilt: 9, canZoomIn: 36, canZoomOut: 36, center: 1, clippingArea: 0, constraints: 0, displayFilterDisabled: 5, environment: 0, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, groundView: 32, hideAttribution: 5, highlights: 0, interacting: 32, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, focusRegionVisible: 5, focusRegionShortcutEnabled: 5, focusRegion: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
27
27
  }
28
28
  static {
29
29
  this.styles = [_, E];
@@ -133,7 +133,7 @@ class F extends d {
133
133
  return this._map.portalItem?.id;
134
134
  }
135
135
  set itemId(i) {
136
- y(this._map, this), this._map.portalItem = { id: i }, this.view.map = this._map;
136
+ f(this._map, this), this._map.portalItem = { id: i }, this.view.map = this._map;
137
137
  }
138
138
  get navigating() {
139
139
  return this.view.navigating;
@@ -242,7 +242,7 @@ class F extends d {
242
242
  i(this._cameraProperties);
243
243
  return;
244
244
  }
245
- const e = this.view.camera?.clone() ?? new l();
245
+ const e = this.view.camera?.clone() ?? new p();
246
246
  i(e), this.camera = e;
247
247
  }
248
248
  renderMain() {
@@ -252,7 +252,7 @@ class F extends d {
252
252
  return a`${this.renderMain()}<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
253
253
  }
254
254
  }
255
- p("arcgis-scene", F);
255
+ l("arcgis-scene", F);
256
256
  export {
257
257
  F as ArcgisScene
258
258
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as w } from "../../chunks/runtime.js";
3
3
  import { css as y, html as r } from "lit";
4
- import { ignoreAbortErrors as f } from "@arcgis/core/core/promiseUtils.js";
4
+ import { ignoreAbortErrors as v } from "@arcgis/core/core/promiseUtils.js";
5
5
  import { watch as b } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { LitElement as _, createEvent as L, safeClassMap as k, nothing as z } from "@arcgis/lumina";
7
7
  import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
@@ -12,11 +12,11 @@ import { g as h } from "../../chunks/globalCss.js";
12
12
  import V from "@arcgis/core/analysis/SliceAnalysis.js";
13
13
  import { property as d, subclass as C } from "@arcgis/core/core/accessorSupport/decorators.js";
14
14
  import { A as D } from "../../chunks/AnalysisViewModel.js";
15
- const G = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:var(--arcgis-internal-panel-width, 300px);max-width:100%}.root{min-width:var(--arcgis-internal-panel-min-width);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}.container{display:flex;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`;
16
- var A = Object.defineProperty, j = Object.getOwnPropertyDescriptor, n = (e, i, t, s) => {
17
- for (var a = s > 1 ? void 0 : s ? j(i, t) : i, l = e.length - 1, c; l >= 0; l--)
18
- (c = e[l]) && (a = (s ? c(i, t, a) : c(a)) || a);
19
- return s && a && A(i, t, a), a;
15
+ const G = y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{width:var(--arcgis-internal-panel-width, 300px);max-width:100%}.root{min-width:var(--arcgis-internal-panel-min-width);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}.container{display:flex;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`;
16
+ var A = Object.defineProperty, j = Object.getOwnPropertyDescriptor, l = (e, i, t, n) => {
17
+ for (var a = n > 1 ? void 0 : n ? j(i, t) : i, s = e.length - 1, c; s >= 0; s--)
18
+ (c = e[s]) && (a = (n ? c(i, t, a) : c(a)) || a);
19
+ return n && a && A(i, t, a), a;
20
20
  };
21
21
  const u = /* @__PURE__ */ new Set();
22
22
  let o = class extends D {
@@ -34,7 +34,7 @@ let o = class extends D {
34
34
  });
35
35
  this._excludingLayers = i;
36
36
  try {
37
- await f(i);
37
+ await v(i);
38
38
  } finally {
39
39
  this._excludingLayers === i && (this._excludingLayers = void 0);
40
40
  }
@@ -91,25 +91,25 @@ let o = class extends D {
91
91
  return new V();
92
92
  }
93
93
  };
94
- n([
94
+ l([
95
95
  d()
96
96
  ], o.prototype, "_excludingLayers", 2);
97
- n([
97
+ l([
98
98
  d({ readOnly: !0 })
99
99
  ], o.prototype, "state", 1);
100
- n([
100
+ l([
101
101
  d()
102
102
  ], o.prototype, "shape", 1);
103
- n([
103
+ l([
104
104
  d()
105
105
  ], o.prototype, "tiltEnabled", 1);
106
- n([
106
+ l([
107
107
  d()
108
108
  ], o.prototype, "excludedLayers", 1);
109
- n([
109
+ l([
110
110
  d()
111
111
  ], o.prototype, "excludeGroundSurface", 1);
112
- o = n([
112
+ o = l([
113
113
  C("esri.components.Slice.SliceViewModel")
114
114
  ], o);
115
115
  const T = o, O = S(T);
@@ -137,7 +137,7 @@ class P extends _ {
137
137
  await this.manager.destroy();
138
138
  }
139
139
  async start() {
140
- f(this.viewModel.start());
140
+ v(this.viewModel.start());
141
141
  }
142
142
  load() {
143
143
  this.manager.onLifecycle(() => [
@@ -152,24 +152,24 @@ class P extends _ {
152
152
  })} role=presentation>${this._renderContainerNode()}</div>`;
153
153
  }
154
154
  _renderContainerNode() {
155
- const i = this._messages, { state: t, hideVisualization: s, supported: a } = this.viewModel, l = t === "slicing" || t === "excludingLayer";
156
- if (s || !a)
155
+ const i = this._messages, { state: t, hideVisualization: n, supported: a } = this.viewModel, s = t === "slicing" || t === "excludingLayer";
156
+ if (n || !a)
157
157
  return null;
158
158
  a || r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;
159
- const { excludedLayers: c } = this.viewModel, p = this.excludeGroundSurface, x = c.length > 0 || p, g = t === "disabled";
160
- return r`<div class="container"><div class="hint">${t === "excludingLayer" ? r`<p class="hint-text">${i.excludeHint}</p>` : null}${t === "slicing" ? r`<p class="hint-text">${this._hasVoxelLayers ? i.voxelHint : i.hint}</p><p class="hint-text">${i.verticalHint}</p>` : null}</div>${!l && x ? r`<div class="layer-list">${E({ class: "layer-list-title", level: this.headingLevel, children: i.excludedLayers })}${H({ layers: c.toArray(), excludeGroundSurface: p, onLayerClick: (m) => {
161
- this.excludedLayers.remove(m);
159
+ const { excludedLayers: c } = this.viewModel, p = this.excludeGroundSurface, m = c.length > 0 || p, g = t === "disabled";
160
+ return r`<div class="container"><div class="hint">${t === "excludingLayer" ? r`<p class="hint-text">${i.excludeHint}</p>` : null}${t === "slicing" ? r`<p class="hint-text">${this._hasVoxelLayers ? i.voxelHint : i.hint}</p><p class="hint-text">${i.verticalHint}</p>` : null}</div>${!s && m ? r`<div class="layer-list">${E({ class: "layer-list-title", level: this.headingLevel, children: i.excludedLayers })}${H({ layers: c.toArray(), excludeGroundSurface: p, onLayerClick: (x) => {
161
+ this.excludedLayers.remove(x);
162
162
  }, onGroundClick: () => {
163
163
  this.excludeGroundSurface = !1;
164
- }, listLabel: i.excludedLayers, layerActionLabel: i.includeLayer, groundItemTitle: i.ground })}</div>` : null}<div class="actions">${!l && !this.hideStartButton ? r`<calcite-button class="new-slice-button" .disabled=${g || this.interactionDisabled} @click=${this.start}>${i.newSlice}</calcite-button>` : null}${t === "sliced" ? r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g || this.interactionDisabled} @click=${() => this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>` : null}${t === "excludingLayer" ? r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${() => this.viewModel.stop()}>${i.cancel}</calcite-button>` : null}</div></div>`;
164
+ }, listLabel: i.excludedLayers, layerActionLabel: i.includeLayer, groundItemTitle: i.ground })}</div>` : null}<div class="actions">${!s && !this.hideStartButton ? r`<calcite-button class="new-slice-button" .disabled=${g || this.interactionDisabled} @click=${this.start}>${i.newSlice}</calcite-button>` : null}${t === "sliced" ? r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g || this.interactionDisabled} @click=${() => this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>` : null}${t === "excludingLayer" ? r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${() => this.viewModel.stop()}>${i.cancel}</calcite-button>` : null}</div></div>`;
165
165
  }
166
166
  }
167
- function v(e) {
167
+ function f(e) {
168
168
  return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title ?? ""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel ?? z}></calcite-action></calcite-list-item>`;
169
169
  }
170
170
  function H(e) {
171
- const i = e.layers.map((t) => v({ uid: t.uid, title: t.title ?? "", onClick: () => e.onLayerClick(t), actionLabel: e.layerActionLabel }));
172
- return e.excludeGroundSurface && i.push(v({ uid: "ground", title: e.groundItemTitle, onClick: e.onGroundClick, actionLabel: e.layerActionLabel })), r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`;
171
+ const i = e.layers.map((t) => f({ uid: t.uid, title: t.title ?? "", onClick: () => e.onLayerClick(t), actionLabel: e.layerActionLabel }));
172
+ return e.excludeGroundSurface && i.push(f({ uid: "ground", title: e.groundItemTitle, onClick: e.onGroundClick, actionLabel: e.layerActionLabel })), r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`;
173
173
  }
174
174
  w("arcgis-slice", P);
175
175
  export {
@@ -218,7 +218,7 @@ export abstract class ArcgisTableListNext extends LitElement {
218
218
  *
219
219
  * // Wait for the layer to load and the item title to become available
220
220
  * await item.layer.when();
221
- *
221
+ *
222
222
  * // If the item's title matches "US Demographics", customize the list item
223
223
  * if (item.title === "US Demographics") {
224
224
  * // open the list item in the LayerList component
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as q } from "../../chunks/runtime.js";
3
- import { css as H, html as p, nothing as _ } from "lit";
3
+ import { css as H, html as p, nothing as b } from "lit";
4
4
  import j from "@arcgis/core/core/Accessor.js";
5
5
  import f from "@arcgis/core/time/TimeExtent.js";
6
6
  import L from "@arcgis/core/webdoc/widgets/TimeSlider.js";
@@ -22,7 +22,7 @@ import { useDirection as vt, usePropertyChange as gt } from "@arcgis/lumina/cont
22
22
  import { u as ft } from "../../chunks/useT9n.js";
23
23
  const z = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap();
24
24
  function yt(t) {
25
- const { locale: e, formatOptions: a } = t, n = _t(a), c = new Intl.DateTimeFormat(e, n);
25
+ const { locale: e, formatOptions: a } = t, n = bt(a), c = new Intl.DateTimeFormat(e, n);
26
26
  return z.set(t, c), c;
27
27
  }
28
28
  function wt(t) {
@@ -32,10 +32,10 @@ function wt(t) {
32
32
  function xt(t) {
33
33
  return z.get(t) ?? yt(t);
34
34
  }
35
- function bt(t) {
35
+ function _t(t) {
36
36
  return W.get(t) ?? wt(t);
37
37
  }
38
- function _t(t) {
38
+ function bt(t) {
39
39
  return t.timeZone ? {
40
40
  ...t,
41
41
  timeZone: st(t.timeZone)
@@ -189,13 +189,13 @@ let o = class extends j {
189
189
  const { dates: n } = e;
190
190
  if (!n?.length)
191
191
  return;
192
- const c = n.sort(($, b) => $.getTime() - b.getTime());
192
+ const c = n.sort(($, _) => $.getTime() - _.getTime());
193
193
  if (!t?.start || !t?.end)
194
194
  return c;
195
195
  const { start: h, end: u } = t, y = h.getTime(), v = u.getTime();
196
196
  return c.filter(($) => {
197
- const b = $.getTime();
198
- return b >= y && b <= v;
197
+ const _ = $.getTime();
198
+ return _ >= y && _ <= v;
199
199
  });
200
200
  }
201
201
  const a = e.timeExtent ?? t;
@@ -377,7 +377,7 @@ let o = class extends j {
377
377
  return xt({ locale: this.locale, formatOptions: e }).format(t);
378
378
  }
379
379
  _formatNumber(t, e) {
380
- return bt({ locale: this.locale, formatOptions: e }).format(t);
380
+ return _t({ locale: this.locale, formatOptions: e }).format(t);
381
381
  }
382
382
  //#endregion
383
383
  };
@@ -529,10 +529,10 @@ r([
529
529
  o = r([
530
530
  ct("components.time-bar.TimeBarViewModel")
531
531
  ], o);
532
- const Dt = H`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: var(--arcgis-view-corner-radius, 0px);--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}:host([floating]) .action-bar{--calcite-action-bar-shadow: var(--arcgis-internal-box-shadow)}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: none;--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`, Pt = pt(o);
532
+ const Dt = H`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}:host([floating]) .action-bar{--calcite-action-bar-shadow: var(--arcgis-internal-box-shadow)}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: none;--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`, Pt = pt(o);
533
533
  class kt extends ht {
534
534
  constructor() {
535
- super(...arguments), this._viewModel = Pt(this), this.messages = ft({ name: "time-bar", blocking: !0 }), this.#t = ut(), this.#e = vt(), this.#i = (e) => {
535
+ super(...arguments), this._direction = vt(), this._viewModel = Pt(this), this.messages = ft({ name: "time-bar", blocking: !0 }), this.#t = ut(), this.#e = (e) => {
536
536
  this._settingsActionElement = e;
537
537
  }, this.autoDestroyDisabled = !1, this.disabled = this._viewModel.disabled, this.effectiveStops = this._viewModel.effectiveStops, this.floating = !1, this.format = this._viewModel.format, this.fullTimeExtent = this._viewModel.fullTimeExtent, this.icon = "clock", this.loadPersistedSettingsDisabled = this._viewModel.loadPersistedSettingsDisabled, this.loop = this._viewModel.loop, this.mode = this._viewModel.mode, this.playRate = this._viewModel.playRate, this.reverseAnimation = this._viewModel.reverseAnimation, this.savePersistedSettingsDisabled = this._viewModel.savePersistedSettingsDisabled, this.showNext = !1, this.showPlay = !1, this.showPrevious = !1, this.showSettings = !1, this.showTimeExtent = !1, this.state = this._viewModel.state, this.stops = this._viewModel.stops, this.timeExtent = this._viewModel.timeExtent, this.timeZone = this._viewModel.timeZone, this.view = this._viewModel.view, this.arcgisPropertyChange = gt()("effectiveStops", "fullTimeExtent", "state", "timeExtent"), this.arcgisReady = mt();
538
538
  }
@@ -544,7 +544,6 @@ class kt extends ht {
544
544
  }
545
545
  #t;
546
546
  #e;
547
- #i;
548
547
  async applyTimeSettings(e) {
549
548
  this._viewModel.set(e);
550
549
  }
@@ -569,7 +568,7 @@ class kt extends ht {
569
568
  willUpdate(e) {
570
569
  e.has("messages") && (this._viewModel.locale = this.messages._lang);
571
570
  }
572
- #m(e) {
571
+ #h(e) {
573
572
  const { currentTarget: a } = e, n = (
574
573
  // prioritizes slotted element (if it exists)
575
574
  dt(a).at(0) ?? // fallback to default label
@@ -577,7 +576,7 @@ class kt extends ht {
577
576
  );
578
577
  n && (n.messages = this.messages, n.viewModel = this._viewModel);
579
578
  }
580
- async #u() {
579
+ async #m() {
581
580
  switch (this.state) {
582
581
  case "disabled":
583
582
  case "playing":
@@ -587,33 +586,33 @@ class kt extends ht {
587
586
  }
588
587
  }
589
588
  render() {
590
- return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-toggle-disabled .floating=${this.floating} overflow-mode=none>${this.#e === "ltr" ? p`${this.#s()}${this.#n()}${this.#h()}${this.#c()}${this.#a()}` : p`${this.#s()}${this.#c()}${this.#h()}${this.#n()}${this.#a()}`}</calcite-action-bar></div>`;
589
+ return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-toggle-disabled .floating=${this.floating} overflow-mode=none>${this._direction === "ltr" ? p`${this.#i()}${this.#a()}${this.#c()}${this.#l()}${this.#s()}` : p`${this.#i()}${this.#l()}${this.#c()}${this.#a()}${this.#s()}`}</calcite-action-bar></div>`;
591
590
  }
592
- #s() {
591
+ #i() {
593
592
  return this.showNext || this.showPlay || this.showPrevious || this.showTimeExtent || this.showSettings ? null : p`<calcite-action disabled .text=${this.messages.componentLabel} text-enabled></calcite-action>`;
594
593
  }
595
- #a() {
594
+ #s() {
596
595
  return p`<slot name=actions-end slot=actions-end></slot>`;
597
596
  }
597
+ #a() {
598
+ return this.showPrevious || this.showPlay || this.showNext ? p`<calcite-action-group>${this._direction === "ltr" ? p`${this.#o()}${this.#r()}${this.#n()}` : p`${this.#n()}${this.#r()}${this.#o()}`}</calcite-action-group>` : null;
599
+ }
598
600
  #n() {
599
- return this.showPrevious || this.showPlay || this.showNext ? p`<calcite-action-group>${this.#e === "ltr" ? p`${this.#r()}${this.#l()}${this.#o()}` : p`${this.#o()}${this.#l()}${this.#r()}`}</calcite-action-group>` : null;
601
+ return this.showNext ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing" || !this.loop && !this._viewModel.canNext} icon=forward @click=${this.next} .text=${this.messages.next} title=${this.messages.next ?? b}></calcite-action>` : null;
600
602
  }
601
603
  #o() {
602
- return this.showNext ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing" || !this.loop && !this._viewModel.canNext} icon=forward @click=${this.next} .text=${this.messages.next} title=${this.messages.next ?? _}></calcite-action>` : null;
604
+ return this.showPlay ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length} .icon=${this.state === "playing" ? "pause-f" : "play-f"} @click=${this.#m} .text=${this.state === "playing" ? this.messages.stop : this.messages.play} title=${(this.state === "playing" ? this.messages.stop : this.messages.play) ?? b}></calcite-action>` : null;
603
605
  }
604
606
  #r() {
605
- return this.showPlay ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length} .icon=${this.state === "playing" ? "pause-f" : "play-f"} @click=${this.#u} .text=${this.state === "playing" ? this.messages.stop : this.messages.play} title=${(this.state === "playing" ? this.messages.stop : this.messages.play) ?? _}></calcite-action>` : null;
607
+ return this.showPrevious ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing" || !this.loop && !this._viewModel.canPrevious} icon=reverse @click=${this.previous} .text=${this.messages.previous} title=${this.messages.previous ?? b}></calcite-action>` : null;
606
608
  }
607
609
  #l() {
608
- return this.showPrevious ? p`<calcite-action .disabled=${this._viewModel.isOutOfRange || !this._viewModel.interactive || !this.effectiveStops?.length || this.state === "playing" || !this.loop && !this._viewModel.canPrevious} icon=reverse @click=${this.previous} .text=${this.messages.previous} title=${this.messages.previous ?? _}></calcite-action>` : null;
609
- }
610
- #c() {
611
- return this.showSettings ? p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal title=${this.messages.settings ?? _} ${I(this.#i)}></calcite-action>${this._settingsActionElement ? p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${() => {
610
+ return this.showSettings ? p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal title=${this.messages.settings ?? b} ${I(this.#e)}></calcite-action>${this._settingsActionElement ? p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${() => {
612
611
  this.#t.value?.navigateToOverview();
613
612
  }} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings .autoDestroyDisabled=${this.autoDestroyDisabled} class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${I(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>` : void 0}</calcite-action-group>` : null;
614
613
  }
615
- #h() {
616
- return this.showTimeExtent ? p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} class="label" .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>` : null;
614
+ #c() {
615
+ return this.showTimeExtent ? p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#h}><arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} class="label" .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>` : null;
617
616
  }
618
617
  }
619
618
  q("arcgis-time-bar", kt);
@@ -1,13 +1,14 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
- import { css as m, html as r } from "lit";
3
+ import { css as m, html as a } from "lit";
4
4
  import { ref as u } from "lit/directives/ref.js";
5
5
  import l from "@arcgis/core/time/TimeExtent.js";
6
- import { LitElement as h, nothing as v, safeClassMap as g } from "@arcgis/lumina";
7
- const w = m`: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;--arcgis-internal-time-bar-slider-tick-gap: 100}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{padding-inline:var(--calcite-spacing-md);--labels-container-width: 100%}.slider-container{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%;arcgis-ticks,>slot::slotted(arcgis-ticks){inset:0;position:absolute;white-space:nowrap;--arcgis-ticks-font-weight: var(--calcite-font-weight-normal);--arcgis-ticks-label-width: auto;--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}}.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)}.lock-time-window{--arcgis-internal-time-bar-slider-border-margin: calc(var(--calcite-spacing-base) + 1px);border-image:linear-gradient(transparent var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--arcgis-internal-time-bar-slider-border-margin)),transparent var(--arcgis-internal-time-bar-slider-border-margin));border-image-slice:1;border-inline-end-style:solid;border-inline-end-width:var(--calcite-border-width-sm);padding-inline-end:var(--calcite-spacing-sm)}`;
8
- class p extends h {
6
+ import { LitElement as h, nothing as g, safeClassMap as v } from "@arcgis/lumina";
7
+ import { useDirection as w } from "@arcgis/lumina/controllers";
8
+ const p = m`: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;--arcgis-internal-time-bar-slider-tick-gap: 100}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{padding-inline:var(--calcite-spacing-xl);--arcgis-internal-slider-track-size: var(--calcite-size-px);--arcgis-slider-track-background-color: var(--calcite-color-border-1);--labels-container-width: 100%}.slider-container{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}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%;arcgis-ticks,>slot::slotted(arcgis-ticks){inset:0;position:absolute;white-space:nowrap;--arcgis-internal-ticks-color: var(--calcite-color-text-1);--arcgis-ticks-font-weight: var(--calcite-font-weight-normal);--arcgis-ticks-label-width: auto;--arcgis-ticks-tick-color: var(--calcite-color-border-1);--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}}.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)}.lock-time-window{--arcgis-internal-time-bar-slider-border-margin: calc(var(--calcite-spacing-base) + 1px);border-image:linear-gradient(transparent var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--arcgis-internal-time-bar-slider-border-margin)),transparent var(--arcgis-internal-time-bar-slider-border-margin));border-image-slice:1}:dir(ltr){.lock-time-window{border-inline-end-style:solid;border-inline-end-width:var(--calcite-border-width-sm);margin-inline-end:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}}:dir(rtl){.lock-time-window{border-inline-start-style:solid;border-inline-start-width:var(--calcite-border-width-sm);margin-inline-start:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm)}}`;
9
+ class f extends h {
9
10
  constructor() {
10
- super(...arguments), this.#t = new ResizeObserver(([e]) => {
11
+ super(...arguments), this._direction = w(), this.#t = new ResizeObserver(([e]) => {
11
12
  this._sliderWidth = e.contentRect.width;
12
13
  }), this.#a = 100, this.#r = 100, this.#n = (e, i) => i === "value" ? this.viewModel?.formatDateTime(new Date(e)) : void 0, this.autoDestroyDisabled = !1, this.lockTimeWindow = !1, this.popoverDisplay = "none", this.showLockTimeWindow = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1;
13
14
  }
@@ -15,7 +16,7 @@ class p extends h {
15
16
  this.properties = { _activeValue: 16, _sliderFillPlacement: 16, _sliderWidth: 16, _timeExtentEpochValues: 16, activeValue: 32, autoDestroyDisabled: 5, lockTimeWindow: 5, messages: 0, popoverDisplay: 1, showLockTimeWindow: 5, showMax: 5, showMin: 5, showTicks: 5, viewModel: 0 };
16
17
  }
17
18
  static {
18
- this.styles = w;
19
+ this.styles = p;
19
20
  }
20
21
  #t;
21
22
  #i;
@@ -46,8 +47,8 @@ class p extends h {
46
47
  const { start: t, end: s } = i;
47
48
  if (!t || !s)
48
49
  return;
49
- const { timeExtent: a } = e;
50
- if (!a)
50
+ const { timeExtent: r } = e;
51
+ if (!r)
51
52
  switch (e.mode) {
52
53
  case "cumulative-from-end":
53
54
  case "instant":
@@ -57,7 +58,7 @@ class p extends h {
57
58
  case "time-window":
58
59
  return [t.getTime(), s.getTime()];
59
60
  }
60
- const { start: o, end: n } = a;
61
+ const { start: o, end: n } = r;
61
62
  switch (e.mode) {
62
63
  case "cumulative-from-end":
63
64
  case "instant":
@@ -88,7 +89,7 @@ class p extends h {
88
89
  async destroy() {
89
90
  await this.manager.destroy();
90
91
  }
91
- #o() {
92
+ #m() {
92
93
  return (e) => {
93
94
  if (e) {
94
95
  this.#e = e, this.#t.observe(e);
@@ -97,28 +98,28 @@ class p extends h {
97
98
  this.#e && (this.#t.unobserve(this.#e), this.#e = void 0);
98
99
  };
99
100
  }
100
- #l() {
101
+ #u() {
101
102
  const e = Number.parseInt(window.getComputedStyle(this.el).getPropertyValue("--arcgis-internal-time-bar-slider-tick-gap"), 10);
102
103
  return Number.isFinite(e) && e > 0 ? e : this.#a;
103
104
  }
104
- #c(e, i) {
105
- const { viewModel: t } = this, { start: s, end: a } = e;
106
- if (!t || !s || !a)
105
+ #h(e, i) {
106
+ const { viewModel: t } = this, { start: s, end: r } = e;
107
+ if (!t || !s || !r)
107
108
  return;
108
- const n = (a.getTime() - s.getTime()) / i;
109
- return t.tickFormats.find(({ duration: c }) => c > this.#l() * n) ?? t.tickFormats.at(-1);
109
+ const n = (r.getTime() - s.getTime()) / i;
110
+ return t.tickFormats.find(({ duration: c }) => c > this.#u() * n) ?? t.tickFormats.at(-1);
110
111
  }
111
- #d() {
112
+ #g() {
112
113
  this.lockTimeWindow = !this.lockTimeWindow;
113
114
  }
114
- #m(e) {
115
+ #v(e) {
115
116
  this._activeValue = e.target.activeValue;
116
117
  }
117
- #u(e) {
118
+ #w(e) {
118
119
  const { viewModel: i } = this, t = i?.mode;
119
- t && (i.timeExtent = this.#h(e.target.values, t), this._activeValue = e.target.activeValue);
120
+ t && (i.timeExtent = this.#p(e.target.values, t), this._activeValue = e.target.activeValue);
120
121
  }
121
- #h([e, i], t) {
122
+ #p([e, i], t) {
122
123
  switch (t) {
123
124
  case "cumulative-from-end":
124
125
  return new l({ start: new Date(e), end: null });
@@ -130,25 +131,25 @@ class p extends h {
130
131
  return new l({ start: new Date(e), end: new Date(i ?? e) });
131
132
  }
132
133
  }
133
- #v() {
134
+ #o() {
134
135
  const { messages: e, showLockTimeWindow: i, viewModel: t } = this;
135
136
  if (!e || !i || !t)
136
137
  return null;
137
- const s = this.lockTimeWindow ? "lock" : "unlock", a = this.lockTimeWindow ? e.unlockTimeWindow : e.lockTimeWindow;
138
- return r`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${t.disabled || t.mode !== "time-window"} .icon=${s} @click=${this.#d} .text=${a} title=${a ?? v}></calcite-action>`;
138
+ const s = this.lockTimeWindow ? "lock" : "unlock", r = this.lockTimeWindow ? e.unlockTimeWindow : e.lockTimeWindow;
139
+ return a`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${t.disabled || t.mode !== "time-window"} .icon=${s} @click=${this.#g} .text=${r} title=${r ?? g}></calcite-action>`;
139
140
  }
140
- #g() {
141
+ #l() {
141
142
  const e = this.viewModel?.fullTimeExtent?.end;
142
- return this.showMax && e ? r`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : r`<div class="hidden"></div>`;
143
+ return this.showMax && e ? a`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : a`<div class="hidden"></div>`;
143
144
  }
144
- #w() {
145
+ #c() {
145
146
  const e = this.viewModel?.fullTimeExtent?.start;
146
- return this.showMin && e ? r`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : r`<div class="hidden"></div>`;
147
- }
148
- #p() {
149
- return this.popoverDisplay !== "none" ? r`<div class="popover" slot=popover><slot name=popover>${this.#f()}</slot></div>` : null;
147
+ return this.showMin && e ? a`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : a`<div class="hidden"></div>`;
150
148
  }
151
149
  #f() {
150
+ return this.popoverDisplay !== "none" ? a`<div class="popover" slot=popover><slot name=popover>${this.#b()}</slot></div>` : null;
151
+ }
152
+ #b() {
152
153
  const { activeValue: e, messages: i, viewModel: t } = this;
153
154
  if (!e || !i || !t)
154
155
  return null;
@@ -156,37 +157,37 @@ class p extends h {
156
157
  case "cumulative-from-end":
157
158
  case "instant":
158
159
  const s = t.timeExtent?.start;
159
- return s ? r`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${s} .viewModel=${t}></arcgis-time-bar-date>` : null;
160
+ return s ? a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${s} .viewModel=${t}></arcgis-time-bar-date>` : null;
160
161
  case "cumulative-from-start":
161
- const a = t.timeExtent?.end;
162
- return a ? r`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${a} .viewModel=${t}></arcgis-time-bar-date>` : null;
162
+ const r = t.timeExtent?.end;
163
+ return r ? a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${r} .viewModel=${t}></arcgis-time-bar-date>` : null;
163
164
  case "time-window":
164
- return e instanceof Date ? r`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>` : r`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`;
165
+ return e instanceof Date ? a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>` : a`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`;
165
166
  }
166
167
  }
167
- #b() {
168
+ #d() {
168
169
  const { messages: e, viewModel: i } = this;
169
170
  if (!i?.fullTimeExtent?.start || !i?.fullTimeExtent?.end || !e)
170
171
  return null;
171
- const t = this.#c(i.fullTimeExtent, this._sliderWidth ?? this.#r);
172
+ const t = this.#h(i.fullTimeExtent, this._sliderWidth ?? this.#r);
172
173
  if (!t)
173
174
  return null;
174
175
  (!this.#i || !this.#s || this.#i !== t) && (this.#i = t, this.#s = i.getTickValues(t.timeInterval), i.tickFormat = t.format);
175
- const s = i.fullTimeExtent.start.getTime(), a = i.fullTimeExtent.end.getTime();
176
- return r`<div class="slider-container" ${u(this.#o())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${g({
176
+ const s = i.fullTimeExtent.start.getTime(), r = i.fullTimeExtent.end.getTime();
177
+ return a`<div class="slider-container" ${u(this.#m())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${v({
177
178
  slider: !0,
178
179
  "slider--has-ticks": this.showTicks,
179
180
  "slider--out-of-range": i.isOutOfRange
180
- })} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#n} .max=${a} .min=${s} @arcgisActiveValueChange=${this.#m} @arcgisInput=${this.#u} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay === "none" ? "auto" : this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#p()}${this.#T(i, s, a)}</arcgis-slider></div>`;
181
+ })} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#n} .max=${r} .min=${s} @arcgisActiveValueChange=${this.#v} @arcgisInput=${this.#w} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay === "none" ? "auto" : this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#f()}${this.#k(i, s, r)}</arcgis-slider></div>`;
181
182
  }
182
- #T(e, i, t) {
183
- return this.showTicks ? r`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${this.#s}></arcgis-ticks></slot></div>` : null;
183
+ #k(e, i, t) {
184
+ return this.showTicks ? a`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${this.#s}></arcgis-ticks></slot></div>` : null;
184
185
  }
185
186
  render() {
186
- return r`<div class="root">${this.#v()}${this.#w()}${this.#b()}${this.#g()}</div>`;
187
+ return a`<div class="root">${this._direction === "ltr" ? a`${this.#o()}${this.#c()}${this.#d()}${this.#l()}` : a`${this.#l()}${this.#d()}${this.#c()}${this.#o()}`}</div>`;
187
188
  }
188
189
  }
189
- d("arcgis-time-bar-slider", p);
190
+ d("arcgis-time-bar-slider", f);
190
191
  export {
191
- p as ArcgisTimeBarSlider
192
+ f as ArcgisTimeBarSlider
192
193
  };