@arcgis/map-components 5.2.0-next.125 → 5.2.0-next.126
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/{UAVFDEON.js → BLCZLLCG.js} +1 -1
- package/dist/cdn/{DQIMHFDG.js → DDZKBKTV.js} +1 -1
- package/dist/cdn/K4DCZOCW.js +2 -0
- package/dist/cdn/{LVQNIROC.js → SGA5LQW4.js} +1 -1
- package/dist/cdn/{LDSWU43M.js → TE7CGN73.js} +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +6 -0
- package/dist/components/arcgis-building-discipline-tree/customElement.js +57 -57
- package/dist/components/arcgis-building-explorer/customElement.d.ts +16 -0
- package/dist/components/arcgis-building-explorer/customElement.js +11 -11
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +6 -0
- package/dist/components/arcgis-feature-table/customElement.d.ts +14 -0
- package/dist/components/arcgis-feature-table/customElement.js +11 -5
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -2
- package/dist/components/arcgis-popup/customElement.d.ts +1 -2
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +20 -20
- 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/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/3IWADUPH.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { css as S, html as p } from "lit";
|
|
4
|
+
import { LitElement as V, nothing as L } from "@arcgis/lumina";
|
|
5
5
|
import y from "@arcgis/core/core/Collection.js";
|
|
6
6
|
import m from "@arcgis/core/core/Accessor.js";
|
|
7
7
|
import { property as a, subclass as v } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
8
|
import { c as O, f as $ } from "../../chunks/layer-utils2.js";
|
|
9
9
|
import { watch as b, on as E } from "@arcgis/core/core/reactiveUtils.js";
|
|
10
10
|
import { i as A } from "../../chunks/async-utils.js";
|
|
11
|
-
var D = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (e,
|
|
12
|
-
for (var s = l > 1 ? void 0 : l ? M(
|
|
13
|
-
(o = e[r]) && (s = (l ? o(
|
|
14
|
-
return l && s && D(
|
|
11
|
+
var D = Object.defineProperty, M = Object.getOwnPropertyDescriptor, d = (e, i, t, l) => {
|
|
12
|
+
for (var s = l > 1 ? void 0 : l ? M(i, t) : i, r = e.length - 1, o; r >= 0; r--)
|
|
13
|
+
(o = e[r]) && (s = (l ? o(i, t, s) : o(s)) || s);
|
|
14
|
+
return l && s && D(i, t, s), s;
|
|
15
15
|
};
|
|
16
16
|
let n = class extends m {
|
|
17
17
|
constructor(e) {
|
|
@@ -72,10 +72,10 @@ let n = class extends m {
|
|
|
72
72
|
* The value to which the `visible` property of each layer is to be set.
|
|
73
73
|
*/
|
|
74
74
|
toggleVisibility(e) {
|
|
75
|
-
const
|
|
76
|
-
this.layers.forEach((
|
|
77
|
-
|
|
78
|
-
}),
|
|
75
|
+
const i = e === void 0 ? !this.visible : e;
|
|
76
|
+
this.layers.forEach((t) => {
|
|
77
|
+
t.visible = i;
|
|
78
|
+
}), i && this.parent != null && this.parent.toggleVisibility(!0);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Toggles the visibility of all the layers controlled by this node,
|
|
@@ -85,8 +85,8 @@ let n = class extends m {
|
|
|
85
85
|
* The value to which the `visible` property of each layer and siblings is to be set.
|
|
86
86
|
*/
|
|
87
87
|
toggleAllSiblingsVisibility(e) {
|
|
88
|
-
const
|
|
89
|
-
this.toggleVisibility(
|
|
88
|
+
const i = e === void 0 ? !this.visible : e;
|
|
89
|
+
this.toggleVisibility(i), this.parent != null && (this.parent.toggleVisibility(i), this.parent.children.forEach((t) => t.toggleVisibility(i)));
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
d([
|
|
@@ -119,23 +119,23 @@ d([
|
|
|
119
119
|
n = d([
|
|
120
120
|
v("esri.widgets.BuildingExplorer.support.LayerTreeNode")
|
|
121
121
|
], n);
|
|
122
|
-
function f(e,
|
|
123
|
-
let
|
|
122
|
+
function f(e, i) {
|
|
123
|
+
let t = null;
|
|
124
124
|
for (const l of e) {
|
|
125
|
-
const s =
|
|
126
|
-
if (
|
|
125
|
+
const s = i(l);
|
|
126
|
+
if (t != null && t !== s)
|
|
127
127
|
return null;
|
|
128
|
-
|
|
128
|
+
t = s;
|
|
129
129
|
}
|
|
130
|
-
return
|
|
130
|
+
return t;
|
|
131
131
|
}
|
|
132
|
-
var N = Object.defineProperty,
|
|
132
|
+
var N = Object.defineProperty, P = Object.getOwnPropertyDescriptor, _ = (e) => {
|
|
133
133
|
throw TypeError(e);
|
|
134
|
-
},
|
|
135
|
-
for (var s = l > 1 ? void 0 : l ?
|
|
136
|
-
(o = e[r]) && (s = (l ? o(
|
|
137
|
-
return l && s && N(
|
|
138
|
-
},
|
|
134
|
+
}, g = (e, i, t, l) => {
|
|
135
|
+
for (var s = l > 1 ? void 0 : l ? P(i, t) : i, r = e.length - 1, o; r >= 0; r--)
|
|
136
|
+
(o = e[r]) && (s = (l ? o(i, t, s) : o(s)) || s);
|
|
137
|
+
return l && s && N(i, t, s), s;
|
|
138
|
+
}, x = (e, i, t) => i.has(e) || _("Cannot " + t), u = (e, i, t) => (x(e, i, "read from private field"), t ? t.call(e) : i.get(e)), F = (e, i, t) => i.has(e) ? _("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), c;
|
|
139
139
|
let h = class extends m {
|
|
140
140
|
constructor(e) {
|
|
141
141
|
super(e), this.root = new n(), F(this, c, new y()), this.state = "disabled", this.loadLayers = O();
|
|
@@ -163,10 +163,10 @@ let h = class extends m {
|
|
|
163
163
|
this._set("state", "disabled"), this.root.destroy();
|
|
164
164
|
}
|
|
165
165
|
get layers() {
|
|
166
|
-
return
|
|
166
|
+
return u(this, c);
|
|
167
167
|
}
|
|
168
168
|
set layers(e) {
|
|
169
|
-
|
|
169
|
+
u(this, c).removeAll(), u(this, c).addMany(e);
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Initializes our internal tree with all the categories and disciplines from
|
|
@@ -174,10 +174,10 @@ let h = class extends m {
|
|
|
174
174
|
*/
|
|
175
175
|
updateLayerTree() {
|
|
176
176
|
this.root.destroy(), this._set("root", new n());
|
|
177
|
-
const e = /* @__PURE__ */ new Map(),
|
|
178
|
-
return this.layers.forEach((
|
|
179
|
-
const l = $(
|
|
180
|
-
this.addNodesForSublayers(l ??
|
|
177
|
+
const e = /* @__PURE__ */ new Map(), i = this.layers.length > 1 ? "modelName" : "id";
|
|
178
|
+
return this.layers.forEach((t) => {
|
|
179
|
+
const l = $(t);
|
|
180
|
+
this.addNodesForSublayers(l ?? t, this.root, e, i);
|
|
181
181
|
}), this;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
@@ -194,13 +194,13 @@ let h = class extends m {
|
|
|
194
194
|
* @param matchBy
|
|
195
195
|
* The sublayer property used to deduplicate sublayers.
|
|
196
196
|
*/
|
|
197
|
-
addNodeForLayer(e,
|
|
197
|
+
addNodeForLayer(e, i, t, l) {
|
|
198
198
|
const s = String(e[l]).toLowerCase();
|
|
199
199
|
if (s == null || e.isEmpty)
|
|
200
200
|
return;
|
|
201
|
-
const r = `${
|
|
202
|
-
let o =
|
|
203
|
-
o || (o = new n({ id: s, level:
|
|
201
|
+
const r = `${i.id}/${s}`;
|
|
202
|
+
let o = t.get(r);
|
|
203
|
+
o || (o = new n({ id: s, level: i.level + 1 }), t.set(r, o)), o.layers.push(e), i.children.push(o), this.addNodesForSublayers(e, o, t, l);
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* Adds nodes for all the sublayers of the specified layer.
|
|
@@ -214,8 +214,8 @@ let h = class extends m {
|
|
|
214
214
|
* @param matchBy
|
|
215
215
|
* The sublayer property used to deduplicate sublayers.
|
|
216
216
|
*/
|
|
217
|
-
addNodesForSublayers(e,
|
|
218
|
-
(e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s,
|
|
217
|
+
addNodesForSublayers(e, i, t, l) {
|
|
218
|
+
(e.type === "building-scene" || e.type === "building-group" && !e.isEmpty) && e.sublayers.forEach((s) => this.addNodeForLayer(s, i, t, l));
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
221
|
* Called when the layers are changed.
|
|
@@ -230,20 +230,20 @@ let h = class extends m {
|
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
c = /* @__PURE__ */ new WeakMap();
|
|
233
|
-
|
|
233
|
+
g([
|
|
234
234
|
a()
|
|
235
235
|
], h.prototype, "root", 2);
|
|
236
|
-
|
|
236
|
+
g([
|
|
237
237
|
a()
|
|
238
238
|
], h.prototype, "layers", 1);
|
|
239
|
-
|
|
239
|
+
g([
|
|
240
240
|
a()
|
|
241
241
|
], h.prototype, "state", 2);
|
|
242
|
-
h =
|
|
242
|
+
h = g([
|
|
243
243
|
v("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")
|
|
244
244
|
], h);
|
|
245
|
-
const
|
|
246
|
-
class
|
|
245
|
+
const I = S`.label{--calcite-label-margin-bottom: 0}`;
|
|
246
|
+
class T extends V {
|
|
247
247
|
constructor() {
|
|
248
248
|
super(...arguments), this.#e = new h(), this.toggleSiblingsVisibility = !1;
|
|
249
249
|
}
|
|
@@ -251,32 +251,32 @@ class B extends S {
|
|
|
251
251
|
this.properties = { layers: 0, messages: 0, toggleSiblingsVisibility: 5 };
|
|
252
252
|
}
|
|
253
253
|
static {
|
|
254
|
-
this.styles =
|
|
254
|
+
this.styles = I;
|
|
255
255
|
}
|
|
256
256
|
#e;
|
|
257
257
|
get layers() {
|
|
258
258
|
return this.#e.layers.toArray();
|
|
259
259
|
}
|
|
260
|
-
set layers(
|
|
261
|
-
this.#e.layers = new y(
|
|
260
|
+
set layers(i) {
|
|
261
|
+
this.#e.layers = new y(i);
|
|
262
262
|
}
|
|
263
263
|
render() {
|
|
264
|
-
const
|
|
265
|
-
return
|
|
264
|
+
const i = this.messages, t = this.#e;
|
|
265
|
+
return i == null ? null : p`<calcite-tree lines selection-mode=none>${w({ node: t.root, messages: i, toggleSiblingsVisibility: this.toggleSiblingsVisibility })}</calcite-tree>`;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
const
|
|
270
|
-
return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${
|
|
271
|
-
r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (
|
|
272
|
-
}} title=${s ??
|
|
273
|
-
|
|
274
|
-
}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren ? p`<calcite-tree lines selection-mode=none slot=children>${w({ node: e.node, messages: e.messages })}</calcite-tree>` : null}</calcite-tree-item>`;
|
|
268
|
+
function B(e) {
|
|
269
|
+
const i = e.node, t = i.visible === !0, l = i.visible === null, s = t ? e.messages.hideSublayer : e.messages.showSublayer;
|
|
270
|
+
return p`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${t} .indeterminate=${l} .label=${s} @click=${(r) => {
|
|
271
|
+
r.stopPropagation(), (r.metaKey || r.ctrlKey) && e.toggleSiblingsVisibility && (r.stopImmediatePropagation(), i.toggleAllSiblingsVisibility());
|
|
272
|
+
}} title=${s ?? L} @calciteCheckboxChange=${(r) => {
|
|
273
|
+
i.toggleVisibility(r.currentTarget.checked);
|
|
274
|
+
}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren ? p`<calcite-tree lines selection-mode=none slot=children>${w({ node: e.node, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility })}</calcite-tree>` : null}</calcite-tree-item>`;
|
|
275
275
|
}
|
|
276
276
|
function w(e) {
|
|
277
|
-
return e.node.children.toArray().reverse().map((
|
|
277
|
+
return e.node.children.toArray().reverse().map((t) => B({ node: t, messages: e.messages, toggleSiblingsVisibility: e.toggleSiblingsVisibility }));
|
|
278
278
|
}
|
|
279
|
-
C("arcgis-building-discipline-tree",
|
|
279
|
+
C("arcgis-building-discipline-tree", T);
|
|
280
280
|
export {
|
|
281
|
-
|
|
281
|
+
T as BuildingDisciplineTree
|
|
282
282
|
};
|
|
@@ -68,6 +68,14 @@ export abstract class ArcgisBuildingExplorer extends LitElement {
|
|
|
68
68
|
* @since 5.0
|
|
69
69
|
*/
|
|
70
70
|
accessor hideDisciplines: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* If true, the Level heading will be hidden without hiding the levels filter.
|
|
73
|
+
* To hide the entire filter, use [hideLevels](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-building-explorer/#hideLevels).
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
* @since 5.2
|
|
77
|
+
*/
|
|
78
|
+
accessor hideLevelHeading: boolean;
|
|
71
79
|
/**
|
|
72
80
|
* If true, the levels filter will be hidden.
|
|
73
81
|
* The filter is also hidden when fewer than two levels are available.
|
|
@@ -207,6 +215,14 @@ export abstract class ArcgisBuildingExplorer extends LitElement {
|
|
|
207
215
|
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
208
216
|
*/
|
|
209
217
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* If true, Ctrl-clicking or Command-clicking a discipline or category checkbox
|
|
220
|
+
* also toggles its siblings, matching the BuildingExplorer widget.
|
|
221
|
+
*
|
|
222
|
+
* @default false
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
accessor toggleSiblingsVisibility: boolean;
|
|
210
226
|
/**
|
|
211
227
|
* The view associated with the component.
|
|
212
228
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-building-explorer component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as J, createEvent as
|
|
2
|
+
import { c as U } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as j, html as h } from "lit";
|
|
4
|
+
import { LitElement as J, createEvent as L } from "@arcgis/lumina";
|
|
5
5
|
import { u as T } from "../../chunks/useView.js";
|
|
6
|
-
import { H as
|
|
6
|
+
import { H as B } from "../../chunks/heading.js";
|
|
7
7
|
import p from "@arcgis/core/core/Collection.js";
|
|
8
8
|
import { u as G } from "../../chunks/useT9n.js";
|
|
9
9
|
import { watch as M } from "@arcgis/core/core/reactiveUtils.js";
|
|
@@ -15,7 +15,7 @@ import { isAbortError as Z } from "@arcgis/core/core/promiseUtils.js";
|
|
|
15
15
|
import q from "@arcgis/core/layers/support/BuildingFilter.js";
|
|
16
16
|
import { V as F } from "../../chunks/visible-element.js";
|
|
17
17
|
import { C as K } from "../../chunks/component-wrapper.js";
|
|
18
|
-
const Q =
|
|
18
|
+
const Q = j`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`, D = "__BUILDING_EXPLORER_FILTER__";
|
|
19
19
|
function Y() {
|
|
20
20
|
return `${crypto.randomUUID()}${D}`;
|
|
21
21
|
}
|
|
@@ -318,13 +318,13 @@ d([
|
|
|
318
318
|
n = d([
|
|
319
319
|
$("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")
|
|
320
320
|
], n);
|
|
321
|
-
var ne = Object.defineProperty, de = Object.getOwnPropertyDescriptor,
|
|
321
|
+
var ne = Object.defineProperty, de = Object.getOwnPropertyDescriptor, H = (t) => {
|
|
322
322
|
throw TypeError(t);
|
|
323
323
|
}, P = (t, e, i, s) => {
|
|
324
324
|
for (var r = s > 1 ? void 0 : s ? de(e, i) : e, l = t.length - 1, a; l >= 0; l--)
|
|
325
325
|
(a = t[l]) && (r = (s ? a(e, i, r) : a(r)) || r);
|
|
326
326
|
return s && r && ne(e, i, r), r;
|
|
327
|
-
}, ce = (t, e, i) => e.has(t) ||
|
|
327
|
+
}, ce = (t, e, i) => e.has(t) || H("Cannot " + i), he = (t, e, i) => (ce(t, e, "read from private field"), i ? i.call(t) : e.get(t)), ue = (t, e, i) => e.has(t) ? H("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), k;
|
|
328
328
|
const pe = "bldglevel";
|
|
329
329
|
let f = class extends n {
|
|
330
330
|
constructor(t) {
|
|
@@ -489,10 +489,10 @@ u = v([
|
|
|
489
489
|
], u);
|
|
490
490
|
class we extends J {
|
|
491
491
|
constructor() {
|
|
492
|
-
super(...arguments), this.messages = G({ blocking: !0 }), this.#i = new p(), this.#r = new u(), this.view = T(this), this.autoDestroyDisabled = !1, this.headingLevel = 3, this.hideDisciplines = !1, this.hideLevels = !1, this.hidePhases = !1, this.icon = "organization", this.arcgisBuildingLevelChange =
|
|
492
|
+
super(...arguments), this.messages = G({ blocking: !0 }), this.#i = new p(), this.#r = new u(), this.view = T(this), this.autoDestroyDisabled = !1, this.headingLevel = 3, this.hideDisciplines = !1, this.hideLevelHeading = !1, this.hideLevels = !1, this.hidePhases = !1, this.icon = "organization", this.toggleSiblingsVisibility = !1, this.arcgisBuildingLevelChange = L({ bubbles: !0, composed: !0 }), this.arcgisBuildingPhaseChange = L({ bubbles: !0, composed: !0 }), this.arcgisReady = L();
|
|
493
493
|
}
|
|
494
494
|
static {
|
|
495
|
-
this.properties = { view: 0, autoDestroyDisabled: 5, headingLevel: 9, hideDisciplines: 5, hideLevels: 5, hidePhases: 5, icon: 1, label: 1, layers: 0, level: 9, phase: 9, levels: 0, phases: 0, levelDisabled: 32, phaseDisabled: 32, referenceElement: 1 };
|
|
495
|
+
this.properties = { view: 0, autoDestroyDisabled: 5, headingLevel: 9, hideDisciplines: 5, hideLevelHeading: 5, hideLevels: 5, hidePhases: 5, icon: 1, label: 1, layers: 0, level: 9, phase: 9, levels: 0, phases: 0, levelDisabled: 32, phaseDisabled: 32, referenceElement: 1, toggleSiblingsVisibility: 5 };
|
|
496
496
|
}
|
|
497
497
|
static {
|
|
498
498
|
this.styles = Q;
|
|
@@ -583,13 +583,13 @@ class we extends J {
|
|
|
583
583
|
if (this.#e.state === "failed" || this.#t.state === "failed")
|
|
584
584
|
return x({ label: e.componentLabel, children: h`<p class="disabled">${e.failed}</p>` });
|
|
585
585
|
const i = this.hideLevels || this.#e.allowedValues.length < 2, s = this.hidePhases || this.#t.allowedValues.length < 2, r = this.#e.state !== "ready" || this.#t.state !== "ready";
|
|
586
|
-
return x({ label: e.componentLabel, loading: r, children: h`${F({ hidden: i, children: h`<div>${
|
|
586
|
+
return x({ label: e.componentLabel, loading: r, children: h`${F({ hidden: i, children: h`<div>${this.hideLevelHeading ? null : B({ level: this.headingLevel, children: this.messages.level.title })}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>` })}${F({ hidden: s, children: h`<div>${B({ level: this.headingLevel, children: this.messages.phase.title })}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>` })}${F({ hidden: this.hideDisciplines, children: h`<div>${B({ level: this.headingLevel, children: this.messages.disciplines.title })}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines} .toggleSiblingsVisibility=${this.toggleSiblingsVisibility}></arcgis-building-discipline-tree></div>` })}` });
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
function x(t) {
|
|
590
590
|
return K({ class: "root", hideHeader: !0, label: t.label, children: h`${t.children}${t.loading ? h`<calcite-scrim .loading=${t.loading}></calcite-scrim>` : null}` });
|
|
591
591
|
}
|
|
592
|
-
|
|
592
|
+
U("arcgis-building-explorer", we);
|
|
593
593
|
export {
|
|
594
594
|
we as ArcgisBuildingExplorer
|
|
595
595
|
};
|
|
@@ -19,6 +19,12 @@ import type { SystemOrLengthUnit } from "@arcgis/core/core/units.js";
|
|
|
19
19
|
*
|
|
20
20
|
* In **projected coordinate systems** (PCS), apart from Web Mercator, lengths are computed in a Euclidean manner (in their respective PCS).
|
|
21
21
|
*
|
|
22
|
+
* **Known limitations**
|
|
23
|
+
*
|
|
24
|
+
* - This component currently uses its own `snappingOptions` rather than
|
|
25
|
+
* [view.options.snapping](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/#snapping).
|
|
26
|
+
* Tooltips and units configured through `view.options` still apply. Support for `view.options.snapping` is planned for a future release.
|
|
27
|
+
*
|
|
22
28
|
* @since 4.28
|
|
23
29
|
*/
|
|
24
30
|
export abstract class ArcgisDistanceMeasurement2d extends LitElement {
|
|
@@ -165,6 +165,12 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
165
165
|
* @since 5.0
|
|
166
166
|
*/
|
|
167
167
|
accessor autoSaveDisabled: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Indicates the number of pages currently cached in the store.
|
|
170
|
+
*
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
get cachedPageCount(): number;
|
|
168
174
|
/**
|
|
169
175
|
* Indicates whether the table supports adding a related record based on the current relationship
|
|
170
176
|
* configuration. This accounts for whether table is currently configured to show related features.
|
|
@@ -1154,6 +1160,14 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
1154
1160
|
exportSelectionToCSV(includeGeometry?: boolean): Promise<void>;
|
|
1155
1161
|
/** @param fieldName */
|
|
1156
1162
|
findColumn(fieldName: string): Promise<ActionColumn | AttachmentsColumn | Column | GroupColumn | RelationshipColumn | null | undefined>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Returns cached features for a specific page index.
|
|
1165
|
+
*
|
|
1166
|
+
* @param pageIndex - The index of the page for which to retrieve cached features.
|
|
1167
|
+
* @returns An array of FeatureStoreItem objects representing the cached features for the specified page, or undefined if no cached features are found for that page.
|
|
1168
|
+
* @internal
|
|
1169
|
+
*/
|
|
1170
|
+
getCachedFeaturesByPageIndex(pageIndex: number): Promise<FeatureStoreItem[] | undefined>;
|
|
1157
1171
|
/**
|
|
1158
1172
|
* Returns information about the feature with the provided object ID from the internal store.
|
|
1159
1173
|
*
|