@arcgis/common-components 5.1.0-next.1 → 5.1.0-next.100

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 (132) hide show
  1. package/README.md +24 -1
  2. package/dist/cdn/3Y4H3CAQ.js +2 -0
  3. package/dist/cdn/{S7T3XQPB.js → 43KGVFBF.js} +1 -1
  4. package/dist/cdn/B43M633Q.js +2 -0
  5. package/dist/cdn/DDJDHAHT.js +2 -0
  6. package/dist/cdn/GFUGR2W7.js +2 -0
  7. package/dist/cdn/{7Y42J3JI.js → GPVWNUMW.js} +1 -1
  8. package/dist/cdn/GSNPEBGQ.js +4 -0
  9. package/dist/cdn/{C6JAR4IN.js → H74W6KYI.js} +1 -1
  10. package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
  11. package/dist/cdn/{AXTSUI2Q.js → JJZBCHU4.js} +3 -3
  12. package/dist/cdn/{7PB2GGQH.js → JRF33N6C.js} +1 -1
  13. package/dist/cdn/LVSH5I3Q.js +2 -0
  14. package/dist/cdn/MHJWVKG5.js +2 -0
  15. package/dist/cdn/{6NYYZIHB.js → MNN3QF54.js} +1 -1
  16. package/dist/cdn/{GQLKGVRX.js → O3CBCQNL.js} +1 -1
  17. package/dist/cdn/O6ZASYX6.js +2 -0
  18. package/dist/cdn/{YVSTPEPS.js → OQF4LYVE.js} +1 -1
  19. package/dist/cdn/{ZOWIFVL3.js → P4CF7V4U.js} +1 -1
  20. package/dist/cdn/QEPJM6XG.js +2 -0
  21. package/dist/cdn/{J5X5TNVW.js → TTV4Z2RR.js} +1 -1
  22. package/dist/cdn/WG5GA6QX.js +2 -0
  23. package/dist/cdn/{7HQMPKZO.js → YZGTCNEQ.js} +1 -1
  24. package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
  25. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +1 -0
  26. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +1 -0
  27. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +1 -0
  28. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +1 -0
  29. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +1 -0
  30. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +1 -0
  31. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +1 -0
  32. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +1 -0
  33. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en-US.json +1 -0
  34. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en.json +1 -0
  35. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +1 -0
  36. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +1 -0
  37. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +1 -0
  38. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +1 -0
  39. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +1 -0
  40. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +1 -0
  41. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +1 -0
  42. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +1 -0
  43. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +1 -0
  44. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +1 -0
  45. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +1 -0
  46. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +1 -0
  47. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +1 -0
  48. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +1 -0
  49. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +1 -0
  50. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +1 -0
  51. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +1 -0
  52. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +1 -0
  53. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +1 -0
  54. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +1 -0
  55. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +1 -0
  56. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +1 -0
  57. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +1 -0
  58. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +1 -0
  59. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +1 -0
  60. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +1 -0
  61. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +1 -0
  62. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +1 -0
  63. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +1 -0
  64. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +1 -0
  65. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +1 -0
  66. package/dist/cdn/index.js +1 -1
  67. package/dist/cdn/main.css +1 -1
  68. package/dist/chunks/commonFunctions.js +5 -11
  69. package/dist/components/arcgis-ckeditor5/customElement.d.ts +1 -0
  70. package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
  71. package/dist/components/arcgis-ckeditor5/types.d.ts +9 -0
  72. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +1 -0
  73. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  74. package/dist/components/arcgis-color-input/customElement.d.ts +3 -2
  75. package/dist/components/arcgis-field-info/customElement.d.ts +3 -2
  76. package/dist/components/arcgis-field-info/customElement.js +16 -18
  77. package/dist/components/arcgis-field-info/utils/basic.d.ts +21 -2
  78. package/dist/components/arcgis-field-pick-list/customElement.d.ts +14 -10
  79. package/dist/components/arcgis-field-pick-list/customElement.js +2 -2
  80. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +25 -3
  81. package/dist/components/arcgis-histogram/customElement.d.ts +46 -28
  82. package/dist/components/arcgis-histogram/customElement.js +81 -90
  83. package/dist/components/arcgis-histogram/types.d.ts +1 -3
  84. package/dist/components/arcgis-label-input/customElement.d.ts +6 -6
  85. package/dist/components/arcgis-label-input/customElement.js +22 -17
  86. package/dist/components/arcgis-picker-input/customElement.d.ts +3 -2
  87. package/dist/components/arcgis-picker-input/customElement.js +11 -11
  88. package/dist/components/arcgis-ramp-color/customElement.d.ts +2 -0
  89. package/dist/components/arcgis-ramp-color-break/customElement.d.ts +2 -0
  90. package/dist/components/arcgis-ramp-opacity/customElement.d.ts +1 -0
  91. package/dist/components/arcgis-slider/customElement.d.ts +282 -83
  92. package/dist/components/arcgis-slider/customElement.js +434 -360
  93. package/dist/components/arcgis-slider-input/customElement.d.ts +7 -0
  94. package/dist/components/arcgis-slider-input/customElement.js +12 -12
  95. package/dist/components/arcgis-spatial-reference-picker/customElement.d.ts +327 -0
  96. package/dist/components/arcgis-spatial-reference-picker/customElement.js +7702 -0
  97. package/dist/components/arcgis-spatial-reference-picker/index.d.ts +1 -0
  98. package/dist/components/arcgis-spatial-reference-picker/index.js +3 -0
  99. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.d.ts +35 -0
  100. package/dist/components/arcgis-spatial-reference-picker-tree/customElement.js +77 -0
  101. package/dist/components/arcgis-spatial-reference-picker-tree/index.d.ts +1 -0
  102. package/dist/components/arcgis-spatial-reference-picker-tree/index.js +3 -0
  103. package/dist/components/arcgis-ticks/customElement.d.ts +110 -20
  104. package/dist/components/arcgis-ticks/customElement.js +30 -30
  105. package/dist/components/arcgis-ticks/types.d.ts +23 -0
  106. package/dist/components/arcgis-unique-values-list/customElement.d.ts +14 -5
  107. package/dist/components/arcgis-unique-values-list/customElement.js +158 -151
  108. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +14 -2
  109. package/dist/docs/api.json +1 -1
  110. package/dist/docs/docs.json +1 -1
  111. package/dist/docs/vscode.html-custom-data.json +1 -1
  112. package/dist/docs/web-types.json +1 -1
  113. package/dist/index.d.ts +39 -1
  114. package/dist/loader.js +5 -3
  115. package/dist/types/lumina.d.ts +15 -3
  116. package/dist/types/preact.d.ts +17 -3
  117. package/dist/types/react.d.ts +19 -3
  118. package/dist/types/stencil.d.ts +15 -3
  119. package/dist/utils/internal-types.d.ts +1 -0
  120. package/dist/utils/spatial-references.d.ts +1 -0
  121. package/dist/utils/types.d.ts +39 -22
  122. package/package.json +8 -6
  123. package/dist/cdn/6DQVLQL6.js +0 -2
  124. package/dist/cdn/6MGBOM6S.js +0 -2
  125. package/dist/cdn/BAVGT3I5.js +0 -2
  126. package/dist/cdn/P45VPBNI.js +0 -2
  127. package/dist/cdn/UTXWKXMT.js +0 -4
  128. package/dist/cdn/XEB2RUND.js +0 -2
  129. package/dist/cdn/ZL3E4ZGE.js +0 -2
  130. package/dist/cdn/ZP76EPVI.js +0 -2
  131. /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
  132. /package/dist/chunks/{types.js → internal-types.js} +0 -0
