@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,60 +1,59 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
3
3
 
4
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-slider-input/) */
5
- export declare class ArcgisSliderInput extends LitElement {
6
- /**
7
- * If true, prevents interaction with the component.
8
- *
9
- * @default false
10
- */
11
- disabled: boolean;
12
- /** Label for the component. */
13
- label?: string;
14
- /**
15
- * Handle LTR and RTL label placement.
16
- *
17
- * @default false
18
- */
19
- flipLabels: boolean;
20
- /**
21
- * Min value for the component.
22
- *
23
- * @default 0
24
- */
25
- min: number;
26
- /**
27
- * Max value for the component.
28
- *
29
- * @default 100
30
- */
31
- max: number;
32
- /**
33
- * Initial value for the component.
34
- *
35
- * @default 50
36
- */
37
- value: number;
38
- /**
39
- * Increment interval for the component.
40
- *
41
- * @default 1
42
- */
43
- step: number;
44
- /** If provided, specifies units for the input. */
45
- unitsLabel?: string;
46
- /**
47
- * If true, adds up/down arrows to the input.
48
- *
49
- * @default false
50
- */
51
- withSteppers: boolean;
52
- /** @deprecated use arcgisValueChange instead. */
53
- readonly arcgisSliderInputValueChange: TargetedEvent<this, number>;
54
- /** Emitted when the value has changed. */
55
- readonly arcgisValueChange: TargetedEvent<this, number>;
56
- "@eventTypes": {
57
- "arcgisSliderInputValueChange": ArcgisSliderInput["arcgisSliderInputValueChange"]["detail"];
58
- "arcgisValueChange": ArcgisSliderInput["arcgisValueChange"]["detail"];
59
- };
60
- }
4
+ export abstract class ArcgisSliderInput extends LitElement {
5
+ /**
6
+ * If true, prevents interaction with the component.
7
+ *
8
+ * @default false
9
+ */
10
+ accessor disabled: boolean;
11
+ /**
12
+ * Handle LTR and RTL label placement.
13
+ *
14
+ * @default false
15
+ */
16
+ accessor flipLabels: boolean;
17
+ /** Label for the component. */
18
+ accessor label: string | undefined;
19
+ /**
20
+ * Max value for the component.
21
+ *
22
+ * @default 100
23
+ */
24
+ accessor max: number;
25
+ /**
26
+ * Min value for the component.
27
+ *
28
+ * @default 0
29
+ */
30
+ accessor min: number;
31
+ /**
32
+ * Increment interval for the component.
33
+ *
34
+ * @default 1
35
+ */
36
+ accessor step: number;
37
+ /** If provided, specifies units for the input. */
38
+ accessor unitsLabel: string | undefined;
39
+ /**
40
+ * Initial value for the component.
41
+ *
42
+ * @default 50
43
+ */
44
+ accessor value: number;
45
+ /**
46
+ * If true, adds up/down arrows to the input.
47
+ *
48
+ * @default false
49
+ */
50
+ accessor withSteppers: boolean;
51
+ /** @deprecated use arcgisValueChange instead. */
52
+ readonly arcgisSliderInputValueChange: import("@arcgis/lumina").TargetedEvent<this, number>;
53
+ /** Emitted when the value has changed. */
54
+ readonly arcgisValueChange: import("@arcgis/lumina").TargetedEvent<this, number>;
55
+ readonly "@eventTypes": {
56
+ arcgisSliderInputValueChange: ArcgisSliderInput["arcgisSliderInputValueChange"]["detail"];
57
+ arcgisValueChange: ArcgisSliderInput["arcgisValueChange"]["detail"];
58
+ };
59
+ }
@@ -4,7 +4,7 @@ import { LitElement as o, createEvent as c } from "@arcgis/lumina";
4
4
  import { debounce as b } from "@arcgis/toolkit/function";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.135 */
7
+ v5.0.0-next.137 */
8
8
  const g = h`.container{display:flex;align-items:center;justify-content:space-between;position:relative}.slider{width:50%}.input{width:45%}`;
