@arcgis/common-components 5.2.0-next.8 → 5.2.0-next.85

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 (234) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/27EUJ42B.js +2 -0
  4. package/dist/cdn/2DBEFZKU.js +2 -0
  5. package/dist/cdn/3AUZDTAO.js +2 -0
  6. package/dist/cdn/{YVCGEEMG.js → 3UQSJI42.js} +1 -1
  7. package/dist/cdn/55IHT3E4.js +2 -0
  8. package/dist/cdn/5E5MB2QP.js +2 -0
  9. package/dist/cdn/6U23ZLNL.js +2 -0
  10. package/dist/cdn/74HCCFF3.js +2 -0
  11. package/dist/cdn/7AR3O4ZS.js +2 -0
  12. package/dist/cdn/{232BH3SJ.js → 7EEEFB6L.js} +1 -1
  13. package/dist/cdn/7XQMQNCX.js +2 -0
  14. package/dist/cdn/A6RDL4CI.js +2 -0
  15. package/dist/cdn/AWYYBYBY.js +2 -0
  16. package/dist/cdn/B3226756.js +2 -0
  17. package/dist/cdn/D3CAYLG2.js +2 -0
  18. package/dist/cdn/DTKSHV5R.js +2 -0
  19. package/dist/cdn/EN4SF4GM.js +2 -0
  20. package/dist/cdn/ERX25SUU.js +2 -0
  21. package/dist/cdn/GKRQCQJX.js +2 -0
  22. package/dist/cdn/GKXJQ57E.js +2 -0
  23. package/dist/cdn/GNOGT5M3.js +2 -0
  24. package/dist/cdn/GTQ5JPAH.js +2 -0
  25. package/dist/cdn/{MINFRX4Y.js → IT7T37BP.js} +1 -1
  26. package/dist/cdn/KENOGFN5.js +2 -0
  27. package/dist/cdn/N2JKXWQD.js +2 -0
  28. package/dist/cdn/NQ3DXW4S.js +2 -0
  29. package/dist/cdn/NUND77X7.js +2 -0
  30. package/dist/cdn/PMV2N3L3.js +2 -0
  31. package/dist/cdn/{WJ3TYWP2.js → PYSJFWBZ.js} +1 -1
  32. package/dist/cdn/QAJVUVAJ.js +2 -0
  33. package/dist/cdn/QTEF27SV.js +2 -0
  34. package/dist/cdn/{OOBX2C2L.js → QX7C26ZB.js} +1 -1
  35. package/dist/cdn/TLLOXQDJ.js +2 -0
  36. package/dist/cdn/TUBHYRSA.js +2 -0
  37. package/dist/cdn/TWW63D32.js +2 -0
  38. package/dist/cdn/VCZLD7ZT.js +2 -0
  39. package/dist/cdn/VHD24C2I.js +2 -0
  40. package/dist/cdn/VOBBBIYC.js +2 -0
  41. package/dist/cdn/{YG4PY2H3.js → XO3QLFU5.js} +1 -1
  42. package/dist/cdn/{6XE5JNJ7.js → YSGNGGED.js} +3 -3
  43. package/dist/cdn/Z5QBBHLD.js +2 -0
  44. package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
  45. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
  46. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
  47. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
  48. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
  49. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
  50. package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
  51. package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
  52. package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
  53. package/dist/cdn/assets/value-picker/t9n/messages.en.json +1 -0
  54. package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
  55. package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
  56. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
  57. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
  58. package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
  59. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
  60. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
  61. package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
  62. package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
  63. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
  64. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
  65. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
  66. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
  67. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
  68. package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
  69. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
  70. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
  71. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
  72. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
  73. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
  74. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
  75. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
  76. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
  77. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
  78. package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
  79. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
  80. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
  81. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
  82. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
  83. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
  84. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
  85. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
  86. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
  87. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
  88. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
  89. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
  90. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
  91. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
  92. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
  93. package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +1 -0
  94. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
  95. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
  96. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
  97. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
  98. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
  99. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
  100. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
  101. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
  102. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
  103. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
  104. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
  105. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
  106. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
  107. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
  108. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
  109. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
  110. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
  111. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
  112. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
  113. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
  114. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
  115. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
  116. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
  117. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
  118. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
  119. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
  120. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
  121. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
  122. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
  123. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
  124. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
  125. package/dist/cdn/index.js +1 -1
  126. package/dist/cdn/main.css +1 -1
  127. package/dist/chunks/element-reference-controller.js +17 -0
  128. package/dist/chunks/layer-utils.js +52 -40
  129. package/dist/chunks/locale.js +14 -6
  130. package/dist/chunks/utils.js +69 -0
  131. package/dist/chunks/utils2.js +20 -0
  132. package/dist/chunks/utils3.js +7 -0
  133. package/dist/components/arcgis-ckeditor5/customElement.d.ts +6 -1
  134. package/dist/components/arcgis-ckeditor5/customElement.js +2 -2
  135. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  136. package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
  137. package/dist/components/arcgis-color-input/customElement.js +6 -6
  138. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +6 -1
  139. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  140. package/dist/components/arcgis-field-info/customElement.js +251 -221
  141. package/dist/components/arcgis-field-info/index.js +1 -0
  142. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  143. package/dist/components/arcgis-field-pick-list/customElement.js +54 -62
  144. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  145. package/dist/components/arcgis-histogram/customElement.d.ts +30 -0
  146. package/dist/components/arcgis-histogram/customElement.js +105 -90
  147. package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
  148. package/dist/components/arcgis-picker-input/customElement.js +7 -7
  149. package/dist/components/arcgis-slider/customElement.d.ts +4 -3
  150. package/dist/components/arcgis-slider/customElement.js +302 -282
  151. package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
  152. package/dist/components/arcgis-slider-field/customElement.js +378 -0
  153. package/dist/components/arcgis-slider-field/index.d.ts +1 -0
  154. package/dist/components/arcgis-slider-field/index.js +2 -0
  155. package/dist/components/arcgis-ticks/customElement.js +100 -79
  156. package/dist/components/arcgis-toolbar/customElement.d.ts +47 -0
  157. package/dist/components/arcgis-toolbar/customElement.js +82 -0
  158. package/dist/components/arcgis-toolbar/index.d.ts +1 -0
  159. package/dist/components/arcgis-toolbar/index.js +2 -0
  160. package/dist/components/arcgis-toolbar/types.d.ts +10 -0
  161. package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
  162. package/dist/components/arcgis-toolbar-action/customElement.js +57 -0
  163. package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
  164. package/dist/components/arcgis-toolbar-action/index.js +3 -0
  165. package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
  166. package/dist/components/arcgis-toolbar-group/customElement.js +47 -0
  167. package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
  168. package/dist/components/arcgis-toolbar-group/index.js +2 -0
  169. package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
  170. package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
  171. package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
  172. package/dist/components/arcgis-toolbar-item/index.js +4 -0
  173. package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
  174. package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
  175. package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
  176. package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
  177. package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
  178. package/dist/components/arcgis-toolbar-split-button/customElement.js +66 -0
  179. package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
  180. package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
  181. package/dist/components/arcgis-unique-values-list/customElement.js +115 -95
  182. package/dist/components/arcgis-value-picker/customElement.d.ts +377 -0
  183. package/dist/components/arcgis-value-picker/customElement.js +87 -0
  184. package/dist/components/arcgis-value-picker/index.d.ts +1 -0
  185. package/dist/components/arcgis-value-picker/index.js +3 -0
  186. package/dist/components/arcgis-value-picker/types.d.ts +69 -0
  187. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +113 -0
  188. package/dist/components/arcgis-value-picker-collection/customElement.js +43 -0
  189. package/dist/components/arcgis-value-picker-collection/index.d.ts +1 -0
  190. package/dist/components/arcgis-value-picker-collection/index.js +1 -0
  191. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +90 -0
  192. package/dist/components/arcgis-value-picker-combobox/customElement.js +55 -0
  193. package/dist/components/arcgis-value-picker-combobox/index.d.ts +1 -0
  194. package/dist/components/arcgis-value-picker-combobox/index.js +3 -0
  195. package/dist/components/arcgis-value-picker-label/customElement.d.ts +81 -0
  196. package/dist/components/arcgis-value-picker-label/customElement.js +51 -0
  197. package/dist/components/arcgis-value-picker-label/index.d.ts +1 -0
  198. package/dist/components/arcgis-value-picker-label/index.js +1 -0
  199. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +173 -0
  200. package/dist/components/arcgis-value-picker-slider/customElement.js +60 -0
  201. package/dist/components/arcgis-value-picker-slider/index.d.ts +1 -0
  202. package/dist/components/arcgis-value-picker-slider/index.js +3 -0
  203. package/dist/docs/api.json +1 -1
  204. package/dist/docs/docs.json +1 -1
  205. package/dist/docs/vscode.css-custom-data.json +1 -1
  206. package/dist/docs/vscode.html-custom-data.json +1 -1
  207. package/dist/docs/web-types.json +1 -1
  208. package/dist/index.d.ts +96 -0
  209. package/dist/loader.js +17 -5
  210. package/dist/types/lumina.d.ts +79 -1
  211. package/dist/types/preact.d.ts +91 -1
  212. package/dist/types/react.d.ts +103 -1
  213. package/dist/types/stencil.d.ts +81 -3
  214. package/package.json +5 -5
  215. package/dist/cdn/2MN6S2HH.js +0 -2
  216. package/dist/cdn/4BJYJUMR.js +0 -2
  217. package/dist/cdn/5I5ODGDD.js +0 -2
  218. package/dist/cdn/AGGCAE6P.js +0 -2
  219. package/dist/cdn/BDF4ZLUF.js +0 -2
  220. package/dist/cdn/F45Q3BRT.js +0 -2
  221. package/dist/cdn/GEWXC2ZR.js +0 -2
  222. package/dist/cdn/HWEOBUAY.js +0 -2
  223. package/dist/cdn/IRIB5DXG.js +0 -2
  224. package/dist/cdn/KPJCYYYQ.js +0 -2
  225. package/dist/cdn/NKMDS2IH.js +0 -2
  226. package/dist/cdn/ORSF6IOL.js +0 -2
  227. package/dist/cdn/QEW7H22O.js +0 -2
  228. package/dist/cdn/UMIMGOKS.js +0 -2
  229. package/dist/cdn/YSXFXVP6.js +0 -2
  230. package/dist/cdn/YVWFGK4M.js +0 -2
  231. package/dist/cdn/ZXBEGZZ3.js +0 -2
  232. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
  233. /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
  234. /package/dist/chunks/{commonFunctions.js → general.js} +0 -0
@@ -13,9 +13,21 @@ import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElem
13
13
  import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
14
14
  import type { ArcgisRampOpacity } from "../components/arcgis-ramp-opacity/customElement.js";
15
15
  import type { ArcgisSlider } from "../components/arcgis-slider/customElement.js";
16
+ import type { ArcgisSliderField } from "../components/arcgis-slider-field/customElement.js";
16
17
  import type { ArcgisSliderInput } from "../components/arcgis-slider-input/customElement.js";
17
18
  import type { ArcgisTicks } from "../components/arcgis-ticks/customElement.js";
19
+ import type { ArcgisToolbar } from "../components/arcgis-toolbar/customElement.js";
20
+ import type { ArcgisToolbarAction } from "../components/arcgis-toolbar-action/customElement.js";
21
+ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/customElement.js";
22
+ import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
23
+ import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
24
+ import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
18
25
  import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
26
+ import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
27
+ import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
28
+ import type { ArcgisValuePickerCombobox } from "../components/arcgis-value-picker-combobox/customElement.js";
29
+ import type { ArcgisValuePickerLabel } from "../components/arcgis-value-picker-label/customElement.js";
30
+ import type { ArcgisValuePickerSlider } from "../components/arcgis-value-picker-slider/customElement.js";
19
31
  import type { HTMLProps } from 'react';
20
32
  import type { EventHandler } from "@arcgis/lumina";
21
33
 
@@ -68,7 +80,7 @@ interface ReactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "cu
68
80
  onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
69
81
  }
70
82
 
71
- interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation">>, HTMLProps<ArcgisHistogram> {
83
+ interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
72
84
  }
73
85
 
74
86
  interface ReactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLProps<ArcgisLabelInput> {
@@ -96,6 +108,13 @@ interface ReactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverl
96
108
  onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
97
109
  }
98
110
 
