@arcgis/common-components 6.0.0-next.21 → 6.0.0-next.22
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/{OZIHA5AQ.js → EOGA62GK.js} +1 -1
- package/dist/cdn/FGG3L42U.js +2 -0
- package/dist/cdn/{SIB7LGF5.js → KEQPWVA6.js} +1 -1
- package/dist/cdn/Y6U4FBW3.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-color-input/customElement.js +29 -29
- package/dist/components/arcgis-color-input/index.js +2 -1
- package/dist/components/arcgis-field-pick-list/customElement.js +8 -8
- package/dist/components/arcgis-field-pick-list/index.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +336 -327
- package/dist/components/arcgis-unique-values-list/customElement.js +11 -11
- package/dist/components/arcgis-unique-values-list/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/4H4SDFQK.js +0 -2
- package/dist/cdn/YXN6CFSE.js +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as P } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as G } from "lit/directives/keyed.js";
|
|
4
|
-
import { LitElement as J, createEvent as
|
|
4
|
+
import { LitElement as J, createEvent as Z } from "@arcgis/lumina";
|
|
5
5
|
import { Task as K } from "@lit/task";
|
|
6
6
|
import { css as Q, html as F } from "lit";
|
|
7
7
|
import { createRef as X, ref as E } from "lit/directives/ref.js";
|
|
8
|
-
import { log as S, composeMissingPropertyMessage as
|
|
9
|
-
import { formatDate as
|
|
8
|
+
import { log as S, composeMissingPropertyMessage as D } from "@arcgis/toolkit/log";
|
|
9
|
+
import { formatDate as T, convertDateFormatToIntlOptions as $, formatDateOnly as Y, formatTimeOnly as ee, formatTimestamp as z, formatNumber as te } from "@arcgis/core/intl.js";
|
|
10
10
|
import ie from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
11
11
|
import * as se from "@arcgis/core/core/reactiveUtils.js";
|
|
12
12
|
import { clone as I } from "@arcgis/core/core/lang.js";
|
|
@@ -21,11 +21,11 @@ function B(i) {
|
|
|
21
21
|
}
|
|
22
22
|
function oe(i, e, s) {
|
|
23
23
|
let t;
|
|
24
|
-
return e === "unknown" ? t =
|
|
24
|
+
return e === "unknown" ? t = T(i, {
|
|
25
25
|
...$("short-date-short-time"),
|
|
26
26
|
timeZone: "utc",
|
|
27
27
|
timeZoneName: "shortOffset"
|
|
28
|
-
}) : t =
|
|
28
|
+
}) : t = T(i, {
|
|
29
29
|
...$("short-date-short-time"),
|
|
30
30
|
timeZone: e
|
|
31
31
|
}), t;
|
|
@@ -35,7 +35,7 @@ function ae(i) {
|
|
|
35
35
|
}
|
|
36
36
|
function le(i) {
|
|
37
37
|
let e;
|
|
38
|
-
return typeof i == "string" ? e = ee(i, $("short-date-long-time")) : e =
|
|
38
|
+
return typeof i == "string" ? e = ee(i, $("short-date-long-time")) : e = T(i, {
|
|
39
39
|
...$("long-time"),
|
|
40
40
|
timeZone: "utc"
|
|
41
41
|
}), e;
|
|
@@ -48,11 +48,11 @@ function re(i, e) {
|
|
|
48
48
|
}) : z(i, {
|
|
49
49
|
...$("short-date-short-time"),
|
|
50
50
|
timeZone: e && "timeZone" in e && e.timeZone ? e.timeZone : "system"
|
|
51
|
-
}) : e && "timeZone" in e && e.timeZone === "unknown" ?
|
|
51
|
+
}) : e && "timeZone" in e && e.timeZone === "unknown" ? T(i, {
|
|
52
52
|
...$("short-date-short-time"),
|
|
53
53
|
timeZone: "utc",
|
|
54
54
|
timeZoneName: "shortOffset"
|
|
55
|
-
}) :
|
|
55
|
+
}) : T(i, {
|
|
56
56
|
...$("short-date-short-time"),
|
|
57
57
|
timeZone: e && "timeZone" in e && e.timeZone ? e.timeZone : "system"
|
|
58
58
|
});
|
|
@@ -150,7 +150,7 @@ class ce extends J {
|
|
|
150
150
|
super(...arguments), this.dropdownNode = X(), this.initialized = !1, this._messages = ne({ blocking: !0 }), this._propWatcherTask = new K(this, {
|
|
151
151
|
task: async ([e, s, t]) => {
|
|
152
152
|
const r = h(e) && h(s) || h(t);
|
|
153
|
-
if (!h(t) && !h(e) && !h(s) ? S("error", this,
|
|
153
|
+
if (!h(t) && !h(e) && !h(s) ? S("error", this, D("uniqueValues")) : h(t) || (h(e) || S("error", this, D("layer")), h(s) || S("error", this, D("fieldName"))), h(e) && h(s)) {
|
|
154
154
|
const { visualizationSource: p } = this;
|
|
155
155
|
if (!O(e, p).fields?.filter((c) => c.name === s))
|
|
156
156
|
throw S("error", this, "Field could not be found."), new Error();
|
|
@@ -164,7 +164,7 @@ class ce extends J {
|
|
|
164
164
|
this.fieldName,
|
|
165
165
|
this.uniqueValues
|
|
166
166
|
]
|
|
167
|
-
}), this.initialRender = !0, this.multiple = !1, this.partialUniqueValues = !1, this.showFilterLength = 10, this.arcgisChange =
|
|
167
|
+
}), this.initialRender = !0, this.multiple = !1, this.partialUniqueValues = !1, this.showFilterLength = 10, this.arcgisChange = Z(), this.arcgisSortByChange = Z(), this.arcgisLoad = Z();
|
|
168
168
|
}
|
|
169
169
|
static {
|
|
170
170
|
this.properties = { initialRender: 16, view: 0, layer: 0, visualizationSource: 1, fieldName: 1, uniqueValues: 0, numberFormatOptions: 0, selectedValues: 0, sortBy: 1, multiple: 5, partialUniqueValues: 5, showFilterLength: 9, maxHeight: 9 };
|
|
@@ -312,7 +312,7 @@ class ce extends J {
|
|
|
312
312
|
}
|
|
313
313
|
renderSort(e, s) {
|
|
314
314
|
const { sortBy: t, _messages: r } = this;
|
|
315
|
-
return F`<calcite-
|
|
315
|
+
return F`<calcite-action id=sort-action slot=filter-actions-end .label=${r.sortValues} text><calcite-icon scale=s icon=sort-descending flip-rtl></calcite-icon></calcite-action><calcite-dropdown placement=bottom-end overlay-positioning=fixed reference-element=sort-action @calciteDropdownSelect=${this.onSortMenuSelect} ${E(this.dropdownNode)}><calcite-dropdown-group><calcite-dropdown-item .selected=${t === "count" || !h(t)} data-value=count>${r.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "name"} data-value=name>${e || s ? r.sortAscending : r.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t === "selected"} data-value=selected>${r.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
|
|
316
316
|
}
|
|
317
317
|
renderUniqueValue(e) {
|
|
318
318
|
const { selectedValues: s, initialRender: t, view: r, fieldInfo: p, numberFormatOptions: a } = this, { fieldDomains: u, uniqueValueInfos: c, simpleType: l } = p, d = r && "timeZone" in r && r.timeZone || "system", o = u?.length ? x(e.value, u) : l === "date" ? oe(e.value, d) : l === "date-only" ? ae(e.value) : l === "time-only" ? le(e.value) : l === "timestamp-offset" ? re(e.value, r) : typeof e.value == "number" ? te(e.value, a) : e.label ?? e.value, n = s ? l === "date-only" ? s.includes(u?.length ? e.value : B(e.value)) : l === "time-only" ? s.includes(u?.length ? e.value : k(e.value)) : s.includes(e.value) : !1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-list";
|
|
2
|
-
import "@esri/calcite-components/components/calcite-dropdown";
|
|
3
2
|
import "@esri/calcite-components/components/calcite-action";
|
|
4
3
|
import "@esri/calcite-components/components/calcite-icon";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-dropdown";
|
|
5
5
|
import "@esri/calcite-components/components/calcite-dropdown-group";
|
|
6
6
|
import "@esri/calcite-components/components/calcite-dropdown-item";
|
|
7
7
|
import "@esri/calcite-components/components/calcite-list-item";
|