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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cdn/5DNVHLO6.js +2 -0
  2. package/dist/cdn/5T3MHTWU.js +2 -0
  3. package/dist/cdn/{AOC4VUP6.js → 6OOQ7GIC.js} +1 -1
  4. package/dist/cdn/{A7P3DUN2.js → 7DIC4O5E.js} +1 -1
  5. package/dist/cdn/ABPHGXQN.js +2 -0
  6. package/dist/cdn/BMQSD7CZ.js +2 -0
  7. package/dist/cdn/CZXCSL3K.js +2 -0
  8. package/dist/cdn/{6BUPJWLA.js → J2IWIVXJ.js} +1 -1
  9. package/dist/cdn/L34RL7Y3.js +2 -0
  10. package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
  11. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  12. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  13. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  14. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  15. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  16. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  17. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  18. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  19. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  20. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  21. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  22. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  23. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  24. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  25. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  26. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  27. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  28. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  29. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  30. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  31. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  32. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  33. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  34. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  51. package/dist/cdn/index.js +1 -1
  52. package/dist/cdn/main.css +1 -1
  53. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  54. package/dist/components/arcgis-daylight/customElement.js +34 -27
  55. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +20 -20
  56. package/dist/components/arcgis-feature-table/customElement.js +27 -27
  57. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  58. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  59. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  60. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  61. package/dist/components/arcgis-feature-templates/index.js +13 -0
  62. package/dist/components/arcgis-features/customElement.d.ts +4 -17
  63. package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
  64. package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
  65. package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
  66. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
  67. package/dist/components/arcgis-link-chart/customElement.d.ts +27 -3
  68. package/dist/components/arcgis-map/customElement.d.ts +26 -2
  69. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
  70. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  71. package/dist/components/arcgis-paste/customElement.js +27 -38
  72. package/dist/components/arcgis-paste/index.js +1 -1
  73. package/dist/components/arcgis-popup/customElement.d.ts +13 -20
  74. package/dist/components/arcgis-scene/customElement.d.ts +26 -2
  75. package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +10 -10
  76. package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +6 -6
  77. package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +6 -6
  78. package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +10 -10
  79. package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +10 -10
  80. package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +10 -10
  81. package/dist/components/arcgis-slider-scale-range/customElement.js +16 -16
  82. package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +10 -10
  83. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  84. package/dist/components/arcgis-template-image/customElement.js +119 -0
  85. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  86. package/dist/components/arcgis-template-image/index.js +1 -0
  87. package/dist/components/arcgis-version-management/customElement.js +21 -20
  88. package/dist/components/arcgis-version-management/index.js +1 -0
  89. package/dist/docs/api.json +1 -1
  90. package/dist/docs/docs.json +1 -1
  91. package/dist/docs/vscode.html-custom-data.json +1 -1
  92. package/dist/docs/web-types.json +1 -1
  93. package/dist/index.d.ts +14 -0
  94. package/dist/loader.js +2 -0
  95. package/dist/types/lumina.d.ts +14 -0
  96. package/dist/types/preact.d.ts +16 -0
  97. package/dist/types/react.d.ts +18 -0
  98. package/dist/types/stencil.d.ts +14 -0
  99. package/package.json +5 -5
  100. package/dist/cdn/IBTOXDST.js +0 -2
  101. package/dist/cdn/PMZAIPWC.js +0 -2
  102. package/dist/cdn/RL5PFJGE.js +0 -2
  103. package/dist/cdn/YJCBT5VK.js +0 -2
@@ -135,10 +135,10 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
135
135
  * numBins: 30,
136
136
  * });
137
137
  *
138
- * slider.histogramConfig = {
139
- * bins: histogramResult.bins
140
- * };
141
- * ```
138
+ * slider.histogramConfig = {
139
+ * bins: histogramResult.bins
140
+ * };
141
+ * ```
142
142
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
143
143
  */
144
144
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -189,7 +189,7 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
189
189
  * }
190
190
  * return value.toFixed(0);
191
191
  * };