@@ -5,10 +5,10 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
5
  import type { T9nMeta } from "@arcgis/lumina/controllers";
6
6
 
7
7
  /**
8
- * Renders a histogram to visualize the spread of a dataset based on [bins](#bins) representing buckets, or sub-ranges, of
9
- * data. Each [bin](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramBin) is defined by a minimum and maximum value and a total count.
8
+ * Renders a histogram to visualize the spread of a dataset based on [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins) representing buckets, or sub-ranges, of
9
+ * data. Each [bin](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/types/#HistogramBin) is defined by a minimum and maximum value and a total count.
10
10
  *
11
- * You can generate the underlying histogram's bins with the [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
11
+ * You can generate the underlying histogram's bins with the [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
12
12
  * module, then apply them to the component, as shown in the example below.
13
13
  *
14
14
  * ```js
@@ -27,26 +27,25 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
27
27
  * histogramElement.max = results.maxValue;
28
28
  * ```
29
29
  *
30
- * Other properties of this component allow you to display meaningful values on the histogram, such as the [average](#average),
31
- * [one standard deviation](#standardDeviation), and the [dataLines](#dataLines) properties.
30
+ * Other properties of this component allow you to display meaningful values on the histogram, such as the [average](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#average),
31
+ * [standardDeviation](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#standardDeviation), and the [dataLines](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#dataLines) properties.
32
32
  *
33
- * The [layout](#layout) property allows you to set the orientation of the histogram, and the [colorStops](#colorStops)
33
+ * The [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#layout) property allows you to set the orientation of the histogram, and the [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops)
34
34
  * property allows you to set a gradient or color scheme for the histogram bars.
35
35
  *
36
- * <a name="image-annotations"></a>
37
- * See the image below for a summary of the configurable options available on this slider.
36
+ * See the image below for a summary of the configurable options available on the histogram.
38
37
  *
39
- * ![Histogram with annotations](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/histogram-basic-labels.png "Histogram with annotations")
38
+ * ![Histogram with annotations](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-basic-labels.avif "Histogram with annotations")
40
39
  *
41
- * The [colorStops](#colorStops) property may be used to define a color scheme for the histogram bars.
40
+ * The [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops) property may be used to define a color scheme for the histogram bars.
42
41
  *
43
- * ![Histogram with color](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/histogram-colors.png "Histogram with color")
44
- *
45
- * **See also:**
46
- * - [histogram module](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
42
+ * ![Histogram with color](https://developers.arcgis.com/javascript/latest/assets/references/core/widgets/histogram-colors.avif "Histogram with color")
47
43
  *
48
44
  * @cssproperty [--arcgis-histogram-bar-color] - Specifies the color of the histogram bars when the bin doesn't have a corresponding color stop.
49
45
  * @cssproperty [--arcgis-histogram-stop-color] - Specifies the default color for color stops.
46
+ * @see [histogram module](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
47
+ * @see [Sample - Histogram component](https://developers.arcgis.com/javascript/latest/sample-code/histogram/)
48
+ * @since 5.0
50
49
  */
