@arcgis/common-components 5.0.0-next.135 → 5.0.0-next.137

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 (111) hide show
  1. package/dist/cdn/{O63ZTZG5.js → 2CMN2PLW.js} +2 -2
  2. package/dist/cdn/{QEMZUVQL.js → 3D5FKOXY.js} +2 -2
  3. package/dist/cdn/{XVOXEDSL.js → 43YNUTPG.js} +2 -2
  4. package/dist/cdn/{RNS5S5UL.js → 4I34IC6Q.js} +2 -2
  5. package/dist/cdn/{BXXIZYBD.js → 5CDET57O.js} +2 -2
  6. package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
  7. package/dist/cdn/ACOIQKWZ.js +6 -0
  8. package/dist/cdn/{K3LTU64J.js → BAXXL46B.js} +2 -2
  9. package/dist/cdn/{FREENMNZ.js → CMYVMNBW.js} +2 -2
  10. package/dist/cdn/{BAEY2UNC.js → ENYQISNB.js} +2 -2
  11. package/dist/cdn/{IGSEZSZY.js → GTFPNZX7.js} +2 -2
  12. package/dist/cdn/{LC3J3GLV.js → HRF4HSM5.js} +2 -2
  13. package/dist/cdn/{LNDXDU5Z.js → IC6DINF6.js} +123 -123
  14. package/dist/cdn/{4JREURGY.js → KY3QFUVB.js} +2 -2
  15. package/dist/cdn/{RD2QMBYZ.js → KYBEHVPR.js} +2 -2
  16. package/dist/cdn/{Y2EXN4GQ.js → L63ONHBD.js} +2 -2
  17. package/dist/cdn/{C2DNC2YJ.js → NFPYN5F7.js} +1 -1
  18. package/dist/cdn/{SYONVE3P.js → OGEHJX2A.js} +2 -2
  19. package/dist/cdn/{62JZVUW3.js → R4UCTMNW.js} +2 -2
  20. package/dist/cdn/{G7BIJSLP.js → ROYSN427.js} +2 -2
  21. package/dist/cdn/{3CIN6YRD.js → X5QI7LLG.js} +1 -1
  22. package/dist/cdn/{JVNYGVN3.js → YAIYR7HY.js} +2 -2
  23. package/dist/cdn/{ZDJE23FU.js → YJBSULAA.js} +2 -2
  24. package/dist/cdn/index.js +2 -2
  25. package/dist/chunks/commonFunctions.js +1 -1
  26. package/dist/chunks/resources.js +1 -1
  27. package/dist/chunks/runtime.js +1 -1
  28. package/dist/chunks/types.js +1 -1
  29. package/dist/chunks/useT9n.js +1 -1
  30. package/dist/components/arcgis-ckeditor5/customElement.d.ts +94 -98
  31. package/dist/components/arcgis-ckeditor5/customElement.js +6887 -7708
  32. package/dist/components/arcgis-ckeditor5/types.d.ts +4 -7
  33. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +37 -38
  34. package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
  35. package/dist/components/arcgis-ckeditor5-popover/index.d.ts +0 -2
  36. package/dist/components/arcgis-color-input/customElement.d.ts +105 -82
  37. package/dist/components/arcgis-color-input/customElement.js +1 -1
  38. package/dist/components/arcgis-color-input/index.d.ts +0 -5
  39. package/dist/components/arcgis-field-info/customElement.d.ts +204 -41
  40. package/dist/components/arcgis-field-info/customElement.js +1 -1
  41. package/dist/components/arcgis-field-info/utils/basic.d.ts +2 -36
  42. package/dist/components/arcgis-field-pick-list/customElement.d.ts +196 -170
  43. package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
  44. package/dist/components/arcgis-field-pick-list/index.d.ts +0 -13
  45. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +2 -1
  46. package/dist/components/arcgis-histogram/customElement.d.ts +206 -195
  47. package/dist/components/arcgis-histogram/customElement.js +1 -1
  48. package/dist/components/arcgis-histogram/types.d.ts +22 -30
  49. package/dist/components/arcgis-label-input/customElement.d.ts +46 -45
  50. package/dist/components/arcgis-label-input/customElement.js +1 -1
  51. package/dist/components/arcgis-label-input/index.d.ts +0 -2
  52. package/dist/components/arcgis-picker-input/customElement.d.ts +41 -41
  53. package/dist/components/arcgis-picker-input/customElement.js +2 -2
  54. package/dist/components/arcgis-picker-input/index.d.ts +0 -4
  55. package/dist/components/arcgis-ramp-color/customElement.d.ts +16 -17
  56. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  57. package/dist/components/arcgis-ramp-color-break/customElement.d.ts +17 -18
  58. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  59. package/dist/components/arcgis-ramp-color-break/index.d.ts +0 -1
  60. package/dist/components/arcgis-ramp-opacity/customElement.d.ts +16 -18
  61. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  62. package/dist/components/arcgis-ramp-opacity/index.d.ts +0 -1
  63. package/dist/components/arcgis-slider/customElement.d.ts +287 -287
  64. package/dist/components/arcgis-slider/customElement.js +1 -1
  65. package/dist/components/arcgis-slider/index.d.ts +0 -2
  66. package/dist/components/arcgis-slider-input/customElement.d.ts +57 -58
  67. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  68. package/dist/components/arcgis-slider-input/index.d.ts +0 -2
  69. package/dist/components/arcgis-ticks/customElement.d.ts +99 -94
  70. package/dist/components/arcgis-ticks/customElement.js +1 -1
  71. package/dist/components/arcgis-unique-values-list/customElement.d.ts +106 -89
  72. package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
  73. package/dist/components/arcgis-unique-values-list/index.d.ts +0 -7
  74. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +2 -9
  75. package/dist/docs/api.json +1 -7276
  76. package/dist/docs/docs.json +1 -6072
  77. package/dist/docs/vscode.css-custom-data.json +1 -27
  78. package/dist/docs/vscode.html-custom-data.json +1 -1185
  79. package/dist/docs/web-types.json +1 -2387
  80. package/dist/index.d.ts +30 -23
  81. package/dist/index.js +1 -1
  82. package/dist/loader.js +11 -11
  83. package/dist/types/lumina.d.ts +54 -54
  84. package/dist/types/preact.d.ts +54 -54
  85. package/dist/types/react.d.ts +54 -54
  86. package/dist/types/stencil.d.ts +54 -54
  87. package/dist/utils/types.d.ts +33 -29
  88. package/package.json +6 -4
  89. package/dist/cdn/ZMDBYWZB.js +0 -6
  90. package/dist/components/arcgis-ckeditor5/resources.d.ts +0 -9
  91. package/dist/components/arcgis-field-info/utils/feature.d.ts +0 -21
  92. package/dist/components/arcgis-field-info/utils/field.d.ts +0 -30
  93. package/dist/components/arcgis-field-info/utils/index.d.ts +0 -3
  94. package/dist/components/arcgis-histogram/css.d.ts +0 -8
  95. package/dist/components/arcgis-histogram/histogramSample.d.ts +0 -25
  96. package/dist/components/arcgis-histogram/utils.d.ts +0 -19
  97. package/dist/components/arcgis-slider/SliderData.d.ts +0 -37
  98. package/dist/components/arcgis-slider/stepsUtils.d.ts +0 -52
  99. package/dist/components/arcgis-ticks/css.d.ts +0 -11
  100. package/dist/components/arcgis-unique-values-list/utils/date.d.ts +0 -7
  101. package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +0 -5
  102. package/dist/components/arcgis-unique-values-list/utils/field.d.ts +0 -3
  103. package/dist/components/arcgis-unique-values-list/utils/index.d.ts +0 -4
  104. package/dist/controllers/useT9n.d.ts +0 -1
  105. package/dist/runtime.d.ts +0 -6
  106. package/dist/utils/commonFunctions.d.ts +0 -28
  107. package/dist/utils/dom.d.ts +0 -7
  108. package/dist/utils/functional.d.ts +0 -16
  109. package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
  110. package/dist/utils/storage.d.ts +0 -3
  111. package/dist/utils/style.d.ts +0 -1