192
- * ```
192
+ * ```
193
193
  */
194
194
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
195
195
  /**
@@ -234,7 +234,7 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
234
234
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
235
235
  * return (type === "value") ? value.toFixed(0) : value.toString();
236
236
  * };
237
- * ```
237
+ * ```
238
238
  */
239
239
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
240
240
  /**
@@ -375,12 +375,12 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
375
375
  * min: 10,
376
376
  * max: 25
377
377
  * };
378
- * ```
378
+ * ```
379
379
  * @example
380
380
  * ```js
381
381
  * // disables zooming on the slider
382
382
  * slider.zoomOptions = null;
383
- * ```
383
+ * ```
384
384
  * @example
385
385
  * ```js
386
386
  * // zooms the slider so thumbs can only be moved to positions above
@@ -388,7 +388,7 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
388
388
  * slider.zoomOptions = {
389
389
  * min: 10
390
390
  * };
391
- * ```
391
+ * ```
392
392
  * @example
393
393
  * ```js
394
394
  * // zooms the slider so thumbs can only be moved to positions below
@@ -396,7 +396,7 @@ export abstract class ArcgisSliderColorSizeLegacy extends LitElement {
396
396
  * slider.zoomOptions = {
397
397
  * max: 25
398
398
  * };
399
- * ```
399
+ * ```
400
400
  */
401
401
  accessor zoomOptions: ZoomOptions | null | undefined;
402
402
  /** Permanently destroy the component. */
@@ -115,10 +115,10 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
115
115
  * numBins: 30,
116
116
  * });
117
117
  *
118
- * slider.histogramConfig = {
119
- * bins: histogramResult.bins
120
- * };
121
- * ```
118
+ * slider.histogramConfig = {
119
+ * bins: histogramResult.bins
120
+ * };
121
+ * ```
122
122
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
123
123
  */
124
124
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -169,7 +169,7 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
169
169
  * }
170
170
  * return value.toFixed(0);
171
171
  * };
172
- * ```
172
+ * ```
173
173
  */
174
174
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
175
175
  /**
@@ -214,7 +214,7 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
214
214
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
215
215
  * return (type === "value") ? value.toFixed(0) : value.toString();
216
216
  * };
217
- * ```
217
+ * ```
218
218
  */
219
219
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
220
220
  /**
@@ -322,12 +322,12 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
322
322
  * min: 10,
323
323
  * max: 25
324
324
  * };
325
- * ```
325
+ * ```
326
326
  * @example
327
327
  * ```js
328
328
  * // disables zooming on the slider
329
329
  * slider.zoomOptions = null;
330
- * ```
330
+ * ```
331
331
  * @example
332
332
  * ```js
333
333
  * // zooms the slider so thumbs can only be moved to positions above
@@ -335,7 +335,7 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
335
335
  * slider.zoomOptions = {
336
336
  * min: 10
337
337
  * };
338
- * ```
338
+ * ```
339
339
  * @example
340
340
  * ```js
341
341
  * // zooms the slider so thumbs can only be moved to positions below
@@ -343,7 +343,7 @@ export abstract class ArcgisSliderOpacityLegacy extends LitElement {
343
343
  * slider.zoomOptions = {
344
344
  * max: 25
345
345
  * };
346
- * ```
346
+ * ```
347
347
  */
348
348
  accessor zoomOptions: ZoomOptions | null | undefined;
349
349
  /** Permanently destroy the component. */
@@ -5,7 +5,7 @@ import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } fr
5
5
  import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { u as v } from "../../chunks/useView.js";
7
7
  import { u as y } from "../../chunks/useT9n.js";
8
- import { css as L, html as m } from "lit";
8
+ import { css as L, html as r } from "lit";
9
9
  import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
10
10
  import { createRef as b, ref as w } from "lit/directives/ref.js";
11
11
  import T from "@arcgis/core/portal/Portal.js";
