@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,60 +1,59 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import { PublicLitElement as LitElement
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
3
3
|
|
|
4
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
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.
|
|
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,97 +1,102 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
|
|
2
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
3
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina/PublicLitElement";
|
|
3
4
|
|
|
4
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
};
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
4
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
3
|
-
export type
|
|
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;
|