@arcgis/map-components 5.2.0-next.96 → 5.2.0-next.97

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 (178) hide show
  1. package/dist/cdn/{GIQDIWW4.js → 22VFTYTN.js} +1 -1
  2. package/dist/cdn/367Z3TKY.js +2 -0
  3. package/dist/cdn/{QTGJ2TIJ.js → 454H3MLO.js} +1 -1
  4. package/dist/cdn/{FRAZUJ7K.js → 4MSBOUHQ.js} +1 -1
  5. package/dist/cdn/{SK4OCYH7.js → 4YU2AF7S.js} +1 -1
  6. package/dist/cdn/5FWT3N7B.js +2 -0
  7. package/dist/cdn/6KYWLAYH.js +2 -0
  8. package/dist/cdn/6SEM26SM.js +2 -0
  9. package/dist/cdn/6ZE7BJTS.js +2 -0
  10. package/dist/cdn/72HH6FSN.js +2 -0
  11. package/dist/cdn/{LPB2JMJ5.js → 7F2DXC54.js} +1 -1
  12. package/dist/cdn/{Y56FOEA4.js → A3KD2UAY.js} +1 -1
  13. package/dist/cdn/{MXYWUI34.js → ASVNFERZ.js} +1 -1
  14. package/dist/cdn/{PWY44JI6.js → B4KOVXN3.js} +1 -1
  15. package/dist/cdn/{7TTSWTGP.js → BHENVS42.js} +1 -1
  16. package/dist/cdn/{VHHRBGXN.js → CJLML2XS.js} +1 -1
  17. package/dist/cdn/CKO4VE36.js +2 -0
  18. package/dist/cdn/{I3VQ46FA.js → EAQV7AZQ.js} +1 -1
  19. package/dist/cdn/{CEMBX25Q.js → EXIPQBCY.js} +1 -1
  20. package/dist/cdn/FCNNRX3Q.js +2 -0
  21. package/dist/cdn/FCVLHRLJ.js +2 -0
  22. package/dist/cdn/{3CHIGFZL.js → GLMK45AB.js} +1 -1
  23. package/dist/cdn/{S5XIZ2L4.js → HXNLIDLQ.js} +1 -1
  24. package/dist/cdn/{7ZZWKH2U.js → IPT3YBSG.js} +2 -2
  25. package/dist/cdn/{UAGCCYQB.js → IXDLJKJA.js} +1 -1
  26. package/dist/cdn/{B5FTF7WR.js → J624KHFL.js} +1 -1
  27. package/dist/cdn/{G2BLA5NQ.js → JAQYZZRT.js} +1 -1
  28. package/dist/cdn/{XAZNEI2W.js → LCG5BEEY.js} +1 -1
  29. package/dist/cdn/{VWV6XWSU.js → LW6SRLBI.js} +1 -1
  30. package/dist/cdn/{5SVULVBJ.js → MAILUSIQ.js} +1 -1
  31. package/dist/cdn/NRT2ZCWC.js +2 -0
  32. package/dist/cdn/{HOKDRJ4R.js → NSUQXUWH.js} +1 -1
  33. package/dist/cdn/{V42KBFW7.js → OCAPESF3.js} +1 -1
  34. package/dist/cdn/{F3JDX4A7.js → OMEJFPK7.js} +1 -1
  35. package/dist/cdn/{D6BWGR3Z.js → P5CQYFPA.js} +1 -1
  36. package/dist/cdn/R5GMCIAH.js +2 -0
  37. package/dist/cdn/{AKNAVXKD.js → RC7BSNQ3.js} +1 -1
  38. package/dist/cdn/SA4IYYIE.js +2 -0
  39. package/dist/cdn/{QD3GVN2C.js → SDY4E3WA.js} +1 -1
  40. package/dist/cdn/{CJ536VHT.js → SGU4TP7V.js} +1 -1
  41. package/dist/cdn/TDGEDT35.js +2 -0
  42. package/dist/cdn/{66PT52ED.js → TZEAPNBI.js} +1 -1
  43. package/dist/cdn/{CA5LXWO6.js → UOZG2EH7.js} +1 -1
  44. package/dist/cdn/{GMSIYMNC.js → UPJTKQR3.js} +1 -1
  45. package/dist/cdn/{2JLMOWRT.js → VULA5TJD.js} +1 -1
  46. package/dist/cdn/VZXCU47M.js +2 -0
  47. package/dist/cdn/{FRSROWP4.js → W6IFUQTQ.js} +1 -1
  48. package/dist/cdn/{SVJ7AEMP.js → WAFRMU5C.js} +1 -1
  49. package/dist/cdn/WLGR4IHZ.js +2 -0
  50. package/dist/cdn/{CX3OZJEH.js → WMK7RLBA.js} +1 -1
  51. package/dist/cdn/{4FVOBVTD.js → YEN7K65V.js} +2 -2
  52. package/dist/cdn/YVQJ4XD4.js +2 -0
  53. package/dist/cdn/{FZDURX2Y.js → YWOTHCBH.js} +1 -1
  54. package/dist/cdn/{N5VJ4SAX.js → ZCRUGROJ.js} +1 -1
  55. package/dist/cdn/{VT2IDAHB.js → ZUWNZX6G.js} +1 -1
  56. package/dist/cdn/assets/layer-list-next/t9n/messages.en.json +1 -1
  57. package/dist/cdn/index.js +1 -1
  58. package/dist/chunks/layer-list-utils.js +23 -17
  59. package/dist/chunks/svgUtils.js +1 -1
  60. package/dist/chunks/univariateUtils.js +1 -1
  61. package/dist/chunks/utils2.js +66 -50
  62. package/dist/chunks/utils3.js +50 -13
  63. package/dist/chunks/utils4.js +13 -45
  64. package/dist/chunks/utils5.js +51 -0
  65. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +21 -0
  66. package/dist/components/arcgis-area-measurement-2d/customElement.js +5 -5
  67. package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +16 -0
  68. package/dist/components/arcgis-area-measurement-3d/customElement.js +10 -10
  69. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +6 -5
  70. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
  71. package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +18 -0
  72. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  73. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +19 -0
  74. package/dist/components/arcgis-distance-measurement-2d/customElement.js +5 -5
  75. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +6 -6
  76. package/dist/components/arcgis-layer-list-item-panel/customElement.js +20 -16
  77. package/dist/components/arcgis-layer-list-next/customElement.d.ts +16 -0
  78. package/dist/components/arcgis-layer-list-next/customElement.js +49 -45
  79. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +134 -10
  80. package/dist/components/arcgis-layer-list-next/types.d.ts +5 -0
  81. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  82. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  83. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  84. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  85. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  86. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  87. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  88. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
  89. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
  90. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  91. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  92. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  93. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  94. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  95. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  96. package/dist/components/arcgis-table-list-next/customElement.js +5 -5
  97. package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +2 -1
  98. package/dist/components/arcgis-utility-network-elements-result-item/customElement.d.ts +1 -1
  99. package/dist/components/arcgis-utility-network-elements-result-item/customElement.js +1 -1
  100. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +11 -0
  101. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +76 -78
  102. package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -4
  103. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +17 -25
  104. package/dist/components/arcgis-volume-measurement/customElement.d.ts +37 -0
  105. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/loader.js +7 -7
  111. package/dist/types/lumina.d.ts +9 -9
  112. package/dist/types/preact.d.ts +9 -9
  113. package/dist/types/react.d.ts +9 -9
  114. package/dist/types/stencil.d.ts +9 -9
  115. package/dist/utils/layer-list-utils.d.ts +1 -1
  116. package/package.json +6 -6
  117. package/dist/cdn/376WTHOL.js +0 -2
  118. package/dist/cdn/4YFREAQ2.js +0 -2
  119. package/dist/cdn/ECXHREHJ.js +0 -2
  120. package/dist/cdn/FIIA3N5X.js +0 -2
  121. package/dist/cdn/HISWL3K3.js +0 -2
  122. package/dist/cdn/HPLMTKLF.js +0 -2
  123. package/dist/cdn/JKOIMKKL.js +0 -2
  124. package/dist/cdn/JOPAUFUX.js +0 -2
  125. package/dist/cdn/LDDAJOTV.js +0 -2
  126. package/dist/cdn/LMNH2RHA.js +0 -2
  127. package/dist/cdn/MBFY4GDJ.js +0 -2
  128. package/dist/cdn/PI55I5L7.js +0 -2
  129. package/dist/cdn/RCQKTBVC.js +0 -2
  130. package/dist/cdn/YDP5A3EP.js +0 -2
  131. package/dist/cdn/ZSDNX326.js +0 -2
  132. package/dist/chunks/layer-list-item.js +0 -181
  133. /package/dist/cdn/{WKBILCAY.js → 2ZG7S6GM.js} +0 -0
  134. /package/dist/cdn/{4WURS3DM.js → 3VWL4SN7.js} +0 -0
  135. /package/dist/cdn/{4GIRSQMC.js → 4F6FNH6V.js} +0 -0
  136. /package/dist/cdn/{KYWZUC6M.js → 4J6DMRVO.js} +0 -0
  137. /package/dist/cdn/{FVZJPOWC.js → 5OBSJYCP.js} +0 -0
  138. /package/dist/cdn/{5CB7FWG6.js → 657KH5W3.js} +0 -0
  139. /package/dist/cdn/{ESYSNSNH.js → 6B4ROFUM.js} +0 -0
  140. /package/dist/cdn/{RKXHWHFR.js → 6RT7GRX4.js} +0 -0
  141. /package/dist/cdn/{3ZXNGXHC.js → 7DI2ZSB3.js} +0 -0
  142. /package/dist/cdn/{4AEFZEGM.js → 7JKYXV7H.js} +0 -0
  143. /package/dist/cdn/{NDWLSQ4W.js → 7NO3F7GQ.js} +0 -0
  144. /package/dist/cdn/{4KYPBCNM.js → AA2HLLIM.js} +0 -0
  145. /package/dist/cdn/{BU5HRIOW.js → ADZF7IHV.js} +0 -0
  146. /package/dist/cdn/{B4RNNO6A.js → B6JLKBMG.js} +0 -0
  147. /package/dist/cdn/{ZOGRVFHK.js → D2FVI5JG.js} +0 -0
  148. /package/dist/cdn/{HW5YYDPC.js → D5LP3DJA.js} +0 -0
  149. /package/dist/cdn/{OJOQP2IU.js → DNQGXWL3.js} +0 -0
  150. /package/dist/cdn/{QU5PA5MZ.js → DSPV4EIK.js} +0 -0
  151. /package/dist/cdn/{FV7FUSTO.js → E3AEBH36.js} +0 -0
  152. /package/dist/cdn/{2EDZ2LNR.js → FRGVEQAZ.js} +0 -0
  153. /package/dist/cdn/{ZXEH6MEU.js → G7DHB4QN.js} +0 -0
  154. /package/dist/cdn/{MGILHYX4.js → GJAC7GKP.js} +0 -0
  155. /package/dist/cdn/{G42D353L.js → GLZMKGGW.js} +0 -0
  156. /package/dist/cdn/{WRKX7F2G.js → H3RDAWS7.js} +0 -0
  157. /package/dist/cdn/{YFM2SKWI.js → HDYBFSI5.js} +0 -0
  158. /package/dist/cdn/{NGQUETWM.js → HH4A44WX.js} +0 -0
  159. /package/dist/cdn/{5EU3QVP7.js → HRTVHZHG.js} +0 -0
  160. /package/dist/cdn/{7427KHVF.js → IU63DGNP.js} +0 -0
  161. /package/dist/cdn/{O3SPKYBG.js → J3KTKVLP.js} +0 -0
  162. /package/dist/cdn/{BV52G5DA.js → JHF7SGKM.js} +0 -0
  163. /package/dist/cdn/{GLKTAVV5.js → JU4MCJPU.js} +0 -0
  164. /package/dist/cdn/{77ZD2RFI.js → KVIE42LT.js} +0 -0
  165. /package/dist/cdn/{W2UZH6QI.js → LG3G4BFF.js} +0 -0
  166. /package/dist/cdn/{VDTRRLON.js → MDTNPISF.js} +0 -0
  167. /package/dist/cdn/{XYRTRBXU.js → OO4SKY7C.js} +0 -0
  168. /package/dist/cdn/{SNX6WY7J.js → OTTKYEPK.js} +0 -0
  169. /package/dist/cdn/{J4VKIBXE.js → QH4RNPEX.js} +0 -0
  170. /package/dist/cdn/{IHWFNEBS.js → QJBQ3JLC.js} +0 -0
  171. /package/dist/cdn/{KG3HVAZY.js → SE4NXMGA.js} +0 -0
  172. /package/dist/cdn/{AZWQWNTK.js → SOOVHYLT.js} +0 -0
  173. /package/dist/cdn/{KMNELKA3.js → T5QDEAAE.js} +0 -0
  174. /package/dist/cdn/{W2YB27M6.js → TKEBTPPA.js} +0 -0
  175. /package/dist/cdn/{6URW6H47.js → TTBQBEDS.js} +0 -0
  176. /package/dist/cdn/{BIKEUMV7.js → VFHHDNXC.js} +0 -0
  177. /package/dist/cdn/{QZHFPTSI.js → X2MAQDWV.js} +0 -0
  178. /package/dist/cdn/{LGNLLGA6.js → YWQU6EBN.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  import { html as h, svg as S } from "lit";
3
3
  import { renderColorRampPreviewHTML as R } from "@arcgis/core/symbols/support/symbolUtils.js";
4
4
  import { renderElement as C, safeStyleMap as z } from "@arcgis/lumina";
5
- import { p as d, s as E, g as $ } from "./utils2.js";
5
+ import { p as d, s as E, g as $ } from "./utils3.js";
6
6
  const b = 10, p = 20, u = 10, g = 20;
7
7
  function v(n) {
8
8
  return typeof n == "number";
@@ -1,56 +1,72 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { formatNumber as l, substitute as s } from "@arcgis/core/intl.js";
3
- import { g as o } from "./titleUtils.js";
4
- const u = /^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/iu;
5
- function m(t, e, r) {
6
- switch (e) {
7
- case "heatmap-ramp":
8
- return (r[t.label] || t.label) ?? null;
9
- case "stretch-ramp":
10
- const n = "value" in t ? t.value : void 0, a = t.label ? r[t.label] : "";
11
- return a ? `${a}: ${typeof n == "string" ? n : l(n ?? 0, {
12
- style: "decimal",
13
- notation: n?.toString().toLowerCase().includes("e") ? "scientific" : "standard"
14
- })}` : "";
15
- default:
16
- return t.label ?? null;
17
- }
18
- }
19
- function g(t, e) {
20
- return !!(e && e === "Stretched" && "version" in t && typeof t.version == "number" && t.version >= 10.3 && t.declaredClass === "esri.layers.ImageryLayer");
21
- }
22
- function d(t) {
23
- return t ? t / 72 * 96 : 0;
24
- }
25
- function c(t) {
26
- return t ? t * 72 / 96 : 0;
27
- }
28
- function p(t) {
29
- if (typeof t == "string") {
30
- const e = t.match(u);
31
- if (e) {
32
- const r = Number(e[1]), n = e[3]?.toLowerCase(), a = t.startsWith("-"), i = n === "px" ? c(r) : r;
33
- return a ? -i : i;
34
- }
35
- return null;
36
- }
37
- return t;
38
- }
39
- function h(t, e) {
40
- const r = o(t, e, !1), n = r ? t.previewTemplateAriaLabel : t.previewAriaLabel;
41
- return s(n ?? "", { label: r });
2
+ import { html as c } from "lit";
3
+ import { safeClassMap as m, safeStyleMap as p, nothing as l } from "@arcgis/lumina";
4
+ import { classes as v } from "@arcgis/toolkit/dom";
5
+ import { g as y, a as $ } from "./action-utils.js";
6
+ import { s as b } from "./component-utils.js";
7
+ function A(e) {
8
+ return e && "visibilityMode" in e ? e.visibilityMode : null;
42
9
  }
43
- function v(t, e) {
44
- if (!e || !t)
10
+ function F(e, t) {
11
+ if (!("visible" in e))
45
12
  return;
46
- const r = t.querySelector("svg") ?? t.querySelector("canvas") ?? t;
47
- !(r instanceof SVGElement) && !r.hasAttribute("role") && r.setAttribute("role", "img"), r.setAttribute("aria-label", e);
13
+ A(t) === "exclusive" && e.visible || (e.visible = !e.visible);
14
+ }
15
+ function L(e, t) {
16
+ "panel" in e && (e.panel.open = !e.panel.open, e.panel.open && t && t());
17
+ }
18
+ function I(e) {
19
+ return Array.isArray(e) ? e.filter((t) => t !== "legend") : e === "legend" ? null : e;
20
+ }
21
+ function x(e) {
22
+ const t = I(e.panel?.content);
23
+ return Array.isArray(t) ? t.length > 0 : !!t;
24
+ }
25
+ function D(e) {
26
+ return !!e && "trackInfoType" in e && !!e.trackInfoType;
27
+ }
28
+ function P(e, t, i, n) {
29
+ e && i === t.layer?.uid && (b(e), n?.(null));
30
+ }
31
+ function h(e, t, i) {
32
+ i.type === "toggle" && (i.value = !i.value), e(i, t);
33
+ }
34
+ function V(e) {
35
+ return e.actionsSections.map((t) => t.filter((i) => i.visible));
36
+ }
37
+ function q(e, t, i) {
38
+ return e.updateComplete.then(() => {
39
+ const n = () => {
40
+ const r = Array.from(e.el.shadowRoot?.querySelectorAll(`calcite-list-item[data-item="${t}"]`) ?? []);
41
+ if (r.length < 2)
42
+ return;
43
+ const a = r.find(i);
44
+ a && r.filter((o) => o !== a).forEach((o) => o.remove());
45
+ };
46
+ return n(), e.updateComplete.then(n);
47
+ });
48
+ }
49
+ function k(e, t) {
50
+ const { icon: i } = t;
51
+ if (i)
52
+ return null;
53
+ const n = "image" in t ? t.image : void 0;
54
+ return n ? c`<span aria-hidden=true class=${m(v(e.itemActionIcon, { [e.itemActionImage]: !!n }))} style=${p(y(n))}></span>` : null;
55
+ }
56
+ function w(e, t, i) {
57
+ const { item: n, css: r, handleAction: a } = e, { active: o, disabled: u, title: s, type: f, indicator: d } = t, g = $(t);
58
+ return c`<calcite-action .active=${f === "toggle" ? t.value : !1} data-action-id=${t.id ?? l} .disabled=${u} .icon=${g ?? void 0} .indicator=${d} .loading=${o} @click=${() => h(a, n, t)} scale=s slot=${(i ? void 0 : "actions-end") ?? l} .text=${s ?? ""} .textEnabled=${i} title=${s ?? void 0 ?? l}>${k(r, t)}</calcite-action>`;
48
59
  }
49
60
  export {
50
- m as a,
51
- h as g,
52
- g as i,
53
- d as p,
54
- v as s,
55
- p as t
61
+ k as F,
62
+ w as L,
63
+ L as a,
64
+ V as b,
65
+ I as c,
66
+ P as f,
67
+ A as g,
68
+ x as h,
69
+ D as i,
70
+ q as r,
71
+ F as t
56
72
  };
@@ -1,19 +1,56 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- function n(t, a) {
3
- return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) * Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
2
+ import { formatNumber as l, substitute as s } from "@arcgis/core/intl.js";
3
+ import { g as o } from "./titleUtils.js";
4
+ const u = /^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/iu;
5
+ function m(t, e, r) {
6
+ switch (e) {
7
+ case "heatmap-ramp":
8
+ return (r[t.label] || t.label) ?? null;
9
+ case "stretch-ramp":
10
+ const n = "value" in t ? t.value : void 0, a = t.label ? r[t.label] : "";
11
+ return a ? `${a}: ${typeof n == "string" ? n : l(n ?? 0, {
12
+ style: "decimal",
13
+ notation: n?.toString().toLowerCase().includes("e") ? "scientific" : "standard"
14
+ })}` : "";
15
+ default:
16
+ return t.label ?? null;
17
+ }
4
18
  }
5
- function h(t, a) {
6
- return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) / Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
19
+ function g(t, e) {
20
+ return !!(e && e === "Stretched" && "version" in t && typeof t.version == "number" && t.version >= 10.3 && t.declaredClass === "esri.layers.ImageryLayer");
7
21
  }
8
- function M(t, a) {
9
- return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) * (1 / a) / Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
22
+ function d(t) {
23
+ return t ? t / 72 * 96 : 0;
24
+ }
25
+ function c(t) {
26
+ return t ? t * 72 / 96 : 0;
27
+ }
28
+ function p(t) {
29
+ if (typeof t == "string") {
30
+ const e = t.match(u);
31
+ if (e) {
32
+ const r = Number(e[1]), n = e[3]?.toLowerCase(), a = t.startsWith("-"), i = n === "px" ? c(r) : r;
33
+ return a ? -i : i;
34
+ }
35
+ return null;
36
+ }
37
+ return t;
38
+ }
39
+ function h(t, e) {
40
+ const r = o(t, e, !1), n = r ? t.previewTemplateAriaLabel : t.previewAriaLabel;
41
+ return s(n ?? "", { label: r });
42
+ }
43
+ function v(t, e) {
44
+ if (!e || !t)
45
+ return;
46
+ const r = t.querySelector("svg") ?? t.querySelector("canvas") ?? t;
47
+ !(r instanceof SVGElement) && !r.hasAttribute("role") && r.setAttribute("role", "img"), r.setAttribute("aria-label", e);
10
48
  }
11
- const o = 120, r = 50, s = 5;
12
49
  export {
13
- r as a,
14
- h as b,
15
- M as c,
16
- s as d,
17
- n as f,
18
- o as m
50
+ m as a,
51
+ h as g,
52
+ g as i,
53
+ d as p,
54
+ v as s,
55
+ p as t
19
56
  };
@@ -1,51 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { formatNumber as i } from "@arcgis/core/intl.js";
3
- const p = /* @__PURE__ */ new Map([
4
- ["a3-landscape", "a3-landscape"],
5
- ["a3-portrait", "a3-portrait"],
6
- ["a4-landscape", "a4-landscape"],
7
- ["a4-portrait", "a4-portrait"],
8
- ["letter-ansi-a-landscape", "ansi-a-landscape"],
9
- ["letter-ansi-a-portrait", "ansi-a-portrait"],
10
- ["tabloid-ansi-b-landscape", "ansi-b-landscape"],
11
- ["tabloid-ansi-b-portrait", "ansi-b-portrait"]
12
- ]), u = /^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/iu;
13
- function f(a) {
14
- if (!a)
15
- return;
16
- const t = a.layoutTemplateInfo;
17
- if (!t)
18
- return;
19
- const [e, n] = t.pageSize;
20
- return `${i(e)} × ${i(n)} ${a.pageUnits}`;
2
+ function n(t, a) {
3
+ return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) * Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
21
4
  }
22
- function d(a, t) {
23
- const { label: e, layout: n, layoutItem: o } = a, r = n && !o && t[n] ? t[n] : null;
24
- return r || ((e ?? n ?? o?.id)?.replaceAll("_", " ") ?? t.untitled);
5
+ function h(t, a) {
6
+ return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) / Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
25
7
  }
26
- function g(a) {
27
- return p.get(a);
28
- }
29
- const b = /* @__PURE__ */ new Map([
30
- ["AIX", "aix"],
31
- ["EPS", "eps"],
32
- ["GIF", "gif"],
33
- ["JPG", "jpg"],
34
- ["PDF", "pdf"],
35
- ["PNG32", "png32"],
36
- ["PNG8", "png8"],
37
- ["SVG", "svg"],
38
- ["SVGZ", "svgz"],
39
- ["TIFF", "tiff"]
40
- ]), s = "map-only";
41
- function m(a) {
42
- return a?.toLowerCase() === s;
8
+ function M(t, a) {
9
+ return 2 * Math.atan(Math.tan(Math.PI * (t / 2) / 180) * (1 / a) / Math.sqrt((1 / a) ** 2 + 1)) * 180 / Math.PI;
43
10
  }
11
+ const o = 120, r = 50, s = 5;
44
12
  export {
45
- f as a,
46
- g as b,
47
- b as f,
48
- d as g,
49
- m as i,
50
- u as r
13
+ r as a,
14
+ h as b,
15
+ M as c,
16
+ s as d,
17
+ n as f,
18
+ o as m
51
19
  };
@@ -0,0 +1,51 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { formatNumber as i } from "@arcgis/core/intl.js";
3
+ const p = /* @__PURE__ */ new Map([
4
+ ["a3-landscape", "a3-landscape"],
5
+ ["a3-portrait", "a3-portrait"],
6
+ ["a4-landscape", "a4-landscape"],
7
+ ["a4-portrait", "a4-portrait"],
8
+ ["letter-ansi-a-landscape", "ansi-a-landscape"],
9
+ ["letter-ansi-a-portrait", "ansi-a-portrait"],
10
+ ["tabloid-ansi-b-landscape", "ansi-b-landscape"],
11
+ ["tabloid-ansi-b-portrait", "ansi-b-portrait"]
12
+ ]), u = /^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/iu;
13
+ function f(a) {
14
+ if (!a)
15
+ return;
16
+ const t = a.layoutTemplateInfo;
17
+ if (!t)
18
+ return;
19
+ const [e, n] = t.pageSize;
20
+ return `${i(e)} × ${i(n)} ${a.pageUnits}`;
21
+ }
22
+ function d(a, t) {
23
+ const { label: e, layout: n, layoutItem: o } = a, r = n && !o && t[n] ? t[n] : null;
24
+ return r || ((e ?? n ?? o?.id)?.replaceAll("_", " ") ?? t.untitled);
25
+ }
26
+ function g(a) {
27
+ return p.get(a);
28
+ }
29
+ const b = /* @__PURE__ */ new Map([
30
+ ["AIX", "aix"],
31
+ ["EPS", "eps"],
32
+ ["GIF", "gif"],
33
+ ["JPG", "jpg"],
34
+ ["PDF", "pdf"],
35
+ ["PNG32", "png32"],
36
+ ["PNG8", "png8"],
37
+ ["SVG", "svg"],
38
+ ["SVGZ", "svgz"],
39
+ ["TIFF", "tiff"]
40
+ ]), s = "map-only";
41
+ function m(a) {
42
+ return a?.toLowerCase() === s;
43
+ }
44
+ export {
45
+ f as a,
46
+ g as b,
47
+ b as f,
48
+ d as g,
49
+ m as i,
50
+ u as r
51
+ };
@@ -136,6 +136,27 @@ export abstract class ArcgisAreaMeasurement2d extends LitElement {
136
136
  accessor icon: Icon["icon"] | undefined;
137
137
  /** The component's default label. */
138
138
  accessor label: string | undefined;
139
+ /**
140
+ * Replace localized message strings with your own strings.
141
+ *
142
+ * _**Note**: Individual message keys may change between releases._
143
+ */
144
+ accessor messageOverrides: {
145
+ area?: string | undefined;
146
+ aria?: { label?: string | undefined; } | undefined;
147
+ componentLabel?: string | undefined;
148
+ hint?: string | undefined;
149
+ mode?: string | undefined;
150
+ modes?: {
151
+ auto?: string | undefined;
152
+ planar?: string | undefined;
153
+ geodesic?: string | undefined;
154
+ } | undefined;
155
+ newMeasurement?: string | undefined;
156
+ perimeter?: string | undefined;
157
+ unit?: string | undefined;
158
+ unsupported?: string | undefined;
159
+ };
139
160
  /** @internal */
140
161
  protected messages: {
141
162
  area: string;
@@ -3,8 +3,8 @@ import { c as f } from "../../chunks/runtime.js";
3
3
  import { css as v, html as c } from "lit";
4
4
  import { LitElement as b, createEvent as x, safeClassMap as y } from "@arcgis/lumina";
5
5
  import { usePropertyChange as M } from "@arcgis/lumina/controllers";
6
- import { u as k } from "../../chunks/useT9n.js";
7
- import { m as O } from "../../chunks/useViewModel.js";
6
+ import { u as O } from "../../chunks/useT9n.js";
7
+ import { m as k } from "../../chunks/useViewModel.js";
8
8
  import { b as z } from "../../chunks/async-utils.js";
9
9
  import { g as p } from "../../chunks/globalCss.js";
10
10
  import { V as g } from "../../chunks/visible-element.js";
@@ -111,13 +111,13 @@ s([
111
111
  r = s([
112
112
  S("components.area-measurement-2d.AreaMeasurement2dViewModel")
113
113
  ], r);
114
- const L = O(r);
114
+ const L = k(r);
115
115
  class B extends b {
116
116
  constructor() {
117
- super(...arguments), this.viewModel = L(this), this.messages = k({ name: "area-measurement-2d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-area", this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = x();
117
+ super(...arguments), this.viewModel = L(this), this.messages = O({ name: "area-measurement-2d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-area", this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = x();
118
118
  }
119
119
  static {
120
- this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
120
+ this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, messageOverrides: 0, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
121
121
  }
122
122
  static {
123
123
  this.styles = D;
@@ -174,6 +174,22 @@ export abstract class ArcgisAreaMeasurement3d extends LitElement {
174
174
  accessor icon: Icon["icon"] | undefined;
175
175
  /** The component's default label. */
176
176
  accessor label: string | undefined;
177
+ /**
178
+ * Replace localized message strings with your own strings.
179
+ *
180
+ * _**Note**: Individual message keys may change between releases._
181
+ */
182
+ accessor messageOverrides: {
183
+ area?: string | undefined;
184
+ componentLabel?: string | undefined;
185
+ hint?: string | undefined;
186
+ newMeasurement?: string | undefined;
187
+ perimeterLength?: string | undefined;
188
+ snappingDisablePrompt?: string | undefined;
189
+ snappingDisablePromptAlternate?: string | undefined;
190
+ unit?: string | undefined;
191
+ unsupported?: string | undefined;
192
+ };
177
193
  /** @internal */
178
194
  protected messages: {
179
195
  area: string;
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as _ } from "../../chunks/runtime.js";
3
- import { css as w, html as d } from "lit";
4
- import { LitElement as f, createEvent as b, nothing as v, safeClassMap as x } from "@arcgis/lumina";
3
+ import { css as w, html as c } from "lit";
4
+ import { LitElement as f, createEvent as v, nothing as b, safeClassMap as x } from "@arcgis/lumina";
5
5
  import { usePropertyChange as y } from "@arcgis/lumina/controllers";
6
6
  import { u as k } from "../../chunks/useT9n.js";
7
7
  import { m as M } from "../../chunks/useViewModel.js";
@@ -16,8 +16,8 @@ import { A as S } from "../../chunks/AnalysisViewModel.js";
16
16
  import { g as U, a as C, b as u, r as E, m, c as D } from "../../chunks/measurementUtils.js";
17
17
  const j = w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{width:300px;.esri-widget--panel{min-width:0}}`;
18
18
  var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (t, e, a, r) => {
19
- for (var i = r > 1 ? void 0 : r ? P(e, a) : e, s = t.length - 1, c; s >= 0; s--)
20
- (c = t[s]) && (i = (r ? c(e, a, i) : c(i)) || i);
19
+ for (var i = r > 1 ? void 0 : r ? P(e, a) : e, s = t.length - 1, d; s >= 0; s--)
20
+ (d = t[s]) && (i = (r ? d(e, a, i) : d(i)) || i);
21
21
  return r && i && L(e, a, i), i;
22
22
  };
23
23
  let o = class extends S {
@@ -103,10 +103,10 @@ o = n([
103
103
  const B = M(o);
104
104
  class R extends f {
105
105
  constructor() {
106
- super(...arguments), this.viewModel = B(this), this.messages = k({ blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-area", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = b();
106
+ super(...arguments), this.viewModel = B(this), this.messages = k({ blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-area", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = v();
107
107
  }
108
108
  static {
109
- this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
109
+ this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, messageOverrides: 0, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
110
110
  }
111
111
  static {
112
112
  this.styles = j;
@@ -121,8 +121,8 @@ class R extends f {
121
121
  z(this.viewModel.start());
122
122
  }
123
123
  render() {
124
- const { messages: e, unit: a, unitOptions: r, viewModel: i } = this, { measurement: s, state: c } = i;
125
- return d`<div aria-label=${e.componentLabel ?? v} class=${x({
124
+ const { messages: e, unit: a, unitOptions: r, viewModel: i } = this, { measurement: s, state: d } = i;
125
+ return c`<div aria-label=${e.componentLabel ?? b} class=${x({
126
126
  [g.widget]: !0,
127
127
  [g.panel]: !0
128
128
  })} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[
@@ -134,9 +134,9 @@ class R extends f {
134
134
  title: e.perimeterLength,
135
135
  measurement: s.perimeter
136
136
  }
137
- ]}>${p({ hidden: this.hideUnitSelect, children: d`<arcgis-unit-select slot=settings .options=${r} .selectLabel=${e.unit} .value=${a} @arcgisUnitSelectChange=${(h) => {
137
+ ]}>${p({ hidden: this.hideUnitSelect, children: c`<arcgis-unit-select slot=settings .options=${r} .selectLabel=${e.unit} .value=${a} @arcgisUnitSelectChange=${(h) => {
138
138
  this.unit = h.detail;
139
- }}></arcgis-unit-select>` })}${p({ hidden: this.hideStartButton, children: d`<calcite-button slot=actions .disabled=${c === "unsupported" || c === "disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
139
+ }}></arcgis-unit-select>` })}${p({ hidden: this.hideStartButton, children: c`<calcite-button slot=actions .disabled=${d === "unsupported" || d === "disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>` })}</arcgis-measurement-content></div>`;
140
140
  }
141
141
  }
142
142
  _("arcgis-area-measurement-3d", R);
@@ -17,8 +17,9 @@ import { u as J } from "../../chunks/useT9n.js";
17
17
  import { m as K } from "../../chunks/useViewModel.js";
18
18
  import { g as b } from "../../chunks/globalCss.js";
19
19
  import { g as h, a as F, b as Q, r as W, s as T, c as X, d as Y, e as Z } from "../../chunks/layer-list-utils.js";
20
- import { r as ee, A as te } from "../../chunks/layer-list-item.js";
21
- import { s as se, a as ie } from "../../chunks/layer-list-next.js";
20
+ import { ArcgisLayerListItem as ee } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
21
+ import { s as te, a as se } from "../../chunks/layer-list-next.js";
22
+ import { r as ie } from "../../chunks/utils2.js";
22
23
  import { c as ae } from "../../chunks/css.js";
23
24
  import "../arcgis-layer-list-item-indicator/customElement.js";
24
25
  import "../arcgis-layer-list-item-panel/customElement.js";
@@ -70,7 +71,7 @@ class ne extends G {
70
71
  this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItemCreatedFunction: 0, baseItems: 32, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, hideBaseLayers: 5, hideCatalogLayerList: 5, hideHeading: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesEnabled: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listModeDisabled: 5, mapImageOptions: 0, messageOverrides: 0, minFilterItems: 9, openedLayers: 32, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, showFilter: 5, showTemporaryLayerIndicators: 5, state: 32, tableList: 32, tileOptions: 0, view: 0, visibilityAppearance: 1 };
71
72
  }
72
73
  static {
73
- this.styles = [se, le, ie];
74
+ this.styles = [te, le, se];
74
75
  }
75
76
  get _allItems() {
76
77
  return this.referenceItems.concat(this.baseItems);
@@ -184,7 +185,7 @@ class ne extends G {
184
185
  newIndex: i,
185
186
  from: o,
186
187
  to: c
187
- }), ee(this, a.uid, (g) => g.parentElement?.closest("calcite-list") === e));
188
+ }), ie(this, a.uid, (g) => g.parentElement?.closest("calcite-list") === e));
188
189
  }
189
190
  _handleCalciteListDragEnd(e) {
190
191
  const { fromEl: t, toEl: s, dragEl: i, oldIndex: a } = e;
@@ -302,7 +303,7 @@ class ne extends G {
302
303
  return this.hideReferenceLayers ? null : this._renderList(this._visibleReferenceItems, "reference", !1);
303
304
  }
304
305
  _renderItem(e, t, s, i) {
305
- return d(e.uid, te({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: C, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
306
+ return d(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: C, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
306
307
  }
307
308
  }
308
309
  function M(v) {
@@ -19,7 +19,7 @@ import { m as V } from "../../chunks/useViewModel.js";
19
19
  import { s as v } from "../../chunks/component-utils.js";
20
20
  import { g as f } from "../../chunks/globalCss.js";
21
21
  import { g as T, b as j, r as q, s as z, e as J } from "../../chunks/layer-list-utils.js";
22
- import { A as K } from "../../chunks/layer-list-item.js";
22
+ import { ArcgisLayerListItem as K } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
23
23
  import { s as Q, a as W } from "../../chunks/layer-list-next.js";
24
24
  import { c as X } from "../../chunks/css.js";
25
25
  const m = X, Y = (p) => {
@@ -174,6 +174,24 @@ export abstract class ArcgisDirectLineMeasurement3d extends LitElement {
174
174
  accessor icon: Icon["icon"] | undefined;
175
175
  /** The component's default label. */
176
176
  accessor label: string | undefined;
177
+ /**
178
+ * Replace localized message strings with your own strings.
179
+ *
180
+ * _**Note**: Individual message keys may change between releases._
181
+ */
182
+ accessor messageOverrides: {
183
+ componentLabel?: string | undefined;
184
+ direct?: string | undefined;
185
+ distance?: string | undefined;
186
+ hint?: string | undefined;
187
+ horizontal?: string | undefined;
188
+ newMeasurement?: string | undefined;
189
+ snappingDisablePrompt?: string | undefined;
190
+ snappingDisablePromptAlternate?: string | undefined;
191
+ unit?: string | undefined;
192
+ unsupported?: string | undefined;
193
+ vertical?: string | undefined;
194
+ };
177
195
  /** @internal */
178
196
  protected messages: {
179
197
  componentLabel: string;
@@ -116,7 +116,7 @@ class Z extends f {
116
116
  super(...arguments), this.viewModel = T(this), this.messages = D({ name: "directline-measurement-3d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = y()("analysis", "state"), this.arcgisReady = v();
117
117
  }
118
118
  static {
119
- this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
119
+ this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, messageOverrides: 0, referenceElement: 1, state: 32, unit: 1, unitOptions: 0 };
120
120
  }
121
121
  static {
122
122
  this.styles = A;
@@ -137,6 +137,25 @@ export abstract class ArcgisDistanceMeasurement2d extends LitElement {
137
137
  accessor icon: Icon["icon"] | undefined;
138
138
  /** The component's default label. */
139
139
  accessor label: string | undefined;
140
+ /**
141
+ * Replace localized message strings with your own strings.
142
+ *
143
+ * _**Note**: Individual message keys may change between releases._
144
+ */
145
+ accessor messageOverrides: {
146
+ componentLabel?: string | undefined;
147
+ distance?: string | undefined;
148
+ hint?: string | undefined;
149
+ mode?: string | undefined;
150
+ modes?: {
151
+ auto?: string | undefined;
152
+ planar?: string | undefined;
153
+ geodesic?: string | undefined;
154
+ } | undefined;
155
+ newMeasurement?: string | undefined;
156
+ unit?: string | undefined;
157
+ unsupported?: string | undefined;
158
+ };
140
159
  /** @internal */
141
160
  protected messages: {
142
161
  componentLabel: string;
@@ -4,8 +4,8 @@ import { css as f, html as d } from "lit";
4
4
  import { LitElement as v, createEvent as b, nothing as x, safeClassMap as y } from "@arcgis/lumina";
5
5
  import { usePropertyChange as M } from "@arcgis/lumina/controllers";
6
6
  import { classes as k } from "@arcgis/toolkit/dom";
7
- import { u as z } from "../../chunks/useT9n.js";
8
- import { m as O } from "../../chunks/useViewModel.js";
7
+ import { u as O } from "../../chunks/useT9n.js";
8
+ import { m as z } from "../../chunks/useViewModel.js";
9
9
  import { b as V } from "../../chunks/async-utils.js";
10
10
  import { g as p } from "../../chunks/globalCss.js";
11
11
  import { V as g } from "../../chunks/visible-element.js";
@@ -111,13 +111,13 @@ s([
111
111
  r = s([
112
112
  $("components.distance-measurement-2d.DistanceMeasurement2dViewModel")
113
113
  ], r);
114
- const T = O(r);
114
+ const T = z(r);
115
115
  class Z extends v {
116
116
  constructor() {
117
- super(...arguments), this.viewModel = T(this), this.messages = z({ name: "distance-measurement-2d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = b();
117
+ super(...arguments), this.viewModel = T(this), this.messages = O({ name: "distance-measurement-2d", blocking: !0 }), this.view = this.viewModel.view, this.analysis = this.viewModel.analysis, this.autoDestroyDisabled = !1, this.hideStartButton = !1, this.hideUnitSelect = !1, this.hideVisualization = this.viewModel.hideVisualization, this.icon = "measure-line", this.snappingOptions = this.viewModel.snappingOptions, this.state = this.viewModel.state, this.unit = this.viewModel.unit, this.unitOptions = this.viewModel.unitOptions, this.arcgisPropertyChange = M()("analysis", "state"), this.arcgisReady = b();
118
118
  }
119
119
  static {
120
- this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
120
+ this.properties = { view: 0, analysis: 0, autoDestroyDisabled: 5, hideStartButton: 5, hideUnitSelect: 5, hideVisualization: 5, icon: 3, label: 1, messageOverrides: 0, referenceElement: 1, snappingOptions: 0, state: 32, unit: 1, unitOptions: 0 };
121
121
  }
122
122
  static {
123
123
  this.styles = L;