51
50
  export abstract class ArcgisHistogram extends LitElement {
52
51
  /** @internal */
@@ -60,13 +59,13 @@ export abstract class ArcgisHistogram extends LitElement {
60
59
  /**
61
60
  * The statistical average of the data in the histogram. You would typically
62
61
  * get this value from the `avg` property of
63
- * [SummaryStatisticsResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult),
62
+ * [SummaryStatisticsResult](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#SummaryStatisticsResult),
64
63
  * which is the result of the
65
- * [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics) function.
64
+ * [summaryStatistics](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#summaryStatistics) function.
66
65
  *
67
66
  * When set, this value will render on the histogram with a symbol indicating it is the average.
68
67
  *
69
- * @see [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
68
+ * @see [summaryStatistics](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#summaryStatistics)
70
69
  * @example
71
70
  * ```js
72
71
  * // sets result returned from a smart mapping method
@@ -82,7 +81,7 @@ export abstract class ArcgisHistogram extends LitElement {
82
81
  /**
83
82
  * An array of objects representing each bin in the histogram. This
84
83
  * information is typically returned from the
85
- * [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram) function.
84
+ * [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/#histogram) function.
86
85
  *
87
86
  * @example
88
87
  * ```js
@@ -108,7 +107,7 @@ export abstract class ArcgisHistogram extends LitElement {
108
107
  * When set to `true`, overlapping classed color stops will be blended together to create the color of the bar.
109
108
  * This allows to show a if a bar representing a bin overlaps with multiple classed color stops.
110
109
  *
111
- * This property is only applicable when the [colorStops](#colorStops) property is set to classed color stops.
110
+ * This property is only applicable when the [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops) property is set to classed color stops.
112
111
  *
113
112
  * @default false
114
113
  */
@@ -119,7 +118,7 @@ export abstract class ArcgisHistogram extends LitElement {
119
118
  * - **Continuous color stops**: Each stop is defined by a `color` and a value. The color of the bar is determined by interpolating between the
120
119
  * colors of the stops surrounding the value of the bin.
121
120
  * - **Classed color stops**: Each stop is defined by a `color` and a `minValue` and `maxValue`. The color of the bar is determined by the color of the stop
122
- * that contains the value of the bin. If the `color` is ommitted, the bar will be colored using the CSS variable `--arcgis-histogram-stop-color`.
121
+ * that contains the value of the bin. If the `color` is omitted, the bar will be colored using the CSS variable `--arcgis-histogram-stop-color`.
123
122
  *
124
123
  * When a bar is not covered by any color stop, it will be colored using the CSS variable `--arcgis-histogram-bar-color`.
125
124
  *
@@ -176,7 +175,7 @@ export abstract class ArcgisHistogram extends LitElement {
176
175
  * };
177
176
  * });
178
177
  * ```
179
- * @see [smartMappingUtils.getDeviationValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#getDeviationValues)
178
+ * @see [smartMappingUtils.getDeviationValues](https://developers.arcgis.com/javascript/latest/references/core/widgets/smartMapping/support/utils/#getDeviationValues)
180
179
  */
181
180
  accessor dataLines: DataLine[] | undefined;
182
181
  /**
@@ -201,7 +200,7 @@ export abstract class ArcgisHistogram extends LitElement {
201
200
  accessor layout: HistogramLayout;
202
201
  /**
203
202
  * The maximum value or bound of the entire histogram. This
204
- * should match the maximum bound of the last [bin](#bins).
203
+ * should match the maximum bound of the last [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins).
205
204
  *
206
205
  * @example
207
206
  * ```js
@@ -209,20 +208,23 @@ export abstract class ArcgisHistogram extends LitElement {
209
208
  * ```
210
209
  * @example
211
210
  * ```js
212
- * // sets result returned from a smart mapping method
213
- * // to the histogram
211
+ * // sets result returned from a smart mapping method to the histogram
214
212
  * histogram.max = response.statistics.max;
215
213
  * ```
216
214
  */
217
215
  accessor max: number | undefined;
218
- /** Replace localized message strings with your own strings. */
216
+ /**
217
+ * Replace localized message strings with your own strings.
218
+ *
219
+ * _**Note**: Individual message keys may change between releases._
220
+ */
219
221
  accessor messageOverrides: {
220
222
  componentLabel?: string | undefined;
221
223
  barLabel?: string | undefined;
222
224
  };
223
225
  /**
224
226
  * The minimum value or bound of the entire histogram. This
225
- * should match the minimum bound of the first [bin](#bins).
227
+ * should match the minimum bound of the first [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins).
226
228
  *
227
229
  * @example
228
230
  * ```js
@@ -230,11 +232,27 @@ export abstract class ArcgisHistogram extends LitElement {
230
232
  * ```
231
233
  * @example
232
234
  * ```js
233
- * // sets result returned from a smart mapping method
234
- * // to the histogram
235
+ * // sets result returned from a smart mapping method to the histogram
235
236
  * histogram.min = response.statistics.min;
236
237
  * ```
237
238
  */
238
239
  accessor min: number | undefined;
240
+ /**
241
+ * The statistical standard deviation of the data in the histogram. You would typically
242
+ * get this value from the `stddev` property of
243
+ * [SummaryStatisticsResult](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#SummaryStatisticsResult),
244
+ * which is the result of the
245
+ * [summaryStatistics](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#summaryStatistics) function.
246
+ *
247
+ * When set, this value will render on the histogram with symbols indicating standard deviation intervals from the mean.
248
+ *
249
+ * @see [summaryStatistics](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/summaryStatistics/#summaryStatistics)
250
+ * @example
251
+ * ```js
252
+ * // sets result returned from a smart mapping method
253
+ * // to the histogram
254
+ * histogram.standardDeviation = response.statistics.stddev;
255
+ * ```
256
+ */
239
257
  accessor standardDeviation: number | undefined;
240
258
  }
@@ -1,130 +1,121 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as I } from "../../chunks/runtime.js";
3
- import { u as O } from "../../chunks/useT9n.js";
4
- import { substitute as S } from "@arcgis/core/intl.js";
5
- import { LitElement as k, safeClassMap as p, nothing as h, safeStyleMap as w } from "@arcgis/lumina";
6
- import { css as R, html as L, svg as b } from "lit";
2
+ import { c as M } from "../../chunks/runtime.js";
3
+ import { u as k } from "../../chunks/useT9n.js";
4
+ import { substitute as E } from "@arcgis/core/intl.js";
5
+ import { LitElement as I, nothing as h, safeStyleMap as v, safeClassMap as O } from "@arcgis/lumina";
6
+ import { css as R, html as y, svg as f } from "lit";
7
7
  import { g as z } from "../../chunks/locale.js";
8
- const f = {
9
- content: "content",
10
- svg: "svg",
11
- label: "label",
12
- dataLine: "data-line",
13
- averageDataLine: "average-data-line",
14
- dataLineSymbol: "data-line-symbol"
15
- }, F = R`:host{display:flex;--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:flex;flex:1;direction:ltr}.svg{display:inline-block;flex:1;overflow:hidden}.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}`;
16
- function B(t, i, n, e, r) {
17
- const [s, a] = r;
18
- if (!t || a === 0 || s === 0 || n == null || i == null)
8
+ const F = R`: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}`;
9
+ function S(t, r, n, e, i) {
10
+ const [s, a] = i;
11
+ if (!t || a === 0 || s === 0 || n == null || r == null)
19
12
  return null;
20
- const o = n - i, c = (t.length > 1 ? t[t.length - 1].maxValue - t[0].minValue : 0) / o, [u, g] = e === "vertical" ? [a * c, s] : [a, s * c], x = t ? t.map((m) => m.count) : [], d = Math.max(...x);
13
+ const o = n - r, c = (t.length > 1 ? t[t.length - 1].maxValue - t[0].minValue : 0) / o, [u, g] = e === "vertical" ? [a * c, s] : [a, s * c], b = t ? t.map((m) => m.count) : [], d = Math.max(...b);
21
14
  return t.map((m) => {
22
- const [$, v] = e === "vertical" ? [u / t.length, d !== 0 ? m.count / d * g : 0] : [d !== 0 ? m.count / d * u : 0, g / t.length], { maxValue: C } = m, y = n - C, [M, E] = e === "vertical" ? [0, y * (a / o)] : [s - v - y * (s / o), a - $];
23
- return [M, E, v, $];
15
+ const [p, $] = e === "vertical" ? [u / t.length, d !== 0 ? m.count / d * g : 0] : [d !== 0 ? m.count / d * u : 0, g / t.length], { maxValue: D } = m, x = n - D, [_, C] = e === "vertical" ? [0, x * (a / o)] : [s - $ - x * (s / o), a - p];
16
+ return [_, C, $, p];
24
17
  });
25
18
  }
26
- function N(t, i, n, e, r) {
19
+ function B(t, r, n, e, i) {
27
20
  const s = [];
28
21
  return t != null && s.push({
29
22
  value: t,
30
23
  symbol: "x̄",
31
- lineClass: f.averageDataLine
32
- }), i != null && n != null && e != null && s.push(...Y(n, e, i, t)), r && s.push(...r), s;
24
+ lineClass: "average-data-line"
25
+ }), r != null && n != null && e != null && s.push(...G(n, e, r, t)), i && s.push(...i), s;
33
26
  }
34
- function P(t, i, n, e, r) {
27
+ function N(t, r, n, e, i) {
35
28
  if (n == null)
36
29
  return [0, 0, 0, 0];
37
- const s = Math.round((r - n) / e * 100) / 100, [a, o] = t;
38
- if (i === "vertical") {
30
+ const s = Math.round((i - n) / e * 100) / 100, [a, o] = t;
31
+ if (r === "vertical") {
39
32
  let c = o - s * o || 1;
40
33
  return c = Math.round(c) + 0.5, [0, "100%", c, c];
41
34
  }
42
35
  let l = s * a || 1;
43
36
  return l = Math.round(l) + 0.5, [l, l, "100%", 0];
44
37
  }
45
- function T(t, i, n, e, r) {
38
+ function P(t, r, n, e, i) {
46
39
  if (n == null)
47
40
  return [0, 0];
48
- const s = Math.round((r - n) / e * 100) / 100, [a, o] = t;
49
- return i === "vertical" ? [a, o - s * o] : [0, s * a];
41
+ const s = Math.round((i - n) / e * 100) / 100, [a, o] = t;
42
+ return r === "vertical" ? [a, o - s * o] : [0, s * a];
50
43
  }
51
- function A(t, i, n) {
44
+ function T(t, r, n) {
52
45
  if (!t || t.length === 0)
53
46
  return null;
54
- if (_(t)) {
55
- const e = t.map((r) => ({
56
- ...r,
57
- color: D(r.color ?? n)
47
+ if (L(t)) {
48
+ const e = t.map((i) => ({
49
+ ...i,
50
+ color: w(i.color ?? n)
58
51
  }));
59
52
  return e.unshift({
60
- color: i,
53
+ color: r,
61
54
  minValue: Number.NEGATIVE_INFINITY,
62
55
  maxValue: e[0].minValue
63
56
  }), e.push({
64
- color: i,
57
+ color: r,
65
58
  minValue: e[e.length - 1].maxValue,
66
59
  maxValue: Number.POSITIVE_INFINITY
67
60
  }), e;
68
61
  } else
69
62
  return t.map((e) => ({
70
63
  ...e,
71
- color: D(e.color ?? n)
64
+ color: w(e.color ?? n)
72
65
  }));
73
66
  }
74
- function H(t, i, n, e) {
67
+ function A(t, r, n, e) {
75
68
  if (!t || t.length === 0)
76
69
  return n;
77
- if (_(t)) {
78
- const r = W(t, i);
79
- if (r.length === 0)
70
+ if (L(t)) {
71
+ const i = H(t, r);
72
+ if (i.length === 0)
80
73
  return n;
81
74
  if (e) {
82
- const { color: s = n, weight: a } = r[0], { color: o = n, weight: l } = r[1] ?? r[0], c = a + l;
75
+ const { color: s = n, weight: a } = i[0], { color: o = n, weight: l } = i[1] ?? i[0], c = a + l;
83
76
  return `color-mix(in srgb, ${s} ${a / c * 100}%, ${o} ${l / c * 100}%)`;
84
77
  }
85
- return r[0].color ?? n;
78
+ return i[0].color ?? n;
86
79
  }
87
- return G(t, i);
80
+ return W(t, r);
88
81
  }
89
- function W(t, i) {
82
+ function H(t, r) {
90
83
  const n = [];
91
84
  for (const e of t) {
92
- const r = Math.max(0, Math.min(i.maxValue, e.maxValue) - Math.max(i.minValue, e.minValue));
93
- r > 0 && n.push({ color: e.color, weight: r });
85
+ const i = Math.max(0, Math.min(r.maxValue, e.maxValue) - Math.max(r.minValue, e.minValue));
86
+ i > 0 && n.push({ color: e.color, weight: i });
94
87
  }
95
- return n.sort((e, r) => r.weight - e.weight);
88
+ return n.sort((e, i) => i.weight - e.weight);
96
89
  }
97
- function G(t, i) {
98
- const n = (i.maxValue - i.minValue) / 2 + i.minValue;
90
+ function W(t, r) {
91
+ const n = (r.maxValue - r.minValue) / 2 + r.minValue;
99
92
  if (n > t[t.length - 1].value)
100
93
  return t[t.length - 1].color;
101
94
  for (let e = 0; e < t.length - 1; e++) {
102
- const r = t[e], s = t[e + 1];
103
- if (n <= r.value)
104
- return r.color;
95
+ const i = t[e], s = t[e + 1];
96
+ if (n <= i.value)
97
+ return i.color;
105
98
  if (n < s.value) {
106
- const a = (n - r.value) / (s.value - r.value) * 100;
107
- return `color-mix(in srgb, ${r.color}, ${s.color} ${a}%)`;
99
+ const a = (n - i.value) / (s.value - i.value) * 100;
100
+ return `color-mix(in srgb, ${i.color}, ${s.color} ${a}%)`;
108
101
  }
109
102
  }
110
103
  return t[t.length - 1].color;
111
104
  }
112
- function _(t) {
105
+ function L(t) {
113
106
  return t[0] != null && "minValue" in t[0];
114
107
  }
115
- function D(t) {
116
- if (!t)
117
- return;
108
+ function w(t) {
118
109
  if (typeof t == "string")
119
110
  return t;
120
111
  if (Array.isArray(t))
121
112
  return `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3] ?? 1})`;
122
- const { r: i, g: n, b: e, a: r = 1 } = t;
123
- return `rgba(${i}, ${n}, ${e}, ${r})`;
113
+ const { r, g: n, b: e, a: i = 1 } = t;
114
+ return `rgba(${r}, ${n}, ${e}, ${i})`;
124
115
  }
125
- function Y(t, i, n, e) {
126
- const r = 0.06 * (i - t);
127
- return U(n, e).filter((s) => Math.abs(e - s) > r).map((s, a, o) => {
116
+ function G(t, r, n, e) {
117
+ const i = 0.06 * (r - t);
118
+ return Y(n, e).filter((s) => Math.abs(e - s) > i).map((s, a, o) => {
128
119
  const l = o.length / 2, c = s > e ? "+" : "-", u = a >= l ? a - l + 1 : l - a;
129
120
  return {
130
121
  symbol: `${c}${u === 1 ? "" : u}σ`,
@@ -132,18 +123,18 @@ function Y(t, i, n, e) {
132
123
  };
133
124
  });
134
125
  }
135
- function U(t, i) {
136
- if (i == null || t == null)
126
+ function Y(t, r) {
127
+ if (r == null || t == null)
137
128
  return [];
138
129
  const n = 1, e = [];
139
- for (let r = n * -1; r <= n; r++)
140
- r !== 0 && e.push(i + r * t);
130
+ for (let i = n * -1; i <= n; i++)
131
+ i !== 0 && e.push(r + i * t);
141
132
  return e;
142
133
  }
143
- const V = "var(--arcgis-histogram-bar-color)", j = "var(--arcgis-histogram-stop-color)";
144
- class q extends k {
134
+ const V = "var(--arcgis-histogram-bar-color)", U = "var(--arcgis-histogram-stop-color)";
135
+ class j extends I {
145
136
  constructor() {
146
- super(...arguments), this._messages = O(), this._normalizedStops = null, this._formatLabel = (i) => z(this._messages._lang, this._numberFormatterOptions).format(i), this._numberFormatterOptions = {
137
+ super(...arguments), this._messages = k(), this._normalizedStops = null, this._formatLabel = (r) => z(this._messages._lang, this._numberFormatterOptions).format(r), this._numberFormatterOptions = {
147
138
  maximumFractionDigits: 2
148
139
  }, this.containerDimensions = [0, 0], this.icon = "graph-histogram", this.layout = "horizontal", this.colorBlendingEnabled = !1;
149
140
  }
@@ -154,43 +145,43 @@ class q extends k {
154
145
  this.styles = F;
155
146
  }
156
147
  loaded() {
157
- const i = new ResizeObserver((r) => {
158
- for (const s of r) {
148
+ const r = new ResizeObserver((i) => {
149
+ for (const s of i) {
159
150
  const { width: a, height: o } = s.contentRect;
160
151
  this.containerDimensions = [a, o];
161
152
  }
162
153
  }), { width: n, height: e } = this.el.getBoundingClientRect();
163
- this.containerDimensions = [n, e], i.observe(this.el);
154
+ this.containerDimensions = [n, e], r.observe(this.el);
164
155
  }
165
- willUpdate(i) {
166
- i.has("colorStops") && (this._normalizedStops = A(this.colorStops, V, j));
156
+ willUpdate(r) {
157
+ r.has("colorStops") && (this._normalizedStops = T(this.colorStops, V, U));
167
158
  }
168
159
  render() {
169
- const { label: i } = this;
170
- return this.containerDimensions ? L`<div role=img .ariaLabel=${i ?? void 0} class=${p(f.content)}>${this._renderContent()}</div>` : null;
160
+ const { label: r } = this;
161
+ return y`<div role=img .ariaLabel=${r ?? void 0} class="content">${this._renderContent()}</div>`;
171
162
  }
172
163
  _renderContent() {
173
- const { containerDimensions: [i, n] } = this, e = "bg-fill";
174
- return L`<svg class=${p(f.svg)} xmlns=http://www.w3.org/2000/svg>${b`<defs><clipPath id=${e}><rect height=${n ?? h} width=${i ?? h} x=0 y=0 /></clipPath></defs><g style=${w({ clipPath: `url(#${e})` })}><g>${this._renderBars()}</g></g><g>${this._renderLines()}</g>`}</svg>`;
164
+ const { containerDimensions: [r, n] } = this, e = "bg-fill";
165
+ return r ? y`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${f`<defs><clipPath id=${e}><rect height=${n ?? h} width=${r ?? h} x=0 y=0 /></clipPath></defs><g style=${v({ clipPath: `url(#${e})` })}><g>${this._renderBars()}</g></g><g>${this._renderLines()}</g>`}</svg>` : null;
175
166
  }
