@arcgis/map-components 5.2.0-next.112 → 5.2.0-next.113
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/2IXK6FXU.js +2 -0
- package/dist/cdn/{JKCGTCG6.js → 3TPD2N2I.js} +1 -1
- package/dist/cdn/{LCOOHDI3.js → 3URRH44W.js} +1 -1
- package/dist/cdn/{NQOQ36Y2.js → 4FYMG6IH.js} +1 -1
- package/dist/cdn/7HLMTE33.js +2 -0
- package/dist/cdn/{VOJY6FXL.js → AQYFARIC.js} +1 -1
- package/dist/cdn/{LANNPFOP.js → BN463XIX.js} +1 -1
- package/dist/cdn/CX2YLGWT.js +2 -0
- package/dist/cdn/{ILSW3DDL.js → IOTJDQ3Y.js} +1 -1
- package/dist/cdn/IRXNCI5X.js +2 -0
- package/dist/cdn/{E2GZ3L2T.js → IYZBLJYE.js} +1 -1
- package/dist/cdn/{7VWYXUNL.js → JUOOCVOD.js} +1 -1
- package/dist/cdn/L3V32U4F.js +2 -0
- package/dist/cdn/MJFHE7GG.js +2 -0
- package/dist/cdn/{YGPXXFEU.js → O6WH3FIU.js} +1 -1
- package/dist/cdn/SXCSIRDN.js +2 -0
- package/dist/cdn/{TXQAJ2UV.js → XLGTKYB2.js} +1 -1
- package/dist/cdn/{O7JQ5KZB.js → XUNBAMHK.js} +1 -1
- package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/images/Loading_Indicator_double_32.svg +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/screenLocation.js +8 -8
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +2 -3
- package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +8 -2
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +3 -0
- package/dist/components/arcgis-features/customElement.js +29 -29
- package/dist/components/arcgis-features-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-features-next/customElement.js +6 -6
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +36 -36
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +18 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -2
- package/dist/components/arcgis-spinner/customElement.js +24 -17
- package/dist/components/arcgis-table-list-next/customElement.d.ts +7 -11
- package/dist/components/arcgis-table-list-next/types.d.ts +71 -4
- 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/dist/utils/action-utils.d.ts +18 -1
- package/package.json +5 -5
- package/dist/cdn/564IIZBI.js +0 -2
- package/dist/cdn/G743AW46.js +0 -2
- package/dist/cdn/GGU23I3D.js +0 -2
- package/dist/cdn/OQLHFQ55.js +0 -2
- package/dist/cdn/WNTLOOG5.js +0 -2
- package/dist/cdn/YHNCQVNV.js +0 -2
- package/dist/cdn/Z47FY3JZ.js +0 -2
|
@@ -10,7 +10,7 @@ import { useDirection as P, usePropertyChange as z, bypassReadOnly as x } from "
|
|
|
10
10
|
import { m as U } from "../../chunks/useViewModel.js";
|
|
11
11
|
import { LitElement as Z, createEvent as T, renderElement as K, nothing as h, safeClassMap as I } from "@arcgis/lumina";
|
|
12
12
|
import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
|
|
13
|
-
import { watch as
|
|
13
|
+
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
14
|
import { t as j, z as G } from "../../chunks/action-utils.js";
|
|
15
15
|
import { stripHTML as V } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import E from "@arcgis/core/core/Collection.js";
|
|
@@ -128,11 +128,11 @@ class oe extends Z {
|
|
|
128
128
|
signal: o
|
|
129
129
|
}), e = this.view.toScreen(this.location) ?? void 0), !e)
|
|
130
130
|
return;
|
|
131
|
-
const
|
|
131
|
+
const r = await this.viewModel.fetchFeatures(e, {
|
|
132
132
|
...t,
|
|
133
133
|
signal: o
|
|
134
134
|
});
|
|
135
|
-
this.location =
|
|
135
|
+
this.location = r.location, this.promises = r.pendingFeatures;
|
|
136
136
|
}
|
|
137
137
|
async next() {
|
|
138
138
|
return A("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
|
|
@@ -157,24 +157,24 @@ class oe extends Z {
|
|
|
157
157
|
}
|
|
158
158
|
loaded() {
|
|
159
159
|
this.manager.onLifecycle(() => [
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
l(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
|
|
161
|
+
l(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
|
|
162
|
+
l(() => this._spinnerEl?.screenLocation, () => this._closeOpenActionMenu()),
|
|
163
|
+
l(() => this.selectedFeatureComponent?.viewModel, () => this._removeFlowItems()),
|
|
164
|
+
l(() => this.viewModel?.featureViewModels, () => this._featureMenuViewportScrollTop()),
|
|
165
|
+
l(() => this.flowItems.length, () => this._syncSelectedDrillInFeature()),
|
|
166
|
+
l(() => [
|
|
167
167
|
this.viewModel?.title,
|
|
168
168
|
this.viewModel?.selectedFeatureViewModel?.title,
|
|
169
169
|
this.viewModel?.selectedFeatureViewModel?.state
|
|
170
170
|
], () => this._syncEffectiveHeading(), { initial: !0 }),
|
|
171
|
-
|
|
171
|
+
l(() => [this.flowItems?.length, this.featureMenuOpen], () => {
|
|
172
172
|
this.setFocus();
|
|
173
173
|
}),
|
|
174
|
-
|
|
174
|
+
l(() => this.referenceElement, (e, t) => {
|
|
175
175
|
this._removeSpinner(t), this._createSpinner();
|
|
176
176
|
}, { initial: !0 }),
|
|
177
|
-
|
|
177
|
+
l(() => [
|
|
178
178
|
this.hideSpinner,
|
|
179
179
|
this.viewModel?.view,
|
|
180
180
|
this.viewModel?.location,
|
|
@@ -207,8 +207,8 @@ class oe extends Z {
|
|
|
207
207
|
const i = s?.graphic;
|
|
208
208
|
if (!i)
|
|
209
209
|
return;
|
|
210
|
-
const n = q(i), o = se(n) ? n : null,
|
|
211
|
-
t.set(o, [...
|
|
210
|
+
const n = q(i), o = se(n) ? n : null, r = t.get(o) ?? [];
|
|
211
|
+
t.set(o, [...r, s]);
|
|
212
212
|
}), t;
|
|
213
213
|
}
|
|
214
214
|
_handleCollapseToggle() {
|
|
@@ -273,8 +273,8 @@ class oe extends Z {
|
|
|
273
273
|
this._unobserveFeatureMenuObserver(), e && this._featureMenuIntersectionObserver.observe(e), this._featureMenuIntersectionObserverNode = e;
|
|
274
274
|
}
|
|
275
275
|
_getActionTitle(e) {
|
|
276
|
-
const { messages: t, selectedFeature: s } = this, { id: i } = e, n = s?.attributes, o = e.title ?? "",
|
|
277
|
-
return
|
|
276
|
+
const { messages: t, selectedFeature: s } = this, { id: i } = e, n = s?.attributes, o = e.title ?? "", r = i === "zoom-to-feature" ? u(o, { messages: t }) : i === "remove-selected-feature" ? u(o, { messages: t }) : i === "zoom-to-clustered-features" ? u(o, { messages: t }) : i === "browse-clustered-features" ? u(o, { messages: t }) : e.title;
|
|
277
|
+
return r && n ? u(r, n) : r ?? "";
|
|
278
278
|
}
|
|
279
279
|
_onMainKeydown(e) {
|
|
280
280
|
const { key: t } = e;
|
|
@@ -334,7 +334,7 @@ class oe extends Z {
|
|
|
334
334
|
}
|
|
335
335
|
_createSpinner() {
|
|
336
336
|
const e = this.referenceElement;
|
|
337
|
-
e && (this._removeSpinner(e), this._spinnerEl = K(a`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
337
|
+
e && (this._removeSpinner(e), this._spinnerEl = K(a`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.location ?? void 0} .referenceElement=${e} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
338
338
|
}
|
|
339
339
|
render() {
|
|
340
340
|
return a`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`;
|
|
@@ -359,8 +359,8 @@ class oe extends Z {
|
|
|
359
359
|
})}</div>`;
|
|
360
360
|
}
|
|
361
361
|
_renderFeatureMenuButton() {
|
|
362
|
-
const { messages: e, viewModel: t } = this, { featureCount: s, streamingFeatures: i, selectedFeatureIndex: n, pendingPromisesCount: o } = t,
|
|
363
|
-
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${
|
|
362
|
+
const { messages: e, viewModel: t } = this, { featureCount: s, streamingFeatures: i, selectedFeatureIndex: n, pendingPromisesCount: o } = t, r = o > 0 || i;
|
|
363
|
+
return a`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${r} @click=${this._handlePaginationMenuButton} .text=${u(e.pageText ?? "", {
|
|
364
364
|
index: C(n + 1),
|
|
365
365
|
total: C(s)
|
|
366
366
|
})} text-enabled title=${e.selectFeature ?? h}></calcite-action>`;
|
|
@@ -376,8 +376,8 @@ class oe extends Z {
|
|
|
376
376
|
_renderFeatureMenu() {
|
|
377
377
|
const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
|
|
378
378
|
return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (n) => {
|
|
379
|
-
const o = s.get(n)?.map((c) => this._renderFeatureMenuItem(c)),
|
|
380
|
-
return !this.hideFeatureListLayerTitle &&
|
|
379
|
+
const o = s.get(n)?.map((c) => this._renderFeatureMenuItem(c)), r = n ? n.title ?? this.messages.untitled : null;
|
|
380
|
+
return !this.hideFeatureListLayerTitle && r !== null ? D(n ?? "map-graphics", a`<calcite-list-item-group .heading=${r}>${o}</calcite-list-item-group>`) : o;
|
|
381
381
|
})}</calcite-list>` : null;
|
|
382
382
|
}
|
|
383
383
|
_renderHeaderAction(e) {
|
|
@@ -388,10 +388,10 @@ class oe extends Z {
|
|
|
388
388
|
return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
|
|
389
389
|
}
|
|
390
390
|
_renderContentFeature() {
|
|
391
|
-
const { headingLevel: e, hideCloseButton: t, _isCollapsed: s, _collapseEnabled: i, _featureFlowItemSelected: n, featureNavigationTop: o, flowItems:
|
|
391
|
+
const { headingLevel: e, hideCloseButton: t, _isCollapsed: s, _collapseEnabled: i, _featureFlowItemSelected: n, featureNavigationTop: o, flowItems: r, initialDisplayMode: c, selectedFeature: f, hideHeading: g } = this, { active: v, selectedFeatureViewModel: p, content: m } = this.viewModel, d = this._getHeading();
|
|
392
392
|
if (c === "list" && !f)
|
|
393
393
|
return null;
|
|
394
|
-
const _ =
|
|
394
|
+
const _ = r.length === 0 && n, $ = p ? !p.content : !m;
|
|
395
395
|
return a`<calcite-flow-item class=${I(y({
|
|
396
396
|
"content-feature": !0,
|
|
397
397
|
"flow-item-collapsed": s
|
|
@@ -400,10 +400,10 @@ class oe extends Z {
|
|
|
400
400
|
}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
|
|
401
401
|
}
|
|
402
402
|
_renderFeatureMenuContainer() {
|
|
403
|
-
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected:
|
|
403
|
+
const { viewModel: e, hideCloseButton: t, featureMenuTitle: s, messages: i, initialDisplayMode: n, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: c, _isCollapsed: f, featureNavigationTop: g, headingLevel: v } = this, { active: p, featureViewModels: m, streamingFeatures: d, pendingPromisesCount: _ } = e, $ = _ > 0 || d, N = s ?? i.selectFeature;
|
|
404
404
|
if (n === "feature" && !o)
|
|
405
405
|
return null;
|
|
406
|
-
const O = !
|
|
406
|
+
const O = !r;
|
|
407
407
|
return a`<calcite-flow-item class=${I(y({
|
|
408
408
|
"flow-item-collapsed": f
|
|
409
409
|
}))} .closable=${n === "list" && !t} .closed=${!p} .collapsed=${n === "list" && f} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${n === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
|
|
@@ -413,10 +413,10 @@ class oe extends Z {
|
|
|
413
413
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${w(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${$ ? a`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${w(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
414
414
|
}
|
|
415
415
|
_renderFlowItem(e, t) {
|
|
416
|
-
const { messages: s, hideCloseButton: i, hideSelectFeature: n, active: o, hideHeading:
|
|
417
|
-
return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${V(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${
|
|
416
|
+
const { messages: s, hideCloseButton: i, hideSelectFeature: n, active: o, hideHeading: r } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !n, g = e.flowType === "feature-association", v = s.returnToInitialFeature ?? "", p = s?.selectFeature, m = this._getActionTitle(M), d = !this.hideActionBar && g && c;
|
|
417
|
+
return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${V(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${r ? void 0 : V(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(_) => {
|
|
418
418
|
_.preventDefault(), this._handleDrillInBackClick();
|
|
419
|
-
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${
|
|
419
|
+
}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r ? null : a`<div slot=heading><div .innerHTML=${F.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${F.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${v ?? ""} title=${v ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${m} title=${m ?? h} @click=${() => G(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
|
|
420
420
|
}
|
|
421
421
|
_renderContentContainer() {
|
|
422
422
|
const e = this.flowItems?.toArray(), t = e?.map((i, n) => this._renderFlowItem(i, this._featureFlowItemSelected && n === e.length - 1)), s = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
|
|
@@ -442,6 +442,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
442
442
|
returnToInitialFeature?: string | undefined;
|
|
443
443
|
maxRecordCountHeading?: string | undefined;
|
|
444
444
|
maxRecordCountDescriptionWithLayerList?: string | undefined;
|
|
445
|
+
maxRecordCountDescriptionRefineResults?: string | undefined;
|
|
445
446
|
maxRecordCountDescriptionMultipleLayers?: string | undefined;
|
|
446
447
|
maxRecordCountDescriptionMaxZoomLevel?: string | undefined;
|
|
447
448
|
};
|
|
@@ -476,6 +477,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
476
477
|
returnToInitialFeature: string;
|
|
477
478
|
maxRecordCountHeading: string;
|
|
478
479
|
maxRecordCountDescriptionWithLayerList: string;
|
|
480
|
+
maxRecordCountDescriptionRefineResults: string;
|
|
479
481
|
maxRecordCountDescriptionMultipleLayers: string;
|
|
480
482
|
maxRecordCountDescriptionMaxZoomLevel: string;
|
|
481
483
|
}> & T9nMeta<{
|
|
@@ -508,6 +510,7 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
508
510
|
returnToInitialFeature: string;
|
|
509
511
|
maxRecordCountHeading: string;
|
|
510
512
|
maxRecordCountDescriptionWithLayerList: string;
|
|
513
|
+
maxRecordCountDescriptionRefineResults: string;
|
|
511
514
|
maxRecordCountDescriptionMultipleLayers: string;
|
|
512
515
|
maxRecordCountDescriptionMaxZoomLevel: string;
|
|
513
516
|
}>;
|
|
@@ -195,10 +195,10 @@ class re extends U {
|
|
|
195
195
|
}
|
|
196
196
|
if (this._removeFlowItems(), await this.viewModel.zoomTo({ target: i }), t.signal.aborted)
|
|
197
197
|
return;
|
|
198
|
-
const s = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
198
|
+
const { labelPointExecute: s } = await import("@arcgis/core/geometry/operators/labelPointOperator.js");
|
|
199
199
|
if (t.signal.aborted)
|
|
200
200
|
return;
|
|
201
|
-
const n = s
|
|
201
|
+
const n = s(i);
|
|
202
202
|
n != null && (this.location = n), this.features = [a], this.open = !0, this._openRelatedFeatureAbortController = null;
|
|
203
203
|
}
|
|
204
204
|
_handlePaginationMenuButton() {
|
|
@@ -324,7 +324,7 @@ class re extends U {
|
|
|
324
324
|
}
|
|
325
325
|
_createSpinner() {
|
|
326
326
|
const e = this.referenceElement;
|
|
327
|
-
e && (this._removeSpinner(e), this._spinnerEl = Z(r`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
327
|
+
e && (this._removeSpinner(e), this._spinnerEl = Z(r`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.location ?? void 0} .referenceElement=${e} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
328
328
|
}
|
|
329
329
|
render() {
|
|
330
330
|
return r`<div class="root">${this._renderContentContainer()}</div>`;
|
|
@@ -400,13 +400,13 @@ class re extends U {
|
|
|
400
400
|
});
|
|
401
401
|
if (s === "feature" && !n)
|
|
402
402
|
return null;
|
|
403
|
-
const
|
|
403
|
+
const B = !o;
|
|
404
404
|
return r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(T({
|
|
405
405
|
"flow-item-collapsed": c
|
|
406
406
|
}))} .closable=${!t} .closed=${!F} .collapsed=${s === "list" && c} .collapseDirection=${this.collapseDirection ?? (g ? "down" : "up")} .collapsible=${s === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: I }} .description=${this.hideFeatureMenuHeading ? void 0 : d(i.total ?? "", {
|
|
407
407
|
total: p.length
|
|
408
|
-
})} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${
|
|
409
|
-
|
|
408
|
+
})} .heading=${this.hideFeatureMenuHeading ? void 0 : A} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${B} @calciteFlowItemBack=${(O) => {
|
|
409
|
+
O.preventDefault(), this._handleFeatureMenuBack();
|
|
410
410
|
}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${f(this._featureMenuViewportNode)}>${s === "list" ? this._renderHeaderActions() : null}${M ? r`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${f(this._featureMenuIntersectionObserverCreated)}></div>${s === "feature" ? r`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${I} title=${I ?? h}>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
|
|
411
411
|
}
|
|
412
412
|
_renderFlowItem(e, t) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
3
3
|
import type Item from "@arcgis/core/layers/list/Item.js";
|
|
4
|
-
import type TableItem from "@arcgis/core/layers/list/TableItem.js";
|
|
5
4
|
import type { VisibilityAppearance } from "../../utils/action-utils.js";
|
|
6
5
|
import type { CanSortFunction, TableSupportedLayers } from "../../utils/layer-list-utils.js";
|
|
7
6
|
import type { LayerItemCollectionEvents } from "@arcgis/core/layers/list/LayerItemCollection.js";
|
|
8
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
9
8
|
import type { ArcgisTableListNext } from "../arcgis-table-list-next/customElement.js";
|
|
9
|
+
import type { TableItem } from "../arcgis-table-list-next/types.js";
|
|
10
10
|
import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
|
|
11
11
|
import type { CatalogLayerListParams, FlowLayer, TableListParams } from "./types.js";
|
|
12
12
|
import type { ArcgisCatalogLayerListNext } from "../arcgis-catalog-layer-list-next/customElement.js";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { html as s } from "lit";
|
|
3
3
|
import { keyed as K } from "lit/directives/keyed.js";
|
|
4
|
-
import { isLayerFromCatalog as
|
|
4
|
+
import { isLayerFromCatalog as Ee } from "@arcgis/core/layers/catalog/catalogUtils.js";
|
|
5
5
|
import { safeClassMap as r, nothing as d } from "@arcgis/lumina";
|
|
6
6
|
import { classes as Q } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { createRef as W, ref as X } from "lit/directives/ref.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { f as
|
|
10
|
-
import { a as
|
|
8
|
+
import { a as Pe } from "../../../chunks/action-utils.js";
|
|
9
|
+
import { f as we, i as Y, l as Oe, h as Fe, j as Ge, k as Re, g as Ve } from "../../../chunks/layer-list-utils.js";
|
|
10
|
+
import { a as He, b as Ue, i as qe, g as Z, t as ee, h as te, c as je, F as Be, d as Ne, L as ie, f as _e } from "../../../chunks/utils2.js";
|
|
11
11
|
const ae = /* @__PURE__ */ new Map();
|
|
12
12
|
function le(l) {
|
|
13
13
|
return l ? ae.get(l) ?? !1 : !1;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
return l.aria = { ...l.aria, pressed:
|
|
15
|
+
function ze(l, e) {
|
|
16
|
+
const g = !(l.aria?.pressed ?? le(e));
|
|
17
|
+
return l.aria = { ...l.aria, pressed: g }, e && ae.set(e, g), g;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const { item: e, itemType:
|
|
19
|
+
function Je(l) {
|
|
20
|
+
const { item: e, itemType: g = "layer", parent: v, hideStatusIndicators: ne, css: i, visibilityAppearance: I, hideCatalogLayerList: se, dragEnabled: E = !1, rootGroupUid: A, listModeDisabled: ce = !1, selectionMode: T, displayMode: oe, layerTablesEnabled: C, showErrors: re, parentTitles: P, selectedItems: de, activeItem: me, handleCatalogOpen: ue, handleTablesOpen: pe, selectedDragItemLayerUid: be, handleSelectedDragItemLayerUidChange: ge, handlePanelOpen: ye, messages: a, setCurrentActiveItem: w, clearActiveItem: O } = l, $e = He(e), ve = Ue(e), c = qe(e), y = W(), S = W(), fe = g === "table" ? a.untitledTable ?? "" : a.untitledLayer ?? "", he = $e ? a.trackInfo?.[e.content.name] ?? e.content.name : "", Ie = ve ? a.telemetryDisplay?.[e.content.name] ?? e.content.name : "", p = e.title || he || Ie || fe || "";
|
|
21
21
|
let F = null;
|
|
22
22
|
!ne && !c && (F = s`<arcgis-layer-list-item-indicator class=${r(i.statusIndicator)} .messages=${a} .item=${e} .parent=${v} slot=content-end></arcgis-layer-list-item-indicator>`);
|
|
23
23
|
let G = null;
|
|
24
24
|
{
|
|
25
|
-
const { layer: t } = e, n = t && "persistenceEnabled" in t && (
|
|
25
|
+
const { layer: t } = e, n = t && "persistenceEnabled" in t && (Ee(t) || !t.persistenceEnabled);
|
|
26
26
|
!c && (l.showTemporaryLayerIndicators || l.showTemporaryTableIndicators) && n && (G = s`<calcite-icon class=${r(i.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${a.temporary ?? d}></calcite-icon>`);
|
|
27
27
|
}
|
|
28
28
|
let R = null;
|
|
29
29
|
if ("visible" in e && "visibleToggle" in i && I) {
|
|
30
30
|
const t = Z(v);
|
|
31
31
|
if (t !== "inherited") {
|
|
32
|
-
const n =
|
|
32
|
+
const n = we({
|
|
33
33
|
visible: e.visible,
|
|
34
34
|
exclusive: t === "exclusive",
|
|
35
35
|
visibilityAppearance: I
|
|
36
|
-
}), o = I === "checkbox", m = a.layerVisibility,
|
|
36
|
+
}), o = I === "checkbox", m = a.layerVisibility, $ = p, b = $ ? `${m ?? ""}: ${$}` : m ?? "", f = c ? e.visible : le(e.layer?.id);
|
|
37
37
|
R = s`<calcite-action .aria=${{ pressed: f }} class=${r(i.visibleToggle)} .icon=${o ? n : void 0} .label=${b} @click=${(D) => {
|
|
38
|
-
c ||
|
|
38
|
+
c || ze(D.currentTarget, e.layer?.id), ee(e, v);
|
|
39
39
|
}} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? d}>${o ? null : s`<calcite-icon class=${r(Q({
|
|
40
40
|
[i.visibleIcon]: t !== "exclusive" && e.visible
|
|
41
41
|
}))} .icon=${n} scale=s></calcite-icon>`}</calcite-action>`;
|
|
@@ -52,12 +52,12 @@ function ze(l) {
|
|
|
52
52
|
if (t?.visible && (!c || te(e))) {
|
|
53
53
|
const { open: n, title: o, disabled: m } = t;
|
|
54
54
|
(t.content === "legend" || Array.isArray(t.content) && t.content.includes("legend")) && (t.icon = "legend");
|
|
55
|
-
const
|
|
55
|
+
const $ = {
|
|
56
56
|
icon: t.icon,
|
|
57
57
|
image: t.image ?? void 0,
|
|
58
58
|
indicator: !1
|
|
59
|
-
}, b =
|
|
60
|
-
H = s`<calcite-action .active=${n} .disabled=${m} .icon=${b} @click=${() =>
|
|
59
|
+
}, b = Pe($);
|
|
60
|
+
H = s`<calcite-action .active=${n} .disabled=${m} .icon=${b} @click=${() => je(e, ye)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? d}>${Be(i, t)}</calcite-action>`;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
let U = null;
|
|
@@ -75,37 +75,37 @@ function ze(l) {
|
|
|
75
75
|
const t = e.layer;
|
|
76
76
|
!c && !se && t?.type === "catalog-dynamic-group" && (j = s`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => ue?.(e)} slot=actions-end .text=${p ?? ""}></calcite-action>`);
|
|
77
77
|
}
|
|
78
|
-
let B = null,
|
|
78
|
+
let B = null, L = !1;
|
|
79
79
|
{
|
|
80
80
|
const t = e.layer;
|
|
81
81
|
if (!c && C && t)
|
|
82
82
|
switch (t.type) {
|
|
83
83
|
case "knowledge-graph":
|
|
84
|
-
|
|
84
|
+
L = C.includes(t.type) && "tables" in t && !!t.tables?.length;
|
|
85
85
|
break;
|
|
86
86
|
case "map-image":
|
|
87
87
|
case "tile":
|
|
88
|
-
|
|
88
|
+
L = C.includes(t.type) && "subtables" in t && !!t.subtables?.length;
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
"itemTableIcon" in i && "visible" in e && "tables" in a &&
|
|
91
|
+
"itemTableIcon" in i && "visible" in e && "tables" in a && L && (B = K(`${e.uid}-tables`, s`<calcite-list-item class=${r(i.item)} data-layer-id=${t?.id ?? d} drag-disabled .label=${a.tables} title=${a.tables ?? d} @calciteListItemSelect=${() => pe?.(e)} .value=${e}><calcite-icon class=${r(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
|
|
92
92
|
}
|
|
93
93
|
let N = null;
|
|
94
94
|
if ("children" in e) {
|
|
95
|
-
const t = [...P ?? [], e.title], { children: n, layer: o } = e, m = o?.type !== "catalog-dynamic-group" &&
|
|
95
|
+
const t = [...P ?? [], e.title], { children: n, layer: o } = e, m = o?.type !== "catalog-dynamic-group" && Oe(e), $ = ce ? !1 : Fe(o), b = o?.type === "group", f = !$ && !m && E && b, D = b && "sortable" in e && e.sortable, xe = n.some((u) => "sortable" in u && u.sortable), Me = g === "layer" ? Ge(e) : !0, ke = E && (m || f) && (xe || f) && ("childrenSortable" in e && e.childrenSortable || D) && Me, De = m ? (n?.filter((u) => !u.hidden && (re || !u.error)).toArray() ?? []).map((u) => Je({
|
|
96
96
|
...l,
|
|
97
97
|
item: u,
|
|
98
98
|
parent: e,
|
|
99
99
|
parentTitles: t
|
|
100
100
|
})) : null;
|
|
101
|
-
(m || f) && (N = s`<calcite-list .canPull=${(u) => l.canMove ? l.canMove(u, "pull") : !1} .canPut=${(u) => l.canMove ? l.canMove(u, "put") : !1} data-item=${e.uid ?? d} data-layer-type=${A ?? d} .displayMode=${oe} .dragEnabled=${
|
|
101
|
+
(m || f) && (N = s`<calcite-list .canPull=${(u) => l.canMove ? l.canMove(u, "pull") : !1} .canPut=${(u) => l.canMove ? l.canMove(u, "put") : !1} data-item=${e.uid ?? d} data-layer-type=${A ?? d} .displayMode=${oe} .dragEnabled=${ke} .group=${b ? A : `${A}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${T}>${De}${B}</calcite-list>`);
|
|
102
102
|
}
|
|
103
|
-
let
|
|
103
|
+
let x = null;
|
|
104
104
|
if (!c && e.error) {
|
|
105
105
|
const t = "layerError" in a ? a.layerError : a.tableError;
|
|
106
|
-
|
|
107
|
-
} else "incompatible" in e && e.incompatible && "layerIncompatible" in a && (
|
|
108
|
-
const _ =
|
|
106
|
+
x = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
|
|
107
|
+
} else "incompatible" in e && e.incompatible && "layerIncompatible" in a && (x = s`<div class=${r(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${X(S)}><div slot=message>${a.layerIncompatible}</div></calcite-notice></div>`);
|
|
108
|
+
const _ = Ne(e), M = e.actionsSections.reduce((t, n) => t + n.length, 0), z = Re(_), Ae = _.toArray().map((t) => s`<calcite-action-group>${t.toArray().map((n) => ie(l, n, !0))}</calcite-action-group>`), Te = (t) => {
|
|
109
109
|
e.actionsOpen = t.currentTarget.open;
|
|
110
110
|
};
|
|
111
111
|
let J = null;
|
|
@@ -115,23 +115,23 @@ function ze(l) {
|
|
|
115
115
|
}} icon=ellipsis slot=trigger .text=${a.options ?? ""} title=${a.options ?? d}></calcite-action>${Ae}</calcite-action-menu>`);
|
|
116
116
|
let k = null;
|
|
117
117
|
M === 1 && z ? k = ie(l, z, !1) : M > 1 && (k = J);
|
|
118
|
-
const Ce = c ? p : "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in a && !e.visibleAtCurrentTimeExtent ? `${p} (${a.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in a && !e.visibleAtCurrentScale ? `${p} (${a.layerInvisibleAtScale})` : p, Se = "parent" in e && e.parent?.layer?.type === "catalog", h = e.layer,
|
|
118
|
+
const Ce = c ? p : "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in a && !e.visibleAtCurrentTimeExtent ? `${p} (${a.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in a && !e.visibleAtCurrentScale ? `${p} (${a.layerInvisibleAtScale})` : p, Se = "parent" in e && e.parent?.layer?.type === "catalog", h = e.layer, Le = !c && ("visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent);
|
|
119
119
|
return queueMicrotask(() => {
|
|
120
|
-
c ||
|
|
121
|
-
}), K(e.uid, s`<calcite-list-item class=${r(Q(i.item, "itemActive" in i && { [i.itemActive]: me?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${h?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Se} id=${(c ? void 0 : h?.uid) ?? d} .label=${p} .metadata=${{ parentTitles: P ?? [], _title: p }} .expanded=${"open" in e && e.open} .selected=${T !== "none" ? de.includes(e) : !1} title=${Ce ?? d} .unavailable=${
|
|
122
|
-
w?.(e),
|
|
120
|
+
c || _e(y.value ?? null, e, be, ge), S.value && (l.handleTooltipReferenceChange?.(h?.uid, S.value), queueMicrotask(() => l.handleTooltipReferenceChange?.(h?.uid, null)));
|
|
121
|
+
}), K(e.uid, s`<calcite-list-item class=${r(Q(i.item, "itemActive" in i && { [i.itemActive]: me?.uid === e.uid }))} data-item=${e.uid ?? d} data-layer-id=${h?.id ?? d} .dragDisabled=${!("sortable" in e && e.sortable) || Se} id=${(c ? void 0 : h?.uid) ?? d} .label=${p} .metadata=${{ parentTitles: P ?? [], _title: p }} .expanded=${"open" in e && e.open} .selected=${T !== "none" ? de.includes(e) : !1} title=${Ce ?? d} .unavailable=${Le} .value=${e} @focusin=${() => {
|
|
122
|
+
w?.(e), y.value?.classList.add(i.itemActive);
|
|
123
123
|
}} @focusout=${() => {
|
|
124
|
-
O?.(),
|
|
124
|
+
O?.(), y.value?.classList.remove(i.itemActive);
|
|
125
125
|
}} @mouseover=${() => {
|
|
126
|
-
w?.(e),
|
|
126
|
+
w?.(e), y.value?.classList.add(i.itemActive);
|
|
127
127
|
}} @mouseleave=${() => {
|
|
128
|
-
O?.(),
|
|
128
|
+
O?.(), y.value?.classList.remove(i.itemActive);
|
|
129
129
|
}} @calciteListItemSelect=${(t) => {
|
|
130
|
-
t.target === t.currentTarget && "visible" in e &&
|
|
130
|
+
t.target === t.currentTarget && "visible" in e && Ve(t.currentTarget, l.operationalItems) === e && T === "none" && Z(v) !== "inherited" && ee(e, v);
|
|
131
131
|
}} @calciteListItemToggle=${(t) => {
|
|
132
132
|
"open" in e && (t.stopPropagation(), e.open = t.target.expanded);
|
|
133
|
-
}} ${X(
|
|
133
|
+
}} ${X(y)}>${U}${q}${F}${R}${j}${G}${N}${x}${V}${H}${k}</calcite-list-item>`);
|
|
134
134
|
}
|
|
135
135
|
export {
|
|
136
|
-
|
|
136
|
+
Je as ArcgisLayerListItem
|
|
137
137
|
};
|
|
@@ -13,6 +13,18 @@ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
|
13
13
|
* @since 4.31
|
|
14
14
|
*/
|
|
15
15
|
export abstract class ArcgisOrientedImageryViewer extends LitElement {
|
|
16
|
+
/**
|
|
17
|
+
* Specifies the position of the action bar within the oriented imagery viewer.
|
|
18
|
+
* | Position | Description |
|
|
19
|
+
* |----------|-------------|
|
|
20
|
+
* | bottom | Action bar is positioned at the bottom of the viewer. |
|
|
21
|
+
* | end | Action bar is positioned at the end of the viewer. |
|
|
22
|
+
* | start | Action bar is positioned at the start of the viewer. |
|
|
23
|
+
* | top | Action bar is positioned at the top of the viewer. |
|
|
24
|
+
*
|
|
25
|
+
* @since 5.2
|
|
26
|
+
*/
|
|
27
|
+
accessor actionBarPosition: "bottom" | "end" | "start" | "top";
|
|
16
28
|
/**
|
|
17
29
|
* If true, the component will not be destroyed automatically when it is
|
|
18
30
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -201,6 +213,12 @@ export abstract class ArcgisOrientedImageryViewer extends LitElement {
|
|
|
201
213
|
* @since 4.29
|
|
202
214
|
*/
|
|
203
215
|
get referencePoint(): Point | null;
|
|
216
|
+
/**
|
|
217
|
+
* The map location selected to find imagery. Geographic points are projected to Web Mercator; other points retain their spatial reference.
|
|
218
|
+
*
|
|
219
|
+
* @since 5.2
|
|
220
|
+
*/
|
|
221
|
+
get selectedPoint(): null | undefined | Point;
|
|
204
222
|
/**
|
|
205
223
|
* The view associated with the component.
|
|
206
224
|
* > **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-oriented-imagery-viewer component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -12,16 +12,19 @@ import { u as v } from "../../chunks/useLayerById.js";
|
|
|
12
12
|
const h = g`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px);inline-size:100%;block-size:100%}.esri-image-viewer{width:100%;height:100%}.esri-image-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-image-viewer__slider-container calcite-slider{width:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-font-weight-medium: $font-weight;--calcite-font-size-0: $font-size;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__superimpose-tools{box-shadow:none;width:100%;height:auto;margin:0}.esri-oriented-imagery-viewer__superimpose-tools .esri-oriented-imagery-viewer__image-enhancement-tool-container{padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-md);width:100%;margin-block:0}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto 1% 0;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);border-radius:0 0 3px 3px;flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}.esri-oriented-imagery-viewer-container-measurement{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:0 0 var(--calcite-corner-radius-round) var(--calcite-corner-radius-round);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:50%;display:flex}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--video{inset-block-end:calc(var(--calcite-spacing-xxxl) * 3)}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer--notice{margin-block:auto}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);aspect-ratio:1;pointer-events:none;flex-direction:column;align-items:center;width:50%;max-width:330px;display:flex;position:absolute;inset-block-end:0;inset-inline:50%;overflow:hidden;translate:-50%}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);transform-origin:top;transform-style:preserve-3d;cursor:not-allowed;border:3px solid #bfc5cc;border-radius:50%;width:4.5em;height:4.5em;transition:border-color .15s;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);border-color:var(--calcite-color-brand)}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;filter:drop-shadow(0 2px 1px #00000080);width:100%;height:100%;transform:perspective(400px) rotateX(60deg)}.esri-oriented-imagery-viewer__navigation-settings-ui [slot=content-bottom]{padding:.5rem;display:none}.esri-oriented-imagery-viewer__navigation-settings-ui [selected]>[slot=content-bottom]{display:block}.esri-panoramic-viewer{width:100%;height:100%;overflow-x:hidden}.esri-panoramic-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-panoramic-viewer__slider-container calcite-slider{width:100%}`, w = c(n), y = "map-components:arcgis-oriented-imagery-viewer";
|
|
13
13
|
class p extends s {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.widget = w(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = v(this, (e) => {
|
|
15
|
+
super(...arguments), this.widget = w(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.actionBarPosition = this.widget.actionBarPosition, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = v(this, (e) => {
|
|
16
16
|
e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${y} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`));
|
|
17
17
|
}), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = o()("imageGalleryEnabled", "layer"), this.arcgisReady = d();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
this.properties = { view: 0, autoDestroyDisabled: 5, currentCoverageVisible: 5, dataCaptureEnabled: 5, disabled: 5, galleryOpened: 5, hideHeader: 5, hideMenu: 5, icon: 1, imageEnhancementToolActive: 5, imageGalleryEnabled: 36, imageOverlaysOpened: 5, isAdditionalCoverageVisible: 5, isAdditionalPointSourcesVisible: 5, label: 1, layer: 0, mapLayerId: 1, mapImageConversionToolState: 5, navigationToolActive: 5, orientedImageryLayerItemId: 1, preloadMedia: 5, referenceElement: 1, referencePoint: 32 };
|
|
20
|
+
this.properties = { view: 0, autoDestroyDisabled: 5, actionBarPosition: 1, currentCoverageVisible: 5, dataCaptureEnabled: 5, disabled: 5, galleryOpened: 5, hideHeader: 5, hideMenu: 5, icon: 1, imageEnhancementToolActive: 5, imageGalleryEnabled: 36, imageOverlaysOpened: 5, isAdditionalCoverageVisible: 5, isAdditionalPointSourcesVisible: 5, label: 1, layer: 0, mapLayerId: 1, mapImageConversionToolState: 5, navigationToolActive: 5, orientedImageryLayerItemId: 1, preloadMedia: 5, referenceElement: 1, referencePoint: 32, selectedPoint: 32 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.styles = [m, h];
|
|
24
24
|
}
|
|
25
|
+
get selectedPoint() {
|
|
26
|
+
return this.widget.selectedPoint;
|
|
27
|
+
}
|
|
25
28
|
async destroy() {
|
|
26
29
|
await this.manager.destroy();
|
|
27
30
|
}
|
|
@@ -1,35 +1,42 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { t as
|
|
6
|
-
const
|
|
7
|
-
class m extends
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as r, html as l } from "lit";
|
|
4
|
+
import { LitElement as a, safeStyleMap as p } from "@arcgis/lumina";
|
|
5
|
+
import { t as f } from "../../chunks/screenLocation.js";
|
|
6
|
+
const d = r`:host{display:contents}.root{position:absolute}`;
|
|
7
|
+
class m extends a {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(...arguments), this.trackLocation = !1, this.screenLocation =
|
|
9
|
+
super(...arguments), this.trackLocation = !1, this.screenLocation = f(this);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
|
-
this.properties = { trackLocation: 5, screenLocation: 32, label: 1, location: 0, view: 0 };
|
|
12
|
+
this.properties = { trackLocation: 5, screenLocation: 32, label: 1, location: 0, referenceElement: 0, view: 0 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = d;
|
|
16
|
+
}
|
|
17
|
+
_getViewOffset() {
|
|
18
|
+
const t = this.view?.container?.getBoundingClientRect(), e = this.referenceElement?.getBoundingClientRect();
|
|
19
|
+
return {
|
|
20
|
+
left: t && e ? t.left - e.left : 0,
|
|
21
|
+
top: t && e ? t.top - e.top : 0
|
|
22
|
+
};
|
|
16
23
|
}
|
|
17
24
|
_getPositionStyles() {
|
|
18
|
-
const { screenLocation: t, view:
|
|
19
|
-
if (
|
|
25
|
+
const { screenLocation: t, view: e } = this;
|
|
26
|
+
if (e == null || t == null)
|
|
20
27
|
return {};
|
|
21
|
-
const
|
|
28
|
+
const i = 16, n = e.padding.left ?? 0, s = e.padding.top ?? 0, o = this._getViewOffset();
|
|
22
29
|
return {
|
|
23
|
-
"--calcite-loader-size": `${
|
|
24
|
-
left: `${t.x -
|
|
25
|
-
top: `${t.y -
|
|
30
|
+
"--calcite-loader-size": `${i}px`,
|
|
31
|
+
left: `${t.x - n + o.left - i / 2}px`,
|
|
32
|
+
top: `${t.y - s + o.top - i / 2}px`
|
|
26
33
|
};
|
|
27
34
|
}
|
|
28
35
|
render() {
|
|
29
|
-
return this.screenLocation ?
|
|
36
|
+
return this.screenLocation ? l`<calcite-loader class="root" .label=${this.label ?? ""} inline style=${p(this._getPositionStyles())}></calcite-loader>` : null;
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
|
-
|
|
39
|
+
c("arcgis-spinner", m);
|
|
33
40
|
export {
|
|
34
41
|
m as ArcgisSpinner
|
|
35
42
|
};
|
|
@@ -3,16 +3,12 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
3
3
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
4
4
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
5
5
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
6
|
-
import type TableItemCollection from "@arcgis/core/layers/list/TableItemCollection.js";
|
|
7
|
-
import type TableItem from "@arcgis/core/layers/list/TableItem.js";
|
|
8
6
|
import type WebMap from "@arcgis/core/WebMap.js";
|
|
9
7
|
import type WebScene from "@arcgis/core/WebScene.js";
|
|
10
|
-
import type
|
|
11
|
-
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
12
|
-
import type { TableItemCollectionEvents, TableItemModifier } from "@arcgis/core/layers/list/TableItemCollection.js";
|
|
8
|
+
import type { State, TableItemLayer } from "@arcgis/core/layers/list/types.js";
|
|
13
9
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
14
10
|
import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
|
|
15
|
-
import type { CanSortFunction, FilterPredicate } from "./types.js";
|
|
11
|
+
import type { CanSortFunction, FilterPredicate, TableItem, TableItemModifier, TableListTriggerActionEvent } from "./types.js";
|
|
16
12
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
17
13
|
import type { List as List } from "@esri/calcite-components/components/calcite-list";
|
|
18
14
|
import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
|
|
@@ -240,7 +236,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
240
236
|
* ```
|
|
241
237
|
*
|
|
242
238
|
*/
|
|
243
|
-
accessor listItemCreatedFunction: TableItemModifier |
|
|
239
|
+
accessor listItemCreatedFunction: TableItemModifier | undefined;
|
|
244
240
|
/**
|
|
245
241
|
* Specifies whether to ignore the [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. A common use case for `listModeDisabled` is when you want to use the component to manage and configure a layer's `listMode` value.
|
|
246
242
|
*
|
|
@@ -463,9 +459,9 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
463
459
|
*/
|
|
464
460
|
accessor showTemporaryTableIndicators: boolean;
|
|
465
461
|
/** The current state of the component. */
|
|
466
|
-
get state():
|
|
462
|
+
get state(): State;
|
|
467
463
|
/**
|
|
468
|
-
* The collection of table
|
|
464
|
+
* The collection of table items displayed within the component.
|
|
469
465
|
*
|
|
470
466
|
* @example
|
|
471
467
|
* ```js
|
|
@@ -478,7 +474,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
478
474
|
*
|
|
479
475
|
* @internal
|
|
480
476
|
*/
|
|
481
|
-
accessor tables: ReadonlyCollection<
|
|
477
|
+
accessor tables: ReadonlyCollection<TableItemLayer> | null | undefined;
|
|
482
478
|
/**
|
|
483
479
|
* The view associated with the component.
|
|
484
480
|
* > **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-table-list-next component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -499,7 +495,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
499
495
|
/** Emitted when the collection of [tableItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#tableItems) changes. */
|
|
500
496
|
readonly arcgisTableItemsChanged: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
501
497
|
/** Emitted when an action is triggered on the component. */
|
|
502
|
-
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this,
|
|
498
|
+
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, TableListTriggerActionEvent>;
|
|
503
499
|
readonly "@eventTypes": {
|
|
504
500
|
arcgisClose: ArcgisTableListNext["arcgisClose"]["detail"];
|
|
505
501
|
arcgisFilterChange: ArcgisTableListNext["arcgisFilterChange"]["detail"];
|