@arcgis/common-components 5.1.0-next.11 → 5.1.0-next.111

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 (184) hide show
  1. package/README.md +24 -1
  2. package/dist/cdn/{J5X5TNVW.js → 3CYVP75E.js} +1 -1
  3. package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
  4. package/dist/cdn/3LK46I3I.js +2 -0
  5. package/dist/cdn/53RIFE4K.js +2 -0
  6. package/dist/cdn/6RFADDWS.js +4 -0
  7. package/dist/cdn/AH2USIZR.js +2 -0
  8. package/dist/cdn/BCWKJTLV.js +2 -0
  9. package/dist/cdn/{C6JAR4IN.js → BXFY2TUH.js} +1 -1
  10. package/dist/cdn/BYGHEIBE.js +2 -0
  11. package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
  12. package/dist/cdn/DCI6LRH3.js +2 -0
  13. package/dist/cdn/DJBJXOSO.js +2 -0
  14. package/dist/cdn/DUJ3WX7U.js +2 -0
  15. package/dist/cdn/{AXTSUI2Q.js → DYF5K55H.js} +3 -3
  16. package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
  17. package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
  18. package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
  19. package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
  20. package/dist/cdn/J7JP7Q3W.js +2 -0
  21. package/dist/cdn/KGHLN7QM.js +2 -0
  22. package/dist/cdn/KI62NSDM.js +2 -0
  23. package/dist/cdn/PECYQ2HF.js +2 -0
  24. package/dist/cdn/TKMLU77O.js +2 -0
  25. package/dist/cdn/VTD2EUL6.js +2 -0
  26. package/dist/cdn/WPKV6SVG.js +2 -0
  27. package/dist/cdn/YCAZ4ZY2.js +2 -0
  28. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
  29. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
  30. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
  31. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
  32. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
  33. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
  34. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
  35. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
  36. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +1 -0
  37. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
  38. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
  39. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
  40. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
  41. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
  42. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
  43. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
  44. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
  45. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
  46. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
  47. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
  48. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
  49. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
  50. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
  51. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
  52. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
  53. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
  54. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
  55. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
  56. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
  57. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
  58. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
  59. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
  60. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
  61. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
  62. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
  63. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
  64. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
  65. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
  66. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
  67. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
  68. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
  69. package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
  70. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +1 -0
  71. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +1 -0
  72. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +1 -0
  73. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +1 -0
  74. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +1 -0
  75. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +1 -0
  76. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +1 -0
  77. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +1 -0
  78. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en-US.json +1 -0
  79. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en.json +1 -0
  80. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +1 -0
  81. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +1 -0
  82. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +1 -0
  83. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +1 -0
  84. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +1 -0
  85. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +1 -0
  86. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +1 -0
  87. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +1 -0
  88. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +1 -0
  89. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +1 -0
  90. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +1 -0
  91. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +1 -0
  92. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +1 -0
  93. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +1 -0
  94. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +1 -0
  95. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +1 -0
  96. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +1 -0
  97. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +1 -0
  98. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +1 -0
  99. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +1 -0
  100. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +1 -0
  101. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +1 -0
  102. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +1 -0
  103. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +1 -0
  104. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +1 -0
  105. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +1 -0
  106. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +1 -0
  107. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +1 -0
  108. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +1 -0
  109. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +1 -0
  110. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +1 -0
  111. package/dist/cdn/index.js +1 -1
  112. package/dist/cdn/main.css +1 -1
  113. package/dist/chunks/commonFunctions.js +7 -3
  114. package/dist/chunks/layer-utils.js +70 -0
  115. package/dist/chunks/spatial-references.js +7598 -0
  116. package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
  117. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  118. package/dist/components/arcgis-color-input/customElement.d.ts +2 -2
  119. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +327 -0
  120. package/dist/components/arcgis-coordinate-system-picker/customElement.js +111 -0
  121. package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
  122. package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
  123. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
  124. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
  125. package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
  126. package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
  127. package/dist/components/arcgis-field-info/customElement.d.ts +2 -2
  128. package/dist/components/arcgis-field-info/customElement.js +170 -171
  129. package/dist/components/arcgis-field-info/utils/basic.d.ts +11 -3
  130. package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
  131. package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
  132. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +6 -2
  133. package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
  134. package/dist/components/arcgis-histogram/customElement.js +81 -90
  135. package/dist/components/arcgis-histogram/types.d.ts +1 -3
  136. package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
  137. package/dist/components/arcgis-label-input/customElement.js +22 -17
  138. package/dist/components/arcgis-picker-input/customElement.d.ts +2 -2
  139. package/dist/components/arcgis-picker-input/customElement.js +11 -11
  140. package/dist/components/arcgis-slider/customElement.d.ts +72 -67
  141. package/dist/components/arcgis-slider/customElement.js +349 -304
  142. package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
  143. package/dist/components/arcgis-slider-input/customElement.js +12 -12
  144. package/dist/components/arcgis-spatial-reference-picker/customElement.d.ts +327 -0
  145. package/dist/components/arcgis-spatial-reference-picker/customElement.js +110 -0
  146. package/dist/components/arcgis-spatial-reference-picker/index.d.ts +1 -0
  147. package/dist/components/arcgis-spatial-reference-picker/index.js +3 -0
  148. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.d.ts +35 -0
  149. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.js +77 -0
  150. package/dist/components/arcgis-spatial-reference-picker-tree/index.d.ts +1 -0
  151. package/dist/components/arcgis-spatial-reference-picker-tree/index.js +3 -0
  152. package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
  153. package/dist/components/arcgis-ticks/customElement.js +21 -21
  154. package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
  155. package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
  156. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +10 -3
  157. package/dist/docs/api.json +1 -1
  158. package/dist/docs/docs.json +1 -1
  159. package/dist/docs/vscode.html-custom-data.json +1 -1
  160. package/dist/docs/web-types.json +1 -1
  161. package/dist/index.d.ts +59 -1
  162. package/dist/loader.js +8 -4
  163. package/dist/types/lumina.d.ts +26 -2
  164. package/dist/types/preact.d.ts +30 -2
  165. package/dist/types/react.d.ts +34 -2
  166. package/dist/types/stencil.d.ts +26 -2
  167. package/dist/utils/internal-types.d.ts +1 -0
  168. package/dist/utils/spatial-references.d.ts +1 -0
  169. package/dist/utils/types.d.ts +21 -18
  170. package/package.json +11 -9
  171. package/dist/cdn/23DDMSOB.js +0 -2
  172. package/dist/cdn/2BDHDUXG.js +0 -2
  173. package/dist/cdn/3O7GAC23.js +0 -2
  174. package/dist/cdn/4CW7U27R.js +0 -2
  175. package/dist/cdn/4DCAUWTC.js +0 -2
  176. package/dist/cdn/57I35HLF.js +0 -2
  177. package/dist/cdn/6DQVLQL6.js +0 -2
  178. package/dist/cdn/EKKJN7WZ.js +0 -2
  179. package/dist/cdn/UTXWKXMT.js +0 -4
  180. package/dist/cdn/XEB2RUND.js +0 -2
  181. package/dist/cdn/ZL3E4ZGE.js +0 -2
  182. package/dist/cdn/ZLXAKPUH.js +0 -2
  183. /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
  184. /package/dist/chunks/{types.js → internal-types.js} +0 -0