9
9
  class $ extends o {
10
10
  constructor() {
@@ -1,3 +1 @@
1
- import "@esri/calcite-components/components/calcite-slider";
2
- import "@esri/calcite-components/components/calcite-input";
3
1
  export * from "./customElement.js";
@@ -1,97 +1,102 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
3
4
 
4
- type Layout = "horizontal" | "vertical";
5
- type TickMode = "count" | "percent" | "value";
6
- type TickValues = number[] | number;
7
- /** [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/) */
8
- export declare class ArcgisTicks extends LitElement {
9
- /**
10
- * When `true`, the component will allow clicking on ticks.
11
- *
12
- * @default false
13
- */
14
- interactive: boolean;
15
- /**
16
- * The exponent used to interpolate the position of ticks along the component.
17
- * A value of `0` indicates linear interpolation. Positive values indicate exponential interpolation, and negative values indicate logarithmic interpolation.
18
- *
19
- * Set this property when the range of values is large and users need precision in the lower range of values (for an exponential interpolation), or in the higher range (for a logarithmic interpolation).
20
- *
21
- * ```tsx
22
- * <arcgis-ticks interpolation-exponent={14} min={1} max={5518000} mode="value" values={[1, 11500, 5518000]} />
23
- * ```
24
- *
25
- * @default 0
26
- */
27
- interpolationExponent: number;
28
- /** A function used to format each tick's label. */
29
- labelFormatter?: (value: number, defaultFormatter: (value: number) => string) => nullish | string;
30
- /**
31
- * Determines whether the labels are placed before or after the ticks.
32
- *
33
- * @default "trailing"
34
- */
35
- labelPlacement: "leading" | "trailing";
36
- /**
37
- * Determines the layout/orientation of the component.
38
- *
39
- * @default "horizontal"
40
- */
41
- layout: Layout;
42
- /**
43
- * The component's maximum rendered value.
44
- *
45
- * @default 100
46
- */
47
- max: number;
48
- /**
49
- * The component's minimum rendered value.
50
- *
51
- * @default 0
52
- */
53
- min: number;
54
- /**
55
- * When `true`, the values are displayed from high to low.
56
- *
57
- * @default false
58
- */
59
- mirrored: boolean;
60
- /**
61
- * The mode or method of positioning ticks along the component. It drives how [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) is interpreted.
62
- * - `count`: Places a fixed number of ticks (provided in the [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) property) at equal distances from each other.
63
- * - `percent`: [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) is interpreted as percentage. If [values](https://developers.arcgis.com/javascript/latest/references/common-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.
64
- * - `value`: Indicates that ticks will only be placed at the values specified in the property.
65
- *
66
- * @default "count"
67
- * @see [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values)
68
- */
69
- mode: TickMode;
70
- /**
71
- * Indicates whether to render labels for the ticks.
72
- *
73
- * @default false
74
- */
75
- showLabels: boolean;
76
- /**
77
- * Indicates whether to render a line connecting the ticks.
78
- *
79
- * @default false
80
- */
81
- showBaseline: boolean;
82
- /**
83
- * Indicates where ticks will be rendered along the component.
84
- * See the description for [mode](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#mode) for more information about how this property is interpreted by each mode.
85
- *
86
- * @see [mode](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#mode)
87
- */
88
- values: TickValues;
89
- /** Fires when the user clicks on one of the ticks. */
90
- readonly arcgisTickClick: TargetedEvent<this, {
91
- value: number;
92
- }>;
93
- "@eventTypes": {
94
- "arcgisTickClick": ArcgisTicks["arcgisTickClick"]["detail"];
95
- };
5
+ /**
6
+ * @cssproperty [--arcgis-ticks-tick-length] - Specifies the length of the ticks.
7
+ * @cssproperty [--arcgis-ticks-tick-color] - Specifies the color of the ticks.
8
+ * @cssproperty [--arcgis-ticks-gap] - Specifies the gap between the ticks and labels.
9
+ */
10
+ export abstract class ArcgisTicks extends LitElement {
11
+ /**
12
+ * When `true`, the component will allow clicking on ticks.
13
+ *
14
+ * @default false
15
+ */
16
+ accessor interactive: boolean;
17
+ /**
18
+ * The exponent used to interpolate the position of ticks along the component.
19
+ * A value of `0` indicates linear interpolation. Positive values indicate exponential interpolation, and negative values indicate logarithmic interpolation.
20
+ *
21
+ * Set this property when the range of values is large and users need precision in the lower range of values (for an exponential interpolation), or in the higher range (for a logarithmic interpolation).
22
+ *
23
+ * ```tsx
24
+ * <arcgis-ticks interpolation-exponent={14} min={1} max={5518000} mode="value" values={[1, 11500, 5518000]} />
25
+ * ```
26
+ *
27
+ * @default 0
28
+ */
29
+ accessor interpolationExponent: number;
30
+ /** A function used to format each tick's label. */
31
+ accessor labelFormatter: ((value: number, defaultFormatter: (value: number) => string) => nullish | string) | undefined;
32
+ /**
33
+ * Determines whether the labels are placed before or after the ticks.
34
+ *
35
+ * @default "trailing"
36
+ */
37
+ accessor labelPlacement: "leading" | "trailing";
38
+ /**
39
+ * Determines the layout/orientation of the component.
40
+ *
41
+ * @default "horizontal"
42
+ */
43
+ accessor layout: Layout;
44
+ /**
45
+ * The component's maximum rendered value.
46
+ *
47
+ * @default 100
48
+ */
49
+ accessor max: number;
50
+ /**
51
+ * The component's minimum rendered value.
52
+ *
53
+ * @default 0
54
+ */
55
+ accessor min: number;
56
+ /**
57
+ * When `true`, the values are displayed from high to low.
58
+ *
59
+ * @default false
60
+ */
61
+ accessor mirrored: boolean;
62
+ /**
63
+ * The mode or method of positioning ticks along the component. It drives how [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) is interpreted.
64
+ * - `count`: Places a fixed number of ticks (provided in the [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) property) at equal distances from each other.
65
+ * - `percent`: [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values) is interpreted as percentage. If [values](https://developers.arcgis.com/javascript/latest/references/common-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.
66
+ * - `value`: Indicates that ticks will only be placed at the values specified in the property.
67
+ *
68
+ * @default "count"
69
+ * @see [values](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#values)
70
+ */
71
+ accessor mode: TickMode;
72
+ /**
73
+ * Indicates whether to render a line connecting the ticks.
74
+ *
75
+ * @default false
76
+ */
77
+ accessor showBaseline: boolean;
78
+ /**
79
+ * Indicates whether to render labels for the ticks.
80
+ *
81
+ * @default false
82
+ */
83
+ accessor showLabels: boolean;
84
+ /**
85
+ * Indicates where ticks will be rendered along the component.
86
+ * See the description for [mode](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#mode) for more information about how this property is interpreted by each mode.
87
+ *
88
+ * @see [mode](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-ticks/#mode)
89
+ */
90
+ accessor values: TickValues;
91
+ /** Fires when the user clicks on one of the ticks. */
92
+ readonly arcgisTickClick: import("@arcgis/lumina").TargetedEvent<this, { value: number; }>;
93
+ readonly "@eventTypes": {
94
+ arcgisTickClick: ArcgisTicks["arcgisTickClick"]["detail"];
95
+ };
96
96
  }
97
- export {};
97
+
98
+ export type Layout = "horizontal" | "vertical";
99
+
100
+ export type TickMode = "count" | "percent" | "value";
101
+
102
+ export type TickValues = number[] | number;
@@ -4,7 +4,7 @@ import { LitElement as _, createEvent as C, safeClassMap as h, safeStyleMap as u
4
4
  import { formatNumber as A } from "@arcgis/core/intl.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.135 */
7
+ v5.0.0-next.137 */
8
8
  const l = {
9
9
  container: "container",
10
10
  ticksContainer: "ticks-container",
@@ -1,91 +1,108 @@
1
- /// <reference types="@arcgis/core/interfaces.d.ts" />
2
1
  /// <reference path="../../index.d.ts" />
3
- import { PublicLitElement as LitElement, TargetedEvent, JsxNode } from '@arcgis/lumina';
4
- import { SupportedLayer } from './utils/basic';
2
+ /// <reference types="@arcgis/core/interfaces.d.ts" />
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
4
+ import type { SupportedLayer } from "./utils/basic.js";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
6
 
6
- /**
7
- * Displays a list of unique values taking into account field type formatting and field domains.
8
- *
9
- * [Read more...](https://developers.arcgis.com/javascript/latest/references/common-components/arcgis-unique-values-list/)
10
- */
11
- export declare class ArcgisUniqueValuesList extends LitElement {
12
- /** MapView instance, required if uniqueValues is not provided and/or to display dates in the correct timezone */
13
- view?: __esri.MapView | __esri.SceneView;
14
- /** Layer instance, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
15
- layer?: SupportedLayer;
16
- /** Field name, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
17
- fieldName?: string;
18
- /**
19
- * List of all unique values. If not provided component will get the unique values from the layer.
20
- * An empty list would mean that there are no unique values for this field on the layer. The component renders nothing then.
21
- */
22
- uniqueValues?: __esri.UniqueValuesResultUniqueValueInfos[];
23
- /**
24
- * Optional format options if values are numbers.
25
- *
26
- * e.g.
27
- * {
28
- * style: "decimal",
29
- * useGrouping: true,
30
- * minimumFractionDigits: 0,
31
- * maximumFractionDigits: 2
32
- * }
33
- *
34
- * {
35
- * style: "percent",
36
- * useGrouping: true
37
- * }
38
- *
39
- * {
40
- * style: "currency",
41
- * currency: "EUR",
42
- * currencyDisplay: "symbol"
43
- * }
44
- */
45
- numberFormatOptions?: Intl.NumberFormatOptions;
46
- /** Lists of selected values */
47
- selectedValues?: (number | string)[];
48
- /** Sort by default setting */
49
- sortBy?: "count" | "name" | "selected";
50
- /**
51
- * Multiple selections allowed?
52
- *
53
- * @default false
54
- */
55
- multiple?: boolean | undefined;
56
- /**
57
- * Too many values? If true then it displays a message below the list. Only required if uniqueValues is provided.
58
- *
59
- * @default false
60
- */
61
- partialUniqueValues?: boolean | undefined;
62
- /**
63
- * If true, displays the filter option based on the number of fields.
64
- *
65
- * @default 10
66
- */
67
- showFilterLength: number;
68
- /** Optional, max height of list in pixel. */
69
- maxHeight?: number;
70
- /** Sets focus on component */
71
- setFocus(): Promise<void>;
72
- /**
73
- * Get all unique values.
74
- * E.g. to be used to limit how often these unique values need to be requested from the layer.
75
- */
76
- getUniqueValues(): Promise<{
77
- uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[];
78
- partialUniqueValues: boolean;
79
- } | undefined>;
80
- /** Emitted if selection has changed */
81
- readonly arcgisChange: TargetedEvent<this, (string | number)[]>;
82
- /** Emitted if the sort order has changed */
83
- readonly arcgisSortByChange: TargetedEvent<this, string | undefined>;
84
- /** Emitted once the component is loaded. Useful when no uniqueValues were passed in. */
85
- readonly arcgisLoad: TargetedEvent<this, void>;
86
- "@eventTypes": {
87
- "arcgisChange": ArcgisUniqueValuesList["arcgisChange"]["detail"];
88
- "arcgisLoad": ArcgisUniqueValuesList["arcgisLoad"]["detail"];
89
- "arcgisSortByChange": ArcgisUniqueValuesList["arcgisSortByChange"]["detail"];
90
- };
91
- }
7
+ /** Displays a list of unique values taking into account field type formatting and field domains. */
8
+ export abstract class ArcgisUniqueValuesList extends LitElement {
9
+ /** @internal */
10
+ protected _messages: {
11
+ searchValues: string;
12
+ sortValues: string;
13
+ values: string;
14
+ sortByCount: string;
15
+ sortAlphabetical: string;
16
+ sortAscending: string;
17
+ sortSelected: string;
18
+ errors: { tooManyUniqueValues: string; };
19
+ } & T9nMeta<{
20
+ searchValues: string;
21
+ sortValues: string;
22
+ values: string;
23
+ sortByCount: string;
24
+ sortAlphabetical: string;
25
+ sortAscending: string;
26
+ sortSelected: string;
27
+ errors: { tooManyUniqueValues: string; };
28
+ }>;
29
+ /** Field name, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
30
+ accessor fieldName: string | undefined;
31
+ /** Layer instance, required if uniqueValues is not provided, if component needs to format values, or needs to check for field domains. */
32
+ accessor layer: SupportedLayer | undefined;
33
+ /** Optional, max height of list in pixel. */
34
+ accessor maxHeight: number | undefined;
35
+ /**
36
+ * Multiple selections allowed?
37
+ *
38
+ * @default false
39
+ */
40
+ accessor multiple: boolean | undefined;
41
+ /**
42
+ * Optional format options if values are numbers.
43
+ *
44
+ * e.g.
45
+ * {
46
+ * style: "decimal",
47
+ * useGrouping: true,
48
+ * minimumFractionDigits: 0,
49
+ * maximumFractionDigits: 2
50
+ * }
51
+ *
52
+ * {
53
+ * style: "percent",
54
+ * useGrouping: true
55
+ * }
56
+ *
57
+ * {
58
+ * style: "currency",
59
+ * currency: "EUR",
60
+ * currencyDisplay: "symbol"
61
+ * }
62
+ */
63
+ accessor numberFormatOptions: Intl.NumberFormatOptions | undefined;
64
+ /**
65
+ * Too many values? If true then it displays a message below the list. Only required if uniqueValues is provided.
66
+ *
67
+ * @default false
68
+ */
69
+ accessor partialUniqueValues: boolean | undefined;
70
+ /** Lists of selected values */
71
+ accessor selectedValues: (number | string)[] | undefined;
72
+ /**
73
+ * If true, displays the filter option based on the number of fields.
74
+ *
75
+ * @default 10
76
+ */
77
+ accessor showFilterLength: number;
78
+ /** Sort by default setting */
79
+ accessor sortBy: "count" | "name" | "selected" | undefined;
80
+ /**
81
+ * List of all unique values. If not provided component will get the unique values from the layer.
82
+ * An empty list would mean that there are no unique values for this field on the layer. The component renders nothing then.
83
+ */
84
+ accessor uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[] | undefined;
85
+ /** 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;
87
+ /**
88
+ * Get all unique values.
89
+ * E.g. to be used to limit how often these unique values need to be requested from the layer.
90
+ */
91
+ getUniqueValues(): Promise<{
92
+ uniqueValues: __esri.UniqueValuesResultUniqueValueInfos[];
93
+ partialUniqueValues: boolean;
94
+ } | undefined>;
95
+ /** Sets focus on component */
96
+ setFocus(): Promise<void>;
97
+ /** Emitted if selection has changed */
98
+ readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, (number | string)[]>;
99
+ /** Emitted once the component is loaded. Useful when no uniqueValues were passed in. */
100
+ readonly arcgisLoad: import("@arcgis/lumina").TargetedEvent<this, void>;
101
+ /** Emitted if the sort order has changed */
102
+ readonly arcgisSortByChange: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
103
+ readonly "@eventTypes": {
104
+ arcgisChange: ArcgisUniqueValuesList["arcgisChange"]["detail"];
105
+ arcgisLoad: ArcgisUniqueValuesList["arcgisLoad"]["detail"];
106
+ arcgisSortByChange: ArcgisUniqueValuesList["arcgisSortByChange"]["detail"];
107
+ };
108
+ }
@@ -12,7 +12,7 @@ import { i as h } from "../../chunks/commonFunctions.js";
12
12
  import { u as X } from "../../chunks/useT9n.js";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
- v5.0.0-next.135 */
15
+ v5.0.0-next.137 */
16
16
  function x(i) {
17
17
  return (/* @__PURE__ */ new Date(`1970-01-01T${i}Z`)).getTime();
18
18
  }
@@ -1,8 +1 @@
1
- import "@esri/calcite-components/components/calcite-list";
2
- import "@esri/calcite-components/components/calcite-dropdown";
3
- import "@esri/calcite-components/components/calcite-action";
4
- import "@esri/calcite-components/components/calcite-icon";
5
- import "@esri/calcite-components/components/calcite-dropdown-group";
6
- import "@esri/calcite-components/components/calcite-dropdown-item";
7
- import "@esri/calcite-components/components/calcite-list-item";
8
1
  export * from "./customElement.js";
@@ -1,10 +1,3 @@
1
1
  /// <reference types="@arcgis/core/interfaces.d.ts" />
2
- import { CodedValueProperties } from '@arcgis/core/layers/support/CodedValue';
3
- export type UniqueValuesFieldInfo = {
4
- layerField?: __esri.Field;
5
- fieldDomains?: CodedValueProperties[];
6
- simpleType?: "date-only" | "date" | "number" | "string" | "time-only" | "timestamp-offset";
7
- uniqueValueInfos?: __esri.UniqueValuesResultUniqueValueInfos[] | undefined;
8
- partialUniqueValues: boolean;
9
- };
10
- export type SupportedLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.KnowledgeGraphSublayer | __esri.OrientedImageryLayer | __esri.StreamLayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.WFSLayer;
2
+
3
+ export type SupportedLayer = __esri.CatalogFootprintLayer | __esri.CatalogLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.ImageryLayer | __esri.KnowledgeGraphSublayer | __esri.OrientedImageryLayer | __esri.StreamLayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.WFSLayer;