@@ -1,8 +1,8 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { DataLine, HistogramColorStops, HistogramLabelFormatFunction, HistogramLayout } from './types';
3
- import { HistogramBin } from '@arcgis/core/smartMapping/statistics/types.js';
4
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
5
- import { PropertyValues } from 'lit';
2
+ import type { DataLine, HistogramColorStops, HistogramLabelFormatFunction, HistogramLayout } from "./types.js";
3
+ import type { HistogramBin } from "@arcgis/core/smartMapping/statistics/types.js";
4
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
6
6
 
7
7
  /**
8
8
  * Renders a histogram to visualize the spread of a dataset based on [bins](#bins) representing buckets, or sub-ranges, of
@@ -45,195 +45,206 @@ import { PropertyValues } from 'lit';
45
45
  * **See also:**
46
46
  * - [histogram module](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
47
47
  *
48
- * [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-histogram/)
48
+ * @cssproperty [--arcgis-histogram-bar-color] - Specifies the color of the histogram bars when the bin doesn't have a corresponding color stop.
49
+ * @cssproperty [--arcgis-histogram-stop-color] - Specifies the default color for color stops.
49
50
  */
50
- export declare class ArcgisHistogram extends LitElement {
51
- /**
52
- * An array of color stops used to define the color scheme for the histogram bars.
53
- * There are two types of color stops:
54
- * - **Continuous color stops**: Each stop is defined by a color and a value. The color of the bar is determined by interpolating between the
55
- * colors of the stops surrounding the value of the bin.
56
- * - **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
57
- * that contains the value of the bin.
58
- *
59
- * @example
60
- * ```js
61
- * // Define continuous color stops on the histogram.
62
- * // The color of the bar is determined by interpolating between the colors of the stops surrounding the value of the bin.
63
- * histogram.colorStops = [
64
- * { color: "#ff0000", value: 0 },
65
- * { color: "#ffff00", value: 50 },
66
- * { color: "#00ff00", value: 100 }
67
- * ];
68
- * ```
69
- * @example
70
- * ```js
71
- * // Define classed color stops on the histogram.
72
- * // The color of the bar is determined by the color of the stop that contains the value of the bin.
73
- * histogram.colorStops = [
74
- * { color: "#ff0000", minValue: 0, maxValue: 50 },
75
- * { color: "#00ff00", minValue: 50, maxValue: 100 },
76
- * ];
77
- * ```
78
- */
79
- colorStops?: HistogramColorStops;
80
- /**
81
- * Icon which represents the component.
82
- * Typically used when the component is controlled by another component (e.g. by the Expand component).
83
- * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values.
84
- *
85
- * @default "graph-histogram"
86
- */
87
- icon?: string | undefined;
88
- /**
89
- * The statistical average of the data in the histogram. You would typically
90
- * get this value from the `avg` property of
91
- * [SummaryStatisticsResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult),
92
- * which is the result of the
93
- * [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics) function.
94
- *
95
- * When set, this value will render on the histogram with a symbol indicating it is the average.
96
- *
97
- * @see [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
98
- * @example
99
- * ```js
100
- * // sets result returned from a smart mapping method
101
- * // to the histogram
102
- * histogram.average = response.statistics.avg;
103
- * ```
104
- * @example
105
- * ```js
106
- * histogram.average = 34.5;
107
- * ```
108
- */
109
- average?: number;
110
- /** Replace localized message strings with your own strings. */
111
- messageOverrides?: typeof this._messages._overrides;
112
- standardDeviation?: number;
113
- /**
114
- * An array of objects representing each bin in the histogram. This
115
- * information is typically returned from the
116
- * [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram) function.
117
- *
118
- * @example
119
- * ```js
120
- * // sets the bins of the histogram from the bins in the histogram() result
121
- * histogram.bins = histogramResult.bins;
122
- * ```
123
- * @example
124
- * ```js
125
- * // Creates a histogram with 7 bins.
126
- * histogram.bins = [
127
- * { minValue: 0, maxValue: 10, count: 4 },
128
- * { minValue: 10.1, maxValue: 20, count: 14 },
129
- * { minValue: 20.1, maxValue: 30, count: 9 },
130
- * { minValue: 30.1, maxValue: 40, count: 34 },
131
- * { minValue: 40.1, maxValue: 50, count: 351 },
132
- * { minValue: 50.1, maxValue: 60, count: 100 },
133
- * { minValue: 60.1, maxValue: 70, count: 1 }
134
- * ];
135
- * ```
136
- */
137
- bins?: HistogramBin[];
138
- /**
139
- * When set, renders lines on the histogram that indicate important or
140
- * meaningful values to the end user.
141
- *
142
- * @example
143
- * ```js
144
- * // will render lines at the 25th, 50th, 75th, and 99th percentiles
145
- * histogram.dataLines = [{
146
- * value: 30,
147
- * label: "25 pctl"
148
- * }, {
149
- * value: 45,
150
- * label: "50 pctl"
151
- * }, {
152
- * value: 65,
153
- * label: "75 pctl"
154
- * }, {
155
- * value: 89,
156
- * label: "99 pctl"
157
- * }];
158
- * ```
159
- * @example
160
- * ```js
161
- * // calculate standard deviations from mean using stats
162
- * // returned from smart mapping statistic methods
163
- * const stddevs = smartMappingUtils.getDeviationValues(stats.stddev, stats.avg, 2);
164
- * histogram.dataLines = stddevs.map((stddev) => {
165
- * return {
166
- * value: stddev
167
- * };
168
- * });
169
- * ```
170
- * @see [smartMappingUtils.getDeviationValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#getDeviationValues)
171
- */
172
- dataLines?: DataLine[];
173
- /** The component's default label. */
174
- label?: string;
175
- /**
176
- * A function used to format labels on the histogram. Overrides the default label formatter.
177
- *
178
- * @example
179
- * ```js
180
- * // For thumb values, rounds each label to whole numbers.
181
- * slider.labelFormatFunction = (value) => {
182
- * return value.toFixed(0);
183
- * }
184
- * ```
185
- */
186
- labelFormatFunction?: HistogramLabelFormatFunction;
187
- /**
188
- * Determines the orientation of the histogram.
189
- *
190
- * @default "horizontal"
191
- * @example
192
- * ```js
193
- * histogram.layout = "vertical";
194
- * ```
195
- */
196
- layout: HistogramLayout;
197
- /**
198
- * The maximum value or bound of the entire histogram. This
199
- * should match the maximum bound of the last [bin](#bins).
200
- *
201
- * @example
202
- * ```js
203
- * histogram.max = 100;
204
- * ```
205
- * @example
206
- * ```js
207
- * // sets result returned from a smart mapping method
208
- * // to the histogram
209
- * histogram.max = response.statistics.max;
210
- * ```
211
- */
212
- max?: number;
213
- /**
214
- * The minimum value or bound of the entire histogram. This
215
- * should match the minimum bound of the first [bin](#bins).
216
- *
217
- * @example
218
- * ```js
219
- * histogram.min = 0;
220
- * ```
221
- * @example
222
- * ```js
223
- * // sets result returned from a smart mapping method
224
- * // to the histogram
225
- * histogram.min = response.statistics.min;
226
- * ```
227
- */
228
- min?: number;
229
- /**
230
- * When set to `true`, overlapping classed color stops will be blended together to create the color of the bar.
231
- * This allows to show a if a bar representing a bin overlaps with multiple classed color stops.
232
- *
233
- * This property is only applicable when the [colorStops](#colorStops) property is set to classed color stops.
234
- *
235
- * @default false
236
- */
237
- colorBlendingEnabled: boolean;
238
- private _messages;
239
- }
51
+ export abstract class ArcgisHistogram extends LitElement {
52
+ /** @internal */
53
+ protected _messages: Partial<{
54
+ componentLabel: string;
55
+ barLabel: string;
56
+ }> & T9nMeta<{
57
+ componentLabel: string;
58
+ barLabel: string;
59
+ }>;
60
+ /**
61
+ * The statistical average of the data in the histogram. You would typically
62
+ * get this value from the `avg` property of
63
+ * [SummaryStatisticsResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult),
64
+ * which is the result of the
65
+ * [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics) function.
66
+ *
67
+ * When set, this value will render on the histogram with a symbol indicating it is the average.
68
+ *
69
+ * @see [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
70
+ * @example
71
+ * ```js
72
+ * // sets result returned from a smart mapping method
73
+ * // to the histogram
74
+ * histogram.average = response.statistics.avg;
75
+ * ```
76
+ * @example
77
+ * ```js
78
+ * histogram.average = 34.5;
79
+ * ```
80
+ */
81
+ accessor average: number | undefined;
82
+ /**
83
+ * An array of objects representing each bin in the histogram. This
84
+ * information is typically returned from the
85
+ * [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram) function.
86
+ *
87
+ * @example
88
+ * ```js
89
+ * // sets the bins of the histogram from the bins in the histogram() result
90
+ * histogram.bins = histogramResult.bins;
91
+ * ```
92
+ * @example
93
+ * ```js
94
+ * // Creates a histogram with 7 bins.
95
+ * histogram.bins = [
96
+ * { minValue: 0, maxValue: 10, count: 4 },
97
+ * { minValue: 10.1, maxValue: 20, count: 14 },
98
+ * { minValue: 20.1, maxValue: 30, count: 9 },
99
+ * { minValue: 30.1, maxValue: 40, count: 34 },
100
+ * { minValue: 40.1, maxValue: 50, count: 351 },
101
+ * { minValue: 50.1, maxValue: 60, count: 100 },
102
+ * { minValue: 60.1, maxValue: 70, count: 1 }
103
+ * ];
104
+ * ```
105
+ */
106
+ accessor bins: HistogramBin[] | undefined;
107
+ /**
108
+ * When set to `true`, overlapping classed color stops will be blended together to create the color of the bar.
109
+ * This allows to show a if a bar representing a bin overlaps with multiple classed color stops.
110
+ *
111
+ * This property is only applicable when the [colorStops](#colorStops) property is set to classed color stops.
112
+ *
113
+ * @default false
114
+ */
115
+ accessor colorBlendingEnabled: boolean;
116
+ /**
117
+ * An array of color stops used to define the color scheme for the histogram bars.
118
+ * There are two types of color stops:
119
+ * - **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
+ * colors of the stops surrounding the value of the bin.
121
+ * - **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.
123
+ *
124
+ * @example
125
+ * ```js
126
+ * // Define continuous color stops on the histogram.
127
+ * // The color of the bar is determined by interpolating between the colors of the stops surrounding the value of the bin.
128
+ * histogram.colorStops = [
129
+ * { color: "#ff0000", value: 0 },
130
+ * { color: "#ffff00", value: 50 },
131
+ * { color: "#00ff00", value: 100 }
132
+ * ];
133
+ * ```
134
+ * @example
135
+ * ```js
136
+ * // Define classed color stops on the histogram.
137
+ * // The color of the bar is determined by the color of the stop that contains the value of the bin.
138
+ * histogram.colorStops = [
139
+ * { color: "#ff0000", minValue: 0, maxValue: 50 },
140
+ * { color: "#00ff00", minValue: 50, maxValue: 100 },
141
+ * ];
142
+ * ```
143
+ */
144
+ accessor colorStops: HistogramColorStops | undefined;
145
+ /**
146
+ * When set, renders lines on the histogram that indicate important or
147
+ * meaningful values to the end user.
148
+ *
149
+ * @example
150
+ * ```js
151
+ * // will render lines at the 25th, 50th, 75th, and 99th percentiles
152
+ * histogram.dataLines = [{
153
+ * value: 30,
154
+ * label: "25 pctl"
155
+ * }, {
156
+ * value: 45,
157
+ * label: "50 pctl"
158
+ * }, {
159
+ * value: 65,
160
+ * label: "75 pctl"
161
+ * }, {
162
+ * value: 89,
163
+ * label: "99 pctl"
164
+ * }];
165
+ * ```
166
+ * @example
167
+ * ```js
168
+ * // calculate standard deviations from mean using stats
169
+ * // returned from smart mapping statistic methods
170
+ * const stddevs = smartMappingUtils.getDeviationValues(stats.stddev, stats.avg, 2);
171
+ * histogram.dataLines = stddevs.map((stddev) => {
172
+ * return {
173
+ * value: stddev
174
+ * };
175
+ * });
176
+ * ```
177
+ * @see [smartMappingUtils.getDeviationValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#getDeviationValues)
178
+ */
179
+ accessor dataLines: DataLine[] | undefined;
180
+ /**
181
+ * Icon which represents the component.
182
+ * Typically used when the component is controlled by another component (e.g. by the Expand component).
183
+ * Search [Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/) for possible values.
184
+ *
185
+ * @default "graph-histogram"
186
+ */
187
+ accessor icon: string | undefined;
188
+ /** The component's default label. */
189
+ accessor label: string | undefined;
190
+ /**
191
+ * A function used to format labels on the histogram. Overrides the default label formatter.
192
+ *
193
+ * @example
194
+ * ```js
195
+ * // For thumb values, rounds each label to whole numbers.
196
+ * slider.labelFormatFunction = (value) => {
197
+ * return value.toFixed(0);
198
+ * }
199
+ * ```
200
+ */
201
+ accessor labelFormatFunction: HistogramLabelFormatFunction | undefined;
202
+ /**
203
+ * Determines the orientation of the histogram.
204
+ *
205
+ * @default "horizontal"
206
+ * @example
207
+ * ```js
208
+ * histogram.layout = "vertical";
209
+ * ```
210
+ */
211
+ accessor layout: HistogramLayout;
212
+ /**
213
+ * The maximum value or bound of the entire histogram. This
214
+ * should match the maximum bound of the last [bin](#bins).
215
+ *
216
+ * @example
217
+ * ```js
218
+ * histogram.max = 100;
219
+ * ```
220
+ * @example
221
+ * ```js
222
+ * // sets result returned from a smart mapping method
223
+ * // to the histogram
224
+ * histogram.max = response.statistics.max;
225
+ * ```
226
+ */
227
+ accessor max: number | undefined;
228
+ /** Replace localized message strings with your own strings. */
229
+ accessor messageOverrides: {
230
+ componentLabel?: string | undefined;
231
+ barLabel?: string | undefined;
232
+ };
233
+ /**
234
+ * The minimum value or bound of the entire histogram. This
235
+ * should match the minimum bound of the first [bin](#bins).
236
+ *
237
+ * @example
238
+ * ```js
239
+ * histogram.min = 0;
240
+ * ```
241
+ * @example
242
+ * ```js
243
+ * // sets result returned from a smart mapping method
244
+ * // to the histogram
245
+ * histogram.min = response.statistics.min;
246
+ * ```
247
+ */
248
+ accessor min: number | undefined;
249
+ accessor standardDeviation: number | undefined;
250
+ }
@@ -5,7 +5,7 @@ import { LitElement as k, safeClassMap as p, nothing as u, safeStyleMap as w } f
5
5
  import { css as R, html as L, svg as b } from "lit";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.135 */
