@arcgis/map-components 6.0.0-next.22 → 6.0.0-next.23

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 (114) hide show
  1. package/dist/cdn/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
  2. package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
  3. package/dist/cdn/4N4XDCDQ.js +2 -0
  4. package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
  5. package/dist/cdn/{UFK7DHVC.js → 4WZ7Y57Q.js} +1 -1
  6. package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
  7. package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
  8. package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
  9. package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
  10. package/dist/cdn/6GGKA7MT.js +2 -0
  11. package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
  12. package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
  13. package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
  14. package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
  15. package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
  16. package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
  17. package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
  18. package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
  19. package/dist/cdn/EJVFK7JX.js +2 -0
  20. package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
  21. package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
  22. package/dist/cdn/GIQT67VT.js +2 -0
  23. package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
  24. package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
  25. package/dist/cdn/{GQQTIX2X.js → HQXC5XLE.js} +1 -1
  26. package/dist/cdn/HTONXZBP.js +2 -0
  27. package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
  28. package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
  29. package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
  30. package/dist/cdn/KXDLX4RE.js +2 -0
  31. package/dist/cdn/{4I6F64B2.js → LKKCTKMQ.js} +1 -1
  32. package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
  33. package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
  34. package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
  35. package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
  36. package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
  37. package/dist/cdn/{NHMHVWNB.js → QKNHYZYS.js} +1 -1
  38. package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
  39. package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
  40. package/dist/cdn/RFO3M46K.js +2 -0
  41. package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
  42. package/dist/cdn/SLWZHNVT.js +2 -0
  43. package/dist/cdn/{IQGL3AGV.js → TKIWKCDA.js} +1 -1
  44. package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
  45. package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
  46. package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
  47. package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
  48. package/dist/cdn/{FRX4ZT35.js → V3J5GQHD.js} +1 -1
  49. package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
  50. package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
  51. package/dist/cdn/{PFMWLSWQ.js → XWBR6FXI.js} +1 -1
  52. package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
  53. package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
  54. package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
  55. package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
  56. package/dist/cdn/{CNJSDHZI.js → ZF7NUFAT.js} +1 -1
  57. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  58. package/dist/cdn/index.js +1 -1
  59. package/dist/cdn/main.css +1 -1
  60. package/dist/chunks/useArcgisViewReadyError.js +155 -151
  61. package/dist/chunks/useViewModel.js +7 -7
  62. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  63. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  64. package/dist/components/arcgis-features-next/customElement.js +14 -15
  65. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  66. package/dist/components/arcgis-search/customElement.js +3 -0
  67. package/dist/components/arcgis-sketch/customElement.js +1 -1
  68. package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
  69. package/dist/components/arcgis-swipe/customElement.js +45 -63
  70. package/dist/components/arcgis-time-bar/customElement.d.ts +484 -409
  71. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  72. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  73. package/dist/components/arcgis-track/customElement.d.ts +12 -3
  74. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +42 -2
  75. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +20 -17
  76. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -70
  77. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  78. package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
  79. package/dist/components/arcgis-video-player/customElement.js +72 -72
  80. package/dist/components/arcgis-video-player/index.js +4 -4
  81. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  82. package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
  83. package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
  84. package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
  85. package/dist/components/arcgis-video-player-slider/index.js +1 -0
  86. package/dist/docs/api.json +1 -1
  87. package/dist/docs/docs.json +1 -1
  88. package/dist/docs/vscode.html-custom-data.json +1 -1
  89. package/dist/docs/web-types.json +1 -1
  90. package/dist/index.d.ts +0 -20
  91. package/dist/loader.js +3 -4
  92. package/dist/types/lumina.d.ts +2 -23
  93. package/dist/types/preact.d.ts +2 -25
  94. package/dist/types/react.d.ts +2 -27
  95. package/dist/types/stencil.d.ts +2 -23
  96. package/package.json +6 -6
  97. package/dist/cdn/COSETVX4.js +0 -2
  98. package/dist/cdn/F74YQZ2X.js +0 -2
  99. package/dist/cdn/KXD4VEKE.js +0 -2
  100. package/dist/cdn/OJJSIN3V.js +0 -2
  101. package/dist/cdn/P3565WG3.js +0 -2
  102. package/dist/cdn/QAOT2TJ6.js +0 -2
  103. package/dist/cdn/QVJ2FUNW.js +0 -2
  104. package/dist/cdn/UI4IEVSV.js +0 -2
  105. package/dist/cdn/VEV3AAVP.js +0 -2
  106. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
  107. package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
  108. package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
  109. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
  110. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
  111. package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
  112. package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
  113. package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
  114. /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
@@ -1,11 +1,11 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { proxyExports as r } from "@arcgis/lumina/controllers";
3
- import { AccessorController as i } from "@arcgis/lumina-toolkit/useAccessor";
4
- import { isEsriInternalEnv as n } from "@arcgis/toolkit/error";
2
+ import { proxyExports as s } from "@arcgis/lumina/controllers";
3
+ import { AccessorController as n } from "@arcgis/lumina-toolkit/useAccessor";
4
+ import { isEsriInternalEnv as i } from "@arcgis/toolkit/error";
5
5
  import { V as l } from "./useView.js";
