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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +26 -3
  2. package/dist/cdn/{J5X5TNVW.js → 3CYVP75E.js} +1 -1
  3. package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
  4. package/dist/cdn/3LK46I3I.js +2 -0
  5. package/dist/cdn/53RIFE4K.js +2 -0
  6. package/dist/cdn/6RFADDWS.js +4 -0
  7. package/dist/cdn/AH2USIZR.js +2 -0
  8. package/dist/cdn/BCWKJTLV.js +2 -0
  9. package/dist/cdn/{C6JAR4IN.js → BXFY2TUH.js} +1 -1
  10. package/dist/cdn/BYGHEIBE.js +2 -0
  11. package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
  12. package/dist/cdn/DCI6LRH3.js +2 -0
  13. package/dist/cdn/DJBJXOSO.js +2 -0
  14. package/dist/cdn/DUJ3WX7U.js +2 -0
  15. package/dist/cdn/{AXTSUI2Q.js → DYF5K55H.js} +3 -3
  16. package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
  17. package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
  18. package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
  19. package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
  20. package/dist/cdn/J7JP7Q3W.js +2 -0
  21. package/dist/cdn/KGHLN7QM.js +2 -0
  22. package/dist/cdn/KI62NSDM.js +2 -0
  23. package/dist/cdn/PECYQ2HF.js +2 -0
  24. package/dist/cdn/TKMLU77O.js +2 -0
  25. package/dist/cdn/VTD2EUL6.js +2 -0
  26. package/dist/cdn/WPKV6SVG.js +2 -0
  27. package/dist/cdn/YCAZ4ZY2.js +2 -0
  28. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
  29. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
  30. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
  31. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
  32. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
  33. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
  34. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
  35. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
  36. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +1 -0
  37. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
  38. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
  39. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
  40. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
  41. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
  42. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
  43. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
  44. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
  45. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
  46. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
  47. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
  48. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
  49. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
  50. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
  51. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
  52. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
  53. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
  54. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
  55. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
  56. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
  57. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
  58. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
  59. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
  60. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
  61. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
  62. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
  63. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
  64. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
  65. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
  66. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
  67. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
  68. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
  69. package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
  70. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +1 -0
  71. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +1 -0
  72. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +1 -0
  73. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +1 -0
  74. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +1 -0
  75. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +1 -0
  76. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +1 -0
  77. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +1 -0
  78. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en-US.json +1 -0
  79. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en.json +1 -0
  80. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +1 -0
  81. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +1 -0
  82. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +1 -0
  83. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +1 -0
  84. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +1 -0
  85. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +1 -0
  86. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +1 -0
  87. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +1 -0
  88. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +1 -0
  89. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +1 -0
  90. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +1 -0
  91. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +1 -0
  92. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +1 -0
  93. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +1 -0
  94. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +1 -0
  95. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +1 -0
  96. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +1 -0
  97. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +1 -0
  98. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +1 -0
  99. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +1 -0
  100. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +1 -0
  101. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +1 -0
  102. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +1 -0
  103. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +1 -0
  104. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +1 -0
  105. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +1 -0
  106. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +1 -0
  107. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +1 -0
  108. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +1 -0
  109. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +1 -0
  110. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +1 -0
  111. package/dist/cdn/index.js +1 -1
  112. package/dist/cdn/main.css +1 -1
  113. package/dist/chunks/commonFunctions.js +7 -3
  114. package/dist/chunks/layer-utils.js +70 -0
  115. package/dist/chunks/spatial-references.js +7598 -0
  116. package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
  117. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  118. package/dist/components/arcgis-color-input/customElement.d.ts +2 -2
  119. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +327 -0
  120. package/dist/components/arcgis-coordinate-system-picker/customElement.js +111 -0
  121. package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
  122. package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
  123. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
  124. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
  125. package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
  126. package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
  127. package/dist/components/arcgis-field-info/customElement.d.ts +2 -2
  128. package/dist/components/arcgis-field-info/customElement.js +170 -171
  129. package/dist/components/arcgis-field-info/utils/basic.d.ts +11 -3
  130. package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
  131. package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
  132. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +6 -2
  133. package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
  134. package/dist/components/arcgis-histogram/customElement.js +81 -90
  135. package/dist/components/arcgis-histogram/types.d.ts +1 -3
  136. package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
  137. package/dist/components/arcgis-label-input/customElement.js +22 -17
  138. package/dist/components/arcgis-picker-input/customElement.d.ts +2 -2
  139. package/dist/components/arcgis-picker-input/customElement.js +11 -11
  140. package/dist/components/arcgis-slider/customElement.d.ts +72 -67
  141. package/dist/components/arcgis-slider/customElement.js +349 -304
  142. package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
  143. package/dist/components/arcgis-slider-input/customElement.js +12 -12
  144. package/dist/components/arcgis-spatial-reference-picker/customElement.d.ts +327 -0
  145. package/dist/components/arcgis-spatial-reference-picker/customElement.js +110 -0
  146. package/dist/components/arcgis-spatial-reference-picker/index.d.ts +1 -0
  147. package/dist/components/arcgis-spatial-reference-picker/index.js +3 -0
  148. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.d.ts +35 -0
  149. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.js +77 -0
  150. package/dist/components/arcgis-spatial-reference-picker-tree/index.d.ts +1 -0
  151. package/dist/components/arcgis-spatial-reference-picker-tree/index.js +3 -0
  152. package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
  153. package/dist/components/arcgis-ticks/customElement.js +21 -21
  154. package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
  155. package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
  156. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +10 -3
  157. package/dist/docs/api.json +1 -1
  158. package/dist/docs/docs.json +1 -1
  159. package/dist/docs/vscode.html-custom-data.json +1 -1
  160. package/dist/docs/web-types.json +1 -1
  161. package/dist/index.d.ts +59 -1
  162. package/dist/loader.js +8 -4
  163. package/dist/types/lumina.d.ts +26 -2
  164. package/dist/types/preact.d.ts +30 -2
  165. package/dist/types/react.d.ts +34 -2
  166. package/dist/types/stencil.d.ts +26 -2
  167. package/dist/utils/internal-types.d.ts +1 -0
  168. package/dist/utils/spatial-references.d.ts +1 -0
  169. package/dist/utils/types.d.ts +21 -18
  170. package/package.json +11 -9
  171. package/dist/cdn/23DDMSOB.js +0 -2
  172. package/dist/cdn/2BDHDUXG.js +0 -2
  173. package/dist/cdn/3O7GAC23.js +0 -2
  174. package/dist/cdn/4CW7U27R.js +0 -2
  175. package/dist/cdn/4DCAUWTC.js +0 -2
  176. package/dist/cdn/57I35HLF.js +0 -2
  177. package/dist/cdn/6DQVLQL6.js +0 -2
  178. package/dist/cdn/EKKJN7WZ.js +0 -2
  179. package/dist/cdn/UTXWKXMT.js +0 -4
  180. package/dist/cdn/XEB2RUND.js +0 -2
  181. package/dist/cdn/ZL3E4ZGE.js +0 -2
  182. package/dist/cdn/ZLXAKPUH.js +0 -2
  183. /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
  184. /package/dist/chunks/{types.js → internal-types.js} +0 -0
