@arcgis/common-components 5.1.0-next.6 → 5.1.0-next.61

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 (70) hide show
  1. package/README.md +24 -1
  2. package/dist/cdn/{ZLXAKPUH.js → 3B5FXQSX.js} +1 -1
  3. package/dist/cdn/7AMLQYVM.js +4 -0
  4. package/dist/cdn/7JIHCVH3.js +2 -0
  5. package/dist/cdn/{4CW7U27R.js → 7OF5SF2A.js} +1 -1
  6. package/dist/cdn/{YVSTPEPS.js → ALWVIWUC.js} +1 -1
  7. package/dist/cdn/{C6JAR4IN.js → AQWVYBZF.js} +1 -1
  8. package/dist/cdn/{J5X5TNVW.js → DX3WIISQ.js} +1 -1
  9. package/dist/cdn/{7HQMPKZO.js → E4EVLDYS.js} +1 -1
  10. package/dist/cdn/{ZOWIFVL3.js → HEQCNDQR.js} +1 -1
  11. package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
  12. package/dist/cdn/{AXTSUI2Q.js → IQXW4J56.js} +1 -1
  13. package/dist/cdn/IRXTWEQW.js +2 -0
  14. package/dist/cdn/LYESES6I.js +2 -0
  15. package/dist/cdn/MB7UDGWW.js +2 -0
  16. package/dist/cdn/{3O7GAC23.js → N4R5SMWN.js} +1 -1
  17. package/dist/cdn/{4DCAUWTC.js → NHRIURQU.js} +1 -1
  18. package/dist/cdn/{7PB2GGQH.js → QH2547O7.js} +1 -1
  19. package/dist/cdn/QLSLMEU5.js +2 -0
  20. package/dist/cdn/{XEB2RUND.js → SF2NJOD3.js} +1 -1
  21. package/dist/cdn/{7Y42J3JI.js → YOEHJTF2.js} +1 -1
  22. package/dist/cdn/{23DDMSOB.js → ZCGHCFFN.js} +1 -1
  23. package/dist/cdn/index.js +1 -1
  24. package/dist/chunks/commonFunctions.js +7 -3
  25. package/dist/components/arcgis-ckeditor5/customElement.d.ts +1 -0
  26. package/dist/components/arcgis-ckeditor5/types.d.ts +9 -0
  27. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +1 -0
  28. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  29. package/dist/components/arcgis-color-input/customElement.d.ts +1 -0
  30. package/dist/components/arcgis-field-info/customElement.d.ts +3 -2
  31. package/dist/components/arcgis-field-info/utils/basic.d.ts +21 -2
  32. package/dist/components/arcgis-field-pick-list/customElement.d.ts +4 -3
  33. package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
  34. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +25 -3
  35. package/dist/components/arcgis-histogram/customElement.d.ts +21 -21
  36. package/dist/components/arcgis-histogram/customElement.js +81 -90
  37. package/dist/components/arcgis-histogram/types.d.ts +1 -3
  38. package/dist/components/arcgis-label-input/customElement.d.ts +6 -6
  39. package/dist/components/arcgis-label-input/customElement.js +22 -17
  40. package/dist/components/arcgis-picker-input/customElement.d.ts +1 -0
  41. package/dist/components/arcgis-picker-input/customElement.js +11 -11
  42. package/dist/components/arcgis-ramp-color/customElement.d.ts +2 -0
  43. package/dist/components/arcgis-ramp-color-break/customElement.d.ts +2 -0
  44. package/dist/components/arcgis-ramp-opacity/customElement.d.ts +1 -0
  45. package/dist/components/arcgis-slider/customElement.d.ts +53 -55
  46. package/dist/components/arcgis-slider/customElement.js +383 -343
  47. package/dist/components/arcgis-slider-input/customElement.d.ts +1 -0
  48. package/dist/components/arcgis-ticks/customElement.d.ts +17 -22
  49. package/dist/components/arcgis-ticks/customElement.js +1 -1
  50. package/dist/components/arcgis-ticks/types.d.ts +23 -0
  51. package/dist/components/arcgis-unique-values-list/customElement.d.ts +14 -5
  52. package/dist/components/arcgis-unique-values-list/customElement.js +158 -151
  53. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +14 -2
  54. package/dist/docs/api.json +1 -1
  55. package/dist/docs/docs.json +1 -1
  56. package/dist/docs/vscode.html-custom-data.json +1 -1
  57. package/dist/docs/web-types.json +1 -1
  58. package/dist/loader.js +1 -1
  59. package/dist/types/lumina.d.ts +1 -1
  60. package/dist/types/preact.d.ts +1 -1
  61. package/dist/types/react.d.ts +1 -1
  62. package/dist/types/stencil.d.ts +1 -1
  63. package/dist/utils/types.d.ts +24 -7
  64. package/package.json +5 -5
  65. package/dist/cdn/2BDHDUXG.js +0 -2
  66. package/dist/cdn/57I35HLF.js +0 -2
  67. package/dist/cdn/6DQVLQL6.js +0 -2
  68. package/dist/cdn/EKKJN7WZ.js +0 -2
  69. package/dist/cdn/UTXWKXMT.js +0 -4
  70. package/dist/cdn/ZL3E4ZGE.js +0 -2
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
 