@@ -84,7 +84,7 @@ const h = /* @__PURE__ */ new Set([
84
84
  "th-th",
85
85
  "zh-cn",
86
86
  "zh-tw"
87
- ]), P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:5px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`, l = [
87
+ ]), P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`, l = [
88
88
  { id: "world", scale: 147914382, minScale: 147914382, maxScale: 1e8 },
89
89
  { id: "continent", scale: 5e7, minScale: 99999999, maxScale: 35e6 },
90
90
  { id: "countriesBig", scale: 25e6, minScale: 34999999, maxScale: 15e6 },
@@ -155,9 +155,9 @@ class R extends g {
155
155
  if (s)
156
156
  this._layerMinScaleLimit = s[0].scale === 0 ? l[0].minScale : Math.min(l[0].minScale, s[0].scale), !("resampling" in this.layer) || this.layer.resampling || (this._layerMaxScaleLimit = s[s.length - 1].scale);
157
157
  else {
158
- const r = this.layer && "maxScaleRange" in this.layer ? this.layer.maxScaleRange : null;
158
+ const m = this.layer && "maxScaleRange" in this.layer ? this.layer.maxScaleRange : null;
159
159
  let n = 0, o = 0;
160
- r && (n = r.minScale, o = r.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
160
+ m && (n = m.minScale, o = m.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
161
161
  }
162
162
  this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
163
163
  const c = this.layer;
@@ -236,21 +236,21 @@ class R extends g {
236
236
  }
237
237
  _renderScalePreviewPopover() {
238
238
  const e = this._renderScalePreview();
239
- return this.hidePreview || !e ? null : m`<div slot=popover>${e}</div>`;
239
+ return this.hidePreview || !e ? null : r`<div slot=popover>${e}</div>`;
240
240
  }
241
241
  render() {
242
- return m`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))} .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : m`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
242
+ return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))} .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : r`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
243
243
  }
244
244
  _renderCurrentScaleIndicator(e) {
245
245
  const i = this._sliderRef.value, a = i?.fullRangeMax ?? this._mapScaleToSlider(l[l.length - 1].maxScale), t = i?.fullRangeMin ?? this._mapScaleToSlider(l[0].minScale), s = a - t, c = Math.min(100, Math.max(0, (this._mapScaleToSlider(e) - t) / s * 100));
246
- return _("scale-indicator", m`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({
246
+ return _("scale-indicator", r`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({
247
247
  position: "absolute",
248
248
  left: `${c}%`
249
249
  })} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`);
250
250
  }
251
251
  _renderCustomScaleValue(e, i) {
252
252
  const a = Math.round(i).toString();
253
- return m`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected === e} @calciteListItemSelect=${(t) => {
253
+ return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected === e} @calciteListItemSelect=${(t) => {
254
254
  const s = t.target.querySelector("calcite-input-number");
255
255
  this._handleCustomScaleInput(e, s?.value ?? ""), this._customScaleSelected = e;
256
256
  }}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length - 1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${a} @click=${(t) => t.stopPropagation()} @keydown=${(t) => {
@@ -258,10 +258,10 @@ class R extends g {
258
258
  }}></calcite-input-number></calcite-list-item>`;
259
259
  }
260
260
  _renderScaleMenuButtons(e) {
261
- return m`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu === e ? "outline" : "transparent"}>${this._getDropdownLabel(e)}</calcite-button>`;
261
+ return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu === e ? "outline" : "transparent"}>${this._getDropdownLabel(e)}</calcite-button>`;
262
262
  }
263
263
  _renderScaleMenuPopover(e) {
264
- return m`<calcite-popover auto-close .label=${`${e === "min" ? "Min" : "Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e === "max" ? "bottom-end" : "bottom-start"} .open=${this._activeMenu === e} scale=s @calcitePopoverOpen=${() => this._activeMenu = e} @calcitePopoverClose=${() => {
264
+ return r`<calcite-popover auto-close .label=${`${e === "min" ? "Min" : "Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e === "max" ? "bottom-end" : "bottom-start"} .open=${this._activeMenu === e} scale=s @calcitePopoverOpen=${() => this._activeMenu = e} @calcitePopoverClose=${() => {
265
265
  this._activeMenu === e && (this._activeMenu = null);
266
266
  }}>${this._renderScaleMenu(e)}</calcite-popover>`;
267
267
  }
@@ -269,14 +269,14 @@ class R extends g {
269
269
  const i = Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)), a = Math.floor(this._mapScaleToSlider(this._effectiveMinScale)), t = e === "min" ? this._effectiveMinScale : this._effectiveMaxScale, s = this.messages.featuredScaleLabels;
270
270
  if (!s)
271
271
  return;
272
- const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)), r = Math.floor(this._mapScaleToSlider(this.minScaleLimit)), n = l.filter((o, S) => e === "min" ? S < i && S >= r : S > a && S <= c).map((o) => this._renderScaleMenuItem({
272
+ const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)), m = Math.floor(this._mapScaleToSlider(this.minScaleLimit)), n = l.filter((o, S) => e === "min" ? S < i && S >= m : S > a && S <= c).map((o) => this._renderScaleMenuItem({
273
273
  scaleLabel: s[o.id],
274
274
  scaleValue: o.scale,
275
275
  isSelected: t === o.scale,
276
276
  valueVisible: o.id !== "world" || this.showWorldValue,
277
277
  type: e
278
278
  }));
279
- return m`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale != null && this._renderCustomScaleValue(e, t) || ""}${this.view?.scale != null ? this._renderScaleMenuItem({
279
+ return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale != null && this._renderCustomScaleValue(e, t) || ""}${this.view?.scale != null ? this._renderScaleMenuItem({
280
280
  scaleValue: this.view.scale,
281
281
  scaleLabel: s.current,
282
282
  isSelected: t === this.view.scale,
@@ -286,7 +286,7 @@ class R extends g {
286
286
  }
287
287
  _renderScaleMenuItem(e) {
288
288
  const { scaleValue: i, scaleLabel: a, isSelected: t, valueVisible: s } = e, c = i === l[0].scale ? ` ${this.messages.aboveSuffix}` : i === l[l.length - 1].scale ? ` ${this.messages.belowSuffix}` : "";
289
- return m`<calcite-list-item .label=${a} .selected=${t && this._customScaleSelected !== e.type} .description=${s ? `1:${Math.round(i).toLocaleString(this.messages._t9nLocale)}${c}` : void 0} @calciteListItemSelect=${() => {
289
+ return r`<calcite-list-item .label=${a} .selected=${t && this._customScaleSelected !== e.type} .description=${s ? `1:${Math.round(i).toLocaleString(this.messages._t9nLocale)}${c}` : void 0} @calciteListItemSelect=${() => {
290
290
  this._setScale(e.type, i), this._customScaleSelected = null;
291
291
  }}></calcite-list-item>`;
292
292
  }
@@ -294,12 +294,12 @@ class R extends g {
294
294
  const e = this._sliderRef.value?.activeValue;
295
295
  if (typeof e != "number")
296
296
  return null;
297
- const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), r = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
298
- return m`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
297
+ const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
298
+ return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
299
299
  display: "block",
300
300
  height: `${t}px`,
301
301
  width: `${t}px`,
302
- objectPosition: r,
302
+ objectPosition: m,
303
303
  objectFit: "none"
304
304
  })}></div>`;
305
305
  }
@@ -112,10 +112,10 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
112
112
  * numBins: 30,
113
113
  * });