111
+ interface ReactArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, HTMLProps<ArcgisSliderField> {
112
+ onarcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
113
+ onarcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
114
+ onarcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
115
+ onarcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
116
+ }
117
+
99
118
  interface ReactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLProps<ArcgisSliderInput> {
100
119
  onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
101
120
  onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
@@ -105,12 +124,59 @@ interface ReactArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "in
105
124
  onarcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
106
125
  }
107
126
 
127
+ interface ReactArcgisToolbar extends Partial<Pick<ArcgisToolbar, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, HTMLProps<ArcgisToolbar> {
128
+ }
129
+
130
+ interface ReactArcgisToolbarAction extends Partial<Pick<ArcgisToolbarAction, "active" | "appearance" | "disabled" | "icon" | "iconFlipRtl" | "indicator" | "kind" | "labelText" | "loading" | "textEnabled" | "tooltipText">>, HTMLProps<ArcgisToolbarAction> {
131
+ onarcgisRenderedActionChanged?: EventHandler<ArcgisToolbarAction["arcgisRenderedActionChanged"]>;
132
+ onarcgisToolbarItemSelected?: EventHandler<ArcgisToolbarAction["arcgisToolbarItemSelected"]>;
133
+ }
134
+
135
+ interface ReactArcgisToolbarGroup extends Partial<Pick<ArcgisToolbarGroup, "preferEndSlot" | "priority">>, HTMLProps<ArcgisToolbarGroup> {
136
+ }
137
+
138
+ interface ReactArcgisToolbarItem extends Partial<Pick<ArcgisToolbarItem, "active" | "disabled" | "icon" | "iconFlipRtl" | "labelText" | "lastActivated" | "loading" | "tooltipText">>, HTMLProps<ArcgisToolbarItem> {
139
+ onarcgisItemSelected?: EventHandler<ArcgisToolbarItem["arcgisItemSelected"]>;
140
+ }
141
+
142
+ interface ReactArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreButton, "menuAppearance" | "overflowActionLabel" | "priority">>, HTMLProps<ArcgisToolbarMoreButton> {
143
+ }
144
+
145
+ interface ReactArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, HTMLProps<ArcgisToolbarSplitButton> {
146
+ }
147
+
108
148
  interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, HTMLProps<ArcgisUniqueValuesList> {
109
149
  onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
110
150
  onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
111
151
  onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
112
152
  }
113
153
 
154
+ interface ReactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLProps<ArcgisValuePicker> {
155
+ onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
156
+ onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
157
+ onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
158
+ onarcgisPlay?: EventHandler<ArcgisValuePicker["arcgisPlay"]>;
159
+ onarcgisPrevious?: EventHandler<ArcgisValuePicker["arcgisPrevious"]>;
160
+ onarcgisPropertyChange?: EventHandler<ArcgisValuePicker["arcgisPropertyChange"]>;
161
+ onarcgisSlottedElementChange?: EventHandler<ArcgisValuePicker["arcgisSlottedElementChange"]>;
162
+ }
163
+
164
+ interface ReactArcgisValuePickerCollection extends Partial<Pick<ArcgisValuePickerCollection, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLProps<ArcgisValuePickerCollection> {
165
+ onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCollection["arcgisPropertyChange"]>;
166
+ }
167
+
168
+ interface ReactArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePickerCombobox, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, HTMLProps<ArcgisValuePickerCombobox> {
169
+ onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
170
+ }
171
+
172
+ interface ReactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLProps<ArcgisValuePickerLabel> {
173
+ onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
174
+ }
175
+
176
+ interface ReactArcgisValuePickerSlider extends Partial<Pick<ArcgisValuePickerSlider, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "labelFormatter" | "labels" | "layout" | "majorTicks" | "max" | "min" | "minorTicks" | "mirrored" | "steps">>, HTMLProps<ArcgisValuePickerSlider> {
177
+ onarcgisPropertyChange?: EventHandler<ArcgisValuePickerSlider["arcgisPropertyChange"]>;
178
+ }
179
+
114
180
  declare module "react" {
115
181
  namespace JSX {
116
182
  interface IntrinsicElements {
@@ -128,9 +194,21 @@ declare module "react" {
128
194
  "arcgis-ramp-color-break": ReactArcgisRampColorBreak;
129
195
  "arcgis-ramp-opacity": ReactArcgisRampOpacity;
130
196
  "arcgis-slider": ReactArcgisSlider;
197
+ "arcgis-slider-field": ReactArcgisSliderField;
131
198
  "arcgis-slider-input": ReactArcgisSliderInput;
132
199
  "arcgis-ticks": ReactArcgisTicks;
200
+ "arcgis-toolbar": ReactArcgisToolbar;
201
+ "arcgis-toolbar-action": ReactArcgisToolbarAction;
202
+ "arcgis-toolbar-group": ReactArcgisToolbarGroup;
203
+ "arcgis-toolbar-item": ReactArcgisToolbarItem;
204
+ "arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
205
+ "arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
133
206
  "arcgis-unique-values-list": ReactArcgisUniqueValuesList;
207
+ "arcgis-value-picker": ReactArcgisValuePicker;
208
+ "arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
209
+ "arcgis-value-picker-combobox": ReactArcgisValuePickerCombobox;
210
+ "arcgis-value-picker-label": ReactArcgisValuePickerLabel;
211
+ "arcgis-value-picker-slider": ReactArcgisValuePickerSlider;
134
212
  }
135
213
  }
136
214
  }
@@ -151,9 +229,21 @@ declare module "react/jsx-runtime" {
151
229
  "arcgis-ramp-color-break": ReactArcgisRampColorBreak;
152
230
  "arcgis-ramp-opacity": ReactArcgisRampOpacity;
153
231
  "arcgis-slider": ReactArcgisSlider;
232
+ "arcgis-slider-field": ReactArcgisSliderField;
154
233
  "arcgis-slider-input": ReactArcgisSliderInput;
155
234
  "arcgis-ticks": ReactArcgisTicks;
235
+ "arcgis-toolbar": ReactArcgisToolbar;
236
+ "arcgis-toolbar-action": ReactArcgisToolbarAction;
237
+ "arcgis-toolbar-group": ReactArcgisToolbarGroup;
238
+ "arcgis-toolbar-item": ReactArcgisToolbarItem;
239
+ "arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
240
+ "arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
156
241
  "arcgis-unique-values-list": ReactArcgisUniqueValuesList;
242
+ "arcgis-value-picker": ReactArcgisValuePicker;
243
+ "arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
244
+ "arcgis-value-picker-combobox": ReactArcgisValuePickerCombobox;
245
+ "arcgis-value-picker-label": ReactArcgisValuePickerLabel;
246
+ "arcgis-value-picker-slider": ReactArcgisValuePickerSlider;
157
247
  }
158
248
  }
159
249
  }
@@ -174,9 +264,21 @@ declare module "react/jsx-dev-runtime" {
174
264
  "arcgis-ramp-color-break": ReactArcgisRampColorBreak;
175
265
  "arcgis-ramp-opacity": ReactArcgisRampOpacity;
176
266
  "arcgis-slider": ReactArcgisSlider;
267
+ "arcgis-slider-field": ReactArcgisSliderField;
177
268
  "arcgis-slider-input": ReactArcgisSliderInput;
178
269
  "arcgis-ticks": ReactArcgisTicks;
270
+ "arcgis-toolbar": ReactArcgisToolbar;
271
+ "arcgis-toolbar-action": ReactArcgisToolbarAction;
272
+ "arcgis-toolbar-group": ReactArcgisToolbarGroup;
273
+ "arcgis-toolbar-item": ReactArcgisToolbarItem;
274
+ "arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
275
+ "arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
179
276
  "arcgis-unique-values-list": ReactArcgisUniqueValuesList;
277
+ "arcgis-value-picker": ReactArcgisValuePicker;
278
+ "arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
279
+ "arcgis-value-picker-combobox": ReactArcgisValuePickerCombobox;
280
+ "arcgis-value-picker-label": ReactArcgisValuePickerLabel;
281
+ "arcgis-value-picker-slider": ReactArcgisValuePickerSlider;
180
282
  }
181
283
  }
182
284
  }
@@ -13,9 +13,21 @@ import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElem
13
13
  import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
14
14
  import type { ArcgisRampOpacity } from "../components/arcgis-ramp-opacity/customElement.js";
15
15
  import type { ArcgisSlider } from "../components/arcgis-slider/customElement.js";
16
+ import type { ArcgisSliderField } from "../components/arcgis-slider-field/customElement.js";
16
17
  import type { ArcgisSliderInput } from "../components/arcgis-slider-input/customElement.js";
17
18
  import type { ArcgisTicks } from "../components/arcgis-ticks/customElement.js";
19
+ import type { ArcgisToolbar } from "../components/arcgis-toolbar/customElement.js";
20
+ import type { ArcgisToolbarAction } from "../components/arcgis-toolbar-action/customElement.js";
21
+ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/customElement.js";
22
+ import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
23
+ import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
24
+ import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
18
25
  import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
26
+ import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
27
+ import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
28
+ import type { ArcgisValuePickerCombobox } from "../components/arcgis-value-picker-combobox/customElement.js";
29
+ import type { ArcgisValuePickerLabel } from "../components/arcgis-value-picker-label/customElement.js";
30
+ import type { ArcgisValuePickerSlider } from "../components/arcgis-value-picker-slider/customElement.js";
19
31
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
20
32
  import type { EventHandler } from "@arcgis/lumina";
21
33
 
@@ -68,7 +80,7 @@ interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "
68
80
  onArcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
69
81
  }
70
82
 
71
- interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
83
+ interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
72
84
  }
73
85
 
74
86
  interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
@@ -96,6 +108,13 @@ interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOve
96
108
  onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
97
109
  }
98
110
 
111
+ interface StencilArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderField> {
112
+ onArcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
113
+ onArcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
114
+ onArcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
115
+ onArcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
116
+ }
117
+
99
118
  interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
100
119
  onArcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
101
120
  onArcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
@@ -105,12 +124,59 @@ interface StencilArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "
105
124
  onArcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
106
125
  }
107
126
 
127
+ interface StencilArcgisToolbar extends Partial<Pick<ArcgisToolbar, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, StencilJsx.HTMLAttributes<ArcgisToolbar> {
128
+ }
129
+
130
+ interface StencilArcgisToolbarAction extends Partial<Pick<ArcgisToolbarAction, "active" | "appearance" | "disabled" | "icon" | "iconFlipRtl" | "indicator" | "kind" | "labelText" | "loading" | "textEnabled" | "tooltipText">>, StencilJsx.HTMLAttributes<ArcgisToolbarAction> {
131
+ onArcgisRenderedActionChanged?: EventHandler<ArcgisToolbarAction["arcgisRenderedActionChanged"]>;
132
+ onArcgisToolbarItemSelected?: EventHandler<ArcgisToolbarAction["arcgisToolbarItemSelected"]>;
133
+ }
134
+
135
+ interface StencilArcgisToolbarGroup extends Partial<Pick<ArcgisToolbarGroup, "preferEndSlot" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarGroup> {
136
+ }
137
+
138
+ interface StencilArcgisToolbarItem extends Partial<Pick<ArcgisToolbarItem, "active" | "disabled" | "icon" | "iconFlipRtl" | "labelText" | "lastActivated" | "loading" | "tooltipText">>, StencilJsx.HTMLAttributes<ArcgisToolbarItem> {
139
+ onArcgisItemSelected?: EventHandler<ArcgisToolbarItem["arcgisItemSelected"]>;
140
+ }
141
+
142
+ interface StencilArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreButton, "menuAppearance" | "overflowActionLabel" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarMoreButton> {
143
+ }
144
+
145
+ interface StencilArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarSplitButton> {
146
+ }
147
+
108
148
  interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
109
149
  onArcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
110
150
  onArcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
111
151
  onArcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
112
152
  }
113
153
 