6
6
  import { watch as a } from "@arcgis/core/core/reactiveUtils.js";
7
- const u = (t, e) => (o) => p(o, t);
8
- class s extends i {
7
+ const u = (t, e) => (o) => m(o, t);
8
+ class r extends n {
9
9
  #o = void 0;
10
10
  constructor(e, o) {
11
11
  super(e, o), new l(this.component);
@@ -24,8 +24,8 @@ class s extends i {
24
24
  this.#o?.remove(), super.hostDestroy();
25
25
  }
26
26
  }
27
- process.env.NODE_ENV !== "production" && n() && (s.devOnly$allowedPropNameMismatches = /* @__PURE__ */ new Set(["el", "manager", "open", "swipePosition"]));
28
- const p = r(s);
27
+ process.env.NODE_ENV !== "production" && i() && (r.devOnly$allowedPropNameMismatches = /* @__PURE__ */ new Set(["el", "manager", "open"]));
28
+ const m = s(r);
29
29
  export {
30
30
  u as m
31
31
  };
@@ -3,16 +3,16 @@ import { c as k } from "../../chunks/runtime.js";
3
3
  import { css as I, html as i } from "lit";
4
4
  import _ from "@arcgis/core/rest/query/support/AttachmentInfo.js";
5
5
  import L from "@arcgis/core/rest/support/AttachmentQuery.js";
6
- import T from "@arcgis/core/core/Collection.js";
6
+ import P from "@arcgis/core/core/Collection.js";
7
7
  import y from "@arcgis/core/core/Error.js";
8
- import { LitElement as P, nothing as d, safeClassMap as b, safeStyleMap as A } from "@arcgis/lumina";
8
+ import { LitElement as T, nothing as p, safeClassMap as b, safeStyleMap as A } from "@arcgis/lumina";
9
9
  import { bypassReadOnly as S } from "@arcgis/lumina/controllers";
10
10
  import { classes as $ } from "@arcgis/toolkit/dom";
11
11
  import { g as v, i as w } from "../../chunks/attachment-utils.js";
12
12
  import { g as f } from "../../chunks/feature-utils.js";
13
13
  import { watch as C } from "@arcgis/core/core/reactiveUtils.js";
14
- const x = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, z = T.ofType(_);
15
- class E extends P {
14
+ const x = I`:host([empty]){display:none}.loading-content{min-height:4rem;min-width:4rem}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, z = P.ofType(_);
15
+ class E extends T {
16
16
  constructor() {
17
17
  super(...arguments), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.hideSection = !1, this._attachmentInfos = new z(), this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1, this.empty = !1;
18
18
  }
@@ -49,22 +49,22 @@ class E extends P {
49
49
  ]);
50
50
  }
51
51
  async getAttachments() {
52
- const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: s, attachmentTypes: n, attachmentKeywords: c, _supportsTypeWildcard: o } = this;
52
+ const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: s, attachmentTypes: r, attachmentKeywords: c, _supportsTypeWildcard: o } = this;
53
53
  if (!e || typeof e.queryAttachments != "function")
54
54
  throw new y("invalid-layer", "getAttachments(): A valid layer is required.");
55
55
  const l = this.graphic?.getObjectId();
56
56
  if (typeof l != "number")
57
57
  throw new y("invalid-object-id", "getAttachments(): Numeric object id is required");
58
- const g = s?.map((a) => `${a.field} ${a.order === "descending" ? "DESC" : "ASC"}`), r = new L({
58
+ const g = s?.map((a) => `${a.field} ${a.order === "descending" ? "DESC" : "ASC"}`), n = new L({
59
59
  objectIds: [l],
60
60
  returnMetadata: !0,
61
61
  orderByFields: g,
62
- attachmentTypes: o ? n?.filter(Boolean).map((a) => `${a}/*`) : void 0,
62
+ attachmentTypes: o ? r?.filter(Boolean).map((a) => `${a}/*`) : void 0,
63
63
  keywords: c
64
- }), m = [], h = e.queryAttachments(r).then((a) => a[l] || m).catch(() => m);
64
+ }), m = [], h = e.queryAttachments(n).then((a) => a[l] || m).catch(() => m);
65
65
  this.getAttachmentsPromise = h, this._setEmpty(!1);
66
- const p = await h;
67
- t.destroyAll(), p.length && t.addMany(p), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
66
+ const d = await h;
67
+ t.destroyAll(), d.length && t.addMany(d), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
68
68
  }
69
69
  _setEmpty(e) {
70
70
  S(() => this.empty = e);
@@ -93,28 +93,28 @@ class E extends P {
93
93
  return this.empty ? null : i`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`;
94
94
  }
95
95
  renderAttachmentsList(e) {
96
- return i`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map((t) => this.renderAttachmentListItem(t))}</calcite-list>`;
96
+ return i`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${this.getAttachmentsPromise ? i`<div class="loading-content"></div>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentListItem(t))}</calcite-list>`;
97
97
  }
98
98
  renderAttachmentsPreview(e) {
99
- return i`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? i`<calcite-card loading></calcite-card>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentPreviewItem(t))}</calcite-card-group>`;
99
+ return i`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? i`<calcite-card loading><div class="loading-content"></div></calcite-card>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentPreviewItem(t))}</calcite-card-group>`;
100
100
  }
101
101
  renderAttachmentsCarousel(e) {
102
102
  const t = e.toArray().filter(Boolean);
103
- return i`<calcite-carousel .paginationDisabled=${t.length < 2} .label=${this.messages?.componentLabel ?? ""} pagination-position=top>${this.getAttachmentsPromise ? i`<calcite-carousel-item .label=${this.messages?.componentLabel ?? ""}><calcite-card loading></calcite-card></calcite-carousel-item>` : t.map((s) => i`<calcite-carousel-item .label=${s.name || this.messages?.noTitle || ""}>${this.renderAttachmentPreviewItem(s, !0)}</calcite-carousel-item>`)}</calcite-carousel>`;
103
+ return i`<calcite-carousel .paginationDisabled=${t.length < 2} .label=${this.messages?.componentLabel ?? ""} pagination-position=top>${this.getAttachmentsPromise ? i`<calcite-carousel-item .label=${this.messages?.componentLabel ?? ""}><calcite-card loading><div class="loading-content"></div></calcite-card></calcite-carousel-item>` : t.map((s) => i`<calcite-carousel-item .label=${s.name || this.messages?.noTitle || ""}>${this.renderAttachmentPreviewItem(s, !0)}</calcite-carousel-item>`)}</calcite-carousel>`;
104
104
  }
105
105
  renderAttachments() {
106
106
  const { effectiveDisplayType: e, _attachmentInfos: t } = this;
107
107
  return e === "carousel" ? this.renderAttachmentsCarousel(t) : e === "preview" ? this.renderAttachmentsPreview(t) : this.renderAttachmentsList(t);
108
108
  }
109
109
  renderAttachmentListItem(e) {
110
- const { supportsResizeAttachments: t } = this, { contentType: s, name: n, url: c, size: o } = e, l = 64, g = n || this.messages?.noTitle, r = v(s), m = this.getCSSTransform(e), h = m ? { transform: m, "image-orientation": "none" } : {}, p = t && w(s), a = i`<a class=${b($("item-link", "item-link--list", {
111
- "item-link--list-icon": !p
112
- }))} slot=content-start href=${c ?? void 0 ?? d} rel=noreferrer target=_blank>${p ? i`<img alt=${n ?? d} src=${`${c}${c?.includes("?") ? "&" : "?"}w=${l}&s=${o}`} style=${A(h)} title=${n ?? d}>` : i`<calcite-icon .icon=${r}></calcite-icon>`}</a>`, u = i`<calcite-link slot=content .href=${c ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
110
+ const { supportsResizeAttachments: t } = this, { contentType: s, name: r, url: c, size: o } = e, l = 64, g = r || this.messages?.noTitle, n = v(s), m = this.getCSSTransform(e), h = m ? { transform: m, "image-orientation": "none" } : {}, d = t && w(s), a = i`<a class=${b($("item-link", "item-link--list", {
111
+ "item-link--list-icon": !d
112
+ }))} slot=content-start href=${c ?? void 0 ?? p} rel=noreferrer target=_blank>${d ? i`<img alt=${r ?? p} src=${`${c}${c?.includes("?") ? "&" : "?"}w=${l}&s=${o}`} style=${A(h)} title=${r ?? p}>` : i`<calcite-icon .icon=${n}></calcite-icon>`}</a>`, u = i`<calcite-link slot=content .href=${c ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
113
113
  return i`<calcite-list-item .label=${g}>${a}${u}</calcite-list-item>`;
114
114
  }
115
115
  renderAttachmentPreviewItem(e, t = !1) {
116
- const { supportsResizeAttachments: s } = this, { contentType: n, name: c, url: o, size: l } = e, g = 225, r = c || this.messages?.noTitle, m = v(n), h = this.getCSSTransform(e), p = h ? { transform: h, "image-orientation": "none" } : {}, a = s && w(n), u = i`<a class=${b($("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? d} rel=noreferrer target=_blank aria-label=${r ?? d} title=${r ?? d}>${a ? i`<img alt=${r ?? d} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${l}`} style=${A(p)}>` : i`<calcite-icon scale=l .icon=${m}></calcite-icon>`}</a>`;
117
- return i`<calcite-card .label=${r}>${u}${(t || this.hidePreviewImageAttachmentName) && a ? null : i`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`;
116
+ const { supportsResizeAttachments: s } = this, { contentType: r, name: c, url: o, size: l } = e, g = 225, n = c || this.messages?.noTitle, m = v(r), h = this.getCSSTransform(e), d = h ? { transform: h, "image-orientation": "none" } : {}, a = s && w(r), u = i`<a class=${b($("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? p} rel=noreferrer target=_blank aria-label=${n ?? p} title=${n ?? p}>${a ? i`<img alt=${n ?? p} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${l}`} style=${A(d)}>` : i`<calcite-icon scale=l .icon=${m}></calcite-icon>`}</a>`;
117
+ return i`<calcite-card .label=${n}>${u}${(t || this.hidePreviewImageAttachmentName) && a ? null : i`<span class="item-description" slot=description>${n}</span>`}</calcite-card>`;
118
118
  }
119
119
  }
120
120
  k("arcgis-feature-attachments", E);
@@ -13,7 +13,7 @@ import type { State } from "@arcgis/core/popup/types.js";
13
13
 
14
14
  /**
15
15
  * > [!WARNING]
16
- * > The Feature (next) component is the successor to the Feature component, provided to you early for testing and feedback. In version 6.0, the implementation of [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) will be updated under the hood to that of [arcgis-feature-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-next/), and this component will be removed. To update at version 6.0, simply remove `-next` from the component name.
16
+ * > The Feature (next) component is the successor to the Feature component, provided to you early for testing and feedback. It uses the new [FeatureModel](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureModel) to manage feature data and interactions, with action-related properties and improved accessibility features. In version 6.0, the implementation of [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) will be updated under the hood to that of [arcgis-feature-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-next/), and this component will be removed. To update at version 6.0, simply remove `-next` from the component name.
17
17
  *
18
18
  * The Feature (next) component displays a graphic according to its [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
19
19
  * This component is useful in instances where you want to display information about a graphic but without
@@ -14,7 +14,7 @@ import { initializeProjection as K } from "@arcgis/core/applications/Components/
14
14
  import { t as j } from "../../chunks/action-utils.js";
15
15
  import { m as G } from "../../chunks/useViewModel.js";
16
16
  import { renderingSanitizer as w } from "@arcgis/core/applications/Components/sanitizerUtils.js";
17
- import { stripHTML as M } from "@arcgis/core/applications/Components/stringUtils.js";
17
+ import { stripHTML as b } from "@arcgis/core/applications/Components/stringUtils.js";
18
18
  import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
19
19
  import { u as W } from "../../chunks/useT9n.js";
20
20
  import { when as X, watch as h } from "@arcgis/core/core/reactiveUtils.js";
@@ -73,7 +73,7 @@ class oe extends V {
73
73
  }
74
74
  get _headingLabel() {
75
75
  const e = this._selectedFeatureHeading ?? this.heading;
76
- return e ? M(e) : void 0;
76
+ return e ? b(e) : void 0;
77
77
  }
78
78
  get _backLabel() {
79
79
  const e = this._headingLabel, { messages: t } = this;
@@ -161,12 +161,8 @@ class oe extends V {
161
161
  this._selectedFeatureLoading = e;
162
162
  }
163
163
  }),
164
- X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => {
165
- this.setFocus();
166
- }),
167
- h(() => [this.flowItems?.length, this.featureMenuOpen], () => {
168
- this.setFocus();
169
- }),
164
+ X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => this._setFocusIfTrapEnabled()),
165
+ h(() => [this.flowItems?.length, this.featureMenuOpen], () => this._setFocusIfTrapEnabled()),
170
166
  h(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
171
167
  h(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
172
168
  h(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
@@ -202,6 +198,9 @@ class oe extends V {
202
198
  const { viewModel: e } = this, { featurePage: t, featuresPerPage: i, features: s } = e;
203
199
  e.open && (this.initialDisplayMode === "list" || this.featureMenuOpen) && t != null && t * i < s.length && (e.featurePage = t + 1);
204
200
  }
201
+ _setFocusIfTrapEnabled() {
202
+ this.focusTrapEnabled && this.setFocus();
203
+ }
205
204
  _resolveSetFocusAnimationFrame() {
206
205
  const e = this._setFocusAnimationFrameResolve;
207
206
  this._setFocusAnimationFrameResolve = null, e?.();
@@ -288,7 +287,7 @@ class oe extends V {
288
287
  _getActionLabel(e, t) {
289
288
  if (e.id !== "zoom-to-feature")
290
289
  return null;
291
- const { messages: i } = this, s = t?.heading, a = t ? s && M(s) : this._headingLabel;
290
+ const { messages: i } = this, s = t?.heading, a = t ? s && b(s) : this._headingLabel;
292
291
  return a ? u(i.zoomLabel ?? "", {
293
292
  messages: i,
294
293
  title: a
@@ -442,14 +441,14 @@ class oe extends V {
442
441
  return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
443
442
  }
444
443
  _renderContentFeature(e) {
445
- const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active: c, selectedFeatureItem: f, content: b } = this.viewModel, p = this._getHeading();
444
+ const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active: c, selectedFeatureItem: f, content: M } = this.viewModel, p = this._getHeading();
446
445
  if (r === "list" && !l)
447
446
  return null;
448
- const F = !this._selectedFeaturePending && (f ? !f.content : !b);
447
+ const F = !this._selectedFeaturePending && (f ? !f.content : !M);
449
448
  return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
450
449
  "content-feature": !0,
451
450
  "flow-item-collapsed": s
452
- }))} .closable=${!i} .closed=${!c} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? M(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
451
+ }))} .closable=${!i} .closed=${!c} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? b(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
453
452
  "content-hidden": F
454
453
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
455
454
  }
@@ -470,13 +469,13 @@ class oe extends V {
470
469
  return i?.size ? n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${i.size <= ne ? this._renderDiagnosticsList(i) : this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>` : null;
471
470
  }
472
471
  _renderFeatureMenuContainer() {
473
- const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop: c, headingLevel: f } = this, { active: b, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = this._backLabel;
472
+ const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop: c, headingLevel: f } = this, { active: M, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = this._backLabel;
474
473
  if (a === "feature" && !o)
475
474
  return null;
476
475
  const O = !r;
477
476
  return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
478
477
  "flow-item-collapsed": d
479
- }))} .closable=${!t} .closed=${!b} .collapsed=${a === "list" && d} .collapseDirection=${this.collapseDirection ?? (c ? "down" : "up")} .collapsible=${a === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
478
+ }))} .closable=${!t} .closed=${!M} .collapsed=${a === "list" && d} .collapseDirection=${this.collapseDirection ?? (c ? "down" : "up")} .collapsible=${a === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
480
479
  total: p.length
481
480
  })} .heading=${this.hideFeatureMenuHeading ? void 0 : $} .headingLevel=${f} .loading=${e.waitingForResult} .selected=${O} @calciteFlowItemBack=${(N) => {
482
481
  N.preventDefault(), this._handleFeatureMenuBack();
@@ -488,7 +487,7 @@ class oe extends V {
488
487
  }, () => {
489
488
  this._aggregatedFeaturesComponent.value?.next();
490
489
  })}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
491
- return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${M(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${a ? void 0 : M(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
490
+ return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${b(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${a ? void 0 : b(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
492
491
  $.preventDefault(), this._handleDrillInBackClick();
493
492
  }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${a ? null : n`<div slot=heading><div .innerHTML=${w.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${w.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${p ? n`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${d ?? ""} title=${d ?? g}></calcite-action>` : null}${f && this._renderActionBar(e) || ""}<div class="container">${e}</div>${F}</calcite-flow-item>`;
494
493
  }
@@ -474,6 +474,18 @@ export abstract class ArcgisSearch extends LitElement {
474
474
  clear(): void;
475
475
  /** Permanently destroy the component. */
476
476
  destroy(): Promise<void>;
477
+ /**
478
+ * Returns a promise that resolves when the Search component has finished updating its default sources.
479
+ *
480
+ * Custom sources assigned through [sources](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-search/#sources) are not loaded by this method.
481
+ * Unavailable layer and table sources are omitted, so the promise may resolve with no default sources.
482
+ *
483
+ * @since 5.2
484
+ * @example
485
+ * const search = document.querySelector("arcgis-search");
486
+ * await search.onSourcesReady();
487
+ */
488
+ onSourcesReady(): Promise<void>;
477
489
  /**
478
490
  * Depending on the sources specified, search() queries the feature layer(s) and/or performs
479
491
  * address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/references/core/rest/locator/) and
@@ -86,6 +86,9 @@ class z extends f {
86
86
  return this._suggestController !== t || (this._suggestController = void 0), null;
87
87
  }
88
88
  }
89
+ async onSourcesReady() {
90
+ await this.viewModel.when();
91
+ }
89
92
  loaded() {
90
93
  this.listen("arcgisSelectResult", this._handleSelectResult), this.manager.onLifecycle(() => [
91
94
  u(() => [this._searchResultRendererEl, this.viewModel?.defaultPopupTemplate], () => {
@@ -1229,7 +1229,7 @@ class Ve extends ee {
1229
1229
  super.connectedCallback(), this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer?.destroyed && (this._defaultGraphicsLayer = null), this._defaultGraphicsLayer ??= new Y({ title: "Sketch Layer" }), this.layer = this._defaultGraphicsLayer, this.view?.map?.add(this.layer), this.viewModel.layer = this._defaultGraphicsLayer);
1230
1230
  }
1231
1231
  disconnectedCallback() {
1232
- this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), super.disconnectedCallback();
1232
+ this._defaultGraphicsLayer && this.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.view?.map?.remove(this._defaultGraphicsLayer), this.cancel(), super.disconnectedCallback();
1233
1233
  }
1234
1234
  render() {
1235
1235
  const e = this._refMap.get("settings")?.value?.actionElement, t = this.#t.groupedActions, { visualScale: o, layout: s, toolbarKind: c, relativePosition: d, _contextualToolLocation: r } = this, n = t.find(({ name: g }) => g === "selectionSet"), u = t.filter(({ name: g }) => g !== "selectionSet");
@@ -91,13 +91,6 @@ export abstract class ArcgisSwipe extends LitElement {
91
91
  * @default "Swipe"
92
92
  */
93
93
  accessor label: string | undefined;
94
- /**
95
- * A collection of layers that will show on the left or top side of the Swipe component.
96
- *
97
- * @deprecated since 5.0, use [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers) instead.
98
- * @see [leadingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#leadingLayers)
99
- */
100
- accessor leadingLayers: Collection<Layer>;
101
94
  /**
102
95
  * Replace localized message strings with your own strings.
103
96
  *
@@ -142,21 +135,6 @@ export abstract class ArcgisSwipe extends LitElement {
142
135
  * @default "disabled"
143
136
  */
144
137
  get state(): SwipeState;
145
- /**
146
- * The position of the Swipe component. This determines what percentage
147
- * of the view will be taken up by the [startLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#startLayers).
148
- *
149
- * @deprecated since 5.0, use [position](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#position) instead.
150
- * @default 25
151
- */
152
- accessor swipePosition: number;
153
- /**
154
- * A collection of layers that will show on the right or bottom side of the Swipe component.
155
- *
156
- * @deprecated since 5.0, use [endLayers](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-swipe/#endLayers) instead.
157
- * @see [trailingLayers](https://developers.arcgis.com/javascript/latest/references/core/widgets/Swipe/SwipeViewModel/#trailingLayers)
158
- */
159
- accessor trailingLayers: Collection<Layer>;
160
138
  /**
161
139
  * The view associated with the component.
162
140
  * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-swipe component will be associated with a map or scene component rather than using the `view` property.
@@ -2,13 +2,13 @@
2
2
  import { c as z } from "../../chunks/runtime.js";
3
3
  import { css as A, html as y } from "lit";
4
4
  import { classes as b } from "@arcgis/toolkit/dom";
5
- import { LitElement as K, createEvent as L, safeClassMap as C, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
5
+ import { LitElement as K, createEvent as C, safeClassMap as L, safeStyleMap as D, nothing as E } from "@arcgis/lumina";
6
6
  import { usePropertyChange as O } from "@arcgis/lumina/controllers";
7
7
  import { createRef as S, ref as H } from "lit/directives/ref.js";
8
8
  import { u as k } from "../../chunks/useT9n.js";
9
9
  import { m as U } from "../../chunks/useViewModel.js";
10
- import { g as P } from "../../chunks/globalCss.js";
11
- import { l as $ } from "../../chunks/legacyIcon.js";
10
+ import { g as $ } from "../../chunks/globalCss.js";
11
+ import { l as P } from "../../chunks/legacyIcon.js";
12
12
  import I from "@arcgis/core/core/Accessor.js";
13
13
  import f from "@arcgis/core/core/Collection.js";
14
14
  import T from "@arcgis/core/core/Error.js";
@@ -16,11 +16,11 @@ import { property as p, subclass as j } from "@arcgis/core/core/accessorSupport/
16
16
  import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
17
17
  import { c as R, i as X, l as Y } from "../../chunks/async-utils.js";
18
18
  var B = Object.defineProperty, N = Object.getOwnPropertyDescriptor, d = (t, e, i, r) => {
19
- for (var s = r > 1 ? void 0 : r ? N(e, i) : e, o = t.length - 1, a; o >= 0; o--)
20
- (a = t[o]) && (s = (r ? a(e, i, s) : a(s)) || s);
21
- return r && s && B(e, i, s), s;
19
+ for (var n = r > 1 ? void 0 : r ? N(e, i) : e, o = t.length - 1, a; o >= 0; o--)
20
+ (a = t[o]) && (n = (r ? a(e, i, n) : a(n)) || n);
21
+ return r && n && B(e, i, n), n;
22
22
  };
23
- const w = {
23
+ const m = {
24
24
  left: 0,
25
25
  right: 0,
26
26
  top: 0,
@@ -118,11 +118,11 @@ let l = class extends I {
118
118
  const { position: e } = this;
119
119
  return t === "leading" ? {
120
120
  type: "rect",
121
- ...w,
121
+ ...m,
122
122
  bottom: `${100 - e}%`
123
123
  } : t === "trailing" ? {
124
124
  type: "rect",
125
- ...w,
125
+ ...m,
126
126
  top: `${e}%`
127
127
  } : null;
128
128
  }
@@ -130,11 +130,11 @@ let l = class extends I {
130
130
  const { position: e } = this;
131
131
  return t === "leading" ? {
132
132
  type: "rect",
133
- ...w,
133
+ ...m,
134
134
  right: `${100 - e}%`
135
135
  } : t === "trailing" ? {
136
136
  type: "rect",
137
- ...w,
137
+ ...m,
138
138
  left: `${e}%`
139
139
  } : null;
140
140
  }
@@ -143,31 +143,31 @@ let l = class extends I {
143
143
  return e === "vertical" ? this._getVerticalClipRect(t) : e === "horizontal" ? this._getHorizontalClipRect(t) : null;
144
144
  }
145
145
  async _clipLayer(t, e) {
146
- const { _leadingClips: i, _trailingClips: r, view: s } = this, { layer: o, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
146
+ const { _leadingClips: i, _trailingClips: r, view: n } = this, { layer: o, type: a } = t, c = a === "trailing" ? r : a === "leading" ? i : null;
147
147
  try {
148
- const n = await this._getLayerView(o);
149
- if (e.aborted || this.destroyed || s !== this.view || !n || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(o))
148
+ const s = await this._getLayerView(o);
149
+ if (e.aborted || this.destroyed || n !== this.view || !s || !c || !(a === "leading" ? this.leadingLayers : this.trailingLayers).includes(o))
150
150
  return;
151
- const g = c.get(n);
152
- g && n.clips.remove(g);
151
+ const g = c.get(s);
152
+ g && s.clips.remove(g);
153
153
  const v = this._getClipRect(a);
154
154
  if (v) {
155
- const m = n.clips.length;
156
- n.clips.add(v);
157
- const u = n.clips.at(m);
158
- u && c.set(n, u);
155
+ const w = s.clips.length;
156
+ s.clips.add(v);
157
+ const u = s.clips.at(w);
158
+ u && c.set(s, u);
159
159
  }
160
- } catch (n) {
161
- if (e.aborted || X(n) || n instanceof T && n.name === "view:no-layerview-for-layer")
160
+ } catch (s) {
161
+ if (e.aborted || X(s) || s instanceof T && s.name === "view:no-layerview-for-layer")
162
162
  return;
163
- Y(n, this.declaredClass, "Failed to clip layer");
163
+ Y(s, this.declaredClass, "Failed to clip layer");
164
164
  }
165
165
  }
166
166
  _removeClips(t) {
167
167
  this.removeHandles(M[t]);
168
168
  const { _leadingClips: e, _trailingClips: i } = this, r = t === "trailing" ? i : t === "leading" ? e : null;
169
- r && (r.forEach((s, o) => {
170
- V(o) && o.clips.remove(s);
169
+ r && (r.forEach((n, o) => {
170
+ V(o) && o.clips.remove(n);
171
171
  }), r.clear());
172
172
  }
173
173
  _removeExistingClips() {
@@ -217,10 +217,10 @@ class G extends K {
217
217
  e.preventDefault();
218
218
  const i = this._containerRef.value;
219
219
  i && document.activeElement !== this.el && i.focus(), this._swiping = !0, this._calculatePointerOffset(e);
220
- }, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = L(), this.arcgisSwipeChange = L(), this.arcgisSwipeInput = L();
220
+ }, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.direction = this.viewModel.direction, this.disabled = !1, this.hideDivider = !1, this.hideHandle = !1, this.icon = "compare", this.label = this.messages.componentLabel, this.position = this.viewModel.position, this.state = this.viewModel.state, this.arcgisPropertyChange = O()("state"), this.arcgisReady = C(), this.arcgisSwipeChange = C(), this.arcgisSwipeInput = C();
221
221
  }
222
222
  static {
223
- this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, leadingLayers: 0, messageOverrides: 0, position: 9, startLayers: 0, swipePosition: 9, referenceElement: 1, state: 32, trailingLayers: 0 };
223
+ this.properties = { view: 0, autoDestroyDisabled: 5, direction: 3, disabled: 7, endLayers: 0, hideDivider: 7, hideHandle: 7, icon: 1, label: 1, messageOverrides: 0, position: 9, startLayers: 0, referenceElement: 1, state: 32 };
224
224
  }
225
225
  static {
226
226
  this.styles = W;
@@ -231,30 +231,12 @@ class G extends K {
231
231
  set endLayers(e) {
232
232
  this.viewModel.trailingLayers = e;
233
233
  }
234
- get leadingLayers() {
235
- return this.startLayers;
236
- }
237
- set leadingLayers(e) {
238
- this.startLayers = e;
239
- }
240
234
  get startLayers() {
241
235
  return this.viewModel.leadingLayers;
242
236
  }
243
237
  set startLayers(e) {
244
238
  this.viewModel.leadingLayers = e;
245
239
  }
246
- get swipePosition() {
247
- return this.position;
248
- }
249
- set swipePosition(e) {
250
- this.position = e;
251
- }
252
- get trailingLayers() {
253
- return this.endLayers;
254
- }
255
- set trailingLayers(e) {
256
- this.endLayers = e;
257
- }
258
240
  async destroy() {
259
241
  await this.manager.destroy();
260
242
  }
@@ -262,8 +244,8 @@ class G extends K {
262
244
  this.listenOn(document, "pointermove", this._onContainerPointerMove), this.listenOn(document, "pointerup", this._onContainerPointerUp);
263
245
  }
264
246
  _calculatePointerOffset(e) {
265
- const { direction: i } = this, r = this._containerRef.value, s = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, o = r.getBoundingClientRect(), a = e.clientX - o.left, c = e.clientY - o.top;
266
- this._pointerOffset = i === "vertical" ? c - s : a - s;
247
+ const { direction: i } = this, r = this._containerRef.value, n = (i === "vertical" ? r.clientHeight : r.clientWidth) / 2, o = r.getBoundingClientRect(), a = e.clientX - o.left, c = e.clientY - o.top;
248
+ this._pointerOffset = i === "vertical" ? c - n : a - n;
267
249
  }
268
250
  _onContainerPointerUp(e) {
269
251
  this._swiping && (e.preventDefault(), this._positionChanged && (this.arcgisSwipeChange.emit(), this._positionChanged = !1), this._swiping = !1);
@@ -272,40 +254,40 @@ class G extends K {
272
254
  if (!this._swiping)
273
255
  return;
274
256
  e.preventDefault();
275
- const { _pointerOffset: i, el: r, direction: s } = this, { clientX: o, clientY: a } = e, { top: c, left: n, width: h, height: g } = r.getBoundingClientRect(), v = s === "vertical" ? g : h, u = (s === "vertical" ? a - c - i : o - n - i) / v * 100;
257
+ const { _pointerOffset: i, el: r, direction: n } = this, { clientX: o, clientY: a } = e, { top: c, left: s, width: h, height: g } = r.getBoundingClientRect(), v = n === "vertical" ? g : h, u = (n === "vertical" ? a - c - i : o - s - i) / v * 100;
276
258
  this.position !== u && (this.position = u, this._positionChanged = !0, this.arcgisSwipeInput.emit());
277
259
  }
278
260
  _getKeyPosition(e) {
279
- const { key: i } = e, { position: r } = this, { max: s, min: o, step: a, stepMultiplier: c, direction: n } = this.viewModel, h = a * c;
280
- if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), n === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
261
+ const { key: i } = e, { position: r } = this, { max: n, min: o, step: a, stepMultiplier: c, direction: s } = this.viewModel, h = a * c;
262
+ if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i) && (e.preventDefault(), e.stopPropagation()), s === "vertical" ? i === "ArrowDown" || i === "ArrowRight" : i === "ArrowUp" || i === "ArrowRight") {
281
263
  const _ = e.shiftKey ? h : a;
282
264
  return r + _;
283
265
  }
284
- if (n === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
266
+ if (s === "vertical" ? i === "ArrowUp" || i === "ArrowLeft" : i === "ArrowDown" || i === "ArrowLeft") {
285
267
  const _ = e.shiftKey ? h : a;
286
268
  return r - _;
287
269
  }
288
- return i === "Home" ? o : i === "End" ? s : (n === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (n === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
270
+ return i === "Home" ? o : i === "End" ? n : (s === "vertical" ? i === "PageDown" : i === "PageUp") ? r + h : (s === "vertical" ? i === "PageUp" : i === "PageDown") ? r - h : null;
289
271
  }
290
272
  _onContainerKeyDown(e) {
291
273
  const i = this._getKeyPosition(e);
292
274
  typeof i == "number" && this.position !== i && (this.position = i, this.arcgisSwipeInput.emit(), this.arcgisSwipeChange.emit());
293
275
  }
294
276
  render() {
295
- const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, s = {
296
- [P.disabled]: r,
277
+ const { state: e, direction: i } = this.viewModel, r = e === "disabled" || this.disabled, n = {
278
+ [$.disabled]: r,
297
279
  disabled: r,
298
280
  vertical: i === "vertical",
299
281
  horizontal: i === "horizontal"
300
282
  };
301
- return y`<div class=${C(b("root", P.widget, s))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
283
+ return y`<div class=${L(b("root", $.widget, n))}>${e === "disabled" ? null : this._renderContainer()}</div>`;
302
284
  }
303
285
  _renderHandle() {
304
286
  const { direction: e } = this.viewModel, { hideHandle: i } = this, r = {
305
- [$.dragHorizontal]: e === "vertical",
306
- [$.dragVertical]: e === "horizontal"
307
- }, s = b("handle", !!i && "handle-hidden");
308
- return y`<div class=${C(s)} role=presentation><span aria-hidden=true class=${C(b("handle-icon", r))}></span></div>`;
287
+ [P.dragHorizontal]: e === "vertical",
288
+ [P.dragVertical]: e === "horizontal"
289
+ }, n = b("handle", !!i && "handle-hidden");
290
+ return y`<div class=${L(n)} role=presentation><span aria-hidden=true class=${L(b("handle-icon", r))}></span></div>`;
309
291
  }
310
292
  _renderDivider() {
311
293
  return this.hideDivider ? null : y`<div class="divider" role=presentation></div>`;
@@ -314,11 +296,11 @@ class G extends K {
314
296
  return [this._renderDivider(), this._renderHandle()];
315
297
  }
316
298
  _renderContainer() {
317
- const { disabled: e, viewModel: i } = this, { max: r, min: s, direction: o, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", n = `${a}%`, h = {
318
- top: o === "vertical" ? n : void 0,
319
- left: o === "vertical" ? void 0 : n
299
+ const { disabled: e, viewModel: i } = this, { max: r, min: n, direction: o, position: a } = i, c = this.label ?? this.messages.dragLabel ?? "", s = `${a}%`, h = {
300
+ top: o === "vertical" ? s : void 0,
301
+ left: o === "vertical" ? void 0 : s
320
302
  }, g = this._renderContent();
321
- return e ? y`<div class="container" role=presentation style=${D(h)}>${g}</div>` : y`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${r}`} .ariaValueMin=${`${s}`} .ariaValueNow=${`${a}`} .ariaValueText=${n} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
303
+ return e ? y`<div class="container" role=presentation style=${D(h)}>${g}</div>` : y`<div @pointerdown=${this._onContainerPointerDown} .ariaLabel=${c} .ariaOrientation=${o} .ariaValueMax=${`${r}`} .ariaValueMin=${`${n}`} .ariaValueNow=${`${a}`} .ariaValueText=${s} class="container" @keydown=${this._onContainerKeyDown} role=slider style=${D(h)} tabindex=0 title=${c ?? E} touch-action=none ${H(this._containerRef)}>${g}</div>`;
322
304
  }
323
305
  }
324
306
  z("arcgis-swipe", G);