@@ -5,7 +5,7 @@ import { createRef as fB, ref as kB } from "lit/directives/ref.js";
5
5
  import { css as bB, html as wB } from "lit";
6
6
  import { unsafeGetElementDirection as _B } from "@arcgis/toolkit/dom";
7
7
  import AB from "@esri/arcgis-html-sanitizer";
8
- import { F as CB } from "../../chunks/types.js";
8
+ import { F as CB } from "../../chunks/internal-types.js";
9
9
  import { C as sr } from "../../chunks/resources.js";
10
10
  var aa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
11
  function vB(Ke) {
@@ -9245,7 +9245,7 @@ Read more: ${ce}#error-${i}`;
9245
9245
  const Me = "41.3.1", gn = new Date(2024, 3, 16);
9246
9246
  if (globalThis.CKEDITOR_VERSION) throw new C("ckeditor-duplicated-modules", null);
9247
9247
  globalThis.CKEDITOR_VERSION = Me;
9248
- const rt = Symbol("listeningTo"), Dn = Symbol("emitterId"), xt = Symbol("delegations"), nd = pe(Object);
9248
+ const rt = /* @__PURE__ */ Symbol("listeningTo"), Dn = /* @__PURE__ */ Symbol("emitterId"), xt = /* @__PURE__ */ Symbol("delegations"), nd = pe(Object);
9249
9249
  function pe(i) {
9250
9250
  return i ? class extends i {
9251
9251
  on(e, t, n) {
@@ -9381,7 +9381,7 @@ Read more: ${ce}#error-${i}`;
9381
9381
  const Ce = function(i) {
9382
9382
  var e = typeof i;
9383
9383
  return i != null && (e == "object" || e == "function");
9384
- }, lr = Symbol("observableProperties"), cr = Symbol("boundObservables"), dr = Symbol("boundProperties"), co = Symbol("decoratedMethods"), ad = Symbol("decoratedOriginal"), ld = fe(pe());
9384
+ }, lr = /* @__PURE__ */ Symbol("observableProperties"), cr = /* @__PURE__ */ Symbol("boundObservables"), dr = /* @__PURE__ */ Symbol("boundProperties"), co = /* @__PURE__ */ Symbol("decoratedMethods"), ad = /* @__PURE__ */ Symbol("decoratedOriginal"), ld = fe(pe());
9385
9385
  function fe(i) {
9386
9386
  return i ? class extends i {
9387
9387
  set(e, t) {
@@ -11693,7 +11693,7 @@ Read more: ${ce}#error-${i}`;
11693
11693
  Br.prototype.is = function(i, e) {
11694
11694
  return e ? e === this.name && (i === "editableElement" || i === "view:editableElement" || i === "containerElement" || i === "view:containerElement" || i === "element" || i === "view:element") : i === "editableElement" || i === "view:editableElement" || i === "containerElement" || i === "view:containerElement" || i === "element" || i === "view:element" || i === "node" || i === "view:node";
11695
11695
  };
11696
- const ju = Symbol("rootName");
11696
+ const ju = /* @__PURE__ */ Symbol("rootName");
11697
11697
  class Hu extends Br {
11698
11698
  constructor(e, t) {
11699
11699
  super(e, t), this.rootName = "main";
@@ -12207,7 +12207,7 @@ Read more: ${ce}#error-${i}`;
12207
12207
  return this._currentTarget;
12208
12208
  }
12209
12209
  }
12210
- const Ja = Symbol("bubbling contexts");
12210
+ const Ja = /* @__PURE__ */ Symbol("bubbling contexts");
12211
12211
  function Xa(i) {
12212
12212
  return class extends i {
12213
12213
  fire(e, ...t) {
@@ -15141,7 +15141,7 @@ Read more: ${ce}#error-${i}`;
15141
15141
  return t || (t = this._addSymbolForTextProxy(e)), t;
15142
15142
  }
15143
15143
  _addSymbolForTextProxy(e) {
15144
- const t = e.startOffset, n = e.endOffset, o = e.parent, r = Symbol("$textProxy:" + e.data);
15144
+ const t = e.startOffset, n = e.endOffset, o = e.parent, r = /* @__PURE__ */ Symbol("$textProxy:" + e.data);
15145
15145
  let s, a;
15146
15146
  return s = this._textProxyRegistry.get(t), s || (s = /* @__PURE__ */ new Map(), this._textProxyRegistry.set(t, s)), a = s.get(n), a || (a = /* @__PURE__ */ new Map(), s.set(n, a)), a.set(o, r), r;
15147
15147
  }
@@ -21156,7 +21156,7 @@ Read more: ${ce}#error-${i}`;
21156
21156
  return { s: t ? Pi(this.hsva.s + 100 * e.x, 0, 100) : 100 * e.x, v: t ? Pi(this.hsva.v - 100 * e.y, 0, 100) : Math.round(100 - 100 * e.y) };
21157
21157
  }
21158
21158
  }
21159
- const ss = Symbol("same"), Pl = Symbol("color"), mg = Symbol("hsva"), Ll = Symbol("update"), gg = Symbol("parts"), pg = Symbol("css"), fg = Symbol("sliders");
21159
+ const ss = /* @__PURE__ */ Symbol("same"), Pl = /* @__PURE__ */ Symbol("color"), mg = /* @__PURE__ */ Symbol("hsva"), Ll = /* @__PURE__ */ Symbol("update"), gg = /* @__PURE__ */ Symbol("parts"), pg = /* @__PURE__ */ Symbol("css"), fg = /* @__PURE__ */ Symbol("sliders");
21160
21160
  class y1 extends HTMLElement {
21161
21161
  static get observedAttributes() {
21162
21162
  return ["color"];
@@ -23078,7 +23078,7 @@ Read more: ${ce}#error-${i}`;
23078
23078
  }));
23079
23079
  }
23080
23080
  }
23081
- const Ri = Symbol("MainQueueId");
23081
+ const Ri = /* @__PURE__ */ Symbol("MainQueueId");
23082
23082
  class Jx {
23083
23083
  constructor() {
23084
23084
  this._onEmptyCallbacks = [], this._queues = /* @__PURE__ */ new Map(), this._activeActions = 0;
@@ -33221,11 +33221,11 @@ $&
33221
33221
  this.editor.execute("mention", { marker: "{", mention: l });
33222
33222
  }));
33223
33223
  };
33224
- return r.addEventListener("arcgisFieldPickListDismissed", ((a) => {
33224
+ return r.addEventListener("arcgisClose", ((a) => {
33225
33225
  if (!a.detail) return void this._cleanUp(r, t, e, n);
33226
33226
  const l = a.detail.selectedFields.length > 0, c = a.detail.selectedFields;
33227
33227
  r.multiple && l && s(c), this._cleanUp(r, t, e, n);
33228
- })), r.addEventListener("arcgisFieldPickListChange", ((a) => {
33228
+ })), r.addEventListener("arcgisChange", ((a) => {
33229
33229
  const l = a.detail.selectedFields;
33230
33230
  !r.multiple && s(l);
33231
33231
  })), r;
@@ -33337,7 +33337,7 @@ $&
33337
33337
  }));
33338
33338
  };