8
+ v5.0.0-next.137 */
9
9
  const f = {
10
10
  content: "content",
11
11
  svg: "svg",
@@ -1,46 +1,38 @@
1
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+
1
3
  /**
2
4
  * Function used to format labels. This function should be set to the
3
5
  * [labelFormatFunction](#labelFormatFunction) property. This function fires
4
6
  * every time a label is created or updated on the histogram.
5
7
  *
6
8
  * @param value - The value for the line on the data axis.
7
- *
8
9
  * @return The formatted value of the label.
9
10
  */
10
11
  export type HistogramLabelFormatFunction = (value: number) => string;
12
+
11
13
  export type DataLine = {
12
- value: number;
13
- label?: nullish | number | string;
14
+ value: number;
15
+ label?: nullish | number | string;
16
+ };
17
+
18
+ export type HistogramColorStops = HistogramClassedColorStop[] | HistogramContinuousColorStop[];
19
+
20
+ export type HistogramLayout = "horizontal" | "vertical";
21
+
22
+ export type HistogramContinuousColorStop = {
23
+ color: HistogramColor;
24
+ value: number;
25
+ };
26
+
27
+ export type HistogramClassedColorStop = {
28
+ color?: HistogramColor;
29
+ minValue: number;
30
+ maxValue: number;
14
31
  };
15
- export interface SymbolDataLine {
16
- value: number;
17
- symbol: "x̄" | `-${number | ""}σ` | `+${number | ""}σ`;
18
- lineClass?: string;
19
- }
32
+
20
33
  export type HistogramColor = number[] | string | {
21
34
  r?: number;
22
35
  g?: number;
23
36
  b?: number;
24
37
  a?: number;
25
- };
26
- export type HistogramContinuousColorStop = {
27
- color: HistogramColor;
28
- value: number;
29
- };
30
- export type HistogramClassedColorStop = {
31
- color?: HistogramColor;
32
- minValue: number;
33
- maxValue: number;
34
- };
35
- export type HistogramColorStops = HistogramClassedColorStop[] | HistogramContinuousColorStop[];
36
- export type NormalizedHistogramContinuousColorStop = {
37
- color: string;
38
- value: number;
39
- };
40
- export type NormalizedHistogramClassedColorStop = {
41
- color: string;
42
- minValue: number;
43
- maxValue: number;
44
- };
45
- export type NormalizedHistogramColorStops = NormalizedHistogramClassedColorStop[] | NormalizedHistogramContinuousColorStop[];
46
- export type HistogramLayout = "horizontal" | "vertical";
38
+ };
@@ -1,47 +1,48 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
3
- import { PropertyValues } from 'lit';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
5
+ import type { InputNumber as InputNumber } from "@esri/calcite-components/components/calcite-input-number";
4
6
 
