@arcgis/map-components 6.0.0-next.0 → 6.0.0-next.1
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/{3TGYCCNJ.js → 24DOFGMG.js} +1 -1
- package/dist/cdn/3KZAH5OY.js +2 -0
- package/dist/cdn/{AKDB2XVJ.js → 5K54VOLZ.js} +1 -1
- package/dist/cdn/{JBHAJ6GW.js → 63FA3UEL.js} +1 -1
- package/dist/cdn/{BCCCO3CN.js → 7UWE25UH.js} +1 -1
- package/dist/cdn/{UHK5GFKQ.js → AENNGCAE.js} +1 -1
- package/dist/cdn/{7AHOPT65.js → BQKVSKYK.js} +1 -1
- package/dist/cdn/{3DPVKWFO.js → CROCDACG.js} +1 -1
- package/dist/cdn/H77SMV46.js +2 -0
- package/dist/cdn/{VYYFRZLI.js → IMPFB7YV.js} +1 -1
- package/dist/cdn/{FUQD5XQR.js → JRQYT5SI.js} +1 -1
- package/dist/cdn/{D7RGMPF3.js → NBDQBLRI.js} +1 -1
- package/dist/cdn/{NIUMOIYZ.js → QTOA5MBN.js} +1 -1
- package/dist/cdn/{2KP3MSHV.js → QWOOD63Q.js} +1 -1
- package/dist/cdn/R6HUY6QI.js +2 -0
- package/dist/cdn/RHNZWKZV.js +2 -0
- package/dist/cdn/{NZBID35V.js → RZQNEEP6.js} +1 -1
- package/dist/cdn/{HKGNXMRR.js → TNFZHEWD.js} +1 -1
- package/dist/cdn/TZ6WQV6O.js +2 -0
- package/dist/cdn/{KRVLKKXB.js → V2GMDCVJ.js} +1 -1
- package/dist/cdn/W3ENDJ6U.js +2 -0
- package/dist/cdn/WJZZ7SZO.js +2 -0
- package/dist/cdn/{KXGVE4NK.js → XJ6DZ6AN.js} +1 -1
- package/dist/cdn/{2JWHVMJ3.js → Y2UYA3OR.js} +1 -1
- package/dist/cdn/Z42QB2QP.js +2 -0
- package/dist/cdn/{3V3PYL2L.js → ZUAR3LO3.js} +1 -1
- package/dist/cdn/{N6QTPGCU.js → ZVZVHZYX.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +7 -7
- package/dist/chunks/esri-main.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +13 -13
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +29 -29
- package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +7 -7
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +16 -16
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
- package/dist/components/arcgis-feature-form-text/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-form-text/customElement.js +24 -0
- package/dist/components/arcgis-feature-form-text/index.d.ts +1 -0
- package/dist/components/arcgis-feature-form-text/index.js +1 -0
- package/dist/components/arcgis-feature-next/customElement.d.ts +14 -6
- package/dist/components/arcgis-feature-next/customElement.js +31 -31
- package/dist/components/arcgis-feature-relationship/customElement.js +69 -69
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +21 -21
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +15 -15
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.js +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +14 -14
- package/dist/components/arcgis-legend/customElement.d.ts +2 -2
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +7 -1
- package/dist/components/arcgis-map/customElement.d.ts +7 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -4
- package/dist/components/arcgis-popup/customElement.d.ts +1 -1
- package/dist/components/arcgis-popup/customElement.js +10 -10
- package/dist/components/arcgis-scene/customElement.d.ts +7 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-table-list-next/customElement.js +5 -5
- package/dist/components/arcgis-time-bar-slider/customElement.js +24 -23
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +4 -0
- package/dist/loader.js +5 -4
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/dist/utils/layer-list-utils.d.ts +2 -2
- package/package.json +6 -6
- package/dist/cdn/7R2TTA5R.js +0 -2
- package/dist/cdn/E7RFFMRP.js +0 -2
- package/dist/cdn/FDXRUZWU.js +0 -2
- package/dist/cdn/KJ6TWPZT.js +0 -2
- package/dist/cdn/NOIAW4P4.js +0 -2
- package/dist/cdn/QDXORLKV.js +0 -2
- package/dist/cdn/Z6AYJE6L.js +0 -2
- /package/dist/cdn/{XIYYT5SJ.js → YYCBU2CG.js} +0 -0
|
@@ -4,7 +4,7 @@ import { css as B, html as a } from "lit";
|
|
|
4
4
|
import { keyed as T } from "lit/directives/keyed.js";
|
|
5
5
|
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
6
6
|
import E from "@arcgis/core/core/Collection.js";
|
|
7
|
-
import P from "@arcgis/core/popup/
|
|
7
|
+
import P from "@arcgis/core/popup/FeaturesModel.js";
|
|
8
8
|
import { LitElement as z, createEvent as y, renderElement as V, nothing as g, safeClassMap as x } from "@arcgis/lumina";
|
|
9
9
|
import { useDirection as Z, usePropertyChange as U, bypassReadOnly as D } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { classes as I } from "@arcgis/toolkit/dom";
|
|
@@ -269,7 +269,7 @@ class oe extends z {
|
|
|
269
269
|
if (e.disabled)
|
|
270
270
|
return;
|
|
271
271
|
e?.type === "toggle" && (e.value = !e.value);
|
|
272
|
-
const i = t && "
|
|
272
|
+
const i = t && "allActions" in t ? t.viewModel : void 0;
|
|
273
273
|
j(e, this.viewModel, i), this.arcgisTriggerAction.emit({ action: e });
|
|
274
274
|
}
|
|
275
275
|
_viewScaleChange() {
|
|
@@ -288,7 +288,7 @@ class oe extends z {
|
|
|
288
288
|
}
|
|
289
289
|
_handleFlowItemsChange() {
|
|
290
290
|
this._syncSelectedDrillInFeature(), this.flowItems.forEach((e) => {
|
|
291
|
-
!("
|
|
291
|
+
!("allActions" in e) || this._actionFlowItems.has(e) || (this._actionFlowItems.add(e), e.componentOnReady().then(() => {
|
|
292
292
|
this.isConnected && this.flowItems.includes(e) && this.requestUpdate();
|
|
293
293
|
}));
|
|
294
294
|
});
|
|
@@ -340,11 +340,11 @@ class oe extends z {
|
|
|
340
340
|
e && (this._removeSpinner(e), this._spinnerEl = V(a`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.pendingLocation ?? this.viewModel?.location ?? void 0} .referenceElement=${e} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
|
|
341
341
|
}
|
|
342
342
|
#e(e) {
|
|
343
|
-
const t = e
|
|
344
|
-
if (t &&
|
|
343
|
+
const t = e && "allActions" in e ? e : void 0, { selectedFeatureItem: i } = this.viewModel;
|
|
344
|
+
if (t && !t.allActions)
|
|
345
345
|
return [];
|
|
346
|
-
const s = t ?
|
|
347
|
-
return (
|
|
346
|
+
const s = t ? t.isFeatureFromTable : i?.isFeatureFromTable;
|
|
347
|
+
return (t?.allActions ?? i?.allActions ?? (!e && this.viewModel.includeDefaultActions ? this.viewModel.defaultActions.concat(this.viewModel.actions) : this.viewModel.actions)).toArray().filter((o) => !(e && o.id === "browse-aggregated-features") && !(s && !this.location && o.id === this._zoomToFeature.id));
|
|
348
348
|
}
|
|
349
349
|
render() {
|
|
350
350
|
return a`<div class="root">${this._renderContentContainer()}</div>`;
|
|
@@ -482,8 +482,8 @@ class oe extends z {
|
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
_renderContent() {
|
|
485
|
-
const { content: e, selectedFeatureItem: t } = this.viewModel;
|
|
486
|
-
return t ? a`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? T(e, a`<div .innerHTML=${w.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
485
|
+
const { content: e, selectedFeatureItem: t, includeDefaultActions: i, actions: s } = this.viewModel;
|
|
486
|
+
return t ? a`<arcgis-feature-next .actions=${s} .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .includeDefaultActions=${i} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? T(e, a`<div .innerHTML=${w.sanitize(e) ?? ""}></div>`) : e ?? null;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
O("arcgis-features-next", oe);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
3
|
-
import type Item from "@arcgis/core/
|
|
3
|
+
import type Item from "@arcgis/core/layerList/Item.js";
|
|
4
4
|
import type { VisibilityAppearance } from "../../utils/action-utils.js";
|
|
5
5
|
import type { CanSortFunction, TableSupportedLayers } from "../../utils/layer-list-utils.js";
|
|
6
|
-
import type {
|
|
6
|
+
import type { LayerListModelEvents } from "@arcgis/core/layerList/LayerListModel.js";
|
|
7
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
8
|
import type { ArcgisTableListNext } from "../arcgis-table-list-next/customElement.js";
|
|
9
9
|
import type { TableItem } from "../arcgis-table-list-next/types.js";
|
|
@@ -11,7 +11,7 @@ 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";
|
|
13
13
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
14
|
-
import type { ItemModifier, State } from "@arcgis/core/
|
|
14
|
+
import type { ItemModifier, State } from "@arcgis/core/layerList/types.js";
|
|
15
15
|
import type { List as List } from "@esri/calcite-components/components/calcite-list";
|
|
16
16
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.j
|
|
|
23
23
|
* [tableList](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#tableList) compared to [arcgis-layer-list](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list/). To update at version 6.0, simply remove `-next` from the component name.
|
|
24
24
|
*
|
|
25
25
|
* The Layer List (next) provides a way to display a list of layers and switch on/off their visibility.
|
|
26
|
-
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#listItemCreatedFunction) and the [Item](https://developers.arcgis.com/javascript/latest/references/core/
|
|
26
|
+
* The [listItemCreatedFunction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#listItemCreatedFunction) and the [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) API provides access to each layer's properties, allows
|
|
27
27
|
* the developer to configure actions related to the layer, and allows the developer to add content to the item related to the layer.
|
|
28
28
|
* Track info items can also be configured with custom panel content. Legend panel content is not supported for individual track info parts.
|
|
29
29
|
*
|
|
@@ -63,7 +63,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
63
63
|
accessor autoDestroyDisabled: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* The [arcgis-catalog-layer-list-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/) that displays a catalog layer's [dynamic group layer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/#dynamicGroupLayer).
|
|
66
|
-
* The catalog layer list will be displayed as an expandable [Item](https://developers.arcgis.com/javascript/latest/references/core/
|
|
66
|
+
* The catalog layer list will be displayed as an expandable [Item](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) in the root of the layer list when a CatalogLayer is present in the map.
|
|
67
67
|
* This property is set when a catalog layer's dynamic group layer is expanded in the layer list. Otherwise, it is `null`.
|
|
68
68
|
* This property is useful for listening to the [arcgis-catalog-layer-list-next.@arcgisTriggerAction](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-catalog-layer-list-next/#event-arcgisTriggerAction) event and managing selections in catalog layers.
|
|
69
69
|
*
|
|
@@ -166,7 +166,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
166
166
|
*/
|
|
167
167
|
accessor collapsed: boolean;
|
|
168
168
|
/**
|
|
169
|
-
* Indicates whether [items](https://developers.arcgis.com/javascript/latest/references/core/
|
|
169
|
+
* Indicates whether [items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) may be reordered within the list by dragging and dropping. MapImageLayer [MapImageLayer#sublayers](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/#sublayers) can be reordered only within their parent MapImageLayer and can not be dragged out as a separate layer. Drag and drop won't be enabled until the number of list items is equal to or greater than than the value set set in [minDragEnabledItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#minDragEnabledItems).
|
|
170
170
|
*
|
|
171
171
|
* @default false
|
|
172
172
|
* @example
|
|
@@ -572,7 +572,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
572
572
|
*/
|
|
573
573
|
get openedLayers(): Collection<FlowLayer>;
|
|
574
574
|
/**
|
|
575
|
-
* A collection of [items](https://developers.arcgis.com/javascript/latest/references/core/
|
|
575
|
+
* A collection of [items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) representing the operational layers in the layer list.
|
|
576
576
|
*
|
|
577
577
|
* @example
|
|
578
578
|
* ```js
|
|
@@ -587,7 +587,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
587
587
|
*/
|
|
588
588
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
589
589
|
/**
|
|
590
|
-
* A collection of selected [items](https://developers.arcgis.com/javascript/latest/references/core/
|
|
590
|
+
* A collection of selected [items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) in the list. This collection is updated when the user changes selection and is only populated when [selectionMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#selectionMode) is not set to `"none"`.
|
|
591
591
|
*
|
|
592
592
|
* @see [selectionMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-layer-list-next/#selectionMode)
|
|
593
593
|
* @example
|
|
@@ -805,7 +805,7 @@ export abstract class ArcgisLayerListNext extends LitElement {
|
|
|
805
805
|
*/
|
|
806
806
|
readonly arcgisSelectedItemsChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
807
807
|
/** Emitted when an action is triggered on the component. */
|
|
808
|
-
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this,
|
|
808
|
+
readonly arcgisTriggerAction: import("@arcgis/lumina").TargetedEvent<this, LayerListModelEvents["trigger-action"]>;
|
|
809
809
|
readonly "@eventTypes": {
|
|
810
810
|
arcgisClose: ArcgisLayerListNext["arcgisClose"]["detail"];
|
|
811
811
|
arcgisFilterChange: ArcgisLayerListNext["arcgisFilterChange"]["detail"];
|
|
@@ -3,17 +3,17 @@ import { c as x } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { html as h } from "lit";
|
|
4
4
|
import { keyed as v } from "lit/directives/keyed.js";
|
|
5
5
|
import { repeat as B } from "lit/directives/repeat.js";
|
|
6
|
-
import k from "@arcgis/core/
|
|
6
|
+
import k from "@arcgis/core/layerList/LayerListModel.js";
|
|
7
7
|
import { classes as S } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { generateGuid as U } from "@arcgis/toolkit/string";
|
|
9
9
|
import { createRef as w, ref as b } from "lit/directives/ref.js";
|
|
10
10
|
import { u as G } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as H } from "../../chunks/useViewModel.js";
|
|
12
|
-
import { g as
|
|
12
|
+
import { g as $ } from "../../chunks/globalCss.js";
|
|
13
13
|
import { c as f } from "../../chunks/css.js";
|
|
14
|
-
import { g as m, a as
|
|
14
|
+
import { g as m, a as T, m as V, b as j, r as F, s as q, c as z, d as J, e as K } from "../../chunks/layer-list-utils.js";
|
|
15
15
|
import p from "@arcgis/core/core/Collection.js";
|
|
16
|
-
import { on as
|
|
16
|
+
import { on as C, watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
17
|
import { LitElement as Q, createEvent as I, renderElement as D, safeClassMap as E, nothing as O } from "@arcgis/lumina";
|
|
18
18
|
import { usePropertyChange as W } from "@arcgis/lumina/controllers";
|
|
19
19
|
import { reEmitEvent as X } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
@@ -29,12 +29,12 @@ class oe extends Q {
|
|
|
29
29
|
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = m(e, this.operationalItems);
|
|
30
30
|
if (!r?.sortable)
|
|
31
31
|
return !1;
|
|
32
|
-
const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), d =
|
|
32
|
+
const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), d = T(o), g = this._getContainerItem(l), u = T(l), L = !!d && !!u && d === u, y = {
|
|
33
33
|
selected: r,
|
|
34
34
|
from: n,
|
|
35
35
|
to: g
|
|
36
|
-
}, _ = o?.group, c = l?.group, R = n?.layer?.type ?? "", N = g?.layer?.type ?? "",
|
|
37
|
-
return _ && c && typeof i == "function" ? i(y) : L && !
|
|
36
|
+
}, _ = o?.group, c = l?.group, R = n?.layer?.type ?? "", N = g?.layer?.type ?? "", M = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
37
|
+
return _ && c && typeof i == "function" ? i(y) : L && !M.has(R) && !M.has(N) && r?.layer?.type !== "sublayer";
|
|
38
38
|
}, this._onCatalogOpen = (e) => {
|
|
39
39
|
this.openedLayers.push(e.layer?.parent);
|
|
40
40
|
}, this._onTablesOpen = (e) => {
|
|
@@ -92,14 +92,14 @@ class oe extends Q {
|
|
|
92
92
|
}
|
|
93
93
|
loaded() {
|
|
94
94
|
this.manager.onLifecycle(() => [
|
|
95
|
-
|
|
95
|
+
C(() => this.openedLayers, "change", () => {
|
|
96
96
|
this._handleOpenedLayersChange();
|
|
97
97
|
}, { initial: !0 }),
|
|
98
|
-
|
|
98
|
+
C(() => this.viewModel.operationalItems, "change", () => F(this.selectedItems), { initial: !0 }),
|
|
99
99
|
A(() => this.operationalItems.flatten((e) => e.children).map((e) => e.uid).join(","), () => {
|
|
100
|
-
|
|
100
|
+
F(this.selectedItems), this.requestUpdate();
|
|
101
101
|
}, { initial: !0 }),
|
|
102
|
-
|
|
102
|
+
C(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
|
|
103
103
|
A(() => [this.filterPredicate, this._rootListRef.value], () => q(this._rootListRef.value, this.filterPredicate, this.operationalItems))
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
@@ -241,10 +241,10 @@ class oe extends Q {
|
|
|
241
241
|
}
|
|
242
242
|
render() {
|
|
243
243
|
const { state: e } = this, t = {
|
|
244
|
-
[
|
|
245
|
-
[
|
|
244
|
+
[$.hidden]: e === "loading",
|
|
245
|
+
[$.disabled]: e === "disabled"
|
|
246
246
|
};
|
|
247
|
-
return h`<div class=${E(S(
|
|
247
|
+
return h`<div class=${E(S($.widget, t))}>${this._visibleItems?.length ? this._renderItemTooltips() : null}${this._renderItems()}</div>`;
|
|
248
248
|
}
|
|
249
249
|
_renderItemTooltip(e) {
|
|
250
250
|
const { _tooltipReferenceMap: t, messages: s } = this;
|
|
@@ -6,7 +6,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
6
6
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
9
|
-
import type { LayerInfo,
|
|
9
|
+
import type { LayerInfo, LegendModelState } from "@arcgis/core/legend/types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* The Legend component displays the symbols and labels used to represent layers in an [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/) or [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/).
|
|
@@ -444,7 +444,7 @@ export abstract class ArcgisLegend extends LitElement {
|
|
|
444
444
|
*
|
|
445
445
|
* @default "disabled"
|
|
446
446
|
*/
|
|
447
|
-
get state():
|
|
447
|
+
get state(): LegendModelState;
|
|
448
448
|
/**
|
|
449
449
|
* The view associated with the component.
|
|
450
450
|
* > **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-legend component will be associated with a map or scene component rather than using the `view` property.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as g, html as o } from "lit";
|
|
4
4
|
import { on as a, watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import h from "@arcgis/core/legend/
|
|
5
|
+
import h from "@arcgis/core/legend/LegendModel.js";
|
|
6
6
|
import { LitElement as p, createEvent as f, safeClassMap as u } from "@arcgis/lumina";
|
|
7
7
|
import { usePropertyChange as m } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { classes as v } from "@arcgis/toolkit/dom";
|
|
@@ -47,7 +47,13 @@ export interface DeclareCssProperties {
|
|
|
47
47
|
"--arcgis-layout-overlay-space-right": "*";
|
|
48
48
|
/** _Since 5.0_ Specifies the focus outline color for the view. */
|
|
49
49
|
"--arcgis-view-color-focus": "*";
|
|
50
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* _Since 5.2_ Specifies the corner radius for the view.
|
|
52
|
+
*
|
|
53
|
+
* A larger corner radius may cause a visual mismatch between the view and its built-in attribution.
|
|
54
|
+
* This limitation will be addressed in a future release. In the meantime, set `border-radius`
|
|
55
|
+
* on the view component to the same value as this CSS custom property.
|
|
56
|
+
*/
|
|
51
57
|
"--arcgis-view-corner-radius": "*";
|
|
52
58
|
/** _Since 5.1_ Specifies the background color for table rows. */
|
|
53
59
|
"--arcgis-table-row-background-color": "*";
|
|
@@ -51,7 +51,13 @@ export interface DeclareCssProperties {
|
|
|
51
51
|
"--arcgis-layout-overlay-space-right": "*";
|
|
52
52
|
/** _Since 5.0_ Specifies the focus outline color for the view. */
|
|
53
53
|
"--arcgis-view-color-focus": "*";
|
|
54
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* _Since 5.2_ Specifies the corner radius for the view.
|
|
56
|
+
*
|
|
57
|
+
* A larger corner radius may cause a visual mismatch between the view and its built-in attribution.
|
|
58
|
+
* This limitation will be addressed in a future release. In the meantime, set `border-radius`
|
|
59
|
+
* on the view component to the same value as this CSS custom property.
|
|
60
|
+
*/
|
|
55
61
|
"--arcgis-view-corner-radius": "*";
|
|
56
62
|
/** _Since 5.1_ Specifies the background color for table rows. */
|
|
57
63
|
"--arcgis-table-row-background-color": "*";
|
|
@@ -380,7 +380,7 @@ export abstract class ArcgisOrientedImageryViewer extends LitElement {
|
|
|
380
380
|
*
|
|
381
381
|
* @since 5.2
|
|
382
382
|
*/
|
|
383
|
-
get selectedPoint():
|
|
383
|
+
get selectedPoint(): Point | null | undefined;
|
|
384
384
|
/**
|
|
385
385
|
* The current state of the oriented imagery viewer.
|
|
386
386
|
*
|
|
@@ -14,7 +14,7 @@ class y extends n {
|
|
|
14
14
|
constructor() {
|
|
15
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.hideAdditionalCameraLocationsToggle = this.widget.visibleElements.additionalCameraLocationsToggle, this.hideAdditionalFootprintsToggle = this.widget.visibleElements.additionalFootprintToggle, this.hideCurrentFootprintToggle = this.widget.visibleElements.currentFootprintToggle, this.hideDirectionalNavigationToggle = this.widget.visibleElements.directionalNavigation, this.hideEnhancementToolToggle = this.widget.visibleElements.enhancementTool, this.hideExploreImagesToggle = this.widget.visibleElements.exploreImages, this.hideExploreImages3dToggle = this.widget.visibleElements.exploreImages3D, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.hideImageGalleryToggle = this.widget.visibleElements.imageGallery, this.hideImageNavigationGroup = this.widget.visibleElements.imageNavigationTools, this.hideImageOverlaysToggle = this.widget.visibleElements.imageOverlays, this.hideMapImageLocationToolToggle = this.widget.visibleElements.mapImageConversionTool, this.hideImageMeasurementToolsGroup = this.widget.visibleElements.measurementTools, this.hideNavigationToolToggle = this.widget.visibleElements.navigationTool, this.hideOverlaysGroup = this.widget.visibleElements.overlays, this.hideSearchGroup = this.widget.visibleElements.searchTools, this.hideSequentialNavigationToggle = this.widget.visibleElements.sequentialNavigation, this.hideDisplayImageToggle = this.widget.visibleElements.showSelectedImage, this.hidePopupsAction = this.widget.visibleElements.showPopupsAction, this.hideSuperimposeViewToggle = this.widget.visibleElements.superimpose, this.hideUtilitiesGroup = this.widget.visibleElements.utilityTools, 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 = h(this, (e) => {
|
|
16
16
|
e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${p} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`));
|
|
17
|
-
}), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.selectedFeatureObjectId = this.widget.selectedFeatureObjectId, this.state = this.viewModel.state, this.arcgisPropertyChange = o()("imageGalleryEnabled", "layer", "selectedPoint", "selectedFeatureObjectId", "state"), this.arcgisReady = d();
|
|
17
|
+
}), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.selectedFeatureObjectId = this.widget.selectedFeatureObjectId, this.selectedPoint = this.widget.selectedPoint, this.state = this.viewModel.state, this.arcgisPropertyChange = o()("imageGalleryEnabled", "layer", "selectedPoint", "selectedFeatureObjectId", "state"), this.arcgisReady = d();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.properties = { view: 0, autoDestroyDisabled: 5, container: 32, actionBarPosition: 1, currentCoverageVisible: 5, dataCaptureEnabled: 5, disabled: 5, galleryOpened: 5, hideAdditionalCameraLocationsToggle: 5, hideAdditionalFootprintsToggle: 5, hideCurrentFootprintToggle: 5, hideDirectionalNavigationToggle: 5, hideEnhancementToolToggle: 5, hideExploreImagesToggle: 5, hideExploreImages3dToggle: 5, hideHeader: 5, hideMenu: 5, hideImageGalleryToggle: 5, hideImageNavigationGroup: 5, hideImageOverlaysToggle: 5, hideMapImageLocationToolToggle: 5, hideImageMeasurementToolsGroup: 5, hideNavigationToolToggle: 5, hideOverlaysGroup: 5, hideSearchGroup: 5, hideSequentialNavigationToggle: 5, hideDisplayImageToggle: 5, hidePopupsAction: 5, hideSuperimposeViewToggle: 5, hideUtilitiesGroup: 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, selectedFeatureObjectId: 32, selectedPoint: 32, state: 32 };
|
|
@@ -25,9 +25,6 @@ class y extends n {
|
|
|
25
25
|
get container() {
|
|
26
26
|
return this.widget.container instanceof HTMLDivElement ? this.widget.container : null;
|
|
27
27
|
}
|
|
28
|
-
get selectedPoint() {
|
|
29
|
-
return this.widget.selectedPoint;
|
|
30
|
-
}
|
|
31
28
|
async destroy() {
|
|
32
29
|
await this.manager.destroy();
|
|
33
30
|
}
|
|
@@ -143,7 +143,7 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
143
143
|
*/
|
|
144
144
|
accessor actions: Collection<PopupAction>;
|
|
145
145
|
/**
|
|
146
|
-
* Indicates if the component is active when it is visible and is not [waiting](https://developers.arcgis.com/javascript/latest/references/core/popup/
|
|
146
|
+
* Indicates if the component is active when it is visible and is not [waiting](https://developers.arcgis.com/javascript/latest/references/core/popup/FeaturesModel/#waitingForResult).
|
|
147
147
|
*
|
|
148
148
|
* @default false
|
|
149
149
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as E } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as A, html as w } from "lit";
|
|
4
|
-
import P from "@arcgis/core/popup/
|
|
4
|
+
import P from "@arcgis/core/popup/FeaturesModel.js";
|
|
5
5
|
import { u as O } from "../../chunks/useT9n.js";
|
|
6
6
|
import { useDirection as F, usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { m as S } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { LitElement as N, createEvent as _, safeStyleMap as L, safeClassMap as y } from "@arcgis/lumina";
|
|
9
9
|
import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
10
|
-
import { classes as
|
|
10
|
+
import { classes as x } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { createRef as g, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
@@ -17,7 +17,7 @@ const V = A`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--
|
|
|
17
17
|
function f(b) {
|
|
18
18
|
return b && Number.parseInt(b.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
19
19
|
}
|
|
20
|
-
const I = S(P),
|
|
20
|
+
const I = S(P), D = {
|
|
21
21
|
buttonEnabled: !0,
|
|
22
22
|
position: "auto",
|
|
23
23
|
breakpoint: {
|
|
@@ -53,10 +53,10 @@ class R extends N {
|
|
|
53
53
|
return this._getCurrentDockPosition();
|
|
54
54
|
}
|
|
55
55
|
get dockOptions() {
|
|
56
|
-
return this._dockOptions ||
|
|
56
|
+
return this._dockOptions || D;
|
|
57
57
|
}
|
|
58
58
|
set dockOptions(t) {
|
|
59
|
-
const e = { ...
|
|
59
|
+
const e = { ...D }, o = this.viewModel?.view?.breakpoints, i = {};
|
|
60
60
|
o && (i.width = o.xsmall, i.height = o.xsmall);
|
|
61
61
|
const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: r } = s;
|
|
62
62
|
typeof r == "object" ? s.breakpoint = { ...n, ...r } : r && (s.breakpoint = n), this._dockOptions = s;
|
|
@@ -154,7 +154,7 @@ class R extends N {
|
|
|
154
154
|
const { _mainContainerNode: e, _popupRect: o, viewModel: i } = this, { view: s } = i, { screenLocation: n } = this;
|
|
155
155
|
if (n == null || !s || !o || !e.value)
|
|
156
156
|
return "top-center";
|
|
157
|
-
const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), d = this._getPointerSize(), { height: c, width: v } = o, h = v + d, u = Math.max(c, l, a) + d,
|
|
157
|
+
const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), d = this._getPointerSize(), { height: c, width: v } = o, h = v + d, u = Math.max(c, l, a) + d, C = this._isOutsideView({
|
|
158
158
|
popupHeight: u,
|
|
159
159
|
popupWidth: h,
|
|
160
160
|
screenLocation: n,
|
|
@@ -179,7 +179,7 @@ class R extends N {
|
|
|
179
179
|
side: "bottom",
|
|
180
180
|
view: s
|
|
181
181
|
});
|
|
182
|
-
return M ? k ? "bottom-right" : "top-right" :
|
|
182
|
+
return M ? k ? "bottom-right" : "top-right" : C ? k ? "bottom-left" : "top-left" : k ? z ? "top-center" : "bottom-center" : "top-center";
|
|
183
183
|
}
|
|
184
184
|
_callCurrentAlignment(t) {
|
|
185
185
|
return typeof t == "function" ? t.call(this) : t;
|
|
@@ -338,12 +338,12 @@ class R extends N {
|
|
|
338
338
|
"is-sm-height-breakpoint": c === "small",
|
|
339
339
|
"is-xs-height-breakpoint": c === "xsmall"
|
|
340
340
|
};
|
|
341
|
-
return w`<div style=${L(s)} class=${y(
|
|
341
|
+
return w`<div style=${L(s)} class=${y(x("root", v, {
|
|
342
342
|
hidden: !n || !s && !e
|
|
343
343
|
}))} .ariaHidden=${!n} .ariaLabel=${T(this.heading ?? "")} popover=manual ${m(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
344
344
|
}
|
|
345
345
|
_renderPointer() {
|
|
346
|
-
return !this._effectiveDockEnabled || !this.active ? w`<div class="pointer" role=presentation><div class=${y(
|
|
346
|
+
return !this._effectiveDockEnabled || !this.active ? w`<div class="pointer" role=presentation><div class=${y(x("pointer-direction", "shadow"))} ${m(this._pointerNode)}></div></div>` : null;
|
|
347
347
|
}
|
|
348
348
|
_renderMainContainer() {
|
|
349
349
|
const t = {
|
|
@@ -353,7 +353,7 @@ class R extends N {
|
|
|
353
353
|
collapse: this.messageOverrides?.collapse ?? this.messages.collapse,
|
|
354
354
|
expand: this.messageOverrides?.expand ?? this.messages.expand
|
|
355
355
|
};
|
|
356
|
-
return w`<div class=${y(
|
|
356
|
+
return w`<div class=${y(x("main-container", t))} ${m(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .focusTrapEnabled=${!this.focusTrapDisabled} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${e} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${m(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
E("arcgis-popup", R);
|
|
@@ -55,7 +55,13 @@ export interface DeclareCssProperties {
|
|
|
55
55
|
"--arcgis-layout-overlay-space-right": "*";
|
|
56
56
|
/** _Since 5.0_ Specifies the focus outline color for the view. */
|
|
57
57
|
"--arcgis-view-color-focus": "*";
|
|
58
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* _Since 5.2_ Specifies the corner radius for the view.
|
|
60
|
+
*
|
|
61
|
+
* A larger corner radius may cause a visual mismatch between the view and its built-in attribution.
|
|
62
|
+
* This limitation will be addressed in a future release. In the meantime, set `border-radius`
|
|
63
|
+
* on the view component to the same value as this CSS custom property.
|
|
64
|
+
*/
|
|
59
65
|
"--arcgis-view-corner-radius": "*";
|
|
60
66
|
/** _Since 5.1_ Specifies the background color for table rows. */
|
|
61
67
|
"--arcgis-table-row-background-color": "*";
|
|
@@ -5,7 +5,7 @@ import type MapView from "@arcgis/core/views/MapView.js";
|
|
|
5
5
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
6
6
|
import type WebMap from "@arcgis/core/WebMap.js";
|
|
7
7
|
import type WebScene from "@arcgis/core/WebScene.js";
|
|
8
|
-
import type { State, TableItemLayer } from "@arcgis/core/
|
|
8
|
+
import type { State, TableItemLayer } from "@arcgis/core/layerList/types.js";
|
|
9
9
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
10
10
|
import type { ArcgisReferenceElement, HeadingLevel, IconName } from "../types.js";
|
|
11
11
|
import type { CanSortFunction, FilterPredicate, TableItem, TableItemModifier, TableListTriggerActionEvent } from "./types.js";
|
|
@@ -76,7 +76,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
76
76
|
*/
|
|
77
77
|
accessor collapsed: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* Indicates whether [items](https://developers.arcgis.com/javascript/latest/references/core/
|
|
79
|
+
* Indicates whether [items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) may be reordered within the list by dragging and dropping. MapImageLayer [MapImageLayer#sublayers](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/#sublayers) can be reordered only within their parent MapImageLayer and can not be dragged out as a separate layer. Drag and drop won't be enabled until the number of list items is equal to or greater than than the value set set in [minDragEnabledItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#minDragEnabledItems).
|
|
80
80
|
*
|
|
81
81
|
* @default false
|
|
82
82
|
* @example
|
|
@@ -331,7 +331,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
331
331
|
*/
|
|
332
332
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
333
333
|
/**
|
|
334
|
-
* A collection of selected [items](https://developers.arcgis.com/javascript/latest/references/core/
|
|
334
|
+
* A collection of selected [items](https://developers.arcgis.com/javascript/latest/references/core/layerList/Item/) in the list. This collection is updated when the user changes selection and is only populated when [selectionMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#selectionMode) is not set to `"none"`.
|
|
335
335
|
*
|
|
336
336
|
* @see [selectionMode](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-table-list-next/#selectionMode)
|
|
337
337
|
* @example
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
-
import { repeat as
|
|
3
|
+
import { repeat as M } from "lit/directives/repeat.js";
|
|
4
4
|
import { keyed as _ } from "lit/directives/keyed.js";
|
|
5
|
-
import
|
|
5
|
+
import $ from "@arcgis/core/core/Collection.js";
|
|
6
6
|
import { watch as I, on as v } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
-
import L from "@arcgis/core/
|
|
7
|
+
import L from "@arcgis/core/layerList/TableListModel.js";
|
|
8
8
|
import { LitElement as E, createEvent as c, safeClassMap as b, nothing as F } from "@arcgis/lumina";
|
|
9
9
|
import { usePropertyChange as T } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { reEmitEvent as D } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
@@ -34,7 +34,7 @@ class z extends E {
|
|
|
34
34
|
this._selectedDragItemLayerUid = e;
|
|
35
35
|
}, this._onTriggerAction = (e, t) => {
|
|
36
36
|
this.triggerAction(e, t);
|
|
37
|
-
}, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = B, this.minFilterItems = R, this.selectedItems = new
|
|
37
|
+
}, this.autoDestroyDisabled = !1, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideStatusIndicators = !1, this.icon = "table", this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.map = this.viewModel.map, this.minDragEnabledItems = B, this.minFilterItems = R, this.selectedItems = new $(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.showTemporaryTableIndicators = !1, this.tables = this.viewModel.tables, this.arcgisClose = c(), this.arcgisFilterChange = c(), this.arcgisPropertyChange = T()("state"), this.arcgisReady = c(), this.arcgisSelectedItemsChange = c(), this.arcgisTableItemsChanged = c(), this.arcgisTriggerAction = D(() => this.viewModel, "trigger-action");
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
40
|
this.properties = { _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, autoDestroyDisabled: 5, closed: 5, collapsed: 7, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideStatusIndicators: 5, icon: 1, label: 1, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, map: 0, messageOverrides: 0, minDragEnabledItems: 9, minFilterItems: 9, referenceElement: 1, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, showTemporaryTableIndicators: 5, state: 32, tableItems: 32, tables: 0, view: 0 };
|
|
@@ -155,7 +155,7 @@ class z extends E {
|
|
|
155
155
|
return this.hideNoItemsNotice ? null : o`<div class=${b(w.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
|
|
156
156
|
}
|
|
157
157
|
_renderPanelFlowItems() {
|
|
158
|
-
return
|
|
158
|
+
return M(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
|
|
159
159
|
const { panel: i, title: s } = e, l = () => this._handlePanelFlowItemBack(i);
|
|
160
160
|
return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(a) => {
|
|
161
161
|
a.preventDefault(), l();
|