4
+ /** @internal */
4
5
  export abstract class ArcgisSliderInput extends LitElement {
5
6
  /**
6
7
  * If true, prevents interaction with the component.
@@ -1,24 +1,24 @@
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";
3
+ import type { Layout, TickMode, TickValues } from "./types.js";
4
4
 
5
5
  /**
6
6
  * The ticks component displays visual markers along a line to indicate scale, intervals, or specific values. It is often used in conjunction with the
7
- * [Slider component](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-slider/). Ticks help users understand the
7
+ * [Slider component](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/). Ticks help users understand the
8
8
  * slider’s range and make more precise selections.
9
9
  *
10
- * Tick placement is controlled by the [mode](#mode), which defines how the [values](#values) are parsed and translated into positions along the
11
- * line. Tick positions are derived from the component’s [min](#min) and [max](#max) range, with optional none-linear scaling via
12
- * [interpolationExponent](#interpolationExponent). Ticks can be displayed in vertical or horizontal [layouts](#layout), with optional [labels](#showLabels) and a [baseline](#showBaseline).
13
- * The component can also be made [interactive](#interactive) to respond to user clicks on individual ticks. The [labelFormatter](#labelFormatter) property allows customization of tick label formatting.
10
+ * Tick placement is controlled by the [mode](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#mode), which defines how the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) are parsed and translated into positions along the
11
+ * line. Tick positions are derived from the component’s [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#max) range, with optional non-linear scaling via
12
+ * [interpolationExponent](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interpolationExponent). Ticks can be displayed in vertical or horizontal [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#layout), with optional [showLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showLabels) and a [showBaseline](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#showBaseline).
13
+ * The component can also be made [interactive](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#interactive) to respond to user clicks on individual ticks. The [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#labelFormatter) property allows customization of tick label formatting.
14
14
  *
15
15
  * @cssproperty [--arcgis-ticks-tick-length] - Specifies the length of the ticks.
16
16
  * @cssproperty [--arcgis-ticks-tick-color] - Specifies the color of the ticks.
17
17
  * @cssproperty [--arcgis-ticks-gap] - Specifies the gap between the ticks and labels.
18
18
  * @since 5.0
19
19
  * @example
20
- * The following example creates a vertical slider with vertical ticks displayed at every 10 units from 0 to 100.
21
- * The ticks are labeled and positioned on the end side of the slider.
20
+ * The following example creates a vertical slider and ticks.
21
+ * The ticks are positioned at the end of the slider and displayed every 10 units from 0 to 100.
22
22
  * ```html
23
23
  * <arcgis-slider id="sliderComponent" min="0" max="100" show-range-labels values="50" layout="vertical">
24
24
  * <arcgis-ticks slot="content-end" style="flex:1;"
@@ -34,7 +34,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
34
34
  */
35
35
  export abstract class ArcgisTicks extends LitElement {
36
36
  /**
37
- * When `true`, ticks are clickable and the component emits [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick) when the user selects a tick.
37
+ * When `true`, ticks are clickable and the component emits [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick) when the user selects a tick.
38
38
  *
39
39
  * @default false
40
40
  * @see [@arcgisTickClick](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#event-arcgisTickClick)
@@ -65,7 +65,7 @@ export abstract class ArcgisTicks extends LitElement {
65
65
  * };
66
66
  * ```
67
67
  */
68
- accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
68
+ accessor labelFormatter: (value: number, defaultFormatter: (value: number) => string) => string | null | undefined;
69
69
  /**
70
70
  * Determines whether the labels are placed before or after the ticks.
71
71
  *
@@ -98,10 +98,11 @@ export abstract class ArcgisTicks extends LitElement {
98
98
  */
99
99
  accessor mirrored: boolean;
100
100
  /**
101
- * The mode or method of positioning ticks along the component. It drives how [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
102
- * - `count`: Places a fixed number of ticks (provided in the [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) property) at equal distances from each other.
103
- * - `percent`: [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted as percentage. If [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
104
- * - `value`: Indicates that ticks will only be placed at the values specified in the property.
101
+ * The manner in which ticks are positioned along the component. It determines how [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
102
+ *
103
+ * - `count`: Places a fixed number of ticks (specified in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values)) at equal intervals.
104
+ * - `percent`: Interprets [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) as percentages. If it's a single number, that number is the interval between ticks; if it's an array, the array specifies the percentage positions for ticks.
105
+ * - `value`: Places ticks only at the values listed in [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values).
105
106
  *
106
107
  * @default "count"
107
108
  * @example
@@ -118,7 +119,7 @@ export abstract class ArcgisTicks extends LitElement {
118
119
  * </arcgis-slider>
119
120
  * ```
120
121
  * @example
121
- * In count mode, values is the number of ticks to render (not a list of tick values).
122
+ * In count mode, values specifies the number of ticks to render (not a list of tick values).
122
123
  * For example, use `11` ticks to show 0–100 in steps of 10 (0, 10, 20, ..., 100).
123
124
  * ```html
124
125
  * <!-- 11 ticks from 0 to 100 -->
@@ -186,10 +187,4 @@ export abstract class ArcgisTicks extends LitElement {
186
187
  readonly "@eventTypes": {
187
188
  arcgisTickClick: ArcgisTicks["arcgisTickClick"]["detail"];
188
189
  };
189
- }
190
-
191
- export type Layout = "horizontal" | "vertical";
192
-
193
- export type TickMode = "count" | "percent" | "value";
194
-
195
- export type TickValues = number[] | number;
190
+ }
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as $ } from "../../chunks/runtime.js";
3
3
  import { css as M, html as c } from "lit";
4
- import { LitElement as _, createEvent as C, safeClassMap as h, safeStyleMap as u, nothing as v } from "@arcgis/lumina";
4
+ import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as u } from "@arcgis/lumina";
5
5
  import { formatNumber as z } from "@arcgis/core/intl.js";
6
6
  const n = {
7
7
  container: "container",
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The layout of the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component, which determines the orientation of the ticks.
3
+ *
4
+ * @since 5.0
5
+ */
6
+ export type Layout = "horizontal" | "vertical";
7
+
8
+ /**
9
+ * The mode of positioning ticks along the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component. It drives how [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted.
10
+ * - `count`: Places a fixed number of ticks (provided in the [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) property) at equal distances from each other.
11
+ * - `percent`: [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is interpreted as percentage. If [arcgis-ticks.values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/#values) is a number, it indicates the interval between ticks. If it is an array, it indicates the percentage values at which to place the ticks.
12
+ * - `value`: Indicates that ticks will only be placed at the values specified in the property.
13
+ *
14
+ * @since 5.0
15
+ */
16
+ export type TickMode = "count" | "percent" | "value";
17
+
18
+ /**
19
+ * Indicates where ticks will be rendered along the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component.
20
+ *
21
+ * @since 5.0
22
+ */
23
+ export type TickValues = number[] | number;
@@ -1,10 +1,17 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
+ import type SceneView from "@arcgis/core/views/SceneView.js";
3
+ import type MapView from "@arcgis/core/views/MapView.js";
3
4
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
+ import type { UniqueValueCountInfo } from "@arcgis/core/smartMapping/statistics/types.js";
4
6
  import type { SupportedLayer } from "./utils/basic.js";
7
+ import type { VisualizationSource } from "../../utils/types.js";
5
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
6
9
 
7
- /** Displays a list of unique values taking into account field type formatting and field domains. */
10
+ /**
11
+ * Displays a list of unique values taking into account field type formatting and field domains.
12
+ *
13
+ * @internal
14
+ */
8
15
  export abstract class ArcgisUniqueValuesList extends LitElement {
9
16
  /** @internal */
10
17
  protected _messages: {
@@ -81,15 +88,17 @@ export abstract class ArcgisUniqueValuesList extends LitElement {
81
88
  * List of all unique values. If not provided component will get the unique values from the layer.
82
89
  * An empty list would mean that there are no unique values for this field on the layer. The component renders nothing then.
83
90
  */
84
- accessor uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[] | undefined;
91
+ accessor uniqueValues: UniqueValueCountInfo[] | undefined;
85
92
  /** MapView instance, required if uniqueValues is not provided and/or to display dates in the correct timezone */
86
- accessor view: __esri.MapView | __esri.SceneView | undefined;
93
+ accessor view: MapView | SceneView | undefined;
94
+ /** Optional, specify visualization source other than the layer itself. */
95
+ accessor visualizationSource: VisualizationSource | undefined;
87
96
  /**
88
97
  * Get all unique values.
89
98
  * E.g. to be used to limit how often these unique values need to be requested from the layer.
90
99
  */
91
100
  getUniqueValues(): Promise<{
92
- uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[];
101
+ uniqueValues: UniqueValueCountInfo[];
93
102
  partialUniqueValues: boolean;
94
103
  } | undefined>;
95
104
  /** Sets focus on component */