5
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-label-input/) */
6
- export declare class ArcgisLabelInput extends LitElement {
7
- /**
8
- * Specifies the alignment of the component's text elements.
9
- *
10
- * @default "center"
11
- */
12
- alignment: HTMLCalciteButtonElement["alignment"] & HTMLCalciteInputNumberElement["alignment"];
13
- /**
14
- * Indicates whether the component is in edit mode.
15
- * This value changes when user interacts with the component or when [edit()](#edit) is called.
16
- * The value is always `false` when the component is in [read-only](#readOnly) mode.
17
- *
18
- * @default false
19
- * @see [edit()](#edit)
20
- */
21
- get editing(): boolean;
22
- /** A function used to format the value. */
23
- labelFormatter?: (value: number, defaultFormatter: (value: number) => string) => nullish | string;
24
- /**
25
- * Indicates whether the component is in read-only mode.
26
- *
27
- * @default false
28
- */
29
- readOnly: boolean;
30
- /**
31
- * The value the component displays.
32
- *
33
- * @default 0
34
- */
35
- value: number;
36
- /**
37
- * Initiates the edit mode for the component.
38
- *
39
- * @see [editing](#editing)
40
- */
41
- edit(): Promise<void>;
42
- /** Fires each time a new value is typed and committed. */
43
- readonly arcgisChange: TargetedEvent<this, void>;
44
- "@eventTypes": {
45
- "arcgisChange": ArcgisLabelInput["arcgisChange"]["detail"];
46
- };
47
- }
7
+ export abstract class ArcgisLabelInput extends LitElement {
8
+ /**
9
+ * Specifies the alignment of the component's text elements.
10
+ *
11
+ * @default "center"
12
+ */
13
+ accessor alignment: Button["alignment"] & InputNumber["alignment"];
14
+ /**
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.
18
+ *
19
+ * @default false
20
+ * @see [edit()](#edit)
21
+ */
22
+ get editing(): boolean;
23
+ /** A function used to format the value. */
24
+ accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
25
+ /**
26
+ * Indicates whether the component is in read-only mode.
27
+ *
28
+ * @default false
29
+ */
30
+ accessor readOnly: boolean;
31
+ /**
32
+ * The value the component displays.
33
+ *
34
+ * @default 0
35
+ */
36
+ accessor value: number;
37
+ /**
38
+ * Initiates the edit mode for the component.
39
+ *
40
+ * @see [editing](#editing)
41
+ */
42
+ edit(): Promise<void>;
43
+ /** Fires each time a new value is typed and committed. */
44
+ readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
45
+ readonly "@eventTypes": {
46
+ arcgisChange: ArcgisLabelInput["arcgisChange"]["detail"];
47
+ };
48
+ }
@@ -5,7 +5,7 @@ import { createRef as n, ref as a } from "lit/directives/ref.js";
5
5
  import { css as h, html as s } from "lit";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.135 */
8
+ v5.0.0-next.137 */
9
9
  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:1rem;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}`;
10
10
  class d extends o {
11
11
  constructor() {
@@ -1,3 +1 @@
1
- import "@esri/calcite-components/components/calcite-button";
2
- import "@esri/calcite-components/components/calcite-input-number";
3
1
  export * from "./customElement.js";