@arcgis/common-components 5.1.0-next.11 → 5.1.0-next.112
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/README.md +26 -3
- package/dist/cdn/{J5X5TNVW.js → 3CYVP75E.js} +1 -1
- package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
- package/dist/cdn/3LK46I3I.js +2 -0
- package/dist/cdn/53RIFE4K.js +2 -0
- package/dist/cdn/6RFADDWS.js +4 -0
- package/dist/cdn/AH2USIZR.js +2 -0
- package/dist/cdn/BCWKJTLV.js +2 -0
- package/dist/cdn/{C6JAR4IN.js → BXFY2TUH.js} +1 -1
- package/dist/cdn/BYGHEIBE.js +2 -0
- package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
- package/dist/cdn/DCI6LRH3.js +2 -0
- package/dist/cdn/DJBJXOSO.js +2 -0
- package/dist/cdn/DUJ3WX7U.js +2 -0
- package/dist/cdn/{AXTSUI2Q.js → DYF5K55H.js} +3 -3
- package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
- package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/J7JP7Q3W.js +2 -0
- package/dist/cdn/KGHLN7QM.js +2 -0
- package/dist/cdn/KI62NSDM.js +2 -0
- package/dist/cdn/PECYQ2HF.js +2 -0
- package/dist/cdn/TKMLU77O.js +2 -0
- package/dist/cdn/VTD2EUL6.js +2 -0
- package/dist/cdn/WPKV6SVG.js +2 -0
- package/dist/cdn/YCAZ4ZY2.js +2 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/chunks/layer-utils.js +70 -0
- package/dist/chunks/spatial-references.js +7598 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +327 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +111 -0
- package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +2 -2
- package/dist/components/arcgis-field-info/customElement.js +170 -171
- package/dist/components/arcgis-field-info/utils/basic.d.ts +11 -3
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
- package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +6 -2
- package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram/customElement.js +81 -90
- package/dist/components/arcgis-histogram/types.d.ts +1 -3
- package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
- package/dist/components/arcgis-label-input/customElement.js +22 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +2 -2
- package/dist/components/arcgis-picker-input/customElement.js +11 -11
- package/dist/components/arcgis-slider/customElement.d.ts +72 -67
- package/dist/components/arcgis-slider/customElement.js +349 -304
- package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
- package/dist/components/arcgis-slider-input/customElement.js +12 -12
- package/dist/components/arcgis-spatial-reference-picker/customElement.d.ts +327 -0
- package/dist/components/arcgis-spatial-reference-picker/customElement.js +110 -0
- package/dist/components/arcgis-spatial-reference-picker/index.d.ts +1 -0
- package/dist/components/arcgis-spatial-reference-picker/index.js +3 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/index.js +3 -0
- package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
- package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +10 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +59 -1
- package/dist/loader.js +8 -4
- package/dist/types/lumina.d.ts +26 -2
- package/dist/types/preact.d.ts +30 -2
- package/dist/types/react.d.ts +34 -2
- package/dist/types/stencil.d.ts +26 -2
- package/dist/utils/internal-types.d.ts +1 -0
- package/dist/utils/spatial-references.d.ts +1 -0
- package/dist/utils/types.d.ts +21 -18
- package/package.json +11 -9
- package/dist/cdn/23DDMSOB.js +0 -2
- package/dist/cdn/2BDHDUXG.js +0 -2
- package/dist/cdn/3O7GAC23.js +0 -2
- package/dist/cdn/4CW7U27R.js +0 -2
- package/dist/cdn/4DCAUWTC.js +0 -2
- package/dist/cdn/57I35HLF.js +0 -2
- package/dist/cdn/6DQVLQL6.js +0 -2
- package/dist/cdn/EKKJN7WZ.js +0 -2
- package/dist/cdn/UTXWKXMT.js +0 -4
- package/dist/cdn/XEB2RUND.js +0 -2
- package/dist/cdn/ZL3E4ZGE.js +0 -2
- package/dist/cdn/ZLXAKPUH.js +0 -2
- /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
- /package/dist/chunks/{types.js → internal-types.js} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import { c as d } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as n } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as h, createEvent as l, nothing as m } from "@arcgis/lumina";
|
|
5
|
+
import { css as p, html as a } from "lit";
|
|
6
|
+
const u = p`:host{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;height:100%;width:100%}`;
|
|
7
|
+
class v extends h {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments), this.treeItemsOpen = /* @__PURE__ */ new Set(), this.handleMutations = (e) => {
|
|
10
|
+
e.forEach((s) => {
|
|
11
|
+
if (s.type === "attributes" && s.attributeName === "expanded") {
|
|
12
|
+
const t = s.target;
|
|
13
|
+
"key" in t.dataset && t.dataset.key !== void 0 && this.treeItemsOpen.has(t.dataset.key) !== t.expanded && this.toggleTreeItem(t.dataset.key);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}, this.renderedTree = [], this.data = {}, this.arcgisChange = l();
|
|
17
|
+
}
|
|
18
|
+
static {
|
|
19
|
+
this.properties = { renderedTree: 16, data: 0, value: 1 };
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.styles = u;
|
|
23
|
+
}
|
|
24
|
+
load() {
|
|
25
|
+
this.setupComponent();
|
|
26
|
+
}
|
|
27
|
+
willUpdate(e) {
|
|
28
|
+
e.has("data") && (this.hasUpdated || Object.keys(this.data ?? {}).length > 0) && this.setupComponent();
|
|
29
|
+
}
|
|
30
|
+
loaded() {
|
|
31
|
+
this.manager.onLifecycle(() => {
|
|
32
|
+
this.observer = new MutationObserver(this.handleMutations);
|
|
33
|
+
const e = this.el.shadowRoot ?? this.el;
|
|
34
|
+
return this.observer.observe(e, {
|
|
35
|
+
attributes: !0,
|
|
36
|
+
subtree: !0,
|
|
37
|
+
attributeFilter: ["expanded"]
|
|
38
|
+
}), () => {
|
|
39
|
+
this.observer?.disconnect(), this.observer = void 0;
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
setupComponent() {
|
|
44
|
+
this.treeItemsOpen.clear(), this.buildJSXTree();
|
|
45
|
+
}
|
|
46
|
+
buildJSXTree() {
|
|
47
|
+
const e = (s) => {
|
|
48
|
+
const t = [];
|
|
49
|
+
for (const r of Object.keys(s)) {
|
|
50
|
+
const i = s[r];
|
|
51
|
+
let o;
|
|
52
|
+
typeof i == "object" && (o = this.treeItemsOpen.has(r) ? e(i) : []);
|
|
53
|
+
const c = typeof i == "object" ? r : i;
|
|
54
|
+
t.push(this.createTreeItem(r, c, o));
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
this.renderedTree = e(this.data);
|
|
59
|
+
}
|
|
60
|
+
toggleTreeItem(e) {
|
|
61
|
+
this.treeItemsOpen.has(e) ? this.treeItemsOpen.delete(e) : this.treeItemsOpen.add(e), this.buildJSXTree();
|
|
62
|
+
}
|
|
63
|
+
createTreeItem(e, s, t) {
|
|
64
|
+
return a`<calcite-tree-item data-key=${e ?? m} .selected=${this.value === e} .expanded=${this.treeItemsOpen.has(e)}>${s}${t !== void 0 && n(`${e}-child-tree`, a`<calcite-tree slot=children>${t}</calcite-tree>`) || ""}</calcite-tree-item>`;
|
|
65
|
+
}
|
|
66
|
+
handleTreeSelect(e) {
|
|
67
|
+
const t = e.currentTarget?.selectedItems[0]?.dataset.key;
|
|
68
|
+
t !== void 0 && (this.value = t, this.arcgisChange.emit());
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return n("base-tree", a`<calcite-tree scale=s @calciteTreeSelect=${this.handleTreeSelect}>${this.renderedTree}</calcite-tree>`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
d("arcgis-coordinate-system-picker-tree", v);
|
|
75
|
+
export {
|
|
76
|
+
v as ArcgisCoordinateSystemPickerTree
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
|
|
2
|
+
import type View from "@arcgis/core/views/View.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { FieldInfoLayer } from "./utils/basic.js";
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -193,7 +193,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
|
|
|
193
193
|
/** Required layer instance. */
|
|
194
194
|
accessor layer: FieldInfoLayer | undefined;
|
|
195
195
|
/** View instance. If no view is provided all dates will show in 'system' timezone. */
|
|
196
|
-
accessor view:
|
|
196
|
+
accessor view: View | undefined;
|
|
197
197
|
/** Refresh the field info display after external changes are made. */
|
|
198
198
|
refresh(): Promise<void>;
|
|
199
199
|
/** Emitted once all information is displayed. */
|