@arcgis/common-components 6.0.0-next.33 → 6.0.0-next.35
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/2K4XK5CC.js +2 -0
- package/dist/cdn/32JRESCI.js +2 -0
- package/dist/cdn/{7WN227WZ.js → 4L362IQJ.js} +24 -24
- package/dist/cdn/5TNOGXJJ.js +2 -0
- package/dist/cdn/{5GVJKVEV.js → BUPRL52I.js} +1 -1
- package/dist/cdn/D4JWM5PW.js +2 -0
- package/dist/cdn/E5VIZW6M.js +2 -0
- package/dist/cdn/{W7CWMG2O.js → HWVDNUPX.js} +1 -1
- package/dist/cdn/RYVWIAKZ.js +2 -0
- package/dist/cdn/UFSM3GRY.js +2 -0
- package/dist/cdn/WIOMW22N.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/intrinsic-sizing.js +18 -0
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +0 -9
- package/dist/components/arcgis-ckeditor5/customElement.js +1207 -1207
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +0 -6
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +14 -17
- package/dist/components/arcgis-color-input/customElement.d.ts +0 -20
- package/dist/components/arcgis-color-input/customElement.js +18 -18
- package/dist/components/arcgis-field-info/customElement.d.ts +0 -3
- package/dist/components/arcgis-field-info/customElement.js +41 -41
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +0 -28
- package/dist/components/arcgis-field-pick-list/customElement.js +114 -127
- package/dist/components/arcgis-slider-input/customElement.d.ts +0 -3
- package/dist/components/arcgis-slider-input/customElement.js +13 -13
- package/dist/components/arcgis-toolbar/customElement.d.ts +20 -0
- package/dist/components/arcgis-toolbar/customElement.js +40 -37
- package/dist/components/arcgis-toolbar-stack/customElement.d.ts +9 -2
- package/dist/components/arcgis-toolbar-stack/customElement.js +49 -51
- package/dist/components/arcgis-value-picker/customElement.js +12 -16
- 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 +0 -20
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +4 -30
- package/dist/types/preact.d.ts +4 -30
- package/dist/types/react.d.ts +4 -30
- package/dist/types/stencil.d.ts +4 -30
- package/dist/utils/types.d.ts +0 -12
- package/package.json +7 -7
- package/dist/cdn/2S4SSY4K.js +0 -2
- package/dist/cdn/3UAY23XT.js +0 -2
- package/dist/cdn/BMR5AH6W.js +0 -2
- package/dist/cdn/GZVXOCN5.js +0 -2
- package/dist/cdn/KEQPWVA6.js +0 -2
- package/dist/cdn/OUPGMHLD.js +0 -2
- package/dist/cdn/U6OGOB7D.js +0 -2
- package/dist/cdn/VNC7X43V.js +0 -2
- package/dist/chunks/toolbar.js +0 -9
- /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
|
@@ -23,18 +23,12 @@ export abstract class ArcgisCkeditor5Popover extends LitElement {
|
|
|
23
23
|
accessor refElement: HTMLElement | undefined;
|
|
24
24
|
/** Reposition the component. */
|
|
25
25
|
reposition(): Promise<void>;
|
|
26
|
-
/** @deprecated use arcgisPopoverClosed instead */
|
|
27
|
-
readonly arcgisCkeditor5PopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
|
|
28
|
-
guid: string;
|
|
29
|
-
data?: string;
|
|
30
|
-
}>;
|
|
31
26
|
/** Emitted when the popover has been closed. */
|
|
32
27
|
readonly arcgisPopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
|
|
33
28
|
guid: string;
|
|
34
29
|
data?: string;
|
|
35
30
|
}>;
|
|
36
31
|
readonly "@eventTypes": {
|
|
37
|
-
arcgisCkeditor5PopoverClosed: ArcgisCkeditor5Popover["arcgisCkeditor5PopoverClosed"]["detail"];
|
|
38
32
|
arcgisPopoverClosed: ArcgisCkeditor5Popover["arcgisPopoverClosed"]["detail"];
|
|
39
33
|
};
|
|
40
34
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { createRef as
|
|
6
|
-
import { Task as
|
|
2
|
+
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as a, html as n } from "lit";
|
|
4
|
+
import { LitElement as l, createEvent as c, nothing as p, safeClassMap as e } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as o, ref as s } from "lit/directives/ref.js";
|
|
6
|
+
import { Task as d } from "@lit/task";
|
|
7
7
|
import { unsafeGetElementDirection as h } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { generateGuid as g } from "@arcgis/toolkit/string";
|
|
9
9
|
import { i as u } from "../../chunks/general.js";
|
|
10
10
|
import { C as i } from "../../chunks/resources.js";
|
|
11
|
-
const m =
|
|
12
|
-
class f extends
|
|
11
|
+
const m = a`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`;
|
|
12
|
+
class f extends l {
|
|
13
13
|
constructor() {
|
|
14
|
-
super(), this.okButton =
|
|
14
|
+
super(), this.okButton = o(), this.popoverNode = o(), this._propWatcherTask = new d(this, {
|
|
15
15
|
task: async ([t]) => {
|
|
16
16
|
if (!u(t)) {
|
|
17
17
|
console.error("[ckeditor5] Required properties are missing.");
|
|
@@ -19,7 +19,7 @@ class f extends d {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
args: () => [this.refElement]
|
|
22
|
-
}), this.guid = g(), this.intlOk = "Ok", this.intlCancel = "Cancel", this.
|
|
22
|
+
}), this.guid = g(), this.intlOk = "Ok", this.intlCancel = "Cancel", this.arcgisPopoverClosed = c(), this.listen("arcgisCreated", this.afterEditorCreated), this.listen("arcgisSourceEditingChanged", this.onSourceEditingStatusChanged);
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
25
|
this.properties = { guid: 1, refElement: 0, intlOk: 1, intlCancel: 1, intlLabel: 1 };
|
|
@@ -38,21 +38,18 @@ class f extends d {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
return this.el.classList.add("js-app-flyout"), this._propWatcherTask.render({
|
|
41
|
-
complete: () => n`<calcite-popover class=${e(i.popover)} dir=${h(this.el) ??
|
|
42
|
-
this.okButton.value?.disabled || (t.stopPropagation(), this.
|
|
43
|
-
guid: this.guid,
|
|
44
|
-
data: await this.editor?.getData()
|
|
45
|
-
}), this.arcgisPopoverClosed.emit({
|
|
41
|
+
complete: () => n`<calcite-popover class=${e(i.popover)} dir=${h(this.el) ?? p} placement=leading-start open pointer-disabled .referenceElement=${this.refElement} .offsetDistance=${-Math.round(this.refElement.getBoundingClientRect().width)} offset-skidding=50 .label=${this.intlLabel ?? ""} focus-trap-disabled trigger-disabled top-layer-disabled ${s(this.popoverNode)}><div class=${e(i.arcgisAppCkeditorPopoverContainer)}><slot></slot><div class=${e(i.arcgisAppCkeditorPopoverFooter)}><calcite-button .label=${this.intlOk} @click=${async (t) => {
|
|
42
|
+
this.okButton.value?.disabled || (t.stopPropagation(), this.arcgisPopoverClosed.emit({
|
|
46
43
|
guid: this.guid,
|
|
47
44
|
data: await this.editor?.getData()
|
|
48
45
|
}));
|
|
49
|
-
}} ${
|
|
50
|
-
t.stopPropagation(), this.
|
|
46
|
+
}} ${s(this.okButton)}>${this.intlOk}</calcite-button><calcite-button appearance=outline-fill .label=${this.intlCancel} @click=${(t) => {
|
|
47
|
+
t.stopPropagation(), this.arcgisPopoverClosed.emit({ guid: this.guid });
|
|
51
48
|
}}>${this.intlCancel}</calcite-button></div></div></calcite-popover>`
|
|
52
49
|
});
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
|
-
|
|
52
|
+
r("arcgis-ckeditor5-popover", f);
|
|
56
53
|
export {
|
|
57
54
|
f as ArcgisCkeditor5Popover
|
|
58
55
|
};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { PopoverProps } from "../../utils/types.js";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
|
-
import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
|
|
6
5
|
|
|
7
6
|
/** @internal */
|
|
8
7
|
export abstract class ArcgisColorInput extends LitElement {
|
|
@@ -57,13 +56,6 @@ export abstract class ArcgisColorInput extends LitElement {
|
|
|
57
56
|
recentColors?: string | undefined;
|
|
58
57
|
selectColor?: string | undefined;
|
|
59
58
|
};
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated
|
|
62
|
-
* use popoverProps.placement instead.
|
|
63
|
-
* Determines where the popup color picker will be positioned relative to the color input.
|
|
64
|
-
* @default "auto"
|
|
65
|
-
*/
|
|
66
|
-
accessor placement: Popover["placement"];
|
|
67
59
|
/** Convenience prop to specify common popover props. */
|
|
68
60
|
accessor popoverProps: PopoverProps | undefined;
|
|
69
61
|
/**
|
|
@@ -85,24 +77,12 @@ export abstract class ArcgisColorInput extends LitElement {
|
|
|
85
77
|
setFocus(): Promise<void>;
|
|
86
78
|
/** Emitted when the color has changed. */
|
|
87
79
|
readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
88
|
-
/** @deprecated use arcgisChange instead */
|
|
89
|
-
readonly arcgisColorInputChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
90
|
-
/** @deprecated use arcgisPickerClose instead */
|
|
91
|
-
readonly arcgisColorInputPopoverClose: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
92
|
-
/** @deprecated use arcgisPickerOpen instead */
|
|
93
|
-
readonly arcgisColorInputPopoverOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
94
|
-
/** @deprecated use arcgisSwatchUpdate instead */
|
|
95
|
-
readonly arcgisColorInputSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
|
|
96
80
|
readonly arcgisPickerClose: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
97
81
|
readonly arcgisPickerOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
98
82
|
/** Emitted when a color swatch is updated (emits selected color hex). */
|
|
99
83
|
readonly arcgisSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
|
|
100
84
|
readonly "@eventTypes": {
|
|
101
85
|
arcgisChange: ArcgisColorInput["arcgisChange"]["detail"];
|
|
102
|
-
arcgisColorInputChange: ArcgisColorInput["arcgisColorInputChange"]["detail"];
|
|
103
|
-
arcgisColorInputPopoverClose: ArcgisColorInput["arcgisColorInputPopoverClose"]["detail"];
|
|
104
|
-
arcgisColorInputPopoverOpen: ArcgisColorInput["arcgisColorInputPopoverOpen"]["detail"];
|
|
105
|
-
arcgisColorInputSwatchUpdate: ArcgisColorInput["arcgisColorInputSwatchUpdate"]["detail"];
|
|
106
86
|
arcgisPickerClose: ArcgisColorInput["arcgisPickerClose"]["detail"];
|
|
107
87
|
arcgisPickerOpen: ArcgisColorInput["arcgisPickerOpen"]["detail"];
|
|
108
88
|
arcgisSwatchUpdate: ArcgisColorInput["arcgisSwatchUpdate"]["detail"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { c as g } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as n } from "lit/directives/keyed.js";
|
|
4
|
-
import { LitElement as m, createEvent as
|
|
5
|
-
import { css as f, render as v, html as
|
|
4
|
+
import { LitElement as m, createEvent as l, nothing as d, safeStyleMap as w } from "@arcgis/lumina";
|
|
5
|
+
import { css as f, render as v, html as r, svg as u } from "lit";
|
|
6
6
|
import { createRef as E, ref as a } from "lit/directives/ref.js";
|
|
7
7
|
import { unsafeGetElementDirection as k } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { debounce as $ } from "@arcgis/toolkit/function";
|
|
@@ -14,8 +14,8 @@ function S(c, e) {
|
|
|
14
14
|
const o = window.localStorage.getItem(c);
|
|
15
15
|
return o && e ? JSON.parse(o) : o;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
class
|
|
17
|
+
const R = f`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px;container-type:inline-size}.preview-swatch-no-color{overflow:hidden;block-size:inherit;inline-size:inherit;rect{transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1)}rect{fill:var(--calcite-theme-color-surface-2, var(--calcite-color-surface-2))}line{stroke:var(--calcite-color-status-danger)}}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}.swatch-group{line-height:16px}`;
|
|
18
|
+
class I extends m {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this._messages = y(), this.actionEl = E(), this.open = !1, this.setRecentColorElement = (e) => (o) => {
|
|
21
21
|
switch (e) {
|
|
@@ -28,13 +28,13 @@ class R extends m {
|
|
|
28
28
|
default:
|
|
29
29
|
this.recentColor3El = o;
|
|
30
30
|
}
|
|
31
|
-
}, this.recentColors = [], this.clearable = !1, this.compact = !1, this.disabled = !1, this.
|
|
31
|
+
}, this.recentColors = [], this.clearable = !1, this.compact = !1, this.disabled = !1, this.storageId = "arcgis-color-input-storage-colors", this.hideRecentColors = !1, this.showTransparency = !1, this.arcgisChange = l(), this.arcgisInternalStoredColor = l(), this.arcgisPickerClose = l(), this.arcgisPickerOpen = l(), this.arcgisSwatchUpdate = l(), this.listenOn(document, "arcgisInternalStoredColor", this.handleUpdateRecentColors), this.listenOn(document, "arcgisRecentColorsUpdate", this.handleStoreNewRecentColor);
|
|
32
32
|
}
|
|
33
33
|
static {
|
|
34
|
-
this.properties = { recentColors: 16, clearable: 5, color: 1, compact: 5, disabled: 5, messageOverrides: 0,
|
|
34
|
+
this.properties = { recentColors: 16, clearable: 5, color: 1, compact: 5, disabled: 5, messageOverrides: 0, popoverProps: 0, storageId: 1, hideRecentColors: 5, showTransparency: 5 };
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.styles =
|
|
37
|
+
this.styles = R;
|
|
38
38
|
}
|
|
39
39
|
async close() {
|
|
40
40
|
await this.inlineInputEl?.close({ focus: !1 });
|
|
@@ -52,7 +52,7 @@ class R extends m {
|
|
|
52
52
|
super.disconnectedCallback(), this.removeTooltip();
|
|
53
53
|
}
|
|
54
54
|
async handleOpen() {
|
|
55
|
-
await this.colorPickerEl?.setFocus(), this.open = !0, this.arcgisPickerOpen.emit()
|
|
55
|
+
await this.colorPickerEl?.setFocus(), this.open = !0, this.arcgisPickerOpen.emit();
|
|
56
56
|
}
|
|
57
57
|
setInlineInputRef(e) {
|
|
58
58
|
this.inlineInputEl = e;
|
|
@@ -78,7 +78,7 @@ class R extends m {
|
|
|
78
78
|
if ("key" in e && e.key !== "Enter" && e.key !== "Space")
|
|
79
79
|
return;
|
|
80
80
|
const t = e.currentTarget.color || void 0;
|
|
81
|
-
this.updateColor(t), this.arcgisSwatchUpdate.emit(t),
|
|
81
|
+
this.updateColor(t), this.arcgisSwatchUpdate.emit(t), setTimeout(() => this.recentColor1El?.focus(), 200);
|
|
82
82
|
}
|
|
83
83
|
handleRecentColorsKeyDown(e) {
|
|
84
84
|
if (this.recentColors.length === 1)
|
|
@@ -100,7 +100,7 @@ class R extends m {
|
|
|
100
100
|
this.updateColor(void 0);
|
|
101
101
|
}
|
|
102
102
|
updateColor(e, o = !0) {
|
|
103
|
-
e !== this.color && (this.color = e, this.arcgisChange.emit(),
|
|
103
|
+
e !== this.color && (this.color = e, this.arcgisChange.emit(), o && this.storeRecentColorToStorage(e));
|
|
104
104
|
}
|
|
105
105
|
storeRecentColorToStorage(e) {
|
|
106
106
|
if (!e)
|
|
@@ -110,29 +110,29 @@ class R extends m {
|
|
|
110
110
|
b(this.storageId, t), this.recentColors = t, this.arcgisInternalStoredColor.emit();
|
|
111
111
|
}
|
|
112
112
|
handleClose(e) {
|
|
113
|
-
e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.open = !1, this.arcgisPickerClose.emit(this.colorPickerEl?.value)
|
|
113
|
+
e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.open = !1, this.arcgisPickerClose.emit(this.colorPickerEl?.value);
|
|
114
114
|
}
|
|
115
115
|
addTooltip(e) {
|
|
116
|
-
this.removeTooltip(), this.tooltipContainerEl = document.createElement("div"), v(
|
|
116
|
+
this.removeTooltip(), this.tooltipContainerEl = document.createElement("div"), v(r`<calcite-tooltip .placement=${e.placement ?? "auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`, this.tooltipContainerEl), document.body.append(this.tooltipContainerEl);
|
|
117
117
|
}
|
|
118
118
|
removeTooltip() {
|
|
119
119
|
this.tooltipContainerEl?.parentNode && (this.tooltipContainerEl.remove(), this.tooltipContainerEl = void 0);
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
122
122
|
const { compact: e, disabled: o, recentColors: t, _messages: i } = this, h = [t[0], t[1]], C = k(this.el) === "rtl";
|
|
123
|
-
return e || h.push(t[2]),
|
|
124
|
-
|
|
125
|
-
}, 500)} .scale=${e ? "s" : "m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${a(this.setColorPickerRef)}></calcite-color-picker>`)}</div>${this.color ?
|
|
123
|
+
return e || h.push(t[2]), r`<arcgis-picker-input .disabled=${o} .intlDone=${i.commitColor} .heading=${i.selectColor} .label=${i.selectColor} @arcgisPopoverOpen=${this.handleOpen} @arcgisPopoverClose=${this.handleClose} .popoverProps=${this.popoverProps} ${a(this.setInlineInputRef)}><div class="color-picker-container" slot=content>${n(`color-picker${e ? "--compact" : ""}`, r`<calcite-color-picker .clearable=${this.clearable} class="color-picker" @calciteColorPickerInput=${$((s) => {
|
|
124
|
+
s.stopPropagation(), this.updateColor(this.colorPickerEl.value, !1);
|
|
125
|
+
}, 500)} .scale=${e ? "s" : "m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${a(this.setColorPickerRef)}></calcite-color-picker>`)}</div>${this.color ? r`<div slot=preview style=${w({ backgroundColor: this.color })} class="preview-swatch" aria-label=${i.selectColor ?? "" ?? d}></div>` : r`<div slot=preview class="preview-swatch" aria-label=${i.selectColor ?? "" ?? d}><svg xmlns=http://www.w3.org/2000/svg class="preview-swatch-no-color">${u`<clipPath id=shape><rect height=100% width=100% rx=0 /></clipPath><rect clip-path="inset(0 round 0)" height=100% rx=0 stroke="rgba(0, 0, 0, 0.3)" stroke-width=2 width=100% /><line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`}</svg></div>`}${!this.hideRecentColors && r`<div slot=content-end class="recent-colors-container" @keydown=${this.handleRecentColorsKeyDown} tabindex=-1><calcite-swatch-group selection-mode=single .label=${i.recentColors ?? ""} scale=s class="swatch-group">${h.map((s, p) => s ? n(s, r`<calcite-swatch class="preview-recent-swatch" role=button scale=s tabindex=0 .selected=${s === this.color} .color=${s} .label=${i.selectColor ?? ""} @click=${this.handleSwatchClickOrKeyUp} @keyup=${this.handleSwatchClickOrKeyUp} @focus=${this.handleUpdateActiveSwatch} ${a(this.setRecentColorElement(p + 1))}></calcite-swatch>`) : this.renderEmptySwatch(`empty-swatch-${p}`))}</calcite-swatch-group></div>` || ""}${this.clearable && r`<div slot=content-end class="end-action"><calcite-action icon=circle-disallowed scale=s .label=${i.clearColor} .text=${i.clearColor ?? ""} @click=${this.handleClearColor} @mouseover=${() => this.addTooltip({
|
|
126
126
|
referenceElement: this.actionEl.value,
|
|
127
127
|
placement: C ? "right-start" : "left-start",
|
|
128
128
|
innerHTML: i.noColor ?? ""
|
|
129
129
|
})} @mouseout=${() => this.removeTooltip()} ${a(this.actionEl)}></calcite-action></div>` || ""}</arcgis-picker-input>`;
|
|
130
130
|
}
|
|
131
131
|
renderEmptySwatch(e) {
|
|
132
|
-
return n(e,
|
|
132
|
+
return n(e, r`<svg class="empty-swatch" viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg width=20>${u`<rect width=20 height=20 fill=#f8f8f8 stroke=#000 stroke-dasharray=2 />`}</svg>`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
g("arcgis-color-input",
|
|
135
|
+
g("arcgis-color-input", I);
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
I as ArcgisColorInput
|
|
138
138
|
};
|
|
@@ -202,10 +202,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
|
|
|
202
202
|
refresh(): Promise<void>;
|
|
203
203
|
/** Emitted once all information is displayed. */
|
|
204
204
|
readonly arcgisComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
205
|
-
/** @deprecated use arcgisComplete instead. Removal target v6.0.0. */
|
|
206
|
-
readonly arcgisFieldInfoComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
207
205
|
readonly "@eventTypes": {
|
|
208
206
|
arcgisComplete: ArcgisFieldInfo["arcgisComplete"]["detail"];
|
|
209
|
-
arcgisFieldInfoComplete: ArcgisFieldInfo["arcgisFieldInfoComplete"]["detail"];
|
|
210
207
|
};
|
|
211
208
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as G } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as $ } from "lit/directives/keyed.js";
|
|
4
4
|
import { ref as b } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement as
|
|
5
|
+
import { LitElement as H, createEvent as Q, safeClassMap as q } from "@arcgis/lumina";
|
|
6
6
|
import { Task as J } from "@lit/task";
|
|
7
|
-
import { log as
|
|
7
|
+
import { log as _, composeMissingPropertyMessage as D } from "@arcgis/toolkit/log";
|
|
8
8
|
import { css as j, html as c } from "lit";
|
|
9
9
|
import z from "@arcgis/core/config.js";
|
|
10
|
-
import * as
|
|
10
|
+
import * as L from "@arcgis/core/core/reactiveUtils.js";
|
|
11
11
|
import * as h from "@arcgis/core/intl.js";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
12
|
+
import * as A from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
13
|
+
import * as C from "@arcgis/core/core/lang.js";
|
|
14
14
|
import B from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
15
15
|
import K from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
16
16
|
import { i as f } from "../../chunks/general.js";
|
|
17
|
-
import
|
|
18
|
-
import { i as F, a as V, b as T, c as
|
|
17
|
+
import x from "@arcgis/core/layers/support/CodedValue.js";
|
|
18
|
+
import { i as F, a as V, b as T, c as P, d as I, e as Z, f as y, g as w, h as M, j as X, k as Y, l as ee, m as te, n as N, o as ie, p as U, q as se, r as R, s as k } from "../../chunks/layer-utils.js";
|
|
19
19
|
import ae from "@arcgis/core/rest/support/Query.js";
|
|
20
20
|
import { u as re } from "../../chunks/useT9n.js";
|
|
21
21
|
function ne(a) {
|
|
@@ -30,11 +30,11 @@ const oe = {
|
|
|
30
30
|
function ue(a) {
|
|
31
31
|
const { layer: e, fieldName: t } = a;
|
|
32
32
|
let i;
|
|
33
|
-
const r =
|
|
33
|
+
const r = A.supportsFieldConfiguration(e);
|
|
34
34
|
let s;
|
|
35
35
|
"popupTemplate" in e && (s = e.popupTemplate);
|
|
36
36
|
const l = s ? s.fieldInfos : [];
|
|
37
|
-
return
|
|
37
|
+
return W(a)?.filter((n) => n.name === t).forEach((n) => {
|
|
38
38
|
const d = !r && l ? l.filter((g) => g.fieldName === n.name) : void 0, o = r ? e.getFieldAlias(t) : d?.length ? d[0].label : n.alias;
|
|
39
39
|
/^raster.(item|service)pixelvalue/iu.test(t) && (n.type = "double");
|
|
40
40
|
const u = {
|
|
@@ -44,11 +44,11 @@ function ue(a) {
|
|
|
44
44
|
u.codedValues = fe(t, a), me(u), u.simpleFieldType && (i = u);
|
|
45
45
|
}), i;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function W(a) {
|
|
48
48
|
const { layer: e } = a;
|
|
49
49
|
return F(e) || V(e) || I(e) && e.rasterFields.length ? e.rasterFields : e.fields;
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
51
|
+
async function E(a) {
|
|
52
52
|
a.statisticsStatus = "in-progress";
|
|
53
53
|
const { layer: e, view: t } = a;
|
|
54
54
|
if (F(e) || V(e) || w(e) || T(e))
|
|
@@ -64,7 +64,7 @@ async function de(a) {
|
|
|
64
64
|
if (F(e) || V(e) || T(e))
|
|
65
65
|
throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
66
66
|
if (!r || r.layerField.type === "oid" || r.layerField.type === "guid" || r.layerField.type === "global-id")
|
|
67
|
-
return { totalCount: await
|
|
67
|
+
return { totalCount: await E(a), nullcount: 0 };
|
|
68
68
|
try {
|
|
69
69
|
const s = await B({
|
|
70
70
|
layer: e,
|
|
@@ -78,7 +78,7 @@ async function de(a) {
|
|
|
78
78
|
if (f(s.nullcount) && !l)
|
|
79
79
|
return { ...s, totalCount: s.count + s.nullcount };
|
|
80
80
|
{
|
|
81
|
-
const m = await
|
|
81
|
+
const m = await E(a);
|
|
82
82
|
return { ...s, totalCount: m };
|
|
83
83
|
}
|
|
84
84
|
} catch {
|
|
@@ -89,7 +89,7 @@ async function ce(a) {
|
|
|
89
89
|
const { layer: e, view: t, fieldName: i } = a;
|
|
90
90
|
if (F(e) || V(e) || T(e))
|
|
91
91
|
throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");
|
|
92
|
-
|
|
92
|
+
P(e) && (e.outFields = ["*"]);
|
|
93
93
|
try {
|
|
94
94
|
return await K({
|
|
95
95
|
layer: e,
|
|
@@ -138,20 +138,20 @@ function me(a) {
|
|
|
138
138
|
}
|
|
139
139
|
function fe(a, e) {
|
|
140
140
|
const { layer: t } = e;
|
|
141
|
-
if (
|
|
141
|
+
if (Z(t) && t.subtypeField === a) {
|
|
142
142
|
const d = t.parent?.subtypes?.find((o) => o.code === t.subtypeCode);
|
|
143
143
|
if (d)
|
|
144
|
-
return [new
|
|
144
|
+
return [new x({ code: d.code, name: d.name })];
|
|
145
145
|
}
|
|
146
146
|
if (!y(t) && !I(t))
|
|
147
147
|
return;
|
|
148
148
|
const i = y(t) ? t.typeIdField : void 0, r = y(t) ? t.types : void 0;
|
|
149
149
|
let s;
|
|
150
|
-
const m =
|
|
150
|
+
const m = W(e)?.find((d) => d.name === a), n = m?.domain;
|
|
151
151
|
return y(t) && i && r ? (i === a ? s = r.map(
|
|
152
152
|
(d) => (
|
|
153
153
|
// fake coded values
|
|
154
|
-
new
|
|
154
|
+
new x({
|
|
155
155
|
code: d.id,
|
|
156
156
|
name: d.name
|
|
157
157
|
})
|
|
@@ -163,21 +163,21 @@ function fe(a, e) {
|
|
|
163
163
|
let g = !1;
|
|
164
164
|
s.forEach((p) => {
|
|
165
165
|
p.code === u.code && (g = !0, `, ${p.name},`.includes(`, ${u.name},`) || (p.name += `, ${u.name}`));
|
|
166
|
-
}), g || s.push(
|
|
166
|
+
}), g || s.push(C.clone(u));
|
|
167
167
|
});
|
|
168
168
|
} else d.domains[a].codedValues && d.domains[a].codedValues.forEach((o) => {
|
|
169
169
|
let u = !1;
|
|
170
170
|
s.forEach((g) => {
|
|
171
171
|
g.code === o.code && (u = !0, `, ${g.name},`.includes(`, ${o.name},`) || (g.name += `, ${o.name}`));
|
|
172
|
-
}), u || s.push(
|
|
172
|
+
}), u || s.push(C.clone(o));
|
|
173
173
|
});
|
|
174
|
-
})), !s.length && n?.codedValues && (s =
|
|
174
|
+
})), !s.length && n?.codedValues && (s = C.clone(n.codedValues))) : n?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
|
|
175
175
|
}
|
|
176
176
|
async function pe(a) {
|
|
177
177
|
const { view: e, layer: t } = a;
|
|
178
178
|
if (I(t) || F(t) || V(t))
|
|
179
179
|
throw new Error("could not get feature");
|
|
180
|
-
if (y(t) && !t.url ||
|
|
180
|
+
if (y(t) && !t.url || M(t)) {
|
|
181
181
|
const i = t.createQuery();
|
|
182
182
|
i.start = 0, i.num = 5, i.outFields = ["*"];
|
|
183
183
|
const r = await t.queryFeatures(i);
|
|
@@ -188,7 +188,7 @@ async function pe(a) {
|
|
|
188
188
|
if (!e)
|
|
189
189
|
return await O(a);
|
|
190
190
|
let i;
|
|
191
|
-
if (
|
|
191
|
+
if (Z(t) || X(t)) {
|
|
192
192
|
let s = t.parent;
|
|
193
193
|
for (; Y(s) || ee(s); )
|
|
194
194
|
s = s.parent;
|
|
@@ -217,9 +217,9 @@ async function O(a) {
|
|
|
217
217
|
return "sourceJSON" in e && e.sourceJSON?.advancedQueryCapabilities?.supportsPagination && (t.num = 1), await e.queryFeatures(t);
|
|
218
218
|
}
|
|
219
219
|
async function ge(a, e) {
|
|
220
|
-
if (
|
|
220
|
+
if (P(a))
|
|
221
221
|
return await he(a);
|
|
222
|
-
if (y(a) || ie(a) ||
|
|
222
|
+
if (y(a) || ie(a) || U(a) || M(a) || se(a))
|
|
223
223
|
return await a.queryFeatureCount();
|
|
224
224
|
if (e && (w(a) || N(a)))
|
|
225
225
|
return await ve(a, e);
|
|
@@ -236,17 +236,17 @@ async function ve(a, e) {
|
|
|
236
236
|
return await (await e.whenLayerView(a)).queryFeatureCount();
|
|
237
237
|
}
|
|
238
238
|
const ye = j`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-surface-2)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`;
|
|
239
|
-
class Fe extends
|
|
239
|
+
class Fe extends H {
|
|
240
240
|
constructor() {
|
|
241
241
|
super(...arguments), this._messages = re({ blocking: !0 }), this.initialized = !1, this._propWatcherTask = new J(this, {
|
|
242
242
|
task: async ([e, t]) => {
|
|
243
243
|
const i = f(e) && f(t);
|
|
244
|
-
if (f(e) ||
|
|
244
|
+
if (f(e) || _("error", this, D("layer")), f(t) || _("error", this, D("fieldName")), !i)
|
|
245
245
|
throw new Error();
|
|
246
246
|
await this.processProps(), this._propWatcherTask.autoRun = !1;
|
|
247
247
|
},
|
|
248
248
|
args: () => [this.layer, this.fieldName]
|
|
249
|
-
}), this.oneFeatureResponseStatus = "missing", this.statisticsStatus = "missing", this.uniqueValuesStatus = "missing", this.hideAlias = !1, this.hideNumericFormat = !1, this.hideStatistics = !1, this.arcgisComplete =
|
|
249
|
+
}), this.oneFeatureResponseStatus = "missing", this.statisticsStatus = "missing", this.uniqueValuesStatus = "missing", this.hideAlias = !1, this.hideNumericFormat = !1, this.hideStatistics = !1, this.arcgisComplete = Q();
|
|
250
250
|
}
|
|
251
251
|
static {
|
|
252
252
|
this.properties = { oneFeatureResponseStatus: 16, oneFeatureResponse: 16, statisticsStatus: 16, statistics: 16, uniqueValuesStatus: 16, uniqueValues: 16, view: 0, layer: 0, fieldName: 1, hideAlias: 5, hideNumericFormat: 5, hideStatistics: 5 };
|
|
@@ -270,7 +270,7 @@ class Fe extends Q {
|
|
|
270
270
|
let s;
|
|
271
271
|
if (t.declaredClass === "esri.layers.support.Sublayer") {
|
|
272
272
|
const l = t;
|
|
273
|
-
e && await
|
|
273
|
+
e && await L.whenOnce(() => !e.updating), s = await l.createFeatureLayer(), await s?.load();
|
|
274
274
|
}
|
|
275
275
|
if (this.oneFeatureResponseStatus = "missing", this.oneFeatureResponse = void 0, this.statisticsStatus = "missing", this.statistics = void 0, this.uniqueValuesStatus = "missing", this.uniqueValues = void 0, this.props = {
|
|
276
276
|
view: e,
|
|
@@ -278,10 +278,10 @@ class Fe extends Q {
|
|
|
278
278
|
fieldName: i,
|
|
279
279
|
hideStatistics: r
|
|
280
280
|
}, this.props.fieldInfo = ue(this.props), !this.props.fieldInfo) {
|
|
281
|
-
|
|
281
|
+
_("error", this, `Field ${i} does not exist in layer.`);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
U(t) && z.request.interceptors?.push({
|
|
285
285
|
urls: `${ne(t)}/${t.layerId}`,
|
|
286
286
|
before(l) {
|
|
287
287
|
l.requestOptions.authMode = "no-prompt";
|
|
@@ -290,7 +290,7 @@ class Fe extends Q {
|
|
|
290
290
|
}
|
|
291
291
|
async processPropsPart2() {
|
|
292
292
|
const { layer: e, hideStatistics: t } = this;
|
|
293
|
-
if (await this.requestOneFeature(), w(e) ||
|
|
293
|
+
if (await this.requestOneFeature(), w(e) || R(e) || k(e)) {
|
|
294
294
|
this.uniqueValuesStatus = "failed", this.statisticsStatus = "failed";
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
@@ -336,7 +336,7 @@ class Fe extends Q {
|
|
|
336
336
|
setUpTimeZoneHandle() {
|
|
337
337
|
this.timeZoneHandle?.remove();
|
|
338
338
|
const { props: e } = this, { view: t, fieldInfo: i } = e;
|
|
339
|
-
["date", "timestamp-offset"].includes(this._getStatisticsType(i)) && (this.timeZoneHandle =
|
|
339
|
+
["date", "timestamp-offset"].includes(this._getStatisticsType(i)) && (this.timeZoneHandle = L.watch(() => t?.timeZone, () => this.requestUpdate()));
|
|
340
340
|
}
|
|
341
341
|
_getFieldTypeLabel(e) {
|
|
342
342
|
const { _messages: t } = this, i = t.fieldTypes;
|
|
@@ -503,7 +503,7 @@ class Fe extends Q {
|
|
|
503
503
|
if (this.completeRefHandler && clearInterval(this.completeRefHandler), e) {
|
|
504
504
|
let t = 0;
|
|
505
505
|
this.completeRefHandler = setInterval(() => {
|
|
506
|
-
(t > 130 || this.isFinished(this.uniqueValuesStatus) && this.isFinished(this.statisticsStatus)) && (clearInterval(this.completeRefHandler), this.arcgisComplete.emit()
|
|
506
|
+
(t > 130 || this.isFinished(this.uniqueValuesStatus) && this.isFinished(this.statisticsStatus)) && (clearInterval(this.completeRefHandler), this.arcgisComplete.emit()), t++;
|
|
507
507
|
}, 1e3);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
@@ -551,7 +551,7 @@ class Fe extends Q {
|
|
|
551
551
|
}
|
|
552
552
|
originalLayerSupportsFieldConfigs() {
|
|
553
553
|
const { layer: e } = this;
|
|
554
|
-
return
|
|
554
|
+
return A.supportsFieldConfiguration(e);
|
|
555
555
|
}
|
|
556
556
|
getPopupTemplateFieldInfo() {
|
|
557
557
|
const { props: e } = this, { layer: t, fieldName: i } = e;
|
|
@@ -583,7 +583,7 @@ class Fe extends Q {
|
|
|
583
583
|
if (!y(i))
|
|
584
584
|
return "";
|
|
585
585
|
const { fieldInfo: r } = t, s = r.layerField.description;
|
|
586
|
-
return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${
|
|
586
|
+
return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${q({
|
|
587
587
|
missing: !s
|
|
588
588
|
})}>${s || e.fieldDescriptionNotSet}</div></div>`;
|
|
589
589
|
}
|
|
@@ -592,7 +592,7 @@ class Fe extends Q {
|
|
|
592
592
|
if (!y(i))
|
|
593
593
|
return "";
|
|
594
594
|
const { fieldInfo: r } = t, s = this._getFieldValueTypeCamelCase(r);
|
|
595
|
-
return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${
|
|
595
|
+
return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${q(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
|
|
596
596
|
}
|
|
597
597
|
renderFieldSampleValue() {
|
|
598
598
|
const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: r, uniqueValuesStatus: s, uniqueValues: l, _messages: m, props: n } = this, { layer: d, fieldName: o, fieldInfo: u } = n, { statistics: g } = m;
|
|
@@ -603,7 +603,7 @@ class Fe extends Q {
|
|
|
603
603
|
(p === void 0 || p === null && v.attributes[o] !== null) && (p = v.attributes[o]);
|
|
604
604
|
}) : i === "success" ? p = r?.min ?? void 0 : s === "success" && (p = l?.uniqueValueInfos?.[0]?.value ?? l?.uniqueValueInfos?.[1]?.value ?? void 0);
|
|
605
605
|
const S = u.codedValues;
|
|
606
|
-
return f(p) && (S ? p = S.find((v) => p === v.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${
|
|
606
|
+
return f(p) && (S ? p = S.find((v) => p === v.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${q(t === "failed" && i === "failed" && s === "failed" || !f(p) ? "missing" : "")}>${t === "success" || i === "success" || s === "success" ? p?.toString() ?? g.allNulls : t === "failed" && i === "failed" && s === "failed" ? m.fieldSampleNotAvailable : m.fieldSampleRetrieving}</div></div>`;
|
|
607
607
|
}
|
|
608
608
|
renderFieldNumericFormat() {
|
|
609
609
|
const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: r, fieldInfo: s, layer: l } = t;
|
|
@@ -629,7 +629,7 @@ class Fe extends Q {
|
|
|
629
629
|
}
|
|
630
630
|
renderFieldStatistics() {
|
|
631
631
|
const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: r, props: s } = this, { layer: l, fieldInfo: m } = s;
|
|
632
|
-
return i ? (this.arcgisComplete.emit(),
|
|
632
|
+
return i ? (this.arcgisComplete.emit(), "") : R(l) || k(l) || w(l) || F(l) || T(l) || ["long"].includes(m.layerField.type) ? (this.arcgisComplete.emit(), "") : c`<div class="section"><div class="title">${r.fieldStatistics}</div>${!this.isFinished(t) && !this.isFinished(e) ? this.renderWaitingForStatistics() : e === "failed" && t === "failed" ? this.renderNoStatistics() : this.renderStatistics()}</div>`;
|
|
633
633
|
}
|
|
634
634
|
renderWaitingForStatistics() {
|
|
635
635
|
const { _messages: e } = this;
|
|
@@ -711,7 +711,7 @@ class Fe extends Q {
|
|
|
711
711
|
return c`<div class="statistics-row"><div>${r.numberOfNulls}</div>${f(s) ? c`<div class="data">${this._printNumValue(s)}</div>` : c`<div class="missing">--</div>`}</div>`;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
G("arcgis-field-info", Fe);
|
|
715
715
|
export {
|
|
716
716
|
Fe as ArcgisFieldInfo
|
|
717
717
|
};
|
|
@@ -73,13 +73,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
73
73
|
accessor filterNoResultsText: string | undefined;
|
|
74
74
|
/** Filter placeholder text. */
|
|
75
75
|
accessor filterPlaceholderText: string | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated
|
|
78
|
-
* Pass in grouped lists of fields instead. Removal target v6.0.0.
|
|
79
|
-
* If true, fields and expressions are placed in separate groups.
|
|
80
|
-
* @default false
|
|
81
|
-
*/
|
|
82
|
-
accessor groupFieldsAndExpressions: boolean | undefined;
|
|
83
76
|
/** Heading text. Valid only if listOnly is not set to true. */
|
|
84
77
|
accessor heading: string | undefined;
|
|
85
78
|
/**
|
|
@@ -102,8 +95,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
102
95
|
* @default false
|
|
103
96
|
*/
|
|
104
97
|
accessor listOnly: boolean;
|
|
105
|
-
/** @deprecated use view instead. Removal target v6.0.0. */
|
|
106
|
-
accessor mapView: View | undefined;
|
|
107
98
|
/**
|
|
108
99
|
* If true, allows for multiple selection. If false, the
|
|
109
100
|
* popover will close once an item has been selected.
|
|
@@ -117,11 +108,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
117
108
|
accessor popoverProps: PopoverProps | undefined;
|
|
118
109
|
/** The initially selected fields. Will use selectedFields[0] when multiple is set to false. */
|
|
119
110
|
accessor selectedFields: string[];
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated use hideCancel instead. Removal target v6.0.0.
|
|
122
|
-
* @default true
|
|
123
|
-
*/
|
|
124
|
-
accessor showCancel: boolean;
|
|
125
111
|
/**
|
|
126
112
|
* If true, displays description. By default only displays field alias.
|
|
127
113
|
*
|
|
@@ -159,11 +145,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
159
145
|
* @default false
|
|
160
146
|
*/
|
|
161
147
|
accessor showSelectionAll: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* @deprecated use hideSort instead. Removal target v6.0.0.
|
|
164
|
-
* @default true
|
|
165
|
-
*/
|
|
166
|
-
accessor showSort: boolean;
|
|
167
148
|
/**
|
|
168
149
|
* The initial sort order. Sort order applies directly to any sub-fields.
|
|
169
150
|
*
|
|
@@ -190,12 +171,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
190
171
|
readonly arcgisDeleteField: import("@arcgis/lumina").TargetedEvent<this, { fieldName: string; }>;
|
|
191
172
|
/** Emitted when the edit icon of a field has been clicked. The field must have PickListFieldInfo.showEditAction set to true. */
|
|
192
173
|
readonly arcgisEditField: import("@arcgis/lumina").TargetedEvent<this, { fieldName: string; }>;
|
|
193
|
-
/** @deprecated use arcgisChange instead. Removal target v6.0.0. */
|
|
194
|
-
readonly arcgisFieldPickListChange: import("@arcgis/lumina").TargetedEvent<this, { selectedFields: string[]; }>;
|
|
195
|
-
/** @deprecated use arcgisClose instead. Removal target v6.0.0. */
|
|
196
|
-
readonly arcgisFieldPickListDismissed: import("@arcgis/lumina").TargetedEvent<this, { selectedFields: string[]; } | void>;
|
|
197
|
-
/** @deprecated use arcgisSortByChange instead. Removal target v6.0.0. */
|
|
198
|
-
readonly arcgisFieldPickListSortByChange: import("@arcgis/lumina").TargetedEvent<this, LastSortBy>;
|
|
199
174
|
/** Emitted when the field pick list sort order has changed. */
|
|
200
175
|
readonly arcgisSortByChange: import("@arcgis/lumina").TargetedEvent<this, LastSortBy>;
|
|
201
176
|
readonly "@eventTypes": {
|
|
@@ -203,9 +178,6 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
203
178
|
arcgisClose: ArcgisFieldPickList["arcgisClose"]["detail"];
|
|
204
179
|
arcgisDeleteField: ArcgisFieldPickList["arcgisDeleteField"]["detail"];
|
|
205
180
|
arcgisEditField: ArcgisFieldPickList["arcgisEditField"]["detail"];
|
|
206
|
-
arcgisFieldPickListChange: ArcgisFieldPickList["arcgisFieldPickListChange"]["detail"];
|
|
207
|
-
arcgisFieldPickListDismissed: ArcgisFieldPickList["arcgisFieldPickListDismissed"]["detail"];
|
|
208
|
-
arcgisFieldPickListSortByChange: ArcgisFieldPickList["arcgisFieldPickListSortByChange"]["detail"];
|
|
209
181
|
arcgisSortByChange: ArcgisFieldPickList["arcgisSortByChange"]["detail"];
|
|
210
182
|
};
|
|
211
183
|
}
|