33339
33339
  _loadUI = () => {
33340
- this.popover = document.createElement("calcite-popover"), this.divContainer = document.createElement("div"), this.panel = document.createElement("calcite-panel"), this.tabs = document.createElement("calcite-tabs"), this.tabNav = document.createElement("calcite-tab-nav"), this.customTab = document.createElement("calcite-tab"), this.customTabTitle = document.createElement("calcite-tab-title"), this.doneButton = document.createElement("calcite-button"), this.popover.placement = "bottom-start", this.popover.offsetDistance = 5, this.popover.focusTrapDisabled = !0, this.popover.pointerDisabled = !0, this.popover.style = "--calcite-popover-z-index: 101", this.popover.autoClose = !0, this.popover.appendChild(this.divContainer), this.divContainer.appendChild(this.panel), this.panel.appendChild(this.tabs), this.panel.appendChild(this.doneButton), this.tabNav.appendChild(this.customTabTitle), this.tabs.appendChild(this.customTab), this.customTab.appendChild(this.colorPicker), this.enableFields && (this.attributeTab = document.createElement("calcite-tab"), this.attributeTabTitle = document.createElement("calcite-tab-title"), this.attributeList = document.createElement("calcite-list"), this.tabs.appendChild(this.tabNav), this.tabs.appendChild(this.attributeTab), this.tabNav.appendChild(this.attributeTabTitle), this.attributeTab.appendChild(this.attributeList), this.attributeTabTitle.innerText = this.attributeText, this.attributeList.selectionMode = "single", this.attributeList.filterEnabled = !0, this.attributeList.filterPlaceholder = this.filterPlaceholder, this.attributeTab.style.width = "294px", this.attributeList.style.maxHeight = "300px", this.tabs.bordered = !0, this.tabs.layout = "center", this.tabNav.slot = "title-group", this.data && this.data.forEach(((e) => {
33340
+ this.popover = document.createElement("calcite-popover"), this.divContainer = document.createElement("div"), this.panel = document.createElement("calcite-panel"), this.tabs = document.createElement("calcite-tabs"), this.tabNav = document.createElement("calcite-tab-nav"), this.customTab = document.createElement("calcite-tab"), this.customTabTitle = document.createElement("calcite-tab-title"), this.doneButton = document.createElement("calcite-button"), this.popover.placement = "bottom-start", this.popover.offsetDistance = 5, this.popover.focusTrapDisabled = !0, this.popover.pointerDisabled = !0, this.popover.topLayerDisabled = !0, this.popover.style = "--calcite-popover-z-index: 101", this.popover.autoClose = !0, this.popover.appendChild(this.divContainer), this.divContainer.appendChild(this.panel), this.panel.appendChild(this.tabs), this.panel.appendChild(this.doneButton), this.tabNav.appendChild(this.customTabTitle), this.tabs.appendChild(this.customTab), this.customTab.appendChild(this.colorPicker), this.enableFields && (this.attributeTab = document.createElement("calcite-tab"), this.attributeTabTitle = document.createElement("calcite-tab-title"), this.attributeList = document.createElement("calcite-list"), this.tabs.appendChild(this.tabNav), this.tabs.appendChild(this.attributeTab), this.tabNav.appendChild(this.attributeTabTitle), this.attributeTab.appendChild(this.attributeList), this.attributeTabTitle.innerText = this.attributeText, this.attributeList.selectionMode = "single", this.attributeList.filterEnabled = !0, this.attributeList.filterPlaceholder = this.filterPlaceholder, this.attributeTab.style.width = "294px", this.attributeList.style.maxHeight = "300px", this.tabs.bordered = !0, this.tabs.layout = "center", this.tabNav.slot = "title-group", this.data && this.data.forEach(((e) => {
33341
33341
  const { name: t, alias: n, description: o } = e, r = document.createElement("calcite-list-item");
33342
33342
  r.label = n, r.style.textAlign = "start", r.description = `{${t}}`, r.id = `{${t}}`, r.value = n, r.style.whiteSpace = "normal", r.addEventListener("calciteListItemSelect", (() => {
33343
33343
  const s = this.editor.model.document.selection;
@@ -33811,7 +33811,7 @@ $&
33811
33811
  }
33812
33812
  }];
33813
33813
  var e_ = { columns: 10, documentColors: 0, colors: [{ color: "#ffffff", label: " " }, { color: "#fff5ee", label: " " }, { color: "#fff8dc", label: " " }, { color: "#fffacd", label: " " }, { color: "#ffffe0", label: " " }, { color: "#98fb98", label: " " }, { color: "#afeeee", label: " " }, { color: "#e0ffff", label: " " }, { color: "#e6e6fa", label: " " }, { color: "#dda0dd", label: " " }, { color: "#d3d3d3", label: " " }, { color: "#ffc0cb", label: " " }, { color: "#ffe4c4", label: " " }, { color: "#ffe4b5", label: " " }, { color: "#f0e68c", label: " " }, { color: "#90ee90", label: " " }, { color: "#20b2aa", label: " " }, { color: "#87cefa", label: " " }, { color: "#6495ed", label: " " }, { color: "#ee82ee", label: " " }, { color: "#c0c0c0", label: " " }, { color: "#f08080", label: " " }, { color: "#f4a460", label: " " }, { color: "#ffa500", label: " " }, { color: "#eee8aa", label: " " }, { color: "#7fff00", label: " " }, { color: "#48d1cc", label: " " }, { color: "#87ceeb", label: " " }, { color: "#7b68ee", label: " " }, { color: "#da70d6", label: " " }, { color: "#808080", label: " " }, { color: "#ff0000", label: " " }, { color: "#ff4500", label: " " }, { color: "#ff8c00", label: " " }, { color: "#ffff00", label: " " }, { color: "#32cd32", label: " " }, { color: "#8fbc8f", label: " " }, { color: "#4169e1", label: " " }, { color: "#6a5acd", label: " " }, { color: "#ba55d3", label: " " }, { color: "#696969", label: " " }, { color: "#dc143c", label: " " }, { color: "#d2691e", label: " " }, { color: "#ff7f50", label: " " }, { color: "#ffd700", label: " " }, { color: "#228b22", label: " " }, { color: "#2e8b57", label: " " }, { color: "#0000ff", label: " " }, { color: "#8a2be2", label: " " }, { color: "#9932cc", label: " " }, { color: "#2f4f4f", label: " " }, { color: "#b22222", label: " " }, { color: "#8b4513", label: " " }, { color: "#a0522d", label: " " }, { color: "#808000", label: " " }, { color: "#008000", label: " " }, { color: "#008b8b", label: " " }, { color: "#0000cd", label: " " }, { color: "#483d8b", label: " " }, { color: "#8b008b", label: " " }, { color: "#000000", label: " " }, { color: "#8b0000", label: " " }, { color: "#800000", label: " " }, { color: "#a52a2a", label: " " }, { color: "#556b2f", label: " " }, { color: "#006400", label: " " }, { color: "#191970", label: " " }, { color: "#000080", label: " " }, { color: "#4b0082", label: " " }, { color: "#800080", label: " " }] };
33814
- rr.defaultConfig = { licenseKey: "WlZCOVRvK1lBTUdYRG13dnQ3L1krYTlycHc5dTVZbm5kWmRoMkpIRS9ETHBGbzd1YzBYUGNxcTZVbVljTkprQldwTjlqbzJIa3Jidmd6SXBtdUU9LU1qQXlOREE1TWpRPQ==", link: { addTargetToExternalLinks: !0 }, toolbar: { items: ["fontSize", "fontFamily", "arcgis-color-picker", "|", "sourceEditing", "arcgis-field-expression", "link", "|", "insertTable", "numberedList", "bulletedList", "alignment", "|", "bold", "italic", "underline", "|", "removeFormat", "undo", "redo"] }, image: { toolbar: ["imageStyle:alignLeft", "imageStyle:alignRight", "imageStyle:alignBlockLeft", "imageStyle:alignCenter", "imageStyle:alignBlockRight", "toggleImageCaption"] }, fontFamily: { options: ["default", { title: "Arial", model: "Arial", view: { name: "span", styles: { "font-family": "Arial, Helvetica, sans-serif" } } }, { title: "Courier New", model: "Courier", view: { name: "span", styles: { "font-family": "Courier New, Courier, monospace" } } }, { title: "Tahoma", model: "Tahoma", view: { name: "span", styles: { "font-family": "Tahoma, Geneva, sans-serif" } } }, { title: "Times New Roman", model: "Times", view: { name: "span", styles: { "font-family": "Times New Roman, Times, serif" } } }, { title: "Verdana", model: "Verdana", view: { name: "span", styles: { "font-family": "Verdana, Geneva, sans-serif" } } }], supportAllValues: !0 }, fontSize: { options: [10, 12, 14, 18, 24], supportAllValues: !0 }, fontColor: { ...e_ }, fontBackgroundColor: { ...e_ }, table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"], tableProperties: { colorPicker: { format: "hex" } }, tableCellProperties: { colorPicker: { format: "hex" }, defaultProperties: { horizontalAlignment: "center" } } }, htmlSupport: { allow: [{ name: "p", styles: !0 }, { name: "a", styles: !0, attributes: !0 }, { name: "div", styles: !0, attributes: ["align", "aria-hidden", "aria-label"] }, { name: "video", styles: !0, attributes: ["autoplay", "controls", "height", "loop", "muted", "poster", "preload", "width"] }, { name: "audio", styles: !0, attributes: ["autoplay", "controls", "loop", "muted", "preload"] }, { name: "ul" }, { name: "ol" }, { name: "li" }, { name: "tbody" }, { name: "br" }, { name: "hr" }, { name: "source", styles: !0, attributes: ["media", "src", "type"] }, { name: "table", styles: !0, attributes: ["width", "height", "cellpadding", "cellspacing", "border"] }, { name: "td", styles: !0, attributes: ["height", "width", "valign", "align", "colspan", "rowspan", "nowrap"] }, { name: "th", styles: !0, attributes: ["height", "width", "valign", "align", "colspan", "rowspan", "nowrap"] }, { name: "tr", styles: !0, attributes: !0 }, { name: "tbody", styles: !0, attributes: !0 }, { name: "hr", styles: !0, attributes: !0 }, { name: "img", styles: !0, attributes: !0 }, { name: "abbr", attributes: ["title"] }, { name: "font", styles: !0, attributes: !0 }, { name: "dd", styles: !0 }, { name: "dl", styles: !0 }, { name: "dt", styles: !0 }, { name: "h1", styles: !0 }, { name: "h2", styles: !0 }, { name: "h3", styles: !0 }, { name: "h4", styles: !0 }, { name: "h5", styles: !0 }, { name: "h6", styles: !0 }, { name: "sub", styles: !0 }, { name: "sup", styles: !0 }, { name: "figcaption", styles: !0 }, { name: "article", styles: !0 }, { name: "aside", styles: !0 }, { name: "details", styles: !0, attributes: ["open"] }, { name: "footer", styles: !0 }, { name: "header", styles: !0 }, { name: "main", styles: !0 }, { name: "mark", styles: !0 }, { name: "nav", styles: !0 }, { name: "section", styles: !0 }, { name: "summary", styles: !0 }, { name: "time", styles: !0 }, { name: "pre", styles: !0 }, { name: "code", styles: !0 }, { name: "blockquote", styles: !0 }, { name: "del", styles: !0 }, { name: "span", styles: !0, attributes: ["aria-label", "aria-hidden"] }, { name: "figure", styles: !0 }], disallow: [{ name: "a", attributes: { rel: !0 } }] }, language: "en" };
33814
+ rr.defaultConfig = { licenseKey: "WlZCOVRvK1lBTUdYRG13dnQ3L1krYTlycHc5dTVZbm5kWmRoMkpIRS9ETHBGbzd1YzBYUGNxcTZVbVljTkprQldwTjlqbzJIa3Jidmd6SXBtdUU9LU1qQXlOREE1TWpRPQ==", link: { addTargetToExternalLinks: !0 }, toolbar: { items: ["fontSize", "fontFamily", "arcgis-color-picker", "|", "sourceEditing", "arcgis-field-expression", "link", "|", "insertTable", "numberedList", "bulletedList", "alignment", "|", "bold", "italic", "underline", "|", "removeFormat", "undo", "redo"] }, image: { toolbar: ["imageStyle:alignLeft", "imageStyle:alignRight", "imageStyle:alignBlockLeft", "imageStyle:alignCenter", "imageStyle:alignBlockRight", "toggleImageCaption"] }, fontFamily: { options: ["default", { title: "Arial", model: "Arial", view: { name: "span", styles: { "font-family": "Arial, Helvetica, sans-serif" } } }, { title: "Courier New", model: "Courier", view: { name: "span", styles: { "font-family": "Courier New, Courier, monospace" } } }, { title: "Tahoma", model: "Tahoma", view: { name: "span", styles: { "font-family": "Tahoma, Geneva, sans-serif" } } }, { title: "Times New Roman", model: "Times", view: { name: "span", styles: { "font-family": "Times New Roman, Times, serif" } } }, { title: "Verdana", model: "Verdana", view: { name: "span", styles: { "font-family": "Verdana, Geneva, sans-serif" } } }], supportAllValues: !0 }, fontSize: { options: [10, 12, 14, 18, 24], supportAllValues: !0 }, fontColor: { ...e_ }, fontBackgroundColor: { ...e_ }, table: { contentToolbar: ["tableColumn", "tableRow", "mergeTableCells", "tableProperties", "tableCellProperties"], tableProperties: { colorPicker: { format: "hex" } }, tableCellProperties: { colorPicker: { format: "hex" }, defaultProperties: { horizontalAlignment: "center" } } }, htmlSupport: { allow: [{ name: "p", styles: !0 }, { name: "a", styles: !0, attributes: !0 }, { name: "div", styles: !0, attributes: ["align", "aria-hidden", "aria-label"] }, { name: "video", styles: !0, attributes: ["autoplay", "controls", "height", "loop", "muted", "poster", "preload", "width"] }, { name: "audio", styles: !0, attributes: ["autoplay", "controls", "loop", "muted", "preload"] }, { name: "ul" }, { name: "ol" }, { name: "li" }, { name: "tbody" }, { name: "br" }, { name: "hr" }, { name: "source", styles: !0, attributes: ["media", "src", "type"] }, { name: "table", styles: !0, attributes: ["width", "height", "cellpadding", "cellspacing", "border"] }, { name: "td", styles: !0, attributes: ["height", "width", "valign", "align", "colspan", "rowspan", "nowrap"] }, { name: "th", styles: !0, attributes: ["height", "width", "valign", "align", "colspan", "rowspan", "nowrap"] }, { name: "tr", styles: !0, attributes: !0 }, { name: "tbody", styles: !0, attributes: !0 }, { name: "hr", styles: !0, attributes: !0 }, { name: "img", styles: !0, attributes: !0 }, { name: "abbr", attributes: ["title"] }, { name: "font", styles: !0, attributes: !0 }, { name: "dd", styles: !0 }, { name: "dl", styles: !0 }, { name: "dt", styles: !0 }, { name: "h2", styles: !0 }, { name: "h3", styles: !0 }, { name: "h4", styles: !0 }, { name: "h5", styles: !0 }, { name: "h6", styles: !0 }, { name: "sub", styles: !0 }, { name: "sup", styles: !0 }, { name: "figcaption", styles: !0 }, { name: "article", styles: !0 }, { name: "aside", styles: !0 }, { name: "details", styles: !0, attributes: ["open"] }, { name: "footer", styles: !0 }, { name: "header", styles: !0 }, { name: "main", styles: !0 }, { name: "mark", styles: !0 }, { name: "nav", styles: !0 }, { name: "section", styles: !0 }, { name: "summary", styles: !0 }, { name: "time", styles: !0 }, { name: "pre", styles: !0 }, { name: "code", styles: !0 }, { name: "blockquote", styles: !0 }, { name: "del", styles: !0 }, { name: "span", styles: !0, attributes: ["aria-label", "aria-hidden"] }], disallow: [{ name: "a", attributes: { rel: !0 } }] }, language: "en" };
33815
33815
  const wI = rr;
33816
33816
  function En(i, e, t, n) {
33817
33817
  let o, r = null;
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as a } from "../../chunks/runtime.js";
3
3
  import { css as l, html as n } from "lit";
4
- import { LitElement as d, createEvent as o, safeClassMap as e, nothing as c } from "@arcgis/lumina";
4
+ import { LitElement as d, createEvent as o, nothing as c, safeClassMap as e } from "@arcgis/lumina";
5
5
  import { createRef as s, ref as r } from "lit/directives/ref.js";
6
6
  import { Task as p } from "@lit/task";
7
7
  import { unsafeGetElementDirection as h } from "@arcgis/toolkit/dom";
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { IPopoverProps } from "../../utils/types.js";
3
+ import type { PopoverProps } from "../../utils/types.js";
4
4
  import type { T9nMeta } from "@arcgis/lumina/controllers";
5
5
  import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
6
6
 
@@ -64,7 +64,7 @@ export abstract class ArcgisColorInput extends LitElement {
64
64
  */
65
65
  accessor placement: Popover["placement"];
66
66
  /** Convenience prop to specify common popover props. */
67
- accessor popoverProps: IPopoverProps | undefined;
67
+ accessor popoverProps: PopoverProps | undefined;
68
68
  /**
69
69
  * If true, allow transparency to be modified within the color picker.
70
70
  *
@@ -0,0 +1,327 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
4
+
5
+ /** @internal */
6
+ export abstract class ArcgisCoordinateSystemPicker extends LitElement {
7
+ /**
8
+ * Contains the translations for this component.
9
+ *
10
+ * @internal
11
+ */
12
+ protected _messages: {
13
+ "ARC (equal arc-second)": string;
14
+ Africa: string;
15
+ Antarctica: string;
16
+ Argentina: string;
17
+ Asia: string;
18
+ "Asteroid Belt": string;
19
+ "Atlantic Ocean": string;
20
+ Australia: string;
21
+ "Australia and New Zealand": string;
22
+ Austria: string;
23
+ "BLM (US Feet)": string;
24
+ Bangladesh: string;
25
+ "Beijing 1954": string;
26
+ Bhutan: string;
27
+ CGCS2000: string;
28
+ Canada: string;
29
+ Caribbean: string;
30
+ "Caribbean Sea": string;
31
+ "Central America": string;
32
+ "Central and North America": string;
33
+ Colombia: string;
34
+ Continental: string;
35
+ "County Systems": string;
36
+ "Democratic Republic of the Congo": string;
37
+ "EPSG Arctic": string;
38
+ Earth: string;
39
+ "Ellipsoidal-based": string;
40
+ Europe: string;
41
+ Finland: string;
42
+ France: string;
43
+ "GSK 2011": string;
44
+ "Gauss Kruger": string;
45
+ "Geographic Coordinate Systems": string;
46
+ Germany: string;
47
+ "Gravity-related": string;
48
+ "Greenwich-based": string;
49
+ "Highways England": string;
50
+ Illinois: string;
51
+ "Indian Ocean": string;
52
+ "Indian Subcontinent": string;
53
+ Indiana: string;
54
+ Indonesia: string;
55
+ Iowa: string;
56
+ "Ireland and United Kingdom": string;
57
+ Italy: string;
58
+ Japan: string;
59
+ Jupiter: string;
60
+ Kansas: string;
61
+ "Las Vegas": string;
62
+ Libya: string;
63
+ Malaysia: string;
64
+ "Malaysia and Singapore": string;
65
+ Mars: string;
66
+ Mercury: string;
67
+ Meters: string;
68
+ Minnesota: string;
69
+ Montana: string;
70
+ "NAD 1927": string;
71
+ "NAD 1927 (US Feet)": string;
72
+ "NAD 1983": string;
73
+ "NAD 1983 (2011)": string;
74
+ "NAD 1983 (2011) (Intl Feet)": string;
75
+ "NAD 1983 (2011) (Meters)": string;
76
+ "NAD 1983 (2011) (US Feet)": string;
77
+ "NAD 1983 (CORS96) (Intl Feet)": string;
78
+ "NAD 1983 (CORS96) (Meters)": string;
79
+ "NAD 1983 (CORS96) (US Feet)": string;
80
+ "NAD 1983 (Intl Feet)": string;
81
+ "NAD 1983 (Meters)": string;
82
+ "NAD 1983 (PA11) (Meters)": string;
83
+ "NAD 1983 (PA11) (US Feet)": string;
84
+ "NAD 1983 (US Feet)": string;
85
+ "NAD 1983 HARN (Intl Feet)": string;
86
+ "NAD 1983 HARN (Meters)": string;
87
+ "NAD 1983 HARN (US Feet)": string;
88
+ "NAD 1983 NSRS2007 (Intl Feet)": string;
89
+ "NAD 1983 NSRS2007 (Meters)": string;
90
+ "NAD 1983 NSRS2007 (US Feet)": string;
91
+ "National Grids": string;
92
+ Navajo: string;
93
+ Neptune: string;
94
+ "New Beijing": string;
95
+ "New Zealand": string;
96
+ "North America": string;
97
+ "Northern Hemisphere": string;
98
+ Norway: string;
99
+ Oceans: string;
100
+ Oregon: string;
101
+ "Other GCS": string;
102
+ "Pacific Ocean": string;
103
+ Pluto: string;
104
+ Polar: string;
105
+ Portugal: string;
106
+ "Projected Coordinate Systems": string;
107
+ "Pulkovo 1942": string;
108
+ "Pulkovo 1995": string;
109
+ Replaced: string;
110
+ "SAD 1969": string;
111
+ SIRGAS: string;
112
+ "SIRGAS 2000": string;
113
+ Saturn: string;
114
+ "Solar System": string;
115
+ "South Africa": string;
116
+ "South America": string;
117
+ "South Korea": string;
118
+ "Southern Hemisphere": string;
119
+ "Spheroid-based": string;
120
+ "State Plane": string;
121
+ "State Systems": string;
122
+ Sweden: string;
123
+ "Switzerland and Liechtenstein": string;
124
+ Texas: string;
125
+ Tribal: string;
126
+ Turkey: string;
127
+ "US Feet": string;
128
+ "USA and territories": string;
129
+ UTM: string;
130
+ Ukraine: string;
131
+ "Unknown Height Systems": string;
132
+ Uranus: string;
133
+ Venus: string;
134
+ "Vertical Coordinate Systems": string;
135
+ Vietnam: string;
136
+ "WGS 1972": string;
137
+ "WGS 1984": string;
138
+ Wisconsin: string;
139
+ "Wisconsin CRS": string;
140
+ World: string;
141
+ "World (Sphere-based)": string;
142
+ Wyoming: string;
143
+ "Xian 1980": string;
144
+ noMatchesFound: string;
145
+ noResults: string;
146
+ searchPlaceholder: string;
147
+ } & T9nMeta<{
148
+ "ARC (equal arc-second)": string;
149
+ Africa: string;
150
+ Antarctica: string;
151
+ Argentina: string;
152
+ Asia: string;
153
+ "Asteroid Belt": string;
154
+ "Atlantic Ocean": string;
155
+ Australia: string;
156
+ "Australia and New Zealand": string;
157
+ Austria: string;
158
+ "BLM (US Feet)": string;
159
+ Bangladesh: string;
160
+ "Beijing 1954": string;
161
+ Bhutan: string;
162
+ CGCS2000: string;
163
+ Canada: string;
164
+ Caribbean: string;
165
+ "Caribbean Sea": string;
166
+ "Central America": string;
167
+ "Central and North America": string;
168
+ Colombia: string;
169
+ Continental: string;
170
+ "County Systems": string;
171
+ "Democratic Republic of the Congo": string;
172
+ "EPSG Arctic": string;
173
+ Earth: string;
174
+ "Ellipsoidal-based": string;
175
+ Europe: string;
176
+ Finland: string;
177
+ France: string;
178
+ "GSK 2011": string;
179
+ "Gauss Kruger": string;
180
+ "Geographic Coordinate Systems": string;
181
+ Germany: string;
182
+ "Gravity-related": string;
183
+ "Greenwich-based": string;
184
+ "Highways England": string;
185
+ Illinois: string;
186
+ "Indian Ocean": string;
187
+ "Indian Subcontinent": string;
188
+ Indiana: string;
189
+ Indonesia: string;
190
+ Iowa: string;
191
+ "Ireland and United Kingdom": string;
192
+ Italy: string;
193
+ Japan: string;
194
+ Jupiter: string;
195
+ Kansas: string;
196
+ "Las Vegas": string;
197
+ Libya: string;
198
+ Malaysia: string;
199
+ "Malaysia and Singapore": string;
200
+ Mars: string;
201
+ Mercury: string;
202
+ Meters: string;
203
+ Minnesota: string;
204
+ Montana: string;
205
+ "NAD 1927": string;
206
+ "NAD 1927 (US Feet)": string;
207
+ "NAD 1983": string;
208
+ "NAD 1983 (2011)": string;
209
+ "NAD 1983 (2011) (Intl Feet)": string;
210
+ "NAD 1983 (2011) (Meters)": string;
211
+ "NAD 1983 (2011) (US Feet)": string;
212
+ "NAD 1983 (CORS96) (Intl Feet)": string;
213
+ "NAD 1983 (CORS96) (Meters)": string;
214
+ "NAD 1983 (CORS96) (US Feet)": string;
215
+ "NAD 1983 (Intl Feet)": string;
216
+ "NAD 1983 (Meters)": string;
217
+ "NAD 1983 (PA11) (Meters)": string;
218
+ "NAD 1983 (PA11) (US Feet)": string;
219
+ "NAD 1983 (US Feet)": string;
220
+ "NAD 1983 HARN (Intl Feet)": string;
221
+ "NAD 1983 HARN (Meters)": string;
222
+ "NAD 1983 HARN (US Feet)": string;
223
+ "NAD 1983 NSRS2007 (Intl Feet)": string;
224
+ "NAD 1983 NSRS2007 (Meters)": string;
225
+ "NAD 1983 NSRS2007 (US Feet)": string;
226
+ "National Grids": string;
227
+ Navajo: string;
228
+ Neptune: string;
229
+ "New Beijing": string;
230
+ "New Zealand": string;
231
+ "North America": string;
232
+ "Northern Hemisphere": string;
233
+ Norway: string;
234
+ Oceans: string;
235
+ Oregon: string;
236
+ "Other GCS": string;
237
+ "Pacific Ocean": string;
238
+ Pluto: string;
239
+ Polar: string;
240
+ Portugal: string;
241
+ "Projected Coordinate Systems": string;
242
+ "Pulkovo 1942": string;
243
+ "Pulkovo 1995": string;
244
+ Replaced: string;
245
+ "SAD 1969": string;
246
+ SIRGAS: string;
247
+ "SIRGAS 2000": string;
248
+ Saturn: string;
249
+ "Solar System": string;
250
+ "South Africa": string;
251
+ "South America": string;
252
+ "South Korea": string;
253
+ "Southern Hemisphere": string;
254
+ "Spheroid-based": string;
255
+ "State Plane": string;
256
+ "State Systems": string;
257
+ Sweden: string;
258
+ "Switzerland and Liechtenstein": string;
259
+ Texas: string;
260
+ Tribal: string;
261
+ Turkey: string;
262
+ "US Feet": string;
263
+ "USA and territories": string;
264
+ UTM: string;
265
+ Ukraine: string;
266
+ "Unknown Height Systems": string;
267
+ Uranus: string;
268
+ Venus: string;
269
+ "Vertical Coordinate Systems": string;
270
+ Vietnam: string;
271
+ "WGS 1972": string;
272
+ "WGS 1984": string;
273
+ Wisconsin: string;
274
+ "Wisconsin CRS": string;
275
+ World: string;
276
+ "World (Sphere-based)": string;
277
+ Wyoming: string;
278
+ "Xian 1980": string;
279
+ noMatchesFound: string;
280
+ noResults: string;
281
+ searchPlaceholder: string;
282
+ }>;
283
+ /**
284
+ * When true the arcgis-coordinate-system-picker-tree will be filtered to display the default wkid when the component loads.
285
+ * The default wkid will also be shown in the search element when this value is true.
286
+ * Currently MapViewer Analysis UI has the property set to its default value of false, to avoid auto filtering.
287
+ *
288
+ * @default false
289
+ */
290
+ accessor autoFilterToDefault: boolean;
291
+ /**
292
+ * The wkid that will be used as the default when no user selection has been made.
293
+ * This should be the wkid of the base map or the wkid of the first layer in the map.
294
+ * If no default is provided, it will fall back to WGS 84 (Web Mercator)
295
+ *
296
+ * @default 4326
297
+ */
298
+ accessor defaultWkid: number;
299
+ /**
300
+ * When true the search input is displayed and users can filter spatial references.
301
+ *
302
+ * @default false
303
+ */
304
+ accessor filterEnabled: boolean;
305
+ /**
306
+ * Categories to hide from the coordinate-system-picker.
307
+ * The three top-level categories are "Projected Coordinate Systems", "Geographic Coordinate Systems", and "Vertical Coordinate Systems".
308
+ * Each of these categories has sub-categories that can also be hidden, to see the full list of categories, see the `srCategories` that is imported.
309
+ *
310
+ * @example
311
+ * // Hide the "Projected Coordinate Systems" category
312
+ * hideCategories: ["Projected Coordinate Systems"]
313
+ * @example
314
+ * // Hide the "Projected Coordinate Systems" and "Geographic Coordinate Systems" categories
315
+ * hideCategories: ["Projected Coordinate Systems", "Geographic Coordinate Systems"]
316
+ */
317
+ accessor hideCategories: string[] | undefined;
318
+ /** The current spatial reference selection as a WKID string */
319
+ accessor value: { latestWkid?: number; } | undefined;
320
+ /** @returns the description of the spatial reference */
321
+ getSRDescription(): Promise<string | undefined>;
322
+ /** Emitted when the spatial reference selection changes */
323
+ readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, { latestWkid?: number; } | undefined>;
324
+ readonly "@eventTypes": {
325
+ arcgisChange: ArcgisCoordinateSystemPicker["arcgisChange"]["detail"];
326
+ };
327
+ }
@@ -0,0 +1,111 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import { c as o } from "../../chunks/runtime.js";
3
+ import { css as n, html as a } from "lit";
4
+ import { createRef as c, ref as h } from "lit/directives/ref.js";
5
+ import { LitElement as u, createEvent as d } from "@arcgis/lumina";
6
+ import { debounce as f } from "@arcgis/toolkit/function";
7
+ import { substitute as p } from "@arcgis/core/intl.js";
8
+ import { u as g } from "../../chunks/useT9n.js";
9
+ import { s as m } from "../../chunks/spatial-references.js";
10
+ const v = n`:host{overflow-y:hidden;display:flex;flex-direction:column;--calcite-color-border-input: var(--calcite-color-border-2);height:var(--arcgis-coordinate-system-picker-height, 45vh);min-width:var(--arcgis-coordinate-system-picker-min-width, 20rem);max-width:var(--arcgis-coordinate-system-picker-max-width, 27rem)}.no-matches-found-msg{margin:var(--calcite-space-sm);font-size:var(--calcite-font-size--2)}arcgis-coordinate-system-picker-tree{flex:1}`;
11
+ class S extends u {
12
+ constructor() {
13
+ super(...arguments), this.searchText = "", this.searchInput = c(), this.treeElement = c(), this._messages = g({ blocking: !0 }), this.wkidMap = /* @__PURE__ */ new Map(), this.performantFilterSpatialReferences = f((e) => {
14
+ this.updateSearchResults(e);
15
+ }, 250), this.autoFilterToDefault = !1, this.defaultWkid = 4326, this.filterEnabled = !1, this.arcgisChange = d();
16
+ }
17
+ static {
18
+ this.properties = { searchResults: 16, autoFilterToDefault: 5, defaultWkid: 9, value: 0, hideCategories: 0, filterEnabled: 5 };
19
+ }
20
+ static {
21
+ this.styles = v;
22
+ }
23
+ async getSRDescription() {
24
+ if (this.value?.latestWkid !== void 0)
25
+ return this.getSpatialReferenceDescription(this.value?.latestWkid);
26
+ }
27
+ load() {
28
+ this.value = this.value ?? { latestWkid: this.defaultWkid };
29
+ const e = this.filterSrCategories(m);
30
+ this.visibleSrCategories = this.translateSrCategories(e), this.buildWkidMap(this.visibleSrCategories), this.applyAutoFilterToDefault();
31
+ }
32
+ buildWkidMap(e) {
33
+ const s = /* @__PURE__ */ new Map(), t = this.flattenObject(e);
34
+ Object.keys(t).forEach((i) => {
35
+ s.set(Number(i), t[i]);
36
+ }), this.wkidMap = s;
37
+ }
38
+ flattenObject(e) {
39
+ const s = {};
40
+ return Object.keys(e).forEach((t) => {
41
+ const i = e[t];
42
+ typeof i == "object" ? Object.assign(s, this.flattenObject(i)) : s[t] = i;
43
+ }), s;
44
+ }
45
+ translateSrCategories(e) {
46
+ const s = {};
47
+ return this.recursiveTranslate(e, s), s;
48
+ }
49
+ recursiveTranslate(e, s) {
50
+ Object.keys(e).forEach((t) => {
51
+ const i = this.getTranslatedKey(t);
52
+ typeof e[t] == "object" ? (s[i] = {}, this.recursiveTranslate(e[t], s[i])) : s[i] = e[t];
53
+ });
54
+ }
55
+ getTranslatedKey(e) {
56
+ return e in this._messages ? this._messages[e] : e;
57
+ }
58
+ filterSrCategories(e) {
59
+ const s = {};
60
+ return Object.keys(e).forEach((t) => {
61
+ this.hideCategories?.includes(t) || (typeof e[t] == "object" ? s[t] = this.filterSrCategories(e[t]) : s[t] = e[t]);
62
+ }), s;
63
+ }
64
+ setSpatialRef(e) {
65
+ this.value = { latestWkid: Number(e) }, this.arcgisChange.emit(this.value);
66
+ }
67
+ getSpatialReferenceDescription(e) {
68
+ return this.wkidMap.get(e);
69
+ }
70
+ filterSpatialReferences(e) {
71
+ const s = e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&"), t = new RegExp(s, "igu"), i = {};
72
+ return this.wkidMap.forEach((r, l) => {
73
+ t.lastIndex = 0, (t.test(r) || t.test(l.toString())) && (i[String(l)] = r);
74
+ }), i;
75
+ }
76
+ handleTreeValueChange(e) {
77
+ e.stopPropagation(), this.setSpatialRef(this.treeElement.value?.value ?? "");
78
+ }
79
+ inputKeyDown(e) {
80
+ e.key === "Enter" && this.selectFirstChild(!0);
81
+ }
82
+ selectFirstChild(e) {
83
+ const s = this.treeElement.value, t = s?.shadowRoot?.querySelector("calcite-tree-item:not([has-children]):not([data-key='placeholder'])") || void 0;
84
+ s !== void 0 && t !== void 0 && (t.selected = !0, this.setSpatialRef(t.dataset.key ?? ""), e && t.focus());
85
+ }
86
+ updateSearchResults(e) {
87
+ this.searchResults = this.filterSpatialReferences(e);
88
+ }
89
+ searchSpatialReferences(e) {
90
+ e.target !== null && this.setSearchText(e.target.value ?? "");
91
+ }
92
+ setSearchText(e) {
93
+ this.searchText = e, this.searchText.length > 1 ? this.performantFilterSpatialReferences(this.searchText) : this.searchResults = void 0;
94
+ }
95
+ applyAutoFilterToDefault() {
96
+ if (!this.autoFilterToDefault || this.defaultWkid === void 0)
97
+ return;
98
+ const e = this.defaultWkid.toString();
99
+ this.searchText = e, this.updateSearchResults(e);
100
+ }
101
+ render() {
102
+ const e = p(this._messages.noMatchesFound, {
103
+ searchTerm: this.searchText ?? ""
104
+ });
105
+ return a`${this.filterEnabled && a`<calcite-input @calciteInputInput=${this.searchSpatialReferences} @keydown=${this.inputKeyDown} .placeholder=${this._messages.searchPlaceholder} scale=s type=search .value=${this.searchText} icon autofocus ${h(this.searchInput)}></calcite-input>` || ""}${this.searchText.length > 1 && this.searchResults && Object.keys(this.searchResults).length === 0 && a`<p class="no-matches-found-msg">${e}</p>` || ""}<arcgis-coordinate-system-picker-tree .data=${this.searchResults !== void 0 && this.searchText.length > 0 ? this.searchResults : this.visibleSrCategories} .value=${this.value && `${this.value?.latestWkid}`} @arcgisChange=${this.handleTreeValueChange} ${h(this.treeElement)}></arcgis-coordinate-system-picker-tree>`;
106
+ }
107
+ }
108
+ o("arcgis-coordinate-system-picker", S);
109
+ export {
110
+ S as ArcgisCoordinateSystemPicker
111
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-input";
2
+ import "../arcgis-coordinate-system-picker-tree/index.js";
3
+ export * from "./customElement.js";
@@ -0,0 +1,35 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { NestedObject } from "../../utils/spatial-references.js";
4
+
5
+ /** @internal */
6
+ export abstract class ArcgisCoordinateSystemPickerTree extends LitElement {
7
+ /**
8
+ * The data to display in the tree. Supports nested data.
9
+ *
10
+ * @example
11
+ * data = {
12
+ * "parent item": {
13
+ * "child item": "child item value",
14
+ * "sub-parent child item": {
15
+ * "child item of nested parent key": "child item of nested parent value"
16
+ * },
17
+ * "child item 2 key": "child item 2 value"
18
+ * },
19
+ * "item 2": "item 2 value",
20
+ * ...
21
+ * };
22
+ * Keys of parent items are displayed as the item's label.
23
+ * Values of elements without children are displayed as the item's label.
24
+ * In this case, "sub-parent child item" is displayed as the label for that item and
25
+ * "child item of nested parent value" is displayed as the label for it's child.
26
+ */
27
+ accessor data: NestedObject;
28
+ /** The key of the selected item. (Wkid when used as spatial reference selection) */
29
+ accessor value: string | undefined;
30
+ /** Emitted when the selected value of the tree changes. */
31
+ readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
32
+ readonly "@eventTypes": {
33
+ arcgisChange: ArcgisCoordinateSystemPickerTree["arcgisChange"]["detail"];
34
+ };
35
+ }