@@ -1,5 +1,4 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- /// <reference types="@arcgis/core/interfaces.d.ts" />
3
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
3
  import type { Layout, TickMode, TickValues } from "./types.js";
5
4
 
@@ -8,18 +7,18 @@ import type { Layout, TickMode, TickValues } from "./types.js";
8
7
  * [Slider component](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/). Ticks help users understand the
9
8
  * slider’s range and make more precise selections.
10
9
  *
11
- * Tick placement is controlled by the [mode](#mode), which defines how the [values](#values) are parsed and translated into positions along the
12
- * line. Tick positions are derived from the component’s [min](#min) and [max](#max) range, with optional none-linear scaling via
13
- * [interpolationExponent](#interpolationExponent). Ticks can be displayed in vertical or horizontal [layouts](#layout), with optional [labels](#showLabels) and a [baseline](#showBaseline).
14
- * The component can also be made [interactive](#interactive) to respond to user clicks on individual ticks. The [labelFormatter](#labelFormatter) property allows customization of tick label formatting.
10
+ * Tick placement is controlled by the [mode](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#mode), which defines how the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) are parsed and translated into positions along the
11
+ * line. Tick positions are derived from the component’s [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#max) range, with optional non-linear scaling via
12
+ * [interpolationExponent](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interpolationExponent). Ticks can be displayed in vertical or horizontal [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#layout), with optional [showLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showLabels) and a [showBaseline](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showBaseline).
13
+ * The component can also be made [interactive](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interactive) to respond to user clicks on individual ticks. The [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#labelFormatter) property allows customization of tick label formatting.
15
14
  *
16
15
  * @cssproperty [--arcgis-ticks-tick-length] - Specifies the length of the ticks.
17
16
  * @cssproperty [--arcgis-ticks-tick-color] - Specifies the color of the ticks.
18
17
  * @cssproperty [--arcgis-ticks-gap] - Specifies the gap between the ticks and labels.
19
18
  * @since 5.0
20
19
  * @example
21
- * The following example creates a vertical slider with vertical ticks displayed at every 10 units from 0 to 100.
22
- * The ticks are labeled and positioned on the end side of the slider.
20
+ * The following example creates a vertical slider with ticks.
21
+ * The ticks are positioned at the end of the slider and displayed every 10 units from 0 to 100.
23
22
  * ```html
24
23
  * <arcgis-slider id="sliderComponent" min="0" max="100" show-range-labels values="50" layout="vertical">
25
24
  * <arcgis-ticks slot="content-end" style="flex:1;"
@@ -35,7 +34,7 @@ import type { Layout, TickMode, TickValues } from "./types.js";
35
34
  */
36
35
  export abstract class ArcgisTicks extends LitElement {
37
36
  /**
38
- * When `true`, ticks are clickable and the component emits [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick) when the user selects a tick.
37
+ * When `true`, ticks are clickable and the component emits [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick) when the user selects a tick.
39
38
  *
40
39
  * @default false
41
40
  * @see [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick)
@@ -66,7 +65,7 @@ export abstract class ArcgisTicks extends LitElement {
66
65
  * };
67
66
  * ```
68
67
  */
69
- accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
68
+ accessor labelFormatter: (value: number, defaultFormatter: (value: number) => string) => string | null | undefined;
70
69
  /**
71
70
  * Determines whether the labels are placed before or after the ticks.
72
71
  *
@@ -99,10 +98,11 @@ export abstract class ArcgisTicks extends LitElement {
99
98
  */
100
99
  accessor mirrored: boolean;
101
100
  /**
102
- * The mode or method of positioning ticks along the component. It drives how [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
103
- * - `count`: Places a fixed number of ticks (provided in the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) property) at equal distances from each other.
104
- * - `percent`: [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted as percentage. If [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
105
- * - `value`: Indicates that ticks will only be placed at the values specified in the property.
101
+ * The manner in which ticks are positioned along the component. It determines how [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
102
+ *
103
+ * - `count`: Places a fixed number of ticks (specified in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values)) at equal intervals.
104
+ * - `percent`: Interprets [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) as percentages. If it's a single number, that number is the interval between ticks; if it's an array, the array specifies the percentage positions for ticks.
105
+ * - `value`: Places ticks only at the values listed in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values).
106
106
  *
107
107
  * @default "count"
108
108
  * @example
@@ -119,8 +119,8 @@ export abstract class ArcgisTicks extends LitElement {
119
119
  * </arcgis-slider>
120
120
  * ```
121
121
  * @example
122
- * In count mode, values is the number of ticks to render (not a list of tick values).
123
- * For example, use `11` ticks to show 0–100 in steps of 10 (0, 10, 20, ..., 100).
122
+ * In count mode, the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) property specifies the number of ticks to render (not a list of tick values).
123
+ * For example, use `11` ticks to show 0–100 in intervals of 10 (0, 10, 20, ..., 100).
124
124
  * ```html
125
125
  * <!-- 11 ticks from 0 to 100 -->
126
126
  * <arcgis-slider min="0" max="100" show-range-labels values="20, 50">
@@ -164,7 +164,9 @@ export abstract class ArcgisTicks extends LitElement {
164
164
  */
165
165
  accessor showLabels: boolean;
166
166
  /**
167
- * Indicates where ticks will be rendered along the component.
167
+ * Indicates where ticks are rendered along the component. This can be set as comma-separated
168
+ * numbers in the attribute (e.g., `<arcgis-ticks values="10, 20, 30"></arcgis-ticks>`) or programmatically as
169
+ * either a single number or an array of numbers (e.g., `ticks.values = 10`, `ticks.values = [10, 20, 30]`).
168
170
  * See the description for [mode](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#mode) for more information about how this property is interpreted by each mode.
169
171
  *
170
172
  * @see [mode](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#mode)
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as $ } from "../../chunks/runtime.js";
3
- import { css as M, html as c } from "lit";
4
- import { LitElement as _, createEvent as C, safeClassMap as h, safeStyleMap as u, nothing as v } from "@arcgis/lumina";
3
+ import { css as M, html as o } from "lit";
4
+ import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as f } from "@arcgis/lumina";
5
5
  import { formatNumber as z } from "@arcgis/core/intl.js";
6
6
  const n = {
7
7
  container: "container",
@@ -12,7 +12,7 @@ const n = {
12
12
  tickMax: "tick--max",
13
13
  tickLabel: "tick-label",
14
14
  baseline: "baseline"
15
- }, A = M`:host{display:flex;--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-gap: 1em;--arcgis-ticks-font-size: var(--calcite-font-size--2)}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--calcite-font-weight-medium);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"))}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:.125rem;height:var(--arcgis-ticks-tick-length);transform:translate(-50%)}.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:.125rem;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}}`;
15
+ }, A = M`: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}}`;
16
16
  class F extends _ {
17
17
  constructor() {
18
18
  super(...arguments), this._formatValue = (e) => z(e, this._formatOptions), this._formatOptions = {
@@ -62,23 +62,23 @@ class F extends _ {
62
62
  return i ?? this._formatValue(e);
63
63
  }
64
64
  render() {
65
- return c`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
65
+ return o`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
66
66
  }
67
67
  _renderContent() {
68
- const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: o, mirrored: l, showLabels: x } = this, g = [], b = [];
69
- for (const [f, d] of L(r, i, t, e, a)) {
70
- const p = { [o === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${f}%` }, w = {
68
+ const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: c, mirrored: l, showLabels: w } = this, u = [], b = [];
69
+ for (const [k, d] of L(r, i, t, e, a)) {
70
+ const p = { [c === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${k}%` }, x = {
71
71
  [n.tick]: !0,
72
- [n.tickMin]: f === 0,
73
- [n.tickMax]: f === 100
72
+ [n.tickMin]: k === 0,
73
+ [n.tickMax]: k === 100
74
74
  };
75
- g.push(c`<div class=${h(w)} style=${u(p)} data-value=${d ?? v}></div>`), x && b.push(c`<div class=${h(n.tickLabel)} style=${u(p)} data-value=${d ?? v}>${this._internalLabelFormatter(d)}</div>`);
75
+ u.push(o`<div class=${h(x)} style=${f(p)} data-value=${d ?? v}></div>`), w && b.push(o`<div class=${h(n.tickLabel)} style=${f(p)} data-value=${d ?? v}>${this._internalLabelFormatter(d)}</div>`);
76
76
  }
77
- return [c`<div class=${h(n.labelsContainer)}>${b}</div>`, c`<div class=${h(n.ticksContainer)}>${g}</div>`];
77
+ return [o`<div class=${h(n.labelsContainer)}>${b}</div>`, o`<div class=${h(n.ticksContainer)}>${u}</div>`];
78
78
  }
79
79
  _renderBaseline() {
80
80
  const { showBaseline: e, layout: t } = this;
81
- return e && c`<div class=${h(n.baseline)} style=${u({
81
+ return e && o`<div class=${h(n.baseline)} style=${f({
82
82
  [t === "horizontal" ? "width" : "height"]: "100%",
83
83
  [t === "horizontal" ? "height" : "width"]: "0.125rem"
84
84
  })}></div>` || "";
@@ -88,9 +88,9 @@ function* L(s, e, t, i, r) {
88
88
  switch (s) {
89
89
  case "value": {
90
90
  const a = Array.isArray(r) ? r : [r];
91
- for (const o of a) {
92
- const l = P(e, t, o, i) * 100;
93
- l >= 0 && l <= 100 && (yield [l, o]);
91
+ for (const c of a) {
92
+ const l = P(e, t, c, i) * 100;
93
+ l >= 0 && l <= 100 && (yield [l, c]);
94
94
  }
95
95
  break;
96
96
  }
@@ -108,15 +108,15 @@ function* L(s, e, t, i, r) {
108
108
  if (a <= 1)
109
109
  yield [50, m(e, t, 0.5, i)];
110
110
  else
111
- for (let o = 0; o < a; o++) {
112
- const l = o * 100 / (a - 1);
111
+ for (let c = 0; c < a; c++) {
112
+ const l = c * 100 / (a - 1);
113
113
  yield [l, m(e, t, l / 100, i)];
114
114
  }
115
115
  break;
116
116
  }
117
117
  }
118
118
  }
119
- function k(s, e, t) {
119
+ function g(s, e, t) {
120
120
  return t < s ? s : t > e ? e : t;
121
121
  }
122
122
  function y(s, e, t) {
@@ -124,13 +124,13 @@ function y(s, e, t) {
124
124
  }
125
125
  function P(s, e, t, i = 0) {
126
126
  let r = (t - s) / (e - s);
127
- if (r = k(0, 1, r), Math.abs(i) < 1e-9)
127
+ if (r = g(0, 1, r), Math.abs(i) < 1e-9)
128
128
  return r;
129
129
  const a = 1 + Math.expm1(i) * r;
130
- return r = Math.log(a) / i, k(0, 1, r);
130
+ return r = Math.log(a) / i, g(0, 1, r);
131
131
  }
132
132
  function m(s, e, t, i = 0) {
133
- if (t = k(0, 1, t), Math.abs(i) < 1e-9)
133
+ if (t = g(0, 1, t), Math.abs(i) < 1e-9)
134
134
  return y(s, e, t);
135
135
  const r = Math.expm1(i * t) / Math.expm1(i);
136
136
  return y(s, e, r);
@@ -1,7 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import type SceneView from "@arcgis/core/views/SceneView.js";
3
+ import type MapView from "@arcgis/core/views/MapView.js";
3
4
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
+ import type { UniqueValueCountInfo } from "@arcgis/core/smartMapping/statistics/types.js";
4
6
  import type { SupportedLayer } from "./utils/basic.js";
7
+ import type { VisualizationSource } from "../../utils/internal-types.js";
5
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
6
9
 
7
10
  /**
@@ -85,15 +88,17 @@ export abstract class ArcgisUniqueValuesList extends LitElement {
85
88
  * List of all unique values. If not provided component will get the unique values from the layer.
86
89
  * An empty list would mean that there are no unique values for this field on the layer. The component renders nothing then.
87
90
  */
88
- accessor uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[] | undefined;
91
+ accessor uniqueValues: UniqueValueCountInfo[] | undefined;
89
92
  /** MapView instance, required if uniqueValues is not provided and/or to display dates in the correct timezone */
90
- accessor view: __esri.MapView | __esri.SceneView | undefined;
93
+ accessor view: MapView | SceneView | undefined;
94
+ /** Optional, specify visualization source other than the layer itself. */
95
+ accessor visualizationSource: VisualizationSource | undefined;
91
96
  /**
92
97
  * Get all unique values.
93
98
  * E.g. to be used to limit how often these unique values need to be requested from the layer.
94
99
  */
95
100
  getUniqueValues(): Promise<{
96
- uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[];
101
+ uniqueValues: UniqueValueCountInfo[];
97
102
  partialUniqueValues: boolean;
98
103
  } | undefined>;
99
104
  /** Sets focus on component */