176
167
  _renderBars() {
177
- const { bins: i, _messages: n } = this, e = B(this.bins, this.min, this.max, this.layout, this.containerDimensions);
178
- return !e || !i ? null : e.map((r, s) => {
179
- const [a, o, l, c] = r, u = i[s], g = n?.barLabel ? S(n.barLabel, u) : "";
180
- return b`<rect style=${w({
181
- fill: H(this._normalizedStops, u, V, this.colorBlendingEnabled)
168
+ const { bins: r, _messages: n } = this, e = S(this.bins, this.min, this.max, this.layout, this.containerDimensions);
169
+ return !e || !r ? null : e.map((i, s) => {
170
+ const [a, o, l, c] = i, u = r[s], g = n?.barLabel ? E(n.barLabel, u) : "";
171
+ return f`<rect style=${v({
172
+ fill: A(this._normalizedStops, u, V, this.colorBlendingEnabled)
182
173
  })} .ariaLabel=${g} data-index=${s ?? h} height=${c ?? h} role=img shape-rendering=crispEdges stroke-width=0 width=${l ?? h} x=${a ?? h} y=${o ?? h} />`;
183
174
  });
184
175
  }
185
176
  _renderLines() {
186
- return N(this.average, this.standardDeviation, this.min, this.max, this.dataLines)?.map((n) => J({ dataLine: n, containerDimensions: this.containerDimensions, layout: this.layout, min: this.min, max: this.max, labelFormatter: this._formatLabel }));
177
+ return B(this.average, this.standardDeviation, this.min, this.max, this.dataLines)?.map((n) => q({ dataLine: n, containerDimensions: this.containerDimensions, layout: this.layout, min: this.min, max: this.max, labelFormatter: this._formatLabel }));
187
178
  }
188
179
  }
189
- const J = (t) => {
190
- const { containerDimensions: i, layout: n, min: e, max: r, dataLine: s, labelFormatter: a } = t, o = r != null && e != null ? r - e : 0, [l, c, u, g] = P(i, n, e, o, s.value), [x, d] = T(i, n, e, o, s.value), m = "symbol" in s ? [b`<tspan class=${p(f.dataLineSymbol)}>${s.symbol}</tspan>`, b`<tspan>${a(s.value)}</tspan>`] : s.label, $ = "lineClass" in s && s.lineClass ? s.lineClass : f.dataLine;
191
- return b`<g><title>${s.value}</title><line class=${p($)} shape-rendering=crispEdges x1=${l ?? h} x2=${c ?? h} y1=${u ?? h} y2=${g ?? h} /><text class=${p(f.label)} text-anchor=end transform=${(n === "horizontal" ? "rotate(270)" : void 0) ?? h} x=${x ?? h} y=${d - 2}>${m}</text></g>`;
180
+ const q = (t) => {
181
+ const { containerDimensions: r, layout: n, min: e, max: i, dataLine: s, labelFormatter: a } = t, o = i != null && e != null ? i - e : 0, [l, c, u, g] = N(r, n, e, o, s.value), [b, d] = P(r, n, e, o, s.value), m = "symbol" in s ? [f`<tspan class="data-line-symbol">${s.symbol}</tspan>`, f`<tspan>${a(s.value)}</tspan>`] : s.label, p = "lineClass" in s && s.lineClass ? s.lineClass : "data-line";
182
+ return f`<g><title>${s.value}</title><line class=${O(p)} shape-rendering=crispEdges x1=${l ?? h} x2=${c ?? h} y1=${u ?? h} y2=${g ?? h} /><text class="label" text-anchor=end transform=${(n === "horizontal" ? "rotate(270)" : void 0) ?? h} x=${b ?? h} y=${d - 2}>${m}</text></g>`;
192
183
  };
193
- I("arcgis-histogram", q);
184
+ M("arcgis-histogram", j);
194
185
  export {
195
- q as ArcgisHistogram
186
+ j as ArcgisHistogram
196
187
  };
@@ -1,8 +1,6 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
-
3
1
  export type DataLine = {
4
2
  value: number;
5
- label?: nullish | number | string;
3
+ label?: number | string | null;
6
4
  };
7
5
 
8
6
  export type HistogramColorStops = HistogramClassedColorStop[] | HistogramContinuousColorStop[];
@@ -1,9 +1,9 @@
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 { Button as Button } from "@esri/calcite-components/components/calcite-button";
5
4
  import type { InputNumber as InputNumber } from "@esri/calcite-components/components/calcite-input-number";
6
5
 
6
+ /** @internal */
7
7
  export abstract class ArcgisLabelInput extends LitElement {
8
8
  /**
9
9
  * Specifies the alignment of the component's text elements.
@@ -13,15 +13,15 @@ export abstract class ArcgisLabelInput extends LitElement {
13
13
  accessor alignment: Button["alignment"] & InputNumber["alignment"];
14
14
  /**
15
15
  * Indicates whether the component is in edit mode.
16
- * This value changes when user interacts with the component or when [edit()](#edit) is called.
17
- * The value is always `false` when the component is in [read-only](#readOnly) mode.
16
+ * This value changes when user interacts with the component or when [edit()](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#edit) is called.
17
+ * The value is always `false` when the component is in [readOnly](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#readOnly) mode.
18
18
  *
19
19
  * @default false
20
- * @see [edit()](#edit)
20
+ * @see [edit()](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#edit)
21
21
  */
22
22
  get editing(): boolean;
23
23
  /** A function used to format the value. */
24
- accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
24
+ accessor labelFormatter: (value: number, defaultFormatter: (value: number) => string) => string | null | undefined;
25
25
  /**
26
26
  * Indicates whether the component is in read-only mode.
27
27
  *
@@ -37,7 +37,7 @@ export abstract class ArcgisLabelInput extends LitElement {
37
37
  /**
38
38
  * Initiates the edit mode for the component.
39
39
  *
40
- * @see [editing](#editing)
40
+ * @see [editing](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#editing)
41
41
  */
42
42
  edit(): Promise<void>;
43
43
  /** Fires each time a new value is typed and committed. */
@@ -1,24 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as l } from "../../chunks/runtime.js";
3
- import { formatNumber as r } from "@arcgis/core/intl.js";
4
- import { LitElement as o, createEvent as u } from "@arcgis/lumina";
5
- import { createRef as n, ref as a } from "lit/directives/ref.js";
6
- import { css as h, html as s } from "lit";
7
- const c = h`:host{display:block}:host([hidden]){display:none}.readOnlyLabel{display:block;font-size:var(--calcite-font-size-sm);font-variant-numeric:tabular-nums;line-height:var(--calcite-font-line-height-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:.5rem;padding-block:3px;border-color:var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px);color:var(--calcite-color-text-1)}:host(:not([read-only])) .readOnlyLabel{position:absolute;opacity:0}:host([alignment="start"]){.readOnlyLabel{text-align:start}}:host([alignment="end"]){.readOnlyLabel{text-align:end}}:host([alignment="center"]){.readOnlyLabel{text-align:center}}calcite-button{inline-size:100%;--calcite-offset-invert-focus: 1;--calcite-internal-animation-timing-fast: 0}calcite-input-number{inline-size:100%;--calcite-internal-animation-timing-fast: 0}`;
8
- class d extends o {
2
+ import { c as o } from "../../chunks/runtime.js";
3
+ import { formatNumber as u } from "@arcgis/core/intl.js";
4
+ import { LitElement as c, createEvent as h, safeClassMap as d } from "@arcgis/lumina";
5
+ import { createRef as s, ref as l } from "lit/directives/ref.js";
6
+ import { css as p, html as n } from "lit";
7
+ const m = p`:host{display:block}:host([hidden]){display:none}.content{display:flex;flex-direction:column}.readOnlyLabel{display:block;font-size:var(--calcite-font-size-sm);font-variant-numeric:tabular-nums;line-height:var(--calcite-font-line-height-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:.5rem;padding-block:3px;border-color:var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px);color:var(--calcite-color-text-1)}:host(:not([read-only])) .readOnlyLabel{position:absolute;opacity:0}:host([alignment="start"]){.content{align-items:start}.readOnlyLabel{text-align:start}}:host([alignment="end"]){.content{align-items:end}.readOnlyLabel{text-align:end}}:host([alignment="center"]){.content{align-items:center}.readOnlyLabel{text-align:center}}calcite-button{inline-size:100%;--calcite-offset-invert-focus: 1;--calcite-internal-animation-timing-fast: 0}calcite-input-number{inline-size:100%;--calcite-internal-animation-timing-fast: 0}`;
8
+ class f extends c {
9
9
  constructor() {
10
- super(...arguments), this._buttonRef = n(), this._inputRef = n(), this._labelRef = n(), this._formatOptions = {
10
+ super(...arguments), this._buttonRef = s(), this._inputRef = s(), this._labelRef = s(), this._formatOptions = {
11
11
  style: "decimal",
12
12
  useGrouping: !0,
13
13
  minimumFractionDigits: 0,
14
14
  maximumFractionDigits: 2
15
- }, this._formatValue = (t) => r(t, this._formatOptions), this._pointerDownPosition = null, this._displayedValue = "", this._editing = !1, this.alignment = "center", this.readOnly = !1, this.value = 0, this.arcgisChange = u({ cancelable: !1 });
15
+ }, this._formatValue = (t) => u(t, this._formatOptions), this._pointerDownPosition = null, this._displayedValue = "", this._editing = !1, this.alignment = "center", this.readOnly = !1, this.value = 0, this.arcgisChange = h({ cancelable: !1 });
16
16
  }
17
17
  static {
18
18
  this.properties = { _displayedValue: 16, _editing: 16, alignment: 3, editing: 39, labelFormatter: 0, readOnly: 7, value: 11 };
19
19
  }
20
20
  static {
21
- this.styles = c;
21
+ this.styles = m;
22
22
  }
23
23
  static {
24
24
  this.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
@@ -39,8 +39,11 @@ class d extends o {
39
39
  }
40
40
  }
41
41
  updated(t) {
42
- const e = this._inputRef.value, i = this.renderRoot.querySelector(".readOnlyLabel");
43
- e && i && (e.style.width = `${i.offsetWidth}px`);
42
+ const e = this._inputRef.value, i = this._buttonRef.value, a = this.renderRoot.querySelector(".readOnlyLabel");
43
+ if (e && i && a) {
44
+ const r = a.offsetWidth;
45
+ i.style.width = `${r}px`, e.style.width = `${r}px`;
46
+ }
44
47
  }
45
48
  _enterEdit() {
46
49
  this._editing || this.readOnly || (this._editing = !0, this.requestUpdate("editing", !1), this.updateComplete.then(async () => {
@@ -49,7 +52,7 @@ class d extends o {
49
52
  }));
50
53
  }
51
54
  _exitEdit(t, e = !1) {
52
- this._editing && (t ? this._commitValue(this._inputRef.value) : this._inputRef.value && (this._displayedValue = this._internalLabelFormatter(this.value), this._inputRef.value.value = `${this.value}`), this._editing = !1, this.requestUpdate("editing", !0), e || this.updateComplete.then(async () => {
55
+ this._editing && (t && this._commitValue(this._inputRef.value), this._displayedValue = this._internalLabelFormatter(this.value), this._inputRef.value && (this._inputRef.value.value = `${this.value}`), this._editing = !1, this.requestUpdate("editing", !0), e || this.updateComplete.then(async () => {
53
56
  await this._buttonRef.value?.setFocus();
54
57
  }));
55
58
  }
@@ -100,12 +103,14 @@ class d extends o {
100
103
  }
101
104
  render() {
102
105
  const { alignment: t, _displayedValue: e } = this, i = [
103
- s`<span class="readOnlyLabel"><span ${a(this._labelRef)}>${e}</span></span>`
106
+ n`<span class="readOnlyLabel"><span ${l(this._labelRef)}>${e}</span></span>`
104
107
  ];
105
- return this.readOnly || i.push(s`<calcite-button .alignment=${t} appearance=transparent .hidden=${this._editing} kind=neutral @pointerdown=${this._onPointerDown} @click=${this._onClick} scale=s width=full ${a(this._buttonRef)}>${e}</calcite-button>`, s`<calcite-input-number .alignment=${t} group-separator .hidden=${!this._editing} number-button-type=none @calciteInputNumberChange=${this._onValueChange} @keydown=${this._onKeyDown} @blur=${this._onBlur} @input=${this._onInput} scale=s status=idle .value=${`${this.value}`} ${a(this._inputRef)}></calcite-input-number>`), i;
108
+ return this.readOnly || i.push(n`<calcite-button .alignment=${t} appearance=transparent .hidden=${this._editing} kind=neutral @pointerdown=${this._onPointerDown} @click=${this._onClick} scale=s width=full ${l(this._buttonRef)}>${e}</calcite-button>`, n`<calcite-input-number .alignment=${t} group-separator .hidden=${!this._editing} number-button-type=none @calciteInputNumberChange=${this._onValueChange} @keydown=${this._onKeyDown} @blur=${this._onBlur} @input=${this._onInput} scale=s status=idle .value=${`${this.value}`} ${l(this._inputRef)}></calcite-input-number>`), n`<div class=${d({
109
+ content: !0
110
+ })}>${i}</div>`;
106
111
  }
107
112
  }
108
- l("arcgis-label-input", d);
113
+ o("arcgis-label-input", f);
109
114
  export {
110
- d as ArcgisLabelInput
115
+ f as ArcgisLabelInput
111
116
  };
@@ -1,8 +1,9 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { IPopoverProps } from "../../utils/types.js";
3
+ import type { PopoverProps } from "../../utils/types.js";
4
4
  import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
5
5
 
6
+ /** @internal */
6
7
  export abstract class ArcgisPickerInput extends LitElement {
7
8
  /**
8
9
  * If true, disables the component.
@@ -27,7 +28,7 @@ export abstract class ArcgisPickerInput extends LitElement {
27
28
  */
28
29
  accessor label: string;
29
30
  /** Convenience prop to specify common popover props. */
30
- accessor popoverProps: IPopoverProps | undefined;
31
+ accessor popoverProps: PopoverProps | undefined;
31
32
  /** Close the component. */
32
33
  close(): Promise<void>;
33
34
  /** Set focus on the component. */