@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.
- package/dist/cdn/{O63ZTZG5.js → 2CMN2PLW.js} +2 -2
- package/dist/cdn/{QEMZUVQL.js → 3D5FKOXY.js} +2 -2
- package/dist/cdn/{XVOXEDSL.js → 43YNUTPG.js} +2 -2
- package/dist/cdn/{RNS5S5UL.js → 4I34IC6Q.js} +2 -2
- package/dist/cdn/{BXXIZYBD.js → 5CDET57O.js} +2 -2
- package/dist/cdn/{5Z2QK75J.js → 6DBUX6JF.js} +1 -1
- package/dist/cdn/ACOIQKWZ.js +6 -0
- package/dist/cdn/{K3LTU64J.js → BAXXL46B.js} +2 -2
- package/dist/cdn/{FREENMNZ.js → CMYVMNBW.js} +2 -2
- package/dist/cdn/{BAEY2UNC.js → ENYQISNB.js} +2 -2
- package/dist/cdn/{IGSEZSZY.js → GTFPNZX7.js} +2 -2
- package/dist/cdn/{LC3J3GLV.js → HRF4HSM5.js} +2 -2
- package/dist/cdn/{LNDXDU5Z.js → IC6DINF6.js} +123 -123
- package/dist/cdn/{4JREURGY.js → KY3QFUVB.js} +2 -2
- package/dist/cdn/{RD2QMBYZ.js → KYBEHVPR.js} +2 -2
- package/dist/cdn/{Y2EXN4GQ.js → L63ONHBD.js} +2 -2
- package/dist/cdn/{C2DNC2YJ.js → NFPYN5F7.js} +1 -1
- package/dist/cdn/{SYONVE3P.js → OGEHJX2A.js} +2 -2
- package/dist/cdn/{62JZVUW3.js → R4UCTMNW.js} +2 -2
- package/dist/cdn/{G7BIJSLP.js → ROYSN427.js} +2 -2
- package/dist/cdn/{3CIN6YRD.js → X5QI7LLG.js} +1 -1
- package/dist/cdn/{JVNYGVN3.js → YAIYR7HY.js} +2 -2
- package/dist/cdn/{ZDJE23FU.js → YJBSULAA.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/commonFunctions.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +94 -98
- package/dist/components/arcgis-ckeditor5/customElement.js +6887 -7708
- package/dist/components/arcgis-ckeditor5/types.d.ts +4 -7
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +37 -38
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
- package/dist/components/arcgis-ckeditor5-popover/index.d.ts +0 -2
- package/dist/components/arcgis-color-input/customElement.d.ts +105 -82
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-color-input/index.d.ts +0 -5
- package/dist/components/arcgis-field-info/customElement.d.ts +204 -41
- package/dist/components/arcgis-field-info/customElement.js +1 -1
- package/dist/components/arcgis-field-info/utils/basic.d.ts +2 -36
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +196 -170
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- package/dist/components/arcgis-field-pick-list/index.d.ts +0 -13
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +2 -1
- package/dist/components/arcgis-histogram/customElement.d.ts +206 -195
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram/types.d.ts +22 -30
- package/dist/components/arcgis-label-input/customElement.d.ts +46 -45
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-label-input/index.d.ts +0 -2
- package/dist/components/arcgis-picker-input/customElement.d.ts +41 -41
- package/dist/components/arcgis-picker-input/customElement.js +2 -2
- package/dist/components/arcgis-picker-input/index.d.ts +0 -4
- package/dist/components/arcgis-ramp-color/customElement.d.ts +16 -17
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.d.ts +17 -18
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/index.d.ts +0 -1
- package/dist/components/arcgis-ramp-opacity/customElement.d.ts +16 -18
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/index.d.ts +0 -1
- package/dist/components/arcgis-slider/customElement.d.ts +287 -287
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-slider/index.d.ts +0 -2
- package/dist/components/arcgis-slider-input/customElement.d.ts +57 -58
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-slider-input/index.d.ts +0 -2
- package/dist/components/arcgis-ticks/customElement.d.ts +99 -94
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +106 -89
- package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/index.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +2 -9
- package/dist/docs/api.json +1 -7276
- package/dist/docs/docs.json +1 -6072
- package/dist/docs/vscode.css-custom-data.json +1 -27
- package/dist/docs/vscode.html-custom-data.json +1 -1185
- package/dist/docs/web-types.json +1 -2387
- package/dist/index.d.ts +30 -23
- package/dist/index.js +1 -1
- package/dist/loader.js +11 -11
- package/dist/types/lumina.d.ts +54 -54
- package/dist/types/preact.d.ts +54 -54
- package/dist/types/react.d.ts +54 -54
- package/dist/types/stencil.d.ts +54 -54
- package/dist/utils/types.d.ts +33 -29
- package/package.json +6 -4
- package/dist/cdn/ZMDBYWZB.js +0 -6
- package/dist/components/arcgis-ckeditor5/resources.d.ts +0 -9
- package/dist/components/arcgis-field-info/utils/feature.d.ts +0 -21
- package/dist/components/arcgis-field-info/utils/field.d.ts +0 -30
- package/dist/components/arcgis-field-info/utils/index.d.ts +0 -3
- package/dist/components/arcgis-histogram/css.d.ts +0 -8
- package/dist/components/arcgis-histogram/histogramSample.d.ts +0 -25
- package/dist/components/arcgis-histogram/utils.d.ts +0 -19
- package/dist/components/arcgis-slider/SliderData.d.ts +0 -37
- package/dist/components/arcgis-slider/stepsUtils.d.ts +0 -52
- package/dist/components/arcgis-ticks/css.d.ts +0 -11
- package/dist/components/arcgis-unique-values-list/utils/date.d.ts +0 -7
- package/dist/components/arcgis-unique-values-list/utils/domain.d.ts +0 -5
- package/dist/components/arcgis-unique-values-list/utils/field.d.ts +0 -3
- package/dist/components/arcgis-unique-values-list/utils/index.d.ts +0 -4
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/utils/commonFunctions.d.ts +0 -28
- package/dist/utils/dom.d.ts +0 -7
- package/dist/utils/functional.d.ts +0 -16
- package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
- package/dist/utils/storage.d.ts +0 -3
- 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
|
|
3
|
-
import { HistogramBin } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
* [
|
|
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
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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.
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
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.
|
|
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() {
|