154
+ interface StencilArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, StencilJsx.HTMLAttributes<ArcgisValuePicker> {
155
+ onArcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
156
+ onArcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
157
+ onArcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
158
+ onArcgisPlay?: EventHandler<ArcgisValuePicker["arcgisPlay"]>;
159
+ onArcgisPrevious?: EventHandler<ArcgisValuePicker["arcgisPrevious"]>;
160
+ onArcgisPropertyChange?: EventHandler<ArcgisValuePicker["arcgisPropertyChange"]>;
161
+ onArcgisSlottedElementChange?: EventHandler<ArcgisValuePicker["arcgisSlottedElementChange"]>;
162
+ }
163
+
164
+ interface StencilArcgisValuePickerCollection extends Partial<Pick<ArcgisValuePickerCollection, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerCollection> {
165
+ onArcgisPropertyChange?: EventHandler<ArcgisValuePickerCollection["arcgisPropertyChange"]>;
166
+ }
167
+
168
+ interface StencilArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePickerCombobox, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerCombobox> {
169
+ onArcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
170
+ }
171
+
172
+ interface StencilArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerLabel> {
173
+ onArcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
174
+ }
175
+
176
+ interface StencilArcgisValuePickerSlider extends Partial<Pick<ArcgisValuePickerSlider, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "labelFormatter" | "labels" | "layout" | "majorTicks" | "max" | "min" | "minorTicks" | "mirrored" | "steps">>, StencilJsx.HTMLAttributes<ArcgisValuePickerSlider> {
177
+ onArcgisPropertyChange?: EventHandler<ArcgisValuePickerSlider["arcgisPropertyChange"]>;
178
+ }
179
+
114
180
  interface ExposedElements {
115
181
  "arcgis-ckeditor5": StencilArcgisCkeditor5;
116
182
  "arcgis-ckeditor5-popover": StencilArcgisCkeditor5Popover;
@@ -126,17 +192,29 @@ interface ExposedElements {
126
192
  "arcgis-ramp-color-break": StencilArcgisRampColorBreak;
127
193
  "arcgis-ramp-opacity": StencilArcgisRampOpacity;
128
194
  "arcgis-slider": StencilArcgisSlider;
195
+ "arcgis-slider-field": StencilArcgisSliderField;
129
196
  "arcgis-slider-input": StencilArcgisSliderInput;
130
197
  "arcgis-ticks": StencilArcgisTicks;
198
+ "arcgis-toolbar": StencilArcgisToolbar;
199
+ "arcgis-toolbar-action": StencilArcgisToolbarAction;
200
+ "arcgis-toolbar-group": StencilArcgisToolbarGroup;
201
+ "arcgis-toolbar-item": StencilArcgisToolbarItem;
202
+ "arcgis-toolbar-more-button": StencilArcgisToolbarMoreButton;
203
+ "arcgis-toolbar-split-button": StencilArcgisToolbarSplitButton;
131
204
  "arcgis-unique-values-list": StencilArcgisUniqueValuesList;
205
+ "arcgis-value-picker": StencilArcgisValuePicker;
206
+ "arcgis-value-picker-collection": StencilArcgisValuePickerCollection;
207
+ "arcgis-value-picker-combobox": StencilArcgisValuePickerCombobox;
208
+ "arcgis-value-picker-label": StencilArcgisValuePickerLabel;
209
+ "arcgis-value-picker-slider": StencilArcgisValuePickerSlider;
132
210
  }
133
211
 
134
212
  export namespace JSX {
135
213
  export interface IntrinsicElements extends ExposedElements {}
136
214
  }
137
215
 
138
- declare module "@stencil/core/internal/stencil-public-runtime" {
139
- export namespace h.JSX {
216
+ declare module "@stencil/core" {
217
+ export namespace JSX {
140
218
  interface IntrinsicElements extends ExposedElements {}
141
219
  }
142
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/common-components",
3
- "version": "5.2.0-next.8",
3
+ "version": "5.2.0-next.85",
4
4
  "description": "ArcGIS Maps SDK for JavaScript common components",
5
5
  "keywords": [
6
6
  "2D",
@@ -49,12 +49,12 @@
49
49
  "@lit/task": "^1.0.3",
50
50
  "lit": "^3.3.0",
51
51
  "tslib": "^2.8.1",
52
- "@arcgis/lumina": "5.2.0-next.8",
53
- "@arcgis/toolkit": "5.2.0-next.8"
52
+ "@arcgis/lumina": "5.2.0-next.85",
53
+ "@arcgis/toolkit": "5.2.0-next.85"
54
54
  },
55
55
  "peerDependencies": {
56
- "@arcgis/core": "^5.2.0-next",
57
- "@esri/calcite-components": "^5.1.1-next.3"
56
+ "@esri/calcite-components": "^5.2.0-next.52",
57
+ "@arcgis/core": "5.2.0-next.85"
58
58
  },
59
59
  "css.customData": [
60
60
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i}from"./UGWLCTVM.js";import{a as u,b as m}from"./WJ3TYWP2.js";import{e as g}from"./F45Q3BRT.js";import{A as a,B as d,C as e,E as p,H as h,g as l,i as n,q as s,t as c,z as o}from"./OOBX2C2L.js";var v=l`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`,r=class extends d{constructor(){super(),this.okButton=o(),this.popoverNode=o(),this._propWatcherTask=new u(this,{task:async([t])=>{if(!m(t)){console.error("[ckeditor5] Required properties are missing.");return}},args:()=>[this.refElement]}),this.guid=c(),this.intlOk="Ok",this.intlCancel="Cancel",this.arcgisCkeditor5PopoverClosed=s(),this.arcgisPopoverClosed=s(),this.listen("arcgisCreated",this.afterEditorCreated),this.listen("arcgisSourceEditingChanged",this.onSourceEditingStatusChanged)}static{this.properties={guid:1,refElement:0,intlOk:1,intlCancel:1,intlLabel:1}}static{this.styles=v}async reposition(){this.popoverNode.value?.reposition()}afterEditorCreated(t){this.editor=t.target,this.reposition(),this.requestUpdate()}onSourceEditingStatusChanged(t){this.okButton.value&&(this.okButton.value.disabled=t.detail)}render(){return this.el.classList.add("js-app-flyout"),this._propWatcherTask.render({complete:()=>n`<calcite-popover class=${e(i.popover)} dir=${g(this.el)??p} placement=leading-start open pointer-disabled .referenceElement=${this.refElement} .offsetDistance=${-Math.round(this.refElement.getBoundingClientRect().width)} offset-skidding=50 .label=${this.intlLabel??""} focus-trap-disabled trigger-disabled top-layer-disabled ${a(this.popoverNode)}><div class=${e(i.arcgisAppCkeditorPopoverContainer)}><slot></slot><div class=${e(i.arcgisAppCkeditorPopoverFooter)}><calcite-button .label=${this.intlOk} @click=${async t=>{this.okButton.value?.disabled||(t.stopPropagation(),this.arcgisCkeditor5PopoverClosed.emit({guid:this.guid,data:await this.editor?.getData()}),this.arcgisPopoverClosed.emit({guid:this.guid,data:await this.editor?.getData()}))}} ${a(this.okButton)}>${this.intlOk}</calcite-button><calcite-button appearance=outline-fill .label=${this.intlCancel} @click=${t=>{t.stopPropagation(),this.arcgisCkeditor5PopoverClosed.emit({guid:this.guid}),this.arcgisPopoverClosed.emit({guid:this.guid})}}>${this.intlCancel}</calcite-button></div></div></calcite-popover>`})}};h("arcgis-ckeditor5-popover",r);export{r as ArcgisCkeditor5Popover};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- function r(n,t){return n!=null&&typeof n=="object"&&"type"in n&&n.type===t}function e(n){return r(n,"csv")}function a(n){return u(n)&&!n.url}function u(n){return r(n,"feature")}function s(n){return r(n,"geojson")}function o(n){return r(n,"imagery")}function i(n){return r(n,"imagery-tile")}function c(n){return r(n,"map-image")}function f(n){return r(n,"ogc-feature")}function p(n){return r(n,"scene")}function y(n){return r(n,"stream")}function l(n){return r(n,"sublayer")&&"parent"in n}function b(n){return r(n,"subtype-group")&&"sublayers"in n}function g(n){return r(n,"subtype-sublayer")}function m(n){return r(n,"voxel")}function j(n){return r(n,"wcs")}function v(n){return r(n,"wfs")}export{e as a,a as b,u as c,s as d,o as e,i as f,c as g,f as h,p as i,y as j,l as k,b as l,g as m,m as n,j as o,v as p};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as o}from"./YG4PY2H3.js";import{B as l,E as m,H as p,g as d,i,q as c}from"./OOBX2C2L.js";var b=d`:host{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;height:100%;width:100%}`,n=class extends l{constructor(){super(...arguments),this.treeItemsOpen=new Set,this.handleMutations=e=>{e.forEach(t=>{if(t.type==="attributes"&&t.attributeName==="expanded"){let s=t.target;"key"in s.dataset&&s.dataset.key!==void 0&&this.treeItemsOpen.has(s.dataset.key)!==s.expanded&&this.toggleTreeItem(s.dataset.key)}})},this.renderedTree=[],this.data={},this.arcgisChange=c()}static{this.properties={renderedTree:16,data:0,value:1}}static{this.styles=b}load(){this.setupComponent()}willUpdate(e){e.has("data")&&(this.hasUpdated||Object.keys(this.data??{}).length>0)&&this.setupComponent()}loaded(){this.manager.onLifecycle(()=>{this.observer=new MutationObserver(this.handleMutations);let e=this.el.shadowRoot??this.el;return this.observer.observe(e,{attributes:!0,subtree:!0,attributeFilter:["expanded"]}),()=>{this.observer?.disconnect(),this.observer=void 0}})}setupComponent(){this.treeItemsOpen.clear(),this.buildJSXTree()}buildJSXTree(){let e=t=>{let s=[];for(let r of Object.keys(t)){let a=t[r],h;typeof a=="object"&&(h=this.treeItemsOpen.has(r)?e(a):[]);let u=typeof a=="object"?r:a;s.push(this.createTreeItem(r,u,h))}return s};this.renderedTree=e(this.data)}toggleTreeItem(e){this.treeItemsOpen.has(e)?this.treeItemsOpen.delete(e):this.treeItemsOpen.add(e),this.buildJSXTree()}createTreeItem(e,t,s){return i`<calcite-tree-item data-key=${e??m} .selected=${this.value===e} .expanded=${this.treeItemsOpen.has(e)}>${t}${s!==void 0&&o(`${e}-child-tree`,i`<calcite-tree slot=children>${s}</calcite-tree>`)||""}</calcite-tree-item>`}handleTreeSelect(e){let t=e.currentTarget?.selectedItems[0]?.dataset.key;t!==void 0&&(this.value=t,this.arcgisChange.emit())}render(){return o("base-tree",i`<calcite-tree scale=s @calciteTreeSelect=${this.handleTreeSelect}>${this.renderedTree}</calcite-tree>`)}};p("arcgis-coordinate-system-picker-tree",n);export{n as ArcgisCoordinateSystemPickerTree};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as b}from"./ECNI2A4K.js";import{B as m,H as o,g as h,i as d,q as r}from"./OOBX2C2L.js";var v=h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`,p=class extends m{constructor(){super(...arguments),this.debouncedApplyValueOnChange=b(e=>this.applyValueOnChange(e),800),this.disabled=!1,this.flipLabels=!1,this.scale="s",this.min=0,this.max=100,this.value=50,this.step=1,this.withSteppers=!1,this.arcgisSliderInputValueChange=r(),this.arcgisValueChange=r()}static{this.properties={disabled:5,label:1,flipLabels:5,scale:1,min:9,max:9,value:9,step:9,unitsLabel:1,withSteppers:5}}static{this.styles=v}applyValueOnChange(e){let{min:i,max:a,value:n}=this,s=Number(e.value),t=i!==void 0&&a!==void 0?Math.min(a,Math.max(i,s)):s;s!==n&&(e.value=`${t}`,this.arcgisValueChange.emit(t),this.arcgisSliderInputValueChange.emit(t),this.value=t)}render(){let{disabled:e,min:i,max:a,value:n,step:s,withSteppers:t,flipLabels:c,unitsLabel:u,label:g,scale:$}=this;return d`<div class="container"><calcite-slider class="slider" .disabled=${e} .min=${i} .max=${a} .value=${n} .step=${s} @calciteSliderInput=${l=>this.debouncedApplyValueOnChange(l.currentTarget)}></calcite-slider><calcite-input class="input" .disabled=${e} .min=${i} .max=${a} .numberButtonType=${t?"vertical":"none"} .prefixText=${c?u:""} @calciteInputInput=${l=>this.debouncedApplyValueOnChange(l.target)} @click=${l=>l.stopPropagation()} .scale=${$} step=any .suffixText=${c?"":u} type=number .value=${`${n}`} .label=${g}></calcite-input></div>`}};o("arcgis-slider-input",p);export{p as ArcgisSliderInput};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{B as $,C as h,D as m,E as g,H as M,g as y,i as c,q as w}from"./OOBX2C2L.js";export default $arcgis.t(([{formatNumber:A}])=>{var s={container:"container",ticksContainer:"ticks-container",labelsContainer:"labels-container",tick:"tick",tickMin:"tick--min",tickMax:"tick--max",tickLabel:"tick-label",baseline:"baseline"},L=y`:host{display:flex;--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`,f=class extends ${constructor(){super(...arguments),this._formatValue=i=>A(i,this._formatOptions),this._formatOptions={style:"decimal",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:2},this.interactive=!1,this.interpolationExponent=0,this.labelPlacement="end",this.layout="horizontal",this.max=100,this.min=0,this.mirrored=!1,this.mode="count",this.showLabels=!1,this.showBaseline=!1,this.values=[],this.arcgisTickClick=w({cancelable:!1})}static{this.properties={_formatOptions:16,interactive:7,interpolationExponent:9,labelFormatter:0,labelPlacement:3,layout:3,max:9,min:9,mirrored:7,mode:1,showLabels:5,showBaseline:5,values:[9,{converter:{fromAttribute(i){if(i.includes(","))return i.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t));{let t=parseFloat(i);return Number.isFinite(t)?[t]:[]}}}}]}}static{this.styles=L}updated(){let i=this.renderRoot.querySelector(`.${s.labelsContainer}`);if(i){let t=0,e=0;for(let a of this.renderRoot.querySelectorAll(`.${s.tickLabel}`)){let r=a.getBoundingClientRect();t=Math.max(t,r.width),e=Math.max(e,r.height)}t=Math.ceil(t),e=Math.ceil(e),!t||!e?(i.style.removeProperty("--labels-container-width"),i.style.removeProperty("--labels-container-height")):(i.style.setProperty("--labels-container-width",`${t}px`),i.style.setProperty("--labels-container-height",`${e}px`))}}_handleClick(i){if(!this.interactive)return;let t=i.target.dataset.value;t&&this.arcgisTickClick.emit({value:Number(t)})}_internalLabelFormatter(i){let t=this.labelFormatter;return t?t(i,this._formatValue)??this._formatValue(i):this._formatValue(i)}render(){return c`<div class=${h(s.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`}_renderContent(){let{interpolationExponent:i,max:t,min:e,mode:a,values:r,layout:o,mirrored:l,showLabels:C}=this,v=[],p=[];for(let[d,u]of F(a,e,t,i,r)){let x={[o==="horizontal"?l?"right":"left":l?"top":"bottom"]:`${d}%`},z={[s.tick]:!0,[s.tickMin]:d===0,[s.tickMax]:d===100};v.push(c`<div class=${h(z)} style=${m(x)} data-value=${u??g}></div>`),C&&p.push(c`<div class=${h(s.tickLabel)} style=${m(x)} data-value=${u??g}>${this._internalLabelFormatter(u)}</div>`)}return[c`<div class=${h(s.labelsContainer)}>${p}</div>`,c`<div class=${h(s.ticksContainer)}>${v}</div>`]}_renderBaseline(){let{showBaseline:i,layout:t}=this;return i&&c`<div class=${h(s.baseline)} style=${m({[t==="horizontal"?"width":"height"]:"100%",[t==="horizontal"?"height":"width"]:"0.125rem"})}></div>`||""}};function*F(n,i,t,e,a){switch(n){case"value":{let r=Array.isArray(a)?a:[a];for(let o of r){let l=P(i,t,o,e)*100;l>=0&&l<=100&&(yield[l,o])}break}case"percent":{if(Array.isArray(a))for(let r of a)r>=0&&r<=100&&(yield[r,k(i,t,r/100,e)]);else if(a>0)for(let r=0;r<=100;r+=a)yield[r,k(i,t,r/100,e)];break}case"count":{let r=Array.isArray(a)?a[0]:a;if(r<=1)yield[50,k(i,t,.5,e)];else for(let o=0;o<r;o++){let l=o*100/(r-1);yield[l,k(i,t,l/100,e)]}break}}}function b(n,i,t){return t<n?n:t>i?i:t}function _(n,i,t){return n+(i-n)*t}function P(n,i,t,e=0){let a=(t-n)/(i-n);if(a=b(0,1,a),Math.abs(e)<1e-9)return a;let r=1+Math.expm1(e)*a;return a=Math.log(r)/e,b(0,1,a)}function k(n,i,t,e=0){if(t=b(0,1,t),Math.abs(e)<1e-9)return _(n,i,t);let a=Math.expm1(e*t)/Math.expm1(e);return _(n,i,a)}M("arcgis-ticks",f);return f},"intl")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- function g(n){return l(n).length>0}function l(n,t){return u(n.target,t)}function u(n,t){let e=n.assignedElements({flatten:!0});return t?e.filter(s=>s.matches(t)):e}var E=(...n)=>{let t=[];for(let s=0;s<n.length;++s){let o=n[s];if(typeof o=="string")t.push(o);else if(Array.isArray(o))t.push.apply(t,o);else if(typeof o=="object")for(let r in o)o[r]&&t.push(r)}let e=t.join(" ");return t.length=0,e},d=(n,t)=>{let e=n;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},p=(n,t,e)=>{let s=f(t).subscribe;return s(o=>{o.some(i=>d(n,i.target))&&e()})},c={},f=n=>{let t=n.join(","),e=c[t];if(e!==void 0)return e;let s=new Set,o=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(o.disconnect(),c[t]=void 0)})};return c[t]=r,r},m=(n,t)=>{let e=n;for(;e;){let s=e.closest?.(t);if(s)return s;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var b=n=>h(n,"dir","ltr"),h=(n,t,e)=>m(n,`[${t}]`)?.getAttribute(t)??e;export{g as a,E as b,p as c,m as d,b as e,h as f};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./NKMDS2IH.js";import{b as D}from"./YSXFXVP6.js";import"./F45Q3BRT.js";import{B as V,C as _,D as v,E as u,H as L,g as w,i as $,j as d}from"./OOBX2C2L.js";export default $arcgis.t(([{substitute:F}])=>{var N=w`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr}.svg{display:block;width:100%;height:100%}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function B(t,n,i,e,r){let[s,a]=r;if(!t||a===0||s===0||i==null||n==null)return null;let o=i-n,l=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/o,[c,h]=e==="vertical"?[a*l,s]:[a,s*l],p=t?t.map(m=>m.count):[],g=Math.max(...p);return t.map(m=>{let[f,b]=e==="vertical"?[c/t.length,g!==0?m.count/g*h:0]:[g!==0?m.count/g*c:0,h/t.length],{maxValue:C}=m,y=i-C,[S,z]=e==="vertical"?[0,y*(a/o)]:[s-b-y*(s/o),a-f];return[S,z,b,f]})}function O(t,n,i,e,r){let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),n!=null&&i!=null&&e!=null&&s.push(...H(i,e,n,t)),r&&s.push(...r),s}function A(t,n,i,e,r){if(i==null)return[0,0,0,0];let s=Math.round((r-i)/e*100)/100,[a,o]=t;if(n==="vertical"){let c=o-s*o||1;return c=Math.round(c)+.5,[0,"100%",c,c]}let l=s*a||1;return l=Math.round(l)+.5,[l,l,"100%",0]}function P(t,n,i,e,r){if(i==null)return[0,0];let s=Math.round((r-i)/e*100)/100,[a,o]=t;return n==="vertical"?[a,o-s*o]:[0,s*a]}function T(t,n,i){if(!t||t.length===0)return null;if(I(t)){let e=t.map(r=>({...r,color:E(r.color??i)}));return e.unshift({color:n,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:n,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:E(e.color??i)}))}function R(t,n,i,e){if(!t||t.length===0)return i;if(I(t)){let r=G(t,n);if(r.length===0)return i;if(e){let{color:s=i,weight:a}=r[0],{color:o=i,weight:l}=r[1]??r[0],c=a+l;return`color-mix(in srgb, ${s} ${a/c*100}%, ${o} ${l/c*100}%)`}return r[0].color??i}return Y(t,n)}function G(t,n){let i=[];for(let e of t){let r=Math.max(0,Math.min(n.maxValue,e.maxValue)-Math.max(n.minValue,e.minValue));r>0&&i.push({color:e.color,weight:r})}return i.sort((e,r)=>r.weight-e.weight)}function Y(t,n){let i=(n.maxValue-n.minValue)/2+n.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let r=t[e],s=t[e+1];if(i<=r.value)return r.color;if(i<s.value){let a=(i-r.value)/(s.value-r.value)*100;return`color-mix(in srgb, ${r.color}, ${s.color} ${a}%)`}}return t[t.length-1].color}function I(t){return t[0]!=null&&"minValue"in t[0]}function E(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r:n,g:i,b:e,a:r=1}=t;return`rgba(${n}, ${i}, ${e}, ${r})`}function H(t,n,i,e){let r=.06*(n-t);return U(i,e).filter(s=>Math.abs(e-s)>r).map((s,a,o)=>{let l=o.length/2,c=s>e?"+":"-",h=a>=l?a-l+1:l-a;return{symbol:`${c}${h===1?"":h}\u03C3`,value:s}})}function U(t,n){if(n==null||t==null)return[];let i=1,e=[];for(let r=i*-1;r<=i;r++)r!==0&&e.push(n+r*t);return e}var M="var(--arcgis-histogram-bar-color)",q="var(--arcgis-histogram-stop-color)",x=class extends V{constructor(){super(...arguments),this._messages=D(),this._normalizedStops=null,this._formatLabel=n=>k(this._messages._lang,this._numberFormatterOptions).format(n),this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.colorBlendingEnabled=!1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,colorBlendingEnabled:5}}static{this.styles=N}loaded(){let n=new ResizeObserver(r=>{for(let s of r){let{width:a,height:o}=s.contentRect;this.containerDimensions=[a,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],n.observe(this.el)}willUpdate(n){n.has("colorStops")&&(this._normalizedStops=T(this.colorStops,M,q))}render(){let{label:n}=this;return $`<div role=img .ariaLabel=${n??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[n,i]}=this,e="bg-fill";return n?$`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${d`<defs><clipPath id=${e}><rect height=${i??u} width=${n??u} x=0 y=0 /></clipPath></defs><g style=${v({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g><g>${this._renderLines()}</g>`}</svg>`:null}_renderBars(){let{bins:n,_messages:i}=this,e=B(this.bins,this.min,this.max,this.layout,this.containerDimensions);return!e||!n?null:e.map((r,s)=>{let[a,o,l,c]=r,h=n[s],p=i?.barLabel?F(i.barLabel,h):"";return d`<rect style=${v({fill:R(this._normalizedStops,h,M,this.colorBlendingEnabled)})} .ariaLabel=${p} data-index=${s??u} height=${c??u} role=img shape-rendering=crispEdges stroke-width=0 width=${l??u} x=${a??u} y=${o??u} />`})}_renderLines(){return O(this.average,this.standardDeviation,this.min,this.max,this.dataLines)?.map(n=>W({dataLine:n,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this._formatLabel}))}},W=t=>{let{containerDimensions:n,layout:i,min:e,max:r,dataLine:s,labelFormatter:a}=t,o=r!=null&&e!=null?r-e:0,[l,c,h,p]=A(n,i,e,o,s.value),[g,m]=P(n,i,e,o,s.value),f="symbol"in s?[d`<tspan class="data-line-symbol">${s.symbol}</tspan>`,d`<tspan>${a(s.value)}</tspan>`]:s.label,b="lineClass"in s&&s.lineClass?s.lineClass:"data-line";return d`<g><title>${s.value}</title><line class=${_(b)} shape-rendering=crispEdges x1=${l??u} x2=${c??u} y1=${h??u} y2=${p??u} /><text class="label" text-anchor=end transform=${(i==="horizontal"?"rotate(270)":void 0)??u} x=${g??u} y=${m-2}>${f}</text></g>`};L("arcgis-histogram",x);return x},"intl")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{A as t,B as a,D as r,H as c,g as n,i as o,q as i,z as l}from"./OOBX2C2L.js";var d=n`:host{display:flex}:host([disabled]){opacity:.25;pointer-events:none}button{overflow:hidden;background-color:transparent;align-items:center;border:none;border-radius:0;box-sizing:border-box;cursor:pointer;display:flex;font-family:inherit;gap:var(--calcite-space-sm);height:100%;justify-content:center;outline-color:transparent;outline-offset:0;padding:3px 0;padding-inline:3px var(--calcite-space-sm);position:relative;text-decoration:none;user-select:none;text-align:center;-webkit-appearance:none;width:100%;&:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}&:hover{text-decoration:none}}.preview{border:var(--calcite-border-width-sm) solid #949494;display:flex;align-items:center;flex-grow:1}.container{display:flex;gap:5px;width:100%}::slotted([slot="preview"]){flex-grow:1;display:flex}calcite-icon{color:var(--calcite-color-text-3)}`,s=class extends a{constructor(){super(),this.panelEl=l(),this.open=!1,this.disabled=!1,this.iconEnd="pencil",this.label="",this.arcgisPopoverOpen=i(),this.arcgisPopoverClose=i(),this.listenOn(document.body,"arcgisPopoverOpen",this.onPopoverOpen)}static{this.properties={open:16,disabled:7,heading:1,iconEnd:1,intlDone:1,label:1,popoverProps:0}}static{this.styles=d}async close(){this.onPopoverClose()}async setFocus(){this.buttonEl?.focus()}setPreviewContainerRef(e){this.previewContainerEl=e}setButtonRef(e){this.buttonEl=e}handlePopoverOpen(e){this.panelEl.value.closed=!1,this.arcgisPopoverOpen.emit(),e.stopPropagation()}handlePopoverKeyUp({key:e}){e==="Escape"&&this.onPopoverClose()}onPopoverOpen(e){this.open&&(e.composedPath().includes(this.el)||(this.open=!1))}onPopoverClose(){this.open=!1,this.arcgisPopoverClose.emit(),setTimeout(()=>this.buttonEl?.focus(),300)}handlePanelClose(e){e.stopPropagation(),this.onPopoverClose()}handleButtonClick(){this.open=!this.open,this.open&&setTimeout(()=>{this.panelEl.value?.setFocus()},300)}render(){let{popoverProps:e}=this;return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance??0} .offsetSkidding=${e?.offsetSkidding??0} .flipDisabled=${e?.flipDisabled??!1} .open=${this.disabled?!1:this.open} .overlayPositioning=${e?.overlayPositioning??"fixed"} .placement=${e?.placement??"bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${p=>p.stopPropagation()} .referenceElement=${e?.refElement??this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight?{maxHeight:e.maxHeight}:void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${this.onPopoverClose}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd?o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>`:null}</button></div><slot name=content-end></slot></div>`}};c("arcgis-picker-input",s);export{s as ArcgisPickerInput};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as E}from"./ECNI2A4K.js";import{b as k}from"./YSXFXVP6.js";import{e as f}from"./F45Q3BRT.js";import{a as n}from"./YG4PY2H3.js";import{A as l,B as w,H as v,g as C,i,j as u,l as m,q as r,z as g}from"./OOBX2C2L.js";function y(a,e,t){window.localStorage.setItem(a,JSON.stringify(e))}function S(a,e){let t=window.localStorage.getItem(a);return t&&e?JSON.parse(t):t}var R=C`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}`,h=class extends w{constructor(){super(),this._messages=k(),this.actionEl=g(),this.open=!1,this.setRecentColorElement=e=>t=>{switch(e){case 1:this.recentColor1El=t;break;case 2:this.recentColor2El=t;break;default:this.recentColor3El=t}},this.recentColors=[],this.clearable=!1,this.compact=!1,this.disabled=!1,this.placement="auto",this.storageId="arcgis-color-input-storage-colors",this.hideRecentColors=!1,this.showTransparency=!1,this.arcgisChange=r(),this.arcgisColorInputChange=r(),this.arcgisColorInputPopoverClose=r(),this.arcgisColorInputPopoverOpen=r(),this.arcgisColorInputSwatchUpdate=r(),this.arcgisInternalStoredColor=r(),this.arcgisPickerClose=r(),this.arcgisPickerOpen=r(),this.arcgisSwatchUpdate=r(),this.listenOn(document,"arcgisInternalStoredColor",this.handleUpdateRecentColors),this.listenOn(document,"arcgisRecentColorsUpdate",this.handleStoreNewRecentColor)}static{this.properties={recentColors:16,clearable:5,color:1,compact:5,disabled:5,messageOverrides:0,placement:1,popoverProps:0,storageId:1,hideRecentColors:5,showTransparency:5}}static{this.styles=R}async close(){await this.inlineInputEl?.close()}async setFocus(){await this.inlineInputEl?.setFocus()}isOpen(){return this.open}load(){this.setRecentColorsFromStorage()}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}async handleOpen(){await this.colorPickerEl?.setFocus(),this.open=!0,this.arcgisPickerOpen.emit(),this.arcgisColorInputPopoverOpen.emit()}setInlineInputRef(e){this.inlineInputEl=e}setColorPickerRef(e){e&&(this.colorPickerEl=e)}getRecentColorElement(e){switch(e){case 1:return this.recentColor1El;case 2:return this.recentColor2El;default:return this.recentColor3El}}setRecentColorsFromStorage(){let e=S(this.storageId,!0);e&&(this.recentColors=[...e])}handleSwatchClickOrKeyUp(e){if("key"in e&&e.key!=="Enter"&&e.key!=="Space")return;let t=e.currentTarget.color||void 0;this.updateColor(t),this.arcgisSwatchUpdate.emit(t),this.arcgisColorInputSwatchUpdate.emit(t),setTimeout(()=>this.recentColor1El?.focus(),200)}handleRecentColorsKeyDown(e){if(this.recentColors.length===1)return;let t=e.key,o;this.activeColorSwatchEl===this.recentColor1El?o=1:this.activeColorSwatchEl===this.recentColor2El?o=2:this.activeColorSwatchEl===this.recentColor3El&&(o=3),t==="ArrowLeft"&&(!o||o===1?this.getRecentColorElement(this.recentColors.length)?.focus():this.getRecentColorElement(o-1)?.focus()),t==="ArrowRight"&&(!o||o===this.recentColors.length?this.recentColor1El?.focus():this.getRecentColorElement(o+1)?.focus())}handleUpdateActiveSwatch(e){this.activeColorSwatchEl=e.target}handleStoreNewRecentColor(e){this.storeRecentColorToStorage(e.detail)}handleUpdateRecentColors(e){e.composedPath().includes(this.el)||this.setRecentColorsFromStorage()}handleClearColor(){this.updateColor(void 0)}updateColor(e,t=!0){e!==this.color&&(this.color=e,this.arcgisChange.emit(),this.arcgisColorInputChange.emit(),t&&this.storeRecentColorToStorage(e))}storeRecentColorToStorage(e){if(!e)return;e.length>7&&(e=e.slice(0,7));let t=[e,...this.recentColors.filter(o=>o!==e)].slice(0,3);y(this.storageId,t),this.recentColors=t,this.arcgisInternalStoredColor.emit()}handleClose(e){e.stopPropagation(),this.storeRecentColorToStorage(this.colorPickerEl?.value),this.open=!1,this.arcgisPickerClose.emit(this.colorPickerEl?.value),this.arcgisColorInputPopoverClose.emit(this.colorPickerEl?.value)}addTooltip(e){this.removeTooltip(),this.tooltipContainerEl=document.createElement("div"),m(i`<calcite-tooltip .placement=${e.placement??"auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`,this.tooltipContainerEl),document.body.append(this.tooltipContainerEl)}removeTooltip(){this.tooltipContainerEl?.parentNode&&(this.tooltipContainerEl.remove(),this.tooltipContainerEl=void 0)}render(){let{compact:e,disabled:t,recentColors:o,_messages:s}=this,p=[o[0],o[1]],$=f(this.el)==="rtl";return e||p.push(o[2]),i`<arcgis-picker-input .disabled=${t} .intlDone=${s.commitColor} .heading=${s.selectColor} .label=${s.selectColor} @arcgisPopoverOpen=${this.handleOpen} @arcgisPopoverClose=${this.handleClose} .popoverProps=${this.popoverProps} ${l(this.setInlineInputRef)}><div class="color-picker-container" slot=content>${n(`color-picker${e?"--compact":""}`,i`<calcite-color-picker .clearable=${this.clearable} class="color-picker" @calciteColorPickerInput=${E(c=>{c.stopPropagation(),this.updateColor(this.colorPickerEl.value,!1)},500)} .scale=${e?"s":"m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${l(this.setColorPickerRef)}></calcite-color-picker>`)}</div><div slot=preview><calcite-color-picker-swatch class="preview-swatch" .color=${this.color} scale=s></calcite-color-picker-swatch></div>${!this.hideRecentColors&&i`<div slot=content-end class="recent-colors-container" @keydown=${this.handleRecentColorsKeyDown} tabindex=-1>${p.map((c,d)=>c?n(c,i`<calcite-color-picker-swatch class="preview-recent-swatch" role=button scale=s tabindex=0 .active=${c===this.color} .color=${c} @click=${this.handleSwatchClickOrKeyUp} @keyup=${this.handleSwatchClickOrKeyUp} @focus=${this.handleUpdateActiveSwatch} ${l(this.setRecentColorElement(d+1))}></calcite-color-picker-swatch>`):this.renderEmptySwatch(`empty-swatch-${d}`))}</div>`||""}${this.clearable&&i`<div slot=content-end class="end-action"><calcite-action icon=circle-disallowed scale=s .label=${s.clearColor} .text=${s.clearColor??""} @click=${this.handleClearColor} @mouseover=${()=>this.addTooltip({referenceElement:this.actionEl.value,placement:$?"right-start":"left-start",innerHTML:s.noColor??""})} @mouseout=${()=>this.removeTooltip()} ${l(this.actionEl)}></calcite-action></div>`||""}</arcgis-picker-input>`}renderEmptySwatch(e){return n(e,i`<svg class="empty-swatch" viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg width=20>${u`<rect width=20 height=20 fill=#f8f8f8 stroke=#000 stroke-dasharray=2 />`}</svg>`)}};v("arcgis-color-input",h);export{h as ArcgisColorInput};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as J,b as x,c as v,d as Q,e as w,f as y,g as j,h as N,i as k,j as F,k as z,l as B,m as E,n as $,o as S,p as R}from"./4BJYJUMR.js";import{a as H,b as p}from"./WJ3TYWP2.js";import{b as U}from"./YSXFXVP6.js";import"./F45Q3BRT.js";import{a as V}from"./YG4PY2H3.js";import{A as q,B as G,C as b,H as W,g as M,i as c,m as O,n as D,q as C}from"./OOBX2C2L.js";export default $arcgis.t(([Y,_,f,A,I,ee,te,ie])=>{function se(a){return a.associatedLayer?.url}var ae={dateStyle:"short",timeStyle:"short"},re={timeStyle:"medium"};function ne(a){let{layer:e,fieldName:t}=a,i,s=A.supportsFieldConfiguration(e),r;"popupTemplate"in e&&(r=e.popupTemplate);let n=r?r.fieldInfos:[];return X(a)?.filter(o=>o.name===t).forEach(o=>{let d=!s&&n?n.filter(m=>m.fieldName===o.name):void 0,u=s?e.getFieldAlias(t):d?.length?d[0].label:o.alias;/^raster.(item|service)pixelvalue/iu.test(t)&&(o.type="double");let l={layerField:o,label:u||o.name};l.codedValues=ue(t,a),de(l),l.simpleFieldType&&(i=l)}),i}function X(a){let{layer:e}=a;return y(e)||S(e)||w(e)&&e.rasterFields.length?e.rasterFields:e.fields}async function K(a){a.statisticsStatus="in-progress";let{layer:e,view:t}=a;if(y(e)||S(e)||F(e)||$(e))throw new Error("could not get feature count");try{return await me(e,t)}catch{return}}async function oe(a){let{layer:e,view:t,fieldName:i,fieldInfo:s}=a;if(y(e)||S(e)||$(e))throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");if(!s||s.layerField.type==="oid"||s.layerField.type==="guid"||s.layerField.type==="global-id")return{totalCount:await K(a),nullcount:0};try{let r=await ee({layer:e,view:t,field:i,outStatisticTypes:{exclude:["median"]}});if(!p(r.count))throw new Error("could not get statistics");let n="sourceJSON"in e&&e.sourceJSON.maxRecordCount===r.count;if(p(r.nullcount)&&!n)return{...r,totalCount:r.count+r.nullcount};{let o=await K(a);return{...r,totalCount:o}}}catch{throw new Error("could not get statistics")}}async function le(a){let{layer:e,view:t,fieldName:i}=a;if(y(e)||S(e)||$(e))throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");x(e)&&(e.outFields=["*"]);try{return await te({layer:e,view:t,field:i})}catch{throw new Error("could not get unique values")}}function de(a){switch(a.layerField.type){case"string":a.simpleFieldType="string";break;case"date":a.simpleFieldType="date";break;case"timestamp-offset":a.simpleFieldType="timestamp-offset";break;case"date-only":a.simpleFieldType="date-only";break;case"time-only":a.simpleFieldType="time-only";break;case"oid":a.simpleFieldType="oid";break;case"guid":case"global-id":a.simpleFieldType="guid";break;case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":a.simpleFieldType="number";break}}function ue(a,e){let{layer:t}=e;if(E(t)&&t.subtypeField===a){let d=t.parent?.subtypes?.find(u=>u.code===t.subtypeCode);if(d)return[{code:d.code,name:d.name}]}if(!v(t)&&!w(t))return;let i=v(t)?t.typeIdField:void 0,s=v(t)?t.types:void 0,r,n=X(e)?.find(d=>d.name===a),o=n?.domain;return v(t)&&i&&s?(i===a?r=s.map(d=>({code:d.id,name:d.name})):(r=[],s.forEach(d=>{if(!d.domains[a]||d.domains[a].type==="inherited"){let u=o;u?.codedValues&&u.codedValues.forEach(l=>{let m=!1;r.forEach(h=>{h.code===l.code&&(m=!0,`, ${h.name},`.includes(`, ${l.name},`)||(h.name+=`, ${l.name}`))}),m||r.push(I.clone(l))})}else d.domains[a].codedValues&&d.domains[a].codedValues.forEach(u=>{let l=!1;r.forEach(m=>{m.code===u.code&&(l=!0,`, ${m.name},`.includes(`, ${u.name},`)||(m.name+=`, ${u.name}`))}),l||r.push(I.clone(u))})})),!r.length&&o?.codedValues&&(r=I.clone(o.codedValues))):o?.codedValues&&(r=n.domain.codedValues),r?.length?r:void 0}async function ce(a){let{view:e,layer:t}=a;if(w(t)||y(t)||S(t))throw new Error("could not get feature");if(v(t)&&!t.url||R(t)){let i=t.createQuery();i.start=0,i.num=5,i.outFields=["*"];let s=await t.queryFeatures(i);if(s.features.length)return s;throw new Error("could not get feature")}else{if(!e)return await L(a);let i;if(E(t)||z(t)){let s=t.parent;for(;B(s)||j(s);)s=s.parent;i=await e.whenLayerView(s)}else i=await e.whenLayerView(t);if(i.availableFields.length===t.fields.length||(F(t)||N(t))&&i.availableFields.length>0){let s=i.createQuery();s.start=0,s.num=5,s.outFields=["*"];let r=await i.queryFeatures(s);return r.features?.length?r:await L(a)}else return await L(a)}}async function L(a){let{layer:e}=a;if(w(e)||y(e)||F(e)||N(e))throw new Error("cannot get feature from service");let t=new ie({where:"1=1",outFields:["*"],returnGeometry:!1});return"sourceJSON"in e&&e.sourceJSON?.advancedQueryCapabilities?.supportsPagination&&(t.num=1),await e.queryFeatures(t)}async function me(a,e){if(x(a))return await pe(a);if(v(a)||J(a)||k(a)||R(a)||Q(a))return await a.queryFeatureCount();if(e&&(F(a)||N(a)))return await fe(a,e)}async function pe(a){let e=a.createQuery();e.outFields=["*"];let t=await a.queryFeatures(e);if(t.features.length)return t.features.length;throw new Error("could not get feature count")}async function fe(a,e){return await(await e.whenLayerView(a)).queryFeatureCount()}var ge=M`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-foreground-1)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`,Z=class extends G{constructor(){super(...arguments),this._messages=U({blocking:!0}),this._propWatcherTask=new H(this,{task:async([e,t])=>{let i=p(e)&&p(t);if(p(e)||O("error",this,D("layer")),p(t)||O("error",this,D("fieldName")),!i)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName]}),this.oneFeatureResponseStatus="missing",this.statisticsStatus="missing",this.uniqueValuesStatus="missing",this.hideAlias=!1,this.hideNumericFormat=!1,this.hideStatistics=!1,this.arcgisComplete=C(),this.arcgisFieldInfoComplete=C()}static{this.properties={oneFeatureResponseStatus:16,oneFeatureResponse:16,statisticsStatus:16,statistics:16,uniqueValuesStatus:16,uniqueValues:16,view:0,layer:0,fieldName:1,hideAlias:5,hideNumericFormat:5,hideStatistics:5}}static{this.styles=ge}async refresh(){await this.processProps(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.timeZoneHandle?.remove()}async processProps(){let{view:e,layer:t,fieldName:i,hideStatistics:s}=this;if(!t||!i)return;let r;if(t.declaredClass==="esri.layers.support.Sublayer"){let n=t;e&&await _.whenOnce(()=>!e.updating),r=await n.createFeatureLayer(),await r?.load()}this.props={view:e,layer:r??t,fieldName:i,hideStatistics:s},this.props.fieldInfo=ne(this.props),k(t)&&Y.request.interceptors?.push({urls:`${se(t)}/${t.layerId}`,before(n){n.requestOptions.authMode="no-prompt"}}),this.oneFeatureResponseStatus="in-progress";try{let n=await ce(this.props);this.oneFeatureResponse=n,this.oneFeatureResponseStatus="success"}catch{this.oneFeatureResponseStatus="failed"}if(F(t)){this.uniqueValuesStatus="failed",this.statisticsStatus="failed";return}if(s)this.uniqueValuesStatus="failed";else{this.uniqueValuesStatus="in-progress";try{let n=await le(this.props);this.uniqueValues=n,n?.uniqueValueInfos?.length?this.uniqueValuesStatus="success":this.uniqueValuesStatus="failed"}catch{this.uniqueValuesStatus="failed"}}if(s)this.statisticsStatus="failed";else{this.statisticsStatus="in-progress";try{let n=await oe(this.props);if(!p(n.totalCount)&&p(n.count)&&this.uniqueValuesStatus==="success"){let o=this.uniqueValues?.uniqueValueInfos??[];for(let d=0;d<o.length;d++){let u=o[d];if(u.value===null){n.totalCount=u.count+n.count;break}}n.totalCount??=n.count}this.statistics=n,this.statisticsStatus="success"}catch{this.statisticsStatus="failed"}}this.setUpTimeZoneHandle()}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{props:e}=this,{view:t,fieldInfo:i}=e;["date","timestamp-offset"].includes(this._getStatisticsType(i))&&(this.timeZoneHandle=_.watch(()=>t?.timeZone,()=>{this.requestUpdate()}))}_getFieldTypeLabel(e){let{_messages:t}=this,i=t.fieldTypes;switch(e){case"big-integer":return i.bigInteger;case"date":return i.date;case"date-only":return i.dateOnly;case"double":return i.double;case"global-id":return i.globalId;case"guid":return i.guid;case"integer":return i.integer;case"long":return i.long;case"oid":return i.oid;case"single":return i.single;case"small-integer":return i.smallInteger;case"string":return i.string;case"time-only":return i.timeOnly;case"timestamp-offset":return i.timestampOffset;default:return i.string}}_getStatisticsType(e){switch(e.layerField.type){case"big-integer":case"double":case"integer":case"single":case"small-integer":{if(e.codedValues)return"string";switch(e.layerField.valueType){case"url":case"binary":case"description":case"location-or-place-name":case"name-or-title":case"ordered-or-ranked":case"type-or-category":return"string";default:return"number"}}case"date":return"date";case"date-only":return"date-only";case"string":return"string";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";default:return"string"}}_getFieldValueTypeCamelCase(e){switch(e.layerField.valueType){case"count-or-amount":return"countOrAmount";case"date-and-time":return"dateAndTime";case"location-or-place-name":return"locationOrPlaceName";case"name-or-title":return"nameOrTitle";case"ordered-or-ranked":return"orderedOrRanked";case"percentage-or-ratio":return"percentageOrRatio";case"type-or-category":return"typeOrCategory";case"unique-identifier":return"uniqueIdentifier";case"phone-number":return"phoneNumber";case"email-address":return"emailAddress";default:return e.layerField.valueType??void 0}}_getDisplayString(e,t){let{props:i}=this,{fieldInfo:s}=i;switch(s.simpleFieldType){case"date":return this._getDateString(e,t);case"date-only":return this._getDateOnlyString(e,t);case"guid":return this._getGuidString(e);case"number":return this._getNumberString(e,t);case"time-only":return this._getTimeOnlyString(e,t);case"timestamp-offset":return this._getTimestampOffsetString(e,t);default:return`${e}`}}_getDateString(e,t){let{view:i}=this.props;return i&&i.timeZone==="unknown"?f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"})}_getTimestampOffsetString(e,t){let{view:i}=this.props;return typeof e=="string"?i&&i.timeZone==="unknown"?f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"}):this._getDateString(e,t)}_getDateOnlyString(e,t){return f.formatDateOnly(e,this.getIntlDateTimeFormattingOptions("short-date",t))}_getTimeOnlyString(e,t){return typeof e=="string"?f.formatTimeOnly(e,this.getIntlDateTimeFormattingOptions("short-date-long-time",t)):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("long-time",{...t,isTimeOnly:!0}),timeZone:"utc"})}_getGuidString(e){return e.startsWith("{")?e:`{${e}}`}_getNumberString(e,t){let i=t?.useFieldFormatting?e:Math.round(e*100)/100;return f.formatNumber(i,this.getIntlNumberFormattingOptions(t))}_printNumValue(e,t){return p(e)?this._getNumberString(e,t):"--"}_setCompleteRef(){this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit()}getCurrentFieldFormat(){let{props:e}=this,{layer:t,fieldName:i}=e;return(this.originalLayerSupportsFieldConfigs()?t.getFieldConfiguration(i):void 0)?.fieldFormat??void 0}getIntlNumberFormattingOptions(e){let t=this.getCurrentFieldFormat();if(!e?.useFieldFormatting)return t?{useGrouping:["always","auto"].includes(t.useGrouping)}:f.convertNumberFormatToIntlOptions({digitSeparator:this.getPopupTemplateFieldInfo()?.format?.digitSeparator??!0});let i=t?{minimumFractionDigits:t.minimumFractionDigits,maximumFractionDigits:t.maximumFractionDigits,useGrouping:["always","auto"].includes(t.useGrouping)}:void 0;if(i)return i;let s=this.getPopupTemplateFieldInfo();return f.convertNumberFormatToIntlOptions({digitSeparator:s?.format?.digitSeparator??!0,places:s?.format?.places??2})}getIntlDateTimeFormattingOptions(e,t){let i=this.getCurrentFieldFormat();if(!t?.useFieldFormatting)return i?t?.isTimeOnly?re:ae:f.convertDateFormatToIntlOptions(e);let s=i?{dateStyle:t?.isTimeOnly?void 0:i.dateStyle??void 0,year:i.dateStyle?void 0:i.year??void 0,month:i.dateStyle?void 0:i.month??void 0,timeStyle:i.timeStyle??void 0,hourCycle:i.hour12==="never"?"h23":"h11"}:void 0;if(s)return s;let r=this.getPopupTemplateFieldInfo();return f.convertDateFormatToIntlOptions(r?.format?.dateFormat??e)}originalLayerSupportsFieldConfigs(){let{layer:e}=this;return A.supportsFieldConfiguration(e)}getPopupTemplateFieldInfo(){let{props:e}=this,{layer:t,fieldName:i}=e;return("popupTemplate"in t?t.popupTemplate:void 0)?.fieldInfos?.find(s=>s.fieldName===i)}render(){return this._propWatcherTask.render({complete:()=>{let{props:e}=this,{fieldInfo:t}=e;return t?c`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>`:""},error:()=>""})}renderFieldType(){let{_messages:e,props:t}=this,{fieldInfo:i}=t,s=this._getFieldTypeLabel(i.layerField.type);return c`<div class="section"><div class="title">${e.fieldType}</div><div>${s}</div></div>`}renderFieldAlias(){let{_messages:e,props:t,hideAlias:i}=this,{fieldInfo:s}=t;return i?"":c`<div class="section"><div class="title">${e.fieldAlias}</div><div>${s.label}</div></div>`}renderFieldDescription(){let{_messages:e,props:t}=this,{layer:i}=t;if(!v(i))return"";let{fieldInfo:s}=t,r=s.layerField.description;return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${b({missing:!r})}>${r||e.fieldDescriptionNotSet}</div></div>`}renderFieldValueType(){let{_messages:e,props:t}=this,{layer:i}=t;if(!v(i))return"";let{fieldInfo:s}=t,r=this._getFieldValueTypeCamelCase(s);return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${b(r?"":"missing")}>${r?e.fieldValueTypes[r]:e.fieldValueTypeNotSet}</div></div>`}renderFieldSampleValue(){let{oneFeatureResponse:e,oneFeatureResponseStatus:t,statisticsStatus:i,statistics:s,uniqueValuesStatus:r,uniqueValues:n,_messages:o,props:d}=this,{layer:u,fieldName:l,fieldInfo:m}=d,{statistics:h}=o,g;if(y(u)||$(u)||!F(u)&&["string","oid","guid"].includes(this._getStatisticsType(m))&&r!=="failed")return"";t==="success"?e.features.forEach(T=>{(g===void 0||g===null&&T.attributes[l]!==null)&&(g=T.attributes[l])}):i==="success"?g=s?.min??void 0:r==="success"&&(g=n?.uniqueValueInfos?.[0]?.value??n?.uniqueValueInfos?.[1]?.value??void 0);let P=m.codedValues;return p(g)&&(P?g=P.find(T=>g===T.code)?.name||g:g=this._getDisplayString(g,{useFieldFormatting:!0})),c`<div class="section"><div class="title">${o.fieldSampleValue}</div><div class=${b(t==="failed"&&i==="failed"&&r==="failed"||!p(g)?"missing":"")}>${t==="success"||i==="success"||r==="success"?g?.toString()??h.allNulls:t==="failed"&&i==="failed"&&r==="failed"?o.fieldSampleNotAvailable:o.fieldSampleRetrieving}</div></div>`}renderFieldNumericFormat(){let{_messages:e,props:t,hideNumericFormat:i}=this,{fieldName:s,fieldInfo:r,layer:n}=t;if(i||!["double","long","single"].includes(r.layerField.type))return"";let o=this.originalLayerSupportsFieldConfigs()?n.getFieldConfiguration(s):void 0;if(o?.fieldFormat){let{minimumFractionDigits:u,maximumFractionDigits:l}=o.fieldFormat;return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}",u.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}",l.toString())}</div></div>`}let d="popupTemplate"in n?n.popupTemplate:void 0;if(d?.fieldInfos){let u=d.fieldInfos?.filter(l=>l.fieldName===s);if(u?.length){let l=u[0];if(p(l?.format?.places)){let m=l.format.places;return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}",m.toString())}</div></div>`}}}return c`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`}renderFieldStatistics(){let{statisticsStatus:e,uniqueValuesStatus:t,hideStatistics:i,_messages:s,props:r}=this,{layer:n,fieldInfo:o}=r;return i?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):["stream","imagery-tile","voxel"].includes(n.type)||["long"].includes(o.layerField.type)?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):c`<div class="section"><div class="title">${s.fieldStatistics}</div>${!e||e==="missing"||e==="in-progress"?V("field-info-statistics-content",c`<div class="missing">${s.fieldStatisticsRetrieving}</div>`):e==="failed"&&t!=="success"?this.renderNoStatistics():V("field-info-statistics-content",c`<div ${q(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`}renderNoStatistics(){let{_messages:e}=this;return V("field-info-statistics-content",c`<div class="missing" ${q(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`)}renderStatistics(){let{props:e}=this,{fieldInfo:t}=e;switch(this._getStatisticsType(t)){case"number":return this.renderNumberStatistics();case"guid":case"oid":case"string":return this.renderStringStatistics();case"date":case"date-only":case"time-only":case"timestamp-offset":return this.renderDateStatistics();default:return""}}renderNumberStatistics(){let{statistics:e,_messages:t}=this;if(!e)return this.renderNoStatistics();let{statistics:i}=t;return c`<div><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${p(e.sum)?c`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>`:null}${p(e.min)?c`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>`:null}${p(e.max)?c`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>`:null}${p(e.avg)?c`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>`:null}${p(e.stddev)?c`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>`:null}${this.renderNullValues()}</div>`}renderStringStatistics(){let{statistics:e,uniqueValuesStatus:t,_messages:i}=this,{statistics:s}=i;return c`<div><div class="statistics-row"><div>${s.numberOfValues}</div>${t!=="success"?c`<div class="missing">--</div>`:c`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`}renderDateStatistics(){let{statistics:e,view:t,props:i,_messages:s}=this,{fieldInfo:r}=i;if(!e||!p(e.max)||!p(e.min))return this.renderNoStatistics();let{statistics:n}=s,o=e.max-e.min,d=Math.floor(o/31536e6),u=Math.floor((o-d*31536e6)/2628e6),l=Math.ceil((o-u*2628e6)/864e5);l>=30&&(u+=1,l=0);let m=d===1?n.timeSpanOptions.year:d>1?n.timeSpanOptions.years.replace("${years}",d.toString()):"";m+=d>0&&(u>0||l>0)?", ":"",m+=u===1?n.timeSpanOptions.month:u>1?n.timeSpanOptions.months.replace("${months}",u.toString()):"",m+=u>0&&l>0?", ":"",m+=l===1?n.timeSpanOptions.day:l>1?n.timeSpanOptions.days.replace("${days}",l.toString()):"";let h=r.simpleFieldType!=="timestamp-offset"||!t||t.timeZone!=="unknown",g=r.simpleFieldType==="time-only";return c`<div><div class="statistics-row"><div>${n.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${h&&p(e.min)?c`<div class="statistics-row"><div>${g?n.minimumTime:n.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>`:null}${h&&p(e.max)?c`<div class="statistics-row"><div>${g?n.maximumTime:n.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>`:null}${h&&p(e.avg)?c`<div class="statistics-row"><div>${g?n.averageTime:n.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>`:null}${h&&!g&&p(e.min)&&p(e.max)&&o>0?c`<div class="statistics-row"><div>${n.timespan}</div><div class="data">${m}</div></div>`:null}${this.renderNullValues()}</div>`}renderTopValues(){let{uniqueValues:e,uniqueValuesStatus:t,_messages:i,props:s}=this,{fieldInfo:r}=s,{statistics:n}=i;if(e?.uniqueValueInfos?.length){let o=e.uniqueValueInfos;o.sort((l,m)=>l.count<m.count?1:l.count>m.count?-1:0);let d=r.codedValues,u=o.filter(l=>l.value!==null).filter((l,m)=>l&&m<10).map(l=>{let m=l.value;return d?d.forEach(h=>{m===h.code&&(m=h.name)}):m=this._getDisplayString(m),c`<div class="statistics-row"><div class="data">${`${m}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`});return u.length?c`<div><div class="statistics-row-top-values"><div>${o.length>10?n.topTenValues:n.topValues}</div><div>${n.count}</div></div>${u}</div>`:""}else return c`<div><div class="statistics-row-top-values"><div>${n.topValues}</div><div>${n.count}</div></div><div class="statistics-row"><div class="missing">${t==="failed"?i.fieldUniqueValuesNotAvailable:i.fieldSampleRetrieving}</div></div></div>`}renderNullValues(){let{statistics:e,uniqueValues:t,_messages:i}=this,{statistics:s}=i,r=e?.nullcount;if(!p(r)&&t){let n=t.uniqueValueInfos;for(let o=0;o<n.length;o++){let d=n[o];if(d.value===null){r=d.count;break}}}return c`<div class="statistics-row"><div>${s.numberOfNulls}</div>${p(r)?c`<div class="data">${this._printNumValue(r)}</div>`:c`<div class="missing">--</div>`}</div>`}};W("arcgis-field-info",Z);return Z},"config","core/reactiveUtils","intl","applications/PortalApp/layerUtils","core/lang","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/support/Query")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- var e=new WeakMap;function c(n,t){let{formatter:r,lang:o}=e.get(t)??{};if(o===n&&r)return r;let a=new Intl.NumberFormat(n,t);return e.set(t,{lang:n,formatter:a}),a}export{c as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u}from"./Y5Y7IXOV.js";import{a as S,b as x}from"./WJ3TYWP2.js";import{b as B}from"./YSXFXVP6.js";import"./F45Q3BRT.js";import{a as b}from"./YG4PY2H3.js";import{A as d,B as $,C as v,D as g,E as h,F as C,H as k,g as y,i as l,m,n as w,q as a,z as r}from"./OOBX2C2L.js";var n=new Map;n.set("oid","key");n.set("guid","key");n.set("global-id","key");n.set("blob","binary");n.set("integer","integer");n.set("small-integer","integer");n.set("big-integer","integer");n.set("single","number");n.set("double","number");n.set("long","number");n.set("number","number");n.set("date","date-time");n.set("date-only","calendar");n.set("time-only","clock");n.set("timestamp-offset","time-zone");n.set("string","string");var E=({fieldType:F})=>l`<calcite-icon scale=s .icon=${n.get(F)}></calcite-icon>`,L=y`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`,f=class extends ${constructor(){super(...arguments),this._messages=B({blocking:!0}),this.popoverNode=r(),this.listNode=r(),this.flowElement=r(),this.panelElement=r(),this.dropdownNode=r(),this.fieldInfoFlowItemEl=r(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this._propWatcherTask=new S(this,{task:async([e])=>{if(!this.listOnly&&!x(e?.refElement))throw m("error",this,w("popoverProps")),new Error;this._propWatcherTask.autoRun=!1},args:()=>[this.popoverProps]}),this.fields=[],this.selectedFields=[],this.listOnly=!1,this.showFieldInfo=!1,this.showFieldTypeIcon=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.hideCancel=!1,this.showSort=!0,this.hideSort=!1,this.showFilterLength=10,this.multiple=!1,this.sortBy="default",this.groupFieldsAndExpressions=!1,this.arcgisChange=a(),this.arcgisClose=a(),this.arcgisFieldPickListChange=a(),this.arcgisFieldPickListDismissed=a(),this.arcgisFieldPickListSortByChange=a(),this.arcgisSortByChange=a(),this.arcgisEditField=a(),this.arcgisDeleteField=a()}static{this.properties={lastSortBy:16,filterFields:16,mapView:0,view:0,layer:0,fields:0,selectedFields:0,listOnly:5,popoverProps:0,showFieldInfo:5,showFieldTypeIcon:5,showFieldName:5,showDescription:5,showSelectionAll:5,showCancel:5,hideCancel:5,showSort:5,hideSort:5,showFilterLength:9,multiple:5,heading:1,okBtnText:1,filterPlaceholderText:1,filterNoResultsText:1,sortBy:1,groupFieldsAndExpressions:5,fieldsGroupHeading:1,expressionsGroupHeading:1,customExpressionCheck:0}}static{this.styles=L}async reposition(){await this.popoverNode.value?.reposition()}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}load(){!this.view&&this.mapView&&(this.view=this.mapView),!this.showCancel&&!this.hideCancel&&(this.hideCancel=!0),!this.showSort&&!this.hideSort&&(this.hideSort=!0),this.listOnly&&this.showFieldInfo&&(this.showFieldInfo=!1,m("info",this,"showFieldInfo is not supported if listOnly is true.")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortBy=this.sortBy??this.lastSortBy,this.updateGroupedLists()}willUpdate(e){(e.has("fields")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&this.updateGroupedLists()}loaded(){this.setUpObserver(),this.listOnly?this.listNode.value?.setFocus():(this.flowElement.value?.setFocus(),this.checkMaxHeight())}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}setUpObserver(){this.observer=new MutationObserver(e=>{for(let t of e)t.attributeName==="style"&&this.popoverNode.value&&this.dropdownNode.value&&this.popoverNode.value.style.visibility==="hidden"&&(this.dropdownNode.value.open=!1)})}checkMaxHeight(){setTimeout(()=>this.checkPanelMaxHeight(),200),setTimeout(()=>this.checkPanelMaxHeight(),500),setTimeout(()=>this.checkPanelMaxHeight(),1e3),setTimeout(()=>this.checkPanelMaxHeight(),1500)}checkPanelMaxHeight(){if(this.panelCutOffHeight===0){let e=this.panelElement.value?.getBoundingClientRect();if(e&&e.bottom>window.innerHeight){this.panelCutOffHeight=e.height-(e.bottom-window.innerHeight)-5;let t=this.listNode.value?.getBoundingClientRect();t&&(this.listNode.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],i=t.filter(s=>s.type==="none");return t=t.filter(s=>s.type!=="none"),this.lastSortBy==="display"?t.sort((s,o)=>s.alias.localeCompare(o.alias)):this.lastSortBy==="field"?t.sort((s,o)=>s.name.localeCompare(o.name)):this.lastSortBy==="type"&&t.sort((s,o)=>s.type.localeCompare(o.type)),t=t.concat(i),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(u.expression)}canDeselectAll(){let e=this.getAllFields();return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===e.length}filterContainsAll(){return!!this.filterFields?.every(e=>this.selectedFields.some(t=>t===e))}showFieldInfoCheck(e){let{layer:t}=this;return this.showFieldInfo?!(!t||this.isExpression(e)||e.name.includes(u.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],this.usingCustomGroups())for(let e of this.fields)this.allLists.push({title:e.title,fields:[...this.getSortedList(e.fields)]});else this.allLists=this.groupFieldsAndExpressions?[{title:this.expressionsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>this.isExpression(e))},{title:this.fieldsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>!this.isExpression(e))}]:[{title:void 0,fields:[...this.getSortedList(this.fields)]}]}addFieldInfoFlowItem(e,t){let i=this.flowElement.value,s=C(l`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${g(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${o=>{o.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${d(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??h} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);i.appendChild(s),this.panelElement.value.selected=!1,this.fieldInfoFlowItemEl?.value.setFocus()}usingCustomGroups(){return!!this.fields.length&&"fields"in this.fields[0]}getAllFields(){return this.allLists.map(e=>e.fields).flat()}setSortBy(e){this.lastSortBy=e,this.updateGroupedLists(),this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy),this.reorderSelectedFieldsByCurrentListOrder()&&(this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}))}reorderSelectedFieldsByCurrentListOrder(){if(!this.selectedFields.length)return!1;let e=this.getAllFields().map(o=>o.name),t=new Set(this.selectedFields),i=e.filter(o=>t.has(o)),s=i.length!==this.selectedFields.length||i.some((o,p)=>o!==this.selectedFields[p]);return s&&(this.selectedFields=[...i]),s}render(){return this._propWatcherTask.render({complete:()=>{if(this.listOnly)return this.renderList();let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.popoverProps;return this.el.classList.add("js-app-flyout"),l`<calcite-popover .placement=${t.placement??"leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance??-Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding??0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading??(this.multiple?this._messages.headerSelect:this._messages.header)??""} @calcitePopoverClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.popoverNode)}><calcite-flow style=${g({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${d(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>`||""}</calcite-flow-item></calcite-flow></calcite-popover>`},error:()=>""})}renderList(){let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.getAllFields(),i=t.length>=this.showFilterLength;return l`${t.length?l`<calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} class=${v(this.listOnly?"":"content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>{let s=this.listNode.value.selectedItems.map(c=>c.value),o=this.selectedFields.filter(c=>s.includes(c)),p=s.filter(c=>!this.selectedFields.includes(c));this.selectedFields=[...new Set([...o,...p])],this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}} @calciteListFilter=${s=>{s.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(o=>o.value),this.filterText=this.listNode.value.filterText}} ${d(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple&&this.showSelectionAll&&(!i||!this.filterText||this.filterFields?.length)?this.renderSelectionButton():null}${this.renderListItems()}</calcite-list>`:l`<slot name=no-fields></slot>`}${this.filterFields&&!this.filterFields.length&&this.listNode.value&&this.filterNoResultsText?.length!==0?l`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSortButton(){let e=this.getAllFields();if(!(e.length>=this.showFilterLength&&!this.hideSort))return"";let t=e.every(i=>!!i.type);return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields?this.filterFields.length<4:!1} @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${d(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort??""} title=${this._messages.sort??h}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @click=${()=>this.setSortBy("default")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("default")}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @click=${()=>this.setSortBy("display")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("display")}}>${this._messages.displayName}</calcite-dropdown-item>${t&&l`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @click=${()=>this.setSortBy("type")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("type")}}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @click=${()=>this.setSortBy("field")} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&this.setSortBy("field")}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return l`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${()=>{if(this.canDeselectAll())this.selectedFields=this.filterFields?.length?this.selectedFields.filter(e=>!this.filterFields?.includes(e)):[];else if(this.filterFields?.length)this.selectedFields=[...new Set([...this.selectedFields,...this.filterFields])];else{let e=this.getAllFields();this.selectedFields=e.map(t=>t.name)}this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderListItems(){let e=this.allLists.filter(t=>!!t.fields.length);return e.length===1&&!e[0].title?e[0].fields.map(t=>this.renderCalciteListItem(t)):e.map(t=>l`<calcite-list-item-group .heading=${t.title}>${t.fields.map(i=>this.renderCalciteListItem(i))}</calcite-list-item-group>`)}renderCalciteListItem(e){let t=this.showFieldInfoCheck(e),i=this.showFieldTypeIcon&&!!e.type;return b(e.name,l`<calcite-list-item .label=${e.alias||e.name} .description=${(()=>{if(this.showFieldName&&e.hideFieldName!==!0)return`{${e.name}}`;if(this.showDescription&&e.hideDescription!==!0&&e.description)return e.description})()} .value=${e.name} .selected=${!this.multiple&&e.name===this.selectedFields[0]||this.multiple&&this.selectedFields.includes(e.name)} .metadata=${{label:e.alias,fieldName:e.name}}>${i&&l`<div slot=actions-end class="field-icons">${E({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:i}=this;return t?l`<calcite-action slot=actions-end .text=${i.info} title=${i.info??h} scale=s icon=information @click=${s=>{s.stopPropagation();let o=s.currentTarget;this.addFieldInfoFlowItem(e,o)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??h} scale=s icon=pencil @click=${i=>{i.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??h} scale=s icon=trash @click=${i=>{i.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?l`<calcite-button .appearance=${this.hideCancel?"outline-fill":"solid"} .width=${this.hideCancel?"full":"half"} @click=${()=>{this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}}>${this.okBtnText||(this.multiple?this._messages.done:this._messages.ok)}</calcite-button>`:""}renderCancelButton(){return this.hideCancel?"":l`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};k("arcgis-field-pick-list",f);export{f as ArcgisFieldPickList};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as $,e as D,l as S,m as T}from"./4BJYJUMR.js";import{a as M,b as p,c as E}from"./WJ3TYWP2.js";import{b as A}from"./YSXFXVP6.js";import"./F45Q3BRT.js";import{a as z}from"./YG4PY2H3.js";import{A as x,B as C,H as _,g as R,i as q,m as N,n as F,q as I,z as B}from"./OOBX2C2L.js";export default $arcgis.t(([{formatDate:Z,convertDateFormatToIntlOptions:y,formatDateOnly:te,formatTimeOnly:ie,formatTimestamp:W,formatNumber:se},ne,{clone:L}])=>{function P(i){return new Date(`1970-01-01T${i}Z`).getTime()}function H(i){return new Date(`${i} 00:00:00`).getTime()}function ae(i,e,s){let t;return e==="unknown"?t=Z(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=Z(i,{...y("short-date-short-time"),timeZone:e}),t}function oe(i){return i?te(i,y("short-date")):""}function le(i){let e;return typeof i=="string"?e=ie(i,y("short-date-long-time")):e=Z(i,{...y("long-time"),timeZone:"utc"}),e}function re(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?W(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):W(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?Z(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):Z(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!$(i)&&!T(i)&&!S(i)&&!D(i))return;let t;return E(i,s).fields.forEach(l=>{let n=l.name,d="domain"in l?l.domain:void 0;if(!D(i)&&i.subtypeField===n){let m;S(i)||$(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{T(i)&&i.subtypeCode!==r.code||(e.name===n&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(a=>{if(e.name===a){let o=r.domains[a];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let c=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(c=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),c||t.push({code:u.code,name:u.name})})}}))})}if(e.name===n&&($(i)||D(i))){let m=$(i)?i.typeIdField:void 0,r=$(i)?i.types:void 0;$(i)&&m&&r?(m===n?t=r.map(a=>({code:a.id,name:a.name})):(t=t||[],r.forEach(a=>{if(!a.domains?.[n]||a.domains[n].type==="inherited"){let o=d;o?.codedValues&&o.codedValues.forEach(u=>{let c=!1;t.forEach(g=>{g.code===u.code&&(c=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),c||t.push(L(u))})}else a.domains?.[n]?.codedValues&&a.domains[n].codedValues.forEach(o=>{let u=!1;t.forEach(c=>{c.code===o.code&&(u=!0,`| ${c.name} |`.includes(`| ${o.name} |`)||(c.name+=` | ${o.name}`))}),u||t.push(L(o))})})),!t?.length&&d?.codedValues&&(t=L(d.codedValues))):d?.codedValues&&(t=d.codedValues)}}),t}function U(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let n=s[l];n.code==i&&(t+=(t.length?" | ":"")+n.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var ue=R`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends C{constructor(){super(...arguments),this.dropdownNode=B(),this._messages=A({blocking:!0}),this._propWatcherTask=new M(this,{task:async([e,s,t])=>{let l=p(e)&&p(s)||p(t);if(!p(t)&&!p(e)&&!p(s)?N("error",this,F("uniqueValues")):p(t)||(p(e)||N("error",this,F("layer")),p(s)||N("error",this,F("fieldName"))),p(e)&&p(s)){let{visualizationSource:n}=this;if(!E(e,n).fields?.filter(d=>d.name===s))throw N("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps()},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=ue}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(p(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,n=(e?E(e,l):void 0)?.fields?.filter(d=>d.name===s)?.[0];if(p(this.uniqueValues))this.fieldInfo={layerField:n,fieldDomains:e&&n?j(e,n,l):void 0,simpleType:e&&n?J(n):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&n){this.fieldInfo={layerField:n,fieldDomains:j(e,n,l),simpleType:J(n),partialUniqueValues:!1};let{fieldInfo:d}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:!1}),r=G(n),a=m.uniqueValueInfos.filter(o=>p(o.value)?n.type==="string"&&!r||n.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(n)||n.type,o.value!=="<Null>"&&o.value!==""):!1);a.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),d.fieldDomains?.length&&d.fieldDomains.forEach(o=>{a.find(u=>u.value===o.code)||a.push({value:o.code,count:0})}),d.uniqueValueInfos=a,d.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.arcgisLoad.emit()}catch(m){if(N("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(d)){let r=[];d.fieldDomains.forEach(a=>{r.find(o=>o.value===a.code)||r.push({value:a.code,count:void 0})})}}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:n,showFilterLength:d,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:a,partialUniqueValues:o,layerField:u}=e,c=u?.type;if(!a?.length)return"";let g=c?["small-integer","big-integer","integer","single","double","long","oid"].includes(c):!1,K=c?["date","date-only","time-only"].includes(c):!1,Q=v=>{v.sort((h,f)=>h.count<=f.count?1:-1)},X=v=>{let h=r?.length;v.sort((f,V)=>{if(!h&&g)return(typeof f.value=="string"?Number.parseFloat(f.value):f.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let w=h?U(f.value,r):f.label??f.value,b=h?U(V.value,r):V.label??V.value;return`${w}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${w}`.localeCompare(`${b}`)}})},Y=(v,h)=>{v.sort((f,V)=>{let w=h?.indexOf(f.value)??-1,b=h?.indexOf(V.value)??-1;return w===b||w>-1&&b>-1?0:w>b?-1:1})};X(a),!t||t==="count"?Q(a):t==="selected"&&Y(a,s);let ee=a.map(v=>this.renderUniqueValue(v)),O;return o&&!n&&(O=q`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),q`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${a.length>=d} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.target.selectedItems.map(f=>f.value);!r&&c==="date-only"?h=h?.map(f=>H(f)):!r&&c==="time-only"?h=h?.map(f=>P(f)):c&&["date","oid","small-integer","big-integer","integer","long"].includes(c)?h=h?.map(f=>Number.parseInt(f)):c&&["single","double"].includes(c)&&(h=h?.map(f=>Number.parseFloat(f))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${x(this.setListRef)}>${a.length>=d&&!n?this.renderSort(g,K):null}${ee}</calcite-list>${O}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return q`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${x(this.dropdownNode)}><calcite-action slot=trigger .label=${l.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!p(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:n,numberFormatOptions:d}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:a}=n,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?U(e.value,m):a==="date"?ae(e.value,o):a==="date-only"?oe(e.value):a==="time-only"?le(e.value):a==="timestamp-offset"?re(e.value,l):typeof e.value=="number"?se(e.value,d):e.label??e.value,c=s?a==="date-only"?s.includes(m?.length?e.value:H(e.value)):a==="time-only"?s.includes(m?.length?e.value:P(e.value)):s.includes(e.value):!1;return z(`list-item_${e.value}`,q`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${c}>${p(e.count)&&(r.length>200&&!t||r.length<=200)?q`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/lang")