114
114
  *
115
- * slider.histogramConfig = {
116
- * bins: histogramResult.bins
117
- * };
118
- * ```
115
+ * slider.histogramConfig = {
116
+ * bins: histogramResult.bins
117
+ * };
118
+ * ```
119
119
  * @see [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
120
120
  */
121
121
  accessor histogramConfig: HistogramConfig | null | undefined;
@@ -166,7 +166,7 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
166
166
  * }
167
167
  * return value.toFixed(0);
168
168
  * };
169
- * ```
169
+ * ```
170
170
  */
171
171
  accessor inputFormatFunction: LabelFormatFunction | null | undefined;
172
172
  /**
@@ -211,7 +211,7 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
211
211
  * slider.labelFormatFunction = (value: number, type?: SliderFormatType): string => {
212
212
  * return (type === "value") ? value.toFixed(0) : value.toString();
213
213
  * };
214
- * ```
214
+ * ```
215
215
  */
216
216
  accessor labelFormatFunction: LabelFormatFunction | null | undefined;
217
217
  /**
@@ -315,12 +315,12 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
315
315
  * min: 10,
316
316
  * max: 25
317
317
  * };
318
- * ```
318
+ * ```
319
319
  * @example
320
320
  * ```js
321
321
  * // disables zooming on the slider
322
322
  * slider.zoomOptions = null;
323
- * ```
323
+ * ```
324
324
  * @example
325
325
  * ```js
326
326
  * // zooms the slider so thumbs can only be moved to positions above
@@ -328,7 +328,7 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
328
328
  * slider.zoomOptions = {
329
329
  * min: 10
330
330
  * };
331
- * ```
331
+ * ```
332
332
  * @example
333
333
  * ```js
334
334
  * // zooms the slider so thumbs can only be moved to positions below
@@ -336,7 +336,7 @@ export abstract class ArcgisSliderSizeLegacy extends LitElement {
336
336
  * slider.zoomOptions = {
337
337
  * max: 25
338
338
  * };
339
- * ```
339
+ * ```
340
340
  */
341
341
  accessor zoomOptions: ZoomOptions | null | undefined;
342
342
  /** Permanently destroy the component. */
@@ -0,0 +1,14 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+
5
+ /**
6
+ * The Template Image component generates a feature swatch representing a
7
+ * Feature Template.
8
+ *
9
+ * @since 5.1
10
+ * @internal
11
+ */
12
+ export abstract class ArcgisTemplateImage extends LitElement {
13
+ accessor template: TemplateItem | undefined;
14
+ }
@@ -0,0 +1,119 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as h } from "../../chunks/runtime.js";
3
+ import g from "@arcgis/core/Graphic.js";
4
+ import { css as p, html as s } from "lit";
5
+ import { createRef as d, ref as f } from "lit/directives/ref.js";
6
+ import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
7
+ import { LitElement as b, safeStyleMap as y } from "@arcgis/lumina";
8
+ import * as l from "@arcgis/toolkit/log";
9
+ import { isSharedTemplateMetadata as u, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
10
+ import "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
11
+ import { renderPreviewHTML as w } from "@arcgis/core/symbols/support/symbolUtils.js";
12
+ const I = p`.esri-thumbnail-preview{width:3%;height:32px;background-size:contain;background-position:center}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
13
+ async function D(e, t, i) {
14
+ if (u(e) && e.thumbnail) {
15
+ const c = `data:image/png;base64,${e.thumbnail.imageData}`;
16
+ return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${c})` })}></div>`;
17
+ }
18
+ const r = await x(t, e);
19
+ if (r == null)
20
+ return null;
21
+ const n = { maxSize: 24, ariaLabel: i?.ariaLabel };
22
+ v(e) && "renderer" in t && t.renderer?.type === "dictionary" && (n.fieldMap = t.renderer.fieldMap ?? void 0, n.feature = {
23
+ attributes: e.prototype.attributes ?? {}
24
+ });
25
+ const o = await w(r, n);
26
+ return o ? s`${_(o.outerHTML)}` : null;
27
+ }
28
+ async function x(e, t) {
29
+ if (u(t))
30
+ return await m(e);
31
+ if ("renderer" in e && e.renderer) {
32
+ const { renderer: i } = e, r = new g({ attributes: t.prototype.attributes });
33
+ if ("getSymbolAsync" in i) {
34
+ const a = await i.getSymbolAsync(r);
35
+ if (a)
36
+ return a;
37
+ }
38
+ }
39
+ return await m(e);
40
+ }
41
+ async function T(e) {
42
+ const t = e === "point" || e === "multipoint" ? await import("@arcgis/core/symbols/SimpleMarkerSymbol.js") : e === "polyline" ? await import("@arcgis/core/symbols/SimpleLineSymbol.js") : e === "polygon" || e === "mesh" || e === "multipatch" ? await import("@arcgis/core/symbols/SimpleFillSymbol.js") : null;
43
+ return t ? new t.default() : null;
44
+ }
45
+ async function m(e) {
46
+ return "geometryType" in e && e.geometryType ? await T(e.geometryType) : null;
47
+ }
48
+ class C extends b {
49
+ constructor() {
50
+ super(...arguments), this._lastRun = 0, this._attempted = !1, this._isCurrentlyInView = !1, this._intersectionObserver = null, this._imageContainerDiv = d(), this._generatedImageData = null;
51
+ }
52
+ static {
53
+ this.properties = { _generatedImageData: 16, template: 0 };
54
+ }
55
+ static {
56
+ this.styles = I;
57
+ }
58
+ get rootLayer() {
59
+ return this.template?.layer?.type === "subtype-sublayer" ? this.template.layer.parent : this.template?.layer;
60
+ }
61
+ willUpdate(t) {
62
+ t.has("template") && (this.hasUpdated || this.template !== null) && this._resetData();
63
+ }
64
+ updated() {
65
+ !this._attempted && this._isCurrentlyInView && (this._attempted = !0, this._handleImage().catch((t) => {
66
+ l.log("warn", this, "Failed processing image");
67
+ }));
68
+ }
69
+ loaded() {
70
+ this.manager.onLifecycle(() => (this._addIntersectionObserver(), () => {
71
+ this._removeIntersectionObserver();
72
+ }));
73
+ }
74
+ _resetData() {
75
+ this._generatedImageData = null, this._attempted = !1;
76
+ }
77
+ async _generateImage() {
78
+ return this.template ? await D(this.template.template, this.template.layer) : "";
79
+ }
80
+ async _handleImage() {
81
+ const t = ++this._lastRun;
82
+ if (!this._generatedImageData || this._generatedImageData === "")
83
+ try {
84
+ const i = await this._generateImage();
85
+ if (this._lastRun !== t || this._generatedImageData === i)
86
+ return;
87
+ this._generatedImageData = i;
88
+ } finally {
89
+ this._attempted = !0;
90
+ }
91
+ }
92
+ _addIntersectionObserver() {
93
+ const t = {
94
+ // If the image gets within 50px in the Y axis, start the download.
95
+ rootMargin: "50px 0px",
96
+ threshold: 0.01
97
+ };
98
+ this._imageContainerDiv.value && requestAnimationFrame(() => {
99
+ this.isConnected && (this._intersectionObserver = new IntersectionObserver((i) => {
100
+ let r = !1;
101
+ i.forEach((a) => {
102
+ a.intersectionRatio > 0 && !r ? (r = !0, this._isCurrentlyInView = !0, this._handleImage().catch((n) => {
103
+ l.log("warn", this, "Failed processing image");
104
+ })) : this._isCurrentlyInView = !1;
105
+ });
106
+ }, t), this._intersectionObserver?.observe(this._imageContainerDiv.value));
107
+ });
108
+ }
109
+ _removeIntersectionObserver() {
110
+ this._intersectionObserver?.disconnect(), this._intersectionObserver = null;
111
+ }
112
+ render() {
113
+ return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData ?? ""}</div>`;
114
+ }
115
+ }
116
+ h("arcgis-template-image", C);
117
+ export {
118
+ C as ArcgisTemplateImage
119
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -3,21 +3,22 @@ import { c as S } from "../../chunks/runtime.js";
3
3
  import { once as L, watch as P } from "@arcgis/core/core/reactiveUtils.js";
4
4
  import _ from "@arcgis/core/versionManagement/VersionManager.js";
5
5
  import { LitElement as b, createEvent as u } from "@arcgis/lumina";
6
- import { css as C, render as N, html as g } from "lit";
6
+ import { css as N, render as C, html as v } from "lit";
7
7
  import { createRef as F, ref as M } from "lit/directives/ref.js";
8
8
  import { u as k } from "../../chunks/useT9n.js";
9
9
  import { m as x } from "../../chunks/useViewModel.js";
10
- import { rethrowError as $ } from "@arcgis/toolkit/log";
11
- const A = C`: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{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`, T = x(_), w = "map-components:version-management";
12
- class O extends b {
10
+ import { d as $ } from "../../chunks/component-utils.js";
11
+ import { rethrowError as A } from "@arcgis/toolkit/log";
12
+ const T = N`: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{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`, O = x(_), w = "map-components:version-management";
13
+ class U extends b {
13
14
  constructor() {
14
- super(...arguments), this.flowElement = F(), this.messages = k({ blocking: !0 }), this.viewModel = T(this), this._isInitialVersionInvalid = /* @__PURE__ */ new Map(), this._initialVersionInfos = [], this._showInvalidFeatureServiceNotice = !1, this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.viewModel.state, this.versioningStates = this.viewModel.versioningStates, this.view = this.viewModel.view, this.arcgisReady = u(), this.arcgisVersioningStateChanged = u();
15
+ super(...arguments), this.flowElement = F(), this.messages = k({ blocking: !0 }), this.viewModel = O(this), this._isInitialVersionInvalid = /* @__PURE__ */ new Map(), this._initialVersionInfos = [], this._showInvalidFeatureServiceNotice = !1, this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.viewModel.state, this.versioningStates = this.viewModel.versioningStates, this.view = this.viewModel.view, this.arcgisReady = u(), this.arcgisVersioningStateChanged = u();
15
16
  }
16
17
  static {
17
18
  this.properties = { versionList: 16, _showInvalidFeatureServiceNotice: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, closable: 7, initialVersionInfos: 0, icon: 1, label: 3, messageOverrides: 0, mode: 1, pageSize: 9, referenceElement: 1, state: 32, versioningStates: 0, view: 0 };
18
19
  }
19
20
  static {
20
- this.styles = A;
21
+ this.styles = T;
21
22
  }
22
23
  get initialVersionInfos() {
23
24
  return this._initialVersionInfos;
@@ -37,7 +38,7 @@ class O extends b {
37
38
  try {
38
39
  this._changeToInitialVersion(e);
39
40
  } catch (i) {
40
- $(this)(i);
41
+ A(this)(i);
41
42
  }
42
43
  });
43
44
  }), this.manager.onLifecycle(() => [
@@ -74,7 +75,7 @@ class O extends b {
74
75
  versionInfo: i
75
76
  };
76
77
  this.versionPropertiesContainer = document.createElement("div");
77
- const s = N(g`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`, this.versionPropertiesContainer), a = Array.from(s.parentNode.childNodes).find((c) => c.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");
78
+ const s = C(v`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`, this.versionPropertiesContainer), a = Array.from(s.parentNode.childNodes).find((c) => c.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");
78
79
  return this.listenOn(a, "arcgisFlowItemBack", () => {
79
80
  this._removeVersionPropertiesFlowItem(this.flowElement.value);
80
81
  }), this.listenOn(a, "calciteFlowItemBack", (c) => {
@@ -197,37 +198,37 @@ class O extends b {
197
198
  i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES" && e.removeChild(i);
198
199
  }
199
200
  render() {
200
- const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos: t, _isInitialVersionInvalid: n, label: o, messages: s, mode: a, pageSize: c, versionList: m, viewModel: v, viewModel: { loadError: f, state: d } } = this, I = Array.from(v.serviceNameLookup, ([l, h]) => ({ url: l, name: h })), V = d !== "disabled" ? I.map((l) => {
201
+ const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos: t, _isInitialVersionInvalid: n, label: o, messages: s, mode: a, pageSize: c, versionList: m, viewModel: d, viewModel: { loadError: f, state: g } } = this, I = Array.from(d.serviceNameLookup, ([l, h]) => ({ url: l, name: h })), V = g !== "disabled" ? I.map((l) => {
201
202
  const h = {
202
203
  allowEditing: !e,
203
204
  closable: i,
204
- currentUser: v.userLookup.get(l.url),
205
- currentVersionIdentifier: v.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,
205
+ currentUser: d.userLookup.get(l.url),
206
+ currentVersionIdentifier: d.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,
206
207
  executionError: void 0,
207
208
  flowElement: r,
208
209
  heading: o,
209
210
  initialVersionInfos: t,
210
211
  isInitialVersionInvalid: n,
211
- isVersionAdministrator: v.versionAdministratorLookup.get(l.url),
212
- isVersioningApiAvailable: (v.serverVersionLookup.get(l.url) ?? 0) >= 11.2,
212
+ isVersionAdministrator: d.versionAdministratorLookup.get(l.url),
213
+ isVersioningApiAvailable: (d.serverVersionLookup.get(l.url) ?? 0) >= 11.2,
213
214
  mode: a,
214
215
  pageSize: c,
215
216
  serviceName: l.name,
216
- state: d,
217
+ state: g,
217
218
  serviceUrl: l.url,
218
219
  strings: s,
219
- versionInfos: v.versioningStateLookup.get(l.url)?.versionInfos ?? []
220
+ versionInfos: d.versioningStateLookup.get(l.url)?.versionInfos ?? []
220
221
  };
221
- return g`<arcgis-version-management-service-item .serviceItemElementProps=${h} @arcgisFlowItemBack=${() => {
222
+ return v`<arcgis-version-management-service-item .serviceItemElementProps=${h} @arcgisFlowItemBack=${() => {
222
223
  r && (this._removeVersionListFlowItem(r), this.versionList = void 0);
223
224
  }} @arcgisFlowItemClose=${() => this._handleFlowItemClose()} @arcgisGetVersions=${async (p) => {
224
225
  await this._refreshVersionList(p.detail.serviceUrl);
225
226
  }} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(p) => this.versionList = p.detail}></arcgis-version-management-service-item>`;
226
- }) : void 0, E = d === "disabled" && f != null ? g`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(f)}</div></calcite-notice>` : void 0, y = this._showInvalidFeatureServiceNotice ? g`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${() => this._showInvalidFeatureServiceNotice = !1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>` : void 0;
227
- return g`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${M(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${o ?? void 0} @calciteFlowItemClose=${() => this._handleFlowItemClose()} .selected=${!m}>${y}<calcite-panel .loading=${d === "loading" || d === "executing"}>${V}${E}</calcite-panel></calcite-flow-item></calcite-flow></div>`;
227
+ }) : void 0, E = g === "disabled" && f != null ? v`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(f)}</div></calcite-notice>` : void 0, y = this._showInvalidFeatureServiceNotice ? v`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${() => this._showInvalidFeatureServiceNotice = !1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>` : void 0;
228
+ return v`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${M(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${$(o) ? s.label : o} @calciteFlowItemClose=${() => this._handleFlowItemClose()} .selected=${!m}>${y}${g === "loading" || g === "executing" ? v`<calcite-loader .label=${`${s.label} - loading`}></calcite-loader>` : v`<calcite-panel>${V}${E}</calcite-panel>`}</calcite-flow-item></calcite-flow></div>`;
228
229
  }
229
230
  }
230
- S("arcgis-version-management", O);
231
+ S("arcgis-version-management", U);
231
232
  export {
232
- O as ArcgisVersionManagement
233
+ U as ArcgisVersionManagement
233
234
  };
@@ -3,5 +3,6 @@ import "../arcgis-version-management-service-item/index.js";
3
3
  import "@esri/calcite-components/components/calcite-notice";
4
4
  import "@esri/calcite-components/components/calcite-flow";
5
5
  import "@esri/calcite-components/components/calcite-flow-item";
6
+ import "@esri/calcite-components/components/calcite-loader";
6
7
  import "@esri/calcite-components/components/calcite-panel";
7
8
  export * from "./customElement.js";