@arcgis/map-components 5.1.0-next.95 → 5.1.0-next.96
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/{OBPZYX2V.js → 37ET5N3U.js} +1 -1
- package/dist/cdn/{KP443AQC.js → 66O32Z3S.js} +1 -1
- package/dist/cdn/{K2EFPB7C.js → CH27MJRF.js} +1 -1
- package/dist/cdn/{LDQVFFG7.js → EBK4AZBW.js} +1 -1
- package/dist/cdn/{LDA27YQX.js → G3XG6IQK.js} +1 -1
- package/dist/cdn/{L2P4AHTV.js → GBIE6ESD.js} +1 -1
- package/dist/cdn/HTQ2BHR7.js +2 -0
- package/dist/cdn/{LMYDN3CX.js → LFJPCLIF.js} +1 -1
- package/dist/cdn/{4XAI2HIF.js → NHKVX7X4.js} +1 -1
- package/dist/cdn/{C5DDFL3G.js → O3B4KGIM.js} +1 -1
- package/dist/cdn/{SRJLCIJT.js → OV3M75AU.js} +1 -1
- package/dist/cdn/PEO4YFUQ.js +2 -0
- package/dist/cdn/{K2GKTAR3.js → PYJOYJLJ.js} +1 -1
- package/dist/cdn/S6EIVRDH.js +2 -0
- package/dist/cdn/{4LJNVQIY.js → TT745B6J.js} +1 -1
- package/dist/cdn/{F57ILFMK.js → UWOBBUXS.js} +1 -1
- package/dist/cdn/VTGHFASH.js +2 -0
- package/dist/cdn/{65PU3KOG.js → WUMHMR2U.js} +1 -1
- package/dist/cdn/XHK6DBBU.js +2 -0
- package/dist/cdn/assets/coordinate-conversion/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/popup/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/unit-radio-button-group/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-validate-network-topology/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +3 -3
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +120 -43
- package/dist/components/arcgis-coordinate-conversion/customElement.js +240 -184
- package/dist/components/arcgis-coordinate-conversion/index.js +11 -3
- package/dist/components/arcgis-features/customElement.d.ts +7 -0
- package/dist/components/arcgis-map/customElement.d.ts +5 -1
- package/dist/components/arcgis-popup/customElement.d.ts +7 -0
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +1 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +8 -0
- package/dist/components/arcgis-presentation/customElement.js +37 -26
- package/dist/components/arcgis-presentation-captions/customElement.js +5 -5
- package/dist/components/arcgis-scene/customElement.d.ts +4 -0
- package/dist/components/arcgis-slider-scale-range/customElement.js +2 -2
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +39 -0
- package/dist/components/arcgis-unit-radio-button-group/index.js +4 -0
- package/dist/components/arcgis-unit-select/customElement.js +8 -8
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +3 -3
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- 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 +4 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/4MLEO5M6.js +0 -2
- package/dist/cdn/5IBP5WKD.js +0 -2
- package/dist/cdn/7HJFPAJR.js +0 -2
- package/dist/cdn/MDEZXQD5.js +0 -2
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import "@esri/calcite-components/components/calcite-panel";
|
|
2
2
|
import "@esri/calcite-components/components/calcite-alert";
|
|
3
3
|
import "@esri/calcite-components/components/calcite-option";
|
|
4
|
-
import "@esri/calcite-components/components/calcite-select";
|
|
5
4
|
import "@esri/calcite-components/components/calcite-action";
|
|
6
|
-
import "@esri/calcite-components/components/calcite-
|
|
5
|
+
import "@esri/calcite-components/components/calcite-list-item";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
7
|
+
import "@esri/calcite-components/components/calcite-block";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-list";
|
|
7
9
|
import "@esri/calcite-components/components/calcite-label";
|
|
8
|
-
import "@esri/calcite-components/components/calcite-
|
|
10
|
+
import "@esri/calcite-components/components/calcite-select";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-input";
|
|
9
12
|
import "@esri/calcite-components/components/calcite-button";
|
|
13
|
+
import "../arcgis-unit-radio-button-group/index.js";
|
|
14
|
+
import "@esri/calcite-components/components/calcite-switch";
|
|
15
|
+
import "@esri/calcite-components/components/calcite-popover";
|
|
16
|
+
import "@esri/calcite-components/components/calcite-combobox";
|
|
17
|
+
import "@esri/calcite-components/components/calcite-combobox-item";
|
|
10
18
|
export * from "./customElement.js";
|
|
@@ -102,6 +102,13 @@ export abstract class ArcgisFeatures extends LitElement {
|
|
|
102
102
|
* @since 4.34
|
|
103
103
|
*/
|
|
104
104
|
accessor defaultPopupTemplateEnabled: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The heading currently displayed for the selected feature. This value resolves to the [selected feature item's heading](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#effectiveHeading) when available, otherwise it falls back to the component's [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading).
|
|
107
|
+
*
|
|
108
|
+
* @since 5.1
|
|
109
|
+
* @see [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#heading)
|
|
110
|
+
* @see [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature)
|
|
111
|
+
*/
|
|
105
112
|
get effectiveHeading(): string | null | undefined;
|
|
106
113
|
/**
|
|
107
114
|
* The number of [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features) available in the component.
|
|
@@ -1103,11 +1103,15 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
1103
1103
|
* [viewpoint](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#viewpoint), or [stationary](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#stationary).
|
|
1104
1104
|
* It reflects user interactions (e.g. panning or zooming) or programmatic updates to the view.
|
|
1105
1105
|
*
|
|
1106
|
+
* > The `arcgisViewChange` event may be emitted before the view is fully ready.
|
|
1107
|
+
* > This means the event can fire before the component's `stationary` property is `true` or before the view has completed its initial setup.
|
|
1108
|
+
* > For actions that require the view to be ready and stationary, combine this event with checks on the component's `stationary` and `ready` properties.
|
|
1109
|
+
*
|
|
1106
1110
|
* @example
|
|
1107
1111
|
* ```js
|
|
1108
1112
|
* // get the number of features in a layer view whenever the view becomes stationary
|
|
1109
1113
|
* viewElement.addEventListener("arcgisViewChange", async (event) =>{
|
|
1110
|
-
* if (viewElement.stationary) {
|
|
1114
|
+
* if (viewElement.ready && viewElement.stationary) {
|
|
1111
1115
|
* // Returns number of features available for drawing in a given layer view
|
|
1112
1116
|
* const count = await layerView.queryFeatureCount({
|
|
1113
1117
|
* geometry: viewElement.extent
|
|
@@ -249,6 +249,13 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
249
249
|
* ```
|
|
250
250
|
*/
|
|
251
251
|
accessor dockOptions: DockOptions;
|
|
252
|
+
/**
|
|
253
|
+
* The heading currently displayed for the selected feature. This value resolves to the [selected feature item's heading](https://developers.arcgis.com/javascript/latest/references/core/popup/Features/#effectiveHeading) when available, otherwise it falls back to the component's [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading).
|
|
254
|
+
*
|
|
255
|
+
* @since 5.1
|
|
256
|
+
* @see [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading)
|
|
257
|
+
* @see [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeature)
|
|
258
|
+
*/
|
|
252
259
|
get effectiveHeading(): string | null | undefined;
|
|
253
260
|
/**
|
|
254
261
|
* The number of [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#features) available in the component.
|
|
@@ -55,6 +55,14 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
55
55
|
* @default "m"
|
|
56
56
|
*/
|
|
57
57
|
accessor scale: "l" | "m" | "s";
|
|
58
|
+
/**
|
|
59
|
+
* Show the slice analysis of a slide interactive so manipulators will be displayed, allowing users to click and drag to edit the analysis.
|
|
60
|
+
* Per default interactive is set to false.
|
|
61
|
+
*
|
|
62
|
+
* @default false
|
|
63
|
+
* @see [SliceAnalysisView3D.interactive](https://developers.arcgis.com/javascript/latest/references/core/views/3d/analysis/SliceAnalysisView3D/#interactive)
|
|
64
|
+
*/
|
|
65
|
+
accessor sliceAnalysisInteractive: boolean;
|
|
58
66
|
/**
|
|
59
67
|
* Disable display of captions when slide is applied.
|
|
60
68
|
* Per default the display of captions is enabled.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as O } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as z, html as u } from "lit";
|
|
4
|
-
import { GenericController as
|
|
4
|
+
import { GenericController as C, proxyExports as $, useDirection as M } from "@arcgis/lumina/controllers";
|
|
5
5
|
import { LitElement as R, createEvent as I, nothing as S } from "@arcgis/lumina";
|
|
6
6
|
import { u as G } from "../../chunks/useT9n.js";
|
|
7
7
|
import { m as N } from "../../chunks/useViewModel.js";
|
|
@@ -18,7 +18,7 @@ import W from "@arcgis/core/graphic/SceneGraphicOrigin.js";
|
|
|
18
18
|
import K from "@arcgis/core/graphic/WFSGraphicOrigin.js";
|
|
19
19
|
import U from "@arcgis/core/graphic/BuildingGraphicOrigin.js";
|
|
20
20
|
import Q from "@arcgis/core/graphic/FeatureGraphicOrigin.js";
|
|
21
|
-
import { fetchPopupFeaturesFromGraphics as
|
|
21
|
+
import { fetchPopupFeaturesFromGraphics as P } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
|
|
22
22
|
import { s as _ } from "../../chunks/resources.js";
|
|
23
23
|
const q = z`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-spacing-lg);padding-inline-start:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation{width:fit-content;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);margin-block:auto calc(var(--calcite-spacing-lg) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-lg)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.legend{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}`;
|
|
24
24
|
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, l = (i, e, t, s) => {
|
|
@@ -111,6 +111,17 @@ let a = class extends E {
|
|
|
111
111
|
const n = e === "rtl" ? "ArrowRight" : "ArrowLeft", o = i.code === n || i.code === "PageUp" ? -1 : 1;
|
|
112
112
|
this.navigateInPresentation(o);
|
|
113
113
|
}
|
|
114
|
+
async setSliceAnalysisInteractive() {
|
|
115
|
+
if (!this.view?.analyses?.length)
|
|
116
|
+
return;
|
|
117
|
+
const i = this.view.analyses.find(
|
|
118
|
+
(t) => t.type === "slice" && t.origin?.type === "web-scene"
|
|
119
|
+
);
|
|
120
|
+
if (!i)
|
|
121
|
+
return;
|
|
122
|
+
const e = await this.view.whenAnalysisView(i);
|
|
123
|
+
e && (e.interactive = !0);
|
|
124
|
+
}
|
|
114
125
|
//#endregion
|
|
115
126
|
//#region Private Methods
|
|
116
127
|
_getSlideBySlideIndex(i) {
|
|
@@ -204,7 +215,7 @@ l([
|
|
|
204
215
|
a = l([
|
|
205
216
|
B("components.presentation.PresentationViewModel")
|
|
206
217
|
], a);
|
|
207
|
-
class Y extends
|
|
218
|
+
class Y extends C {
|
|
208
219
|
constructor(e) {
|
|
209
220
|
super(e);
|
|
210
221
|
}
|
|
@@ -277,9 +288,9 @@ class Y extends A {
|
|
|
277
288
|
await m(() => !c.updating);
|
|
278
289
|
const h = this._tryGetBuildingComponentSublayerView(s, n, c) ?? c;
|
|
279
290
|
await m(() => !h.updating);
|
|
280
|
-
const
|
|
281
|
-
let x = await
|
|
282
|
-
return this._featureHasBeenFilledWithAttributes(x) || (await m(() => !e.updating), x = await
|
|
291
|
+
const f = this._createFeatureGraphic(s, n, r, o.id);
|
|
292
|
+
let x = await P(h, [f]);
|
|
293
|
+
return this._featureHasBeenFilledWithAttributes(x) || (await m(() => !e.updating), x = await P(h, [f])), x;
|
|
283
294
|
}
|
|
284
295
|
_tryGetBuildingComponentSublayerView(e, t, s) {
|
|
285
296
|
let n;
|
|
@@ -337,7 +348,7 @@ class Y extends A {
|
|
|
337
348
|
}
|
|
338
349
|
//#endregion
|
|
339
350
|
}
|
|
340
|
-
const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }),
|
|
351
|
+
const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), b = /* @__PURE__ */ new WeakMap(), y = () => ({
|
|
341
352
|
topCenter: { ...g },
|
|
342
353
|
topLeft: { ...g },
|
|
343
354
|
topRight: { ...g },
|
|
@@ -352,12 +363,12 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), f = /* @_
|
|
|
352
363
|
bottomLeft: { ...i.bottomLeft },
|
|
353
364
|
bottomRight: { ...i.bottomRight }
|
|
354
365
|
}), F = (i) => {
|
|
355
|
-
let e =
|
|
366
|
+
let e = b.get(i);
|
|
356
367
|
return e || (e = {
|
|
357
368
|
observedGroups: /* @__PURE__ */ new Map(),
|
|
358
|
-
observedSizes:
|
|
369
|
+
observedSizes: y(),
|
|
359
370
|
subscribers: /* @__PURE__ */ new Set()
|
|
360
|
-
},
|
|
371
|
+
}, b.set(i, e)), e;
|
|
361
372
|
}, ee = (i) => {
|
|
362
373
|
const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, o = i?.bottomRight.value;
|
|
363
374
|
return e && t && s && n && r && o ? {
|
|
@@ -372,18 +383,18 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), f = /* @_
|
|
|
372
383
|
const e = L(i.observedSizes);
|
|
373
384
|
i.subscribers.forEach((t) => t(e));
|
|
374
385
|
}, se = (i, e) => {
|
|
375
|
-
const t =
|
|
386
|
+
const t = b.get(i);
|
|
376
387
|
if (!t)
|
|
377
388
|
return;
|
|
378
389
|
let s = !1;
|
|
379
390
|
e.forEach((n) => {
|
|
380
|
-
const r = _.find((
|
|
391
|
+
const r = _.find((f) => t.observedGroups.get(f) === n.target);
|
|
381
392
|
if (!r)
|
|
382
393
|
return;
|
|
383
394
|
const { width: o, height: c } = n.contentRect, p = { width: o, height: c }, h = t.observedSizes[r];
|
|
384
395
|
h.width === p.width && h.height === p.height || (t.observedSizes[r] = p, s = !0);
|
|
385
396
|
}), s && ie(t);
|
|
386
|
-
},
|
|
397
|
+
}, A = (i, e) => {
|
|
387
398
|
const t = F(i);
|
|
388
399
|
t.resizeObserver || (t.resizeObserver = new ResizeObserver((n) => {
|
|
389
400
|
se(i, n);
|
|
@@ -400,11 +411,11 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), f = /* @_
|
|
|
400
411
|
}, ne = (i, e) => {
|
|
401
412
|
const t = F(i);
|
|
402
413
|
return t.subscribers.add(e), e(L(t.observedSizes)), () => {
|
|
403
|
-
const s =
|
|
404
|
-
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(),
|
|
414
|
+
const s = b.get(i);
|
|
415
|
+
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), b.delete(i)));
|
|
405
416
|
};
|
|
406
417
|
};
|
|
407
|
-
class re extends
|
|
418
|
+
class re extends C {
|
|
408
419
|
// References to the slot group elements owned by the host component.
|
|
409
420
|
#t;
|
|
410
421
|
#e;
|
|
@@ -415,10 +426,10 @@ class re extends A {
|
|
|
415
426
|
* @param component The host component that owns the slot group elements.
|
|
416
427
|
*/
|
|
417
428
|
constructor(e) {
|
|
418
|
-
super(e), this.exports =
|
|
429
|
+
super(e), this.exports = y();
|
|
419
430
|
}
|
|
420
431
|
hostDisconnected() {
|
|
421
|
-
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports =
|
|
432
|
+
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports = y();
|
|
422
433
|
}
|
|
423
434
|
hostLifecycle() {
|
|
424
435
|
return [
|
|
@@ -427,12 +438,12 @@ class re extends A {
|
|
|
427
438
|
(t) => {
|
|
428
439
|
if (this.#e !== t) {
|
|
429
440
|
if (this.#i?.(), this.#i = void 0, this.#e = t, this.#t = t?.slotGroupRefs, !t) {
|
|
430
|
-
this.exports =
|
|
441
|
+
this.exports = y();
|
|
431
442
|
return;
|
|
432
443
|
}
|
|
433
444
|
this.#i = ne(t, (s) => {
|
|
434
445
|
this.#n(s) || (this.exports = s);
|
|
435
|
-
}),
|
|
446
|
+
}), A(t, this.#t);
|
|
436
447
|
}
|
|
437
448
|
},
|
|
438
449
|
{ sync: !0, initial: !0 }
|
|
@@ -440,7 +451,7 @@ class re extends A {
|
|
|
440
451
|
v(
|
|
441
452
|
() => this.#s()?.slotGroupRefs,
|
|
442
453
|
(t) => {
|
|
443
|
-
this.#t = t, this.#e && t &&
|
|
454
|
+
this.#t = t, this.#e && t && A(this.#e, t);
|
|
444
455
|
},
|
|
445
456
|
{ sync: !0, initial: !0 }
|
|
446
457
|
)
|
|
@@ -451,11 +462,11 @@ class re extends A {
|
|
|
451
462
|
return e && typeof e != "string" ? e : void 0;
|
|
452
463
|
}
|
|
453
464
|
hostUpdated() {
|
|
454
|
-
!this.#e || !this.#t ||
|
|
465
|
+
!this.#e || !this.#t || A(this.#e, this.#t);
|
|
455
466
|
}
|
|
456
467
|
// Compares the newly measured sizes against the currently exported values.
|
|
457
468
|
#n(e) {
|
|
458
|
-
const t = this.exports ??
|
|
469
|
+
const t = this.exports ?? y();
|
|
459
470
|
return _.every((s) => {
|
|
460
471
|
const n = t[s], r = e[s];
|
|
461
472
|
return n.width === r.width && n.height === r.height;
|
|
@@ -470,11 +481,11 @@ class le extends R {
|
|
|
470
481
|
}, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = () => {
|
|
471
482
|
this._useFeatureRefPopup.closePopup();
|
|
472
483
|
}, this._handleApplySlideComplete = (e) => {
|
|
473
|
-
this._useFeatureRefPopup.openPopup(e);
|
|
474
|
-
}, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.arcgisPopupFeatureNotFound = I(), this.arcgisPopupFeaturesRetrieved = I(), this.arcgisReady = I();
|
|
484
|
+
this._useFeatureRefPopup.openPopup(e), this.sliceAnalysisInteractive && this.viewModel.setSliceAnalysisInteractive();
|
|
485
|
+
}, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.sliceAnalysisInteractive = !1, this.arcgisPopupFeatureNotFound = I(), this.arcgisPopupFeaturesRetrieved = I(), this.arcgisReady = I();
|
|
475
486
|
}
|
|
476
487
|
static {
|
|
477
|
-
this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5, slideLegendDisabled: 5 };
|
|
488
|
+
this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5, slideLegendDisabled: 5, sliceAnalysisInteractive: 5 };
|
|
478
489
|
}
|
|
479
490
|
static {
|
|
480
491
|
this.styles = q;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as g, html as c } from "lit";
|
|
4
4
|
import { LitElement as s, createEvent as b } from "@arcgis/lumina";
|
|
5
5
|
import "@arcgis/core/core/accessorSupport/decorators.js";
|
|
6
6
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
|
-
const d = l`.captions-container{width:100%;height:100%;padding-inline-start:var(--arcgis-internal-presentation-padding-start);padding-inline-end:var(--arcgis-internal-presentation-padding-end)}.captions{height:auto;position:relative;box-sizing:border-box;transition:padding .05s ease-in 0s;min-height:48px;max-width:max(400px,40%);padding:12px 16px;&:before{content:"";position:absolute;inset-block:-16px -144px;inset-inline:calc(-64px - var(--arcgis-internal-presentation-padding-start)) calc(0px - max(360px,32vw));background:var(--caption-gradient);mask:var(--caption-gradient-mask-before);opacity:var(--calcite-opacity-half);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--caption-gradient-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}:dir(rtl) .captions{&:before{mask:var(--caption-gradient-mask-before-RTL)}}.title{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:var(--title-text-shadow);font-size:var(--caption-title-font-size);font-family:Avenir Next World,sans-serif;font-style:normal;font-weight:var(--calcite-font-weight-bold);line-height:var(--calcite-font-line-height-relative-snug);margin-bottom:2px;color:var(--calcite-color-text-1)}.captions-description{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;text-shadow:var(--description-text-shadow);font-size:var(--caption-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1)}.cover-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding-block-start:calc(var(--arcgis-internal-presentation-cover-padding-top) + var(--calcite-space-lg));padding-block-end:calc(var(--arcgis-internal-presentation-cover-padding-bottom) + var(--calcite-space-lg))}.cover{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;min-height:88px;min-width:200px;position:relative;padding-inline-start:calc(var(--arcgis-internal-presentation-cover-padding-start) + 16px);padding-inline-end:calc(var(--arcgis-internal-presentation-cover-padding-end) + 16px);opacity:1;transition:opacity .25s,color .25s;&:before{content:"";position:absolute;inset:calc(0vw - max(320px,12vw,18vh)) calc(0vw - max(320px,24vw));border-radius:120px;background:var(--cover-gradient-before);mask:var(--cover-mask-before);opacity:var(--calcite-opacity-half);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--cover-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}.cover-description{text-wrap:pretty;text-align:center;text-shadow:var(--description-text-shadow);font-size:var(--cover-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);display:-webkit-box;max-width:75ch;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;color:var(--calcite-color-text-1)}:host{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:flex-start;box-sizing:border-box;--caption-gradient: linear-gradient( 180deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 98.3%) 8.1%, rgb(255 255 255 / 95%) 15.5%, rgb(255 255 255 / 90%) 22.5%, rgb(255 255 255 / 83.3%) 29%, rgb(255 255 255 / 73.3%) 35%, rgb(255 255 255 / 65%) 41%, rgb(255 255 255 / 55%) 47%, rgb(255 255 255 / 45%) 53%, rgb(255 255 255 / 35%) 59%, rgb(255 255 255 / 26.7%) 65%, rgb(255 255 255 / 18.3%) 71%, rgb(255 255 255 / 10%) 77%, rgb(255 255 255 / 4%) 84.5%, rgb(255 255 255 / 1%) 91%, rgb(255 255 255 / 0%) 100% );--title-text-shadow: 0 1px 1px #fff3, 0 0 3px #fff2, 0 0 6px #fff2;--caption-gradient-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-before-RTL: linear-gradient( 270deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--description-text-shadow: 0 .5px .5px #fff2, 0 1px 1px #fff2, 0 0 8px #fff2;--caption-title-font-size: max(var(--calcite-font-size-xxl), calc(18px + .64vw) );--caption-description-font-size: max(var(--calcite-font-size), calc(10px + .4vw) );--cover-description-font-size: max(var(--calcite-font-size-md), calc(10px + .5vw) );--cover-gradient-before: linear-gradient( 0deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 4%, rgb(255 255 255 / 4%) 7.7%, rgb(255 255 255 / 10%) 11.2%, rgb(255 255 255 / 18.3%) 14.5%, rgb(255 255 255 / 26.7%) 17.5%, rgb(255 255 255 / 35%) 20.5%, rgb(255 255 255 / 45%) 23.5%, rgb(255 255 255 / 55%) 26.5%, rgb(255 255 255 / 65%) 29.5%, rgb(255 255 255 / 73.3%) 32.5%, rgb(255 255 255 / 83.3%) 35.5%, rgb(255 255 255 / 90%) 38.5%, rgb(255 255 255 / 95%) 42.2%, rgb(255 255 255 / 98.3%) 46%, rgb(255 255 255 / 100%) 50%, rgb(255 255 255 / 98.3%) 54%, rgb(255 255 255 / 95%) 57.8%, rgb(255 255 255 / 90%) 61.5%, rgb(255 255 255 / 83.3%) 64.5%, rgb(255 255 255 / 73.3%) 67.5%, rgb(255 255 255 / 65%) 70.5%, rgb(255 255 255 / 55%) 73.5%, rgb(255 255 255 / 45%) 76.5%, rgb(255 255 255 / 35%) 79.5%, rgb(255 255 255 / 26.7%) 82.5%, rgb(255 255 255 / 18.3%) 85.5%, rgb(255 255 255 / 10%) 88.8%, rgb(255 255 255 / 4%) 92.3%, rgb(255 255 255 / 1%) 96%, rgb(255 255 255 / 0%) 100% );--cover-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 3.2%, rgb(255 255 255 / 4%) 6.2%, rgb(255 255 255 / 10%) 9%, rgb(255 255 255 / 18.3%) 11.6%, rgb(255 255 255 / 26.7%) 14%, rgb(255 255 255 / 35%) 16.4%, rgb(255 255 255 / 45%) 18.8%, rgb(255 255 255 / 55%) 21.2%, rgb(255 255 255 / 65%) 23.6%, rgb(255 255 255 / 73.3%) 26%, rgb(255 255 255 / 83.3%) 28.4%, rgb(255 255 255 / 90%) 30.8%, rgb(255 255 255 / 95%) 33.8%, rgb(255 255 255 / 98.3%) 36.8%, rgb(255 255 255 / 100%) 40%, rgb(255 255 255 / 100%) 60%, rgb(255 255 255 / 98.3%) 63.2%, rgb(255 255 255 / 95%) 66.2%, rgb(255 255 255 / 90%) 69.2%, rgb(255 255 255 / 83.3%) 71.6%, rgb(255 255 255 / 73.3%) 74%, rgb(255 255 255 / 65%) 76.4%, rgb(255 255 255 / 55%) 78.8%, rgb(255 255 255 / 45%) 81.2%, rgb(255 255 255 / 35%) 83.6%, rgb(255 255 255 / 26.7%) 86%, rgb(255 255 255 / 18.3%) 88.4%, rgb(255 255 255 / 10%) 91%, rgb(255 255 255 / 4%) 93.9%, rgb(255 255 255 / 1%) 96.8%, rgb(255 255 255 / 0%) 100% );--cover-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--cover-gradient-phone: linear-gradient( 0deg, rgb(255 255 255 / 0%) .59%, rgb(255 255 255 / 4%) 4.94%, rgb(255 255 255 / 50%) 25.87%, rgb(255 255 255 / 70%) 37.02%, rgb(255 255 255 / 80%) 48.43%, rgb(255 255 255 / 70%) 60.34%, rgb(255 255 255 / 30%) 80.55%, rgb(255 255 255 / 4%) 93.22%, rgb(255 255 255 / 0%) 99.74% );.fadeOut{opacity:1!important}}`, n = 50, o = 256;
|
|
7
|
+
const d = g`.captions-container{width:100%;height:100%;padding-inline-start:var(--arcgis-internal-presentation-padding-start);padding-inline-end:var(--arcgis-internal-presentation-padding-end)}.captions{height:auto;position:relative;box-sizing:border-box;transition:padding .05s ease-in 0s;min-height:48px;max-width:max(400px,40%);padding:12px 16px;&:before{content:"";position:absolute;inset-block:-16px -144px;inset-inline:calc(-64px - var(--arcgis-internal-presentation-padding-start)) calc(0px - max(360px,32vw));background:var(--caption-gradient);mask:var(--caption-gradient-mask-before);opacity:var(--calcite-opacity-half);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--caption-gradient-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}:dir(rtl) .captions{&:before{mask:var(--caption-gradient-mask-before-RTL)}}.title{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:var(--title-text-shadow);font-size:var(--caption-title-font-size);font-family:Avenir Next World,sans-serif;font-style:normal;font-weight:var(--calcite-font-weight-bold);line-height:var(--calcite-font-line-height-relative-snug);margin-bottom:2px;color:var(--calcite-color-text-1)}.captions-description{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;text-shadow:var(--description-text-shadow);font-size:var(--caption-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1)}.cover-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding-block-start:calc(var(--arcgis-internal-presentation-cover-padding-top) + var(--calcite-space-lg));padding-block-end:calc(var(--arcgis-internal-presentation-cover-padding-bottom) + var(--calcite-space-lg))}.cover{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;min-height:88px;min-width:200px;position:relative;padding-inline-start:calc(var(--arcgis-internal-presentation-cover-padding-start) + 16px);padding-inline-end:calc(var(--arcgis-internal-presentation-cover-padding-end) + 16px);opacity:1;transition:opacity .25s,color .25s;&:before{content:"";position:absolute;inset:calc(0vw - max(320px,12vw,18vh)) calc(0vw - max(320px,24vw));border-radius:120px;background:var(--cover-gradient-before);mask:var(--cover-mask-before);opacity:var(--calcite-opacity-half);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--cover-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}.cover-description{text-wrap:pretty;text-align:center;text-shadow:var(--description-text-shadow);font-size:var(--cover-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);display:-webkit-box;max-width:75ch;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;color:var(--calcite-color-text-1)}:host{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:flex-start;box-sizing:border-box;--caption-gradient: linear-gradient( 180deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 98.3%) 8.1%, rgb(255 255 255 / 95%) 15.5%, rgb(255 255 255 / 90%) 22.5%, rgb(255 255 255 / 83.3%) 29%, rgb(255 255 255 / 73.3%) 35%, rgb(255 255 255 / 65%) 41%, rgb(255 255 255 / 55%) 47%, rgb(255 255 255 / 45%) 53%, rgb(255 255 255 / 35%) 59%, rgb(255 255 255 / 26.7%) 65%, rgb(255 255 255 / 18.3%) 71%, rgb(255 255 255 / 10%) 77%, rgb(255 255 255 / 4%) 84.5%, rgb(255 255 255 / 1%) 91%, rgb(255 255 255 / 0%) 100% );--title-text-shadow: 0 1px 1px #fff3, 0 0 3px #fff2, 0 0 6px #fff2;--caption-gradient-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-before-RTL: linear-gradient( 270deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--description-text-shadow: 0 .5px .5px #fff2, 0 1px 1px #fff2, 0 0 8px #fff2;--caption-title-font-size: max(var(--calcite-font-size-xxl), calc(18px + .64vw) );--caption-description-font-size: max(var(--calcite-font-size), calc(10px + .4vw) );--cover-description-font-size: max(var(--calcite-font-size-md), calc(10px + .5vw) );--cover-gradient-before: linear-gradient( 0deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 4%, rgb(255 255 255 / 4%) 7.7%, rgb(255 255 255 / 10%) 11.2%, rgb(255 255 255 / 18.3%) 14.5%, rgb(255 255 255 / 26.7%) 17.5%, rgb(255 255 255 / 35%) 20.5%, rgb(255 255 255 / 45%) 23.5%, rgb(255 255 255 / 55%) 26.5%, rgb(255 255 255 / 65%) 29.5%, rgb(255 255 255 / 73.3%) 32.5%, rgb(255 255 255 / 83.3%) 35.5%, rgb(255 255 255 / 90%) 38.5%, rgb(255 255 255 / 95%) 42.2%, rgb(255 255 255 / 98.3%) 46%, rgb(255 255 255 / 100%) 50%, rgb(255 255 255 / 98.3%) 54%, rgb(255 255 255 / 95%) 57.8%, rgb(255 255 255 / 90%) 61.5%, rgb(255 255 255 / 83.3%) 64.5%, rgb(255 255 255 / 73.3%) 67.5%, rgb(255 255 255 / 65%) 70.5%, rgb(255 255 255 / 55%) 73.5%, rgb(255 255 255 / 45%) 76.5%, rgb(255 255 255 / 35%) 79.5%, rgb(255 255 255 / 26.7%) 82.5%, rgb(255 255 255 / 18.3%) 85.5%, rgb(255 255 255 / 10%) 88.8%, rgb(255 255 255 / 4%) 92.3%, rgb(255 255 255 / 1%) 96%, rgb(255 255 255 / 0%) 100% );--cover-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 3.2%, rgb(255 255 255 / 4%) 6.2%, rgb(255 255 255 / 10%) 9%, rgb(255 255 255 / 18.3%) 11.6%, rgb(255 255 255 / 26.7%) 14%, rgb(255 255 255 / 35%) 16.4%, rgb(255 255 255 / 45%) 18.8%, rgb(255 255 255 / 55%) 21.2%, rgb(255 255 255 / 65%) 23.6%, rgb(255 255 255 / 73.3%) 26%, rgb(255 255 255 / 83.3%) 28.4%, rgb(255 255 255 / 90%) 30.8%, rgb(255 255 255 / 95%) 33.8%, rgb(255 255 255 / 98.3%) 36.8%, rgb(255 255 255 / 100%) 40%, rgb(255 255 255 / 100%) 60%, rgb(255 255 255 / 98.3%) 63.2%, rgb(255 255 255 / 95%) 66.2%, rgb(255 255 255 / 90%) 69.2%, rgb(255 255 255 / 83.3%) 71.6%, rgb(255 255 255 / 73.3%) 74%, rgb(255 255 255 / 65%) 76.4%, rgb(255 255 255 / 55%) 78.8%, rgb(255 255 255 / 45%) 81.2%, rgb(255 255 255 / 35%) 83.6%, rgb(255 255 255 / 26.7%) 86%, rgb(255 255 255 / 18.3%) 88.4%, rgb(255 255 255 / 10%) 91%, rgb(255 255 255 / 4%) 93.9%, rgb(255 255 255 / 1%) 96.8%, rgb(255 255 255 / 0%) 100% );--cover-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--cover-gradient-phone: linear-gradient( 0deg, rgb(255 255 255 / 0%) .59%, rgb(255 255 255 / 4%) 4.94%, rgb(255 255 255 / 50%) 25.87%, rgb(255 255 255 / 70%) 37.02%, rgb(255 255 255 / 80%) 48.43%, rgb(255 255 255 / 70%) 60.34%, rgb(255 255 255 / 30%) 80.55%, rgb(255 255 255 / 4%) 93.22%, rgb(255 255 255 / 0%) 99.74% );.fadeOut{opacity:1!important}}`, n = 50, o = 256;
|
|
8
8
|
class x extends s {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments), this.transitionActive = !1, this.autoDestroyDisabled = !1, this.arcgisReady = b();
|
|
@@ -20,7 +20,7 @@ class x extends s {
|
|
|
20
20
|
}
|
|
21
21
|
loaded() {
|
|
22
22
|
this.manager.onLifecycle(() => p(() => ({ slide: this.slide, transitionActive: this.transitionActive }), ({ slide: e, transitionActive: r }) => {
|
|
23
|
-
r
|
|
23
|
+
r ? this._appliedSlide = void 0 : this._appliedSlide = e;
|
|
24
24
|
}, { initial: !0 }));
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
@@ -37,7 +37,7 @@ class x extends s {
|
|
|
37
37
|
return c`<div class="captions-container"><div class="captions"><div class="title">${e}</div><div class="captions-description">${r}</div></div></div>`;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
l("arcgis-presentation-captions", x);
|
|
41
41
|
export {
|
|
42
42
|
x as ArcgisPresentationCaptions
|
|
43
43
|
};
|
|
@@ -1041,6 +1041,10 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
1041
1041
|
/**
|
|
1042
1042
|
* This event is for view related property changes: [zoom](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#zoom), [scale](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#scale), [center](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#center), [extent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#extent),
|
|
1043
1043
|
* [camera](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#camera), [viewpoint](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#viewpoint). This event will also emit if [stationary](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#stationary) toggles from `true` to `false`.
|
|
1044
|
+
*
|
|
1045
|
+
* > The `arcgisViewChange` event may be emitted before the view is fully ready.
|
|
1046
|
+
* > This means the event can fire before the component's `stationary` property is `true` or before the view has completed its initial setup.
|
|
1047
|
+
* > For actions that require the view to be ready and stationary, combine this event with checks on the component's `stationary` and `ready` properties.
|
|
1044
1048
|
*/
|
|
1045
1049
|
readonly arcgisViewChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1046
1050
|
/**
|
|
@@ -239,7 +239,7 @@ class R extends g {
|
|
|
239
239
|
return this.hidePreview || !e ? null : m`<div slot=popover>${e}</div>`;
|
|
240
240
|
}
|
|
241
241
|
render() {
|
|
242
|
-
return m`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))}
|
|
242
|
+
return m`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))} .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : m`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
|
|
243
243
|
}
|
|
244
244
|
_renderCurrentScaleIndicator(e) {
|
|
245
245
|
const i = this._sliderRef.value, a = i?.fullRangeMax ?? this._mapScaleToSlider(l[l.length - 1].maxScale), t = i?.fullRangeMin ?? this._mapScaleToSlider(l[0].minScale), s = a - t, c = Math.min(100, Math.max(0, (this._mapScaleToSlider(e) - t) / s * 100));
|
|
@@ -258,7 +258,7 @@ class R extends g {
|
|
|
258
258
|
}}></calcite-input-number></calcite-list-item>`;
|
|
259
259
|
}
|
|
260
260
|
_renderScaleMenuButtons(e) {
|
|
261
|
-
return m`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .
|
|
261
|
+
return m`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu === e ? "outline" : "transparent"}>${this._getDropdownLabel(e)}</calcite-button>`;
|
|
262
262
|
}
|
|
263
263
|
_renderScaleMenuPopover(e) {
|
|
264
264
|
return m`<calcite-popover auto-close .label=${`${e === "min" ? "Min" : "Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e === "max" ? "bottom-end" : "bottom-start"} .open=${this._activeMenu === e} scale=s @calcitePopoverOpen=${() => this._activeMenu = e} @calcitePopoverClose=${() => {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as o, html as e } from "lit";
|
|
4
|
+
import { keyed as n } from "lit/directives/keyed.js";
|
|
5
|
+
import { LitElement as m, createEvent as u } from "@arcgis/lumina";
|
|
6
|
+
import { u as g } from "../../chunks/useT9n.js";
|
|
7
|
+
import { i as d } from "../../chunks/measurementUtils.js";
|
|
8
|
+
const h = o`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}calcite-radio-button-group{padding:var(--calcite-spacing-sm)}`;
|
|
9
|
+
class p extends m {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this.messages = g({}), this.options = [], this.scale = "m", this.layout = "block", this.arcgisUnitSelectChange = u();
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = { options: [1, { type: Array }], scale: 1, name: 1, value: 0, messageOverrides: 0, label: 1, layout: 1 };
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = h;
|
|
18
|
+
}
|
|
19
|
+
async destroy() {
|
|
20
|
+
await this.manager.destroy();
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
const {
|
|
24
|
+
messages: a,
|
|
25
|
+
options: s = [],
|
|
26
|
+
// when running in the CI, sometimes this ends up being `undefined`, for unclear reasons.
|
|
27
|
+
name: i,
|
|
28
|
+
value: r,
|
|
29
|
+
arcgisUnitSelectChange: c
|
|
30
|
+
} = this;
|
|
31
|
+
return e`<calcite-radio-button-group layout=vertical .name=${i} @calciteRadioButtonGroupChange=${(t) => {
|
|
32
|
+
c.emit(t.target.selectedItem.value);
|
|
33
|
+
}} .scale=${this.scale}>${s.map((t) => e`<calcite-label layout=inline .scale=${this.scale}>${n(t, e`<calcite-radio-button .checked=${t === r} .scale=${this.scale} .value=${t}></calcite-radio-button>`)}${d(t) ? a.systems?.[t] : a.units?.[t]?.pluralCapitalized}</calcite-label>`)}</calcite-radio-button-group>`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
l("arcgis-unit-radio-button-group", p);
|
|
37
|
+
export {
|
|
38
|
+
p as ArcgisUnitRadioButtonGroup
|
|
39
|
+
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { c as r } from "../../chunks/runtime.js";
|
|
3
3
|
import { repeat as o } from "lit/directives/repeat.js";
|
|
4
4
|
import { css as n, html as a } from "lit";
|
|
5
|
-
import { LitElement as m, createEvent as
|
|
6
|
-
import { u
|
|
5
|
+
import { LitElement as m, createEvent as h } from "@arcgis/lumina";
|
|
6
|
+
import { u } from "../../chunks/useT9n.js";
|
|
7
7
|
import { i as g } from "../../chunks/measurementUtils.js";
|
|
8
8
|
const p = n`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}.root[layout=inline-space-between] calcite-select{width:var(--arcgis-unit-select-inline-size, 180px)}`;
|
|
9
9
|
class y extends m {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(...arguments), this.messages =
|
|
11
|
+
super(...arguments), this.messages = u({}), this.options = [], this.scale = "m", this.layout = "block", this.arcgisUnitSelectChange = h();
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
|
-
this.properties = { options: [1, { type: Array }], selectLabel: 1, value: 0, messageOverrides: 0, label: 1, layout: 1 };
|
|
14
|
+
this.properties = { options: [1, { type: Array }], scale: 1, selectLabel: 1, value: 0, messageOverrides: 0, label: 1, layout: 1 };
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
17
|
this.styles = p;
|
|
@@ -22,15 +22,15 @@ class y extends m {
|
|
|
22
22
|
render() {
|
|
23
23
|
const {
|
|
24
24
|
messages: t,
|
|
25
|
-
options:
|
|
25
|
+
options: l = [],
|
|
26
26
|
// when running in the CI, sometimes this ends up being `undefined`, for unclear reasons.
|
|
27
27
|
selectLabel: s,
|
|
28
|
-
value:
|
|
28
|
+
value: i,
|
|
29
29
|
arcgisUnitSelectChange: c
|
|
30
30
|
} = this;
|
|
31
|
-
return a`<calcite-label class="root" .layout=${this.layout}>${s}<calcite-select .label=${s} @calciteSelectChange=${(e) => {
|
|
31
|
+
return a`<calcite-label class="root" .layout=${this.layout} .scale=${this.scale}>${s}<calcite-select .label=${s} @calciteSelectChange=${(e) => {
|
|
32
32
|
c.emit(e.target.value);
|
|
33
|
-
}}>${o(
|
|
33
|
+
}} .scale=${this.scale}>${o(l, (e) => e, (e) => a`<calcite-option .selected=${e === i} .value=${e}>${g(e) ? t.systems?.[e] : t.units?.[e]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
r("arcgis-unit-select", y);
|
|
@@ -22,7 +22,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
22
22
|
noView: string;
|
|
23
23
|
operationOnlyAllowedByOwner: string;
|
|
24
24
|
sceneViewNotSupported: string;
|
|
25
|
-
|
|
25
|
+
utilityNetworkLoadFailed: string;
|
|
26
26
|
};
|
|
27
27
|
info: { validateCanceled: string; };
|
|
28
28
|
input: {
|
|
@@ -53,7 +53,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
53
53
|
noView: string;
|
|
54
54
|
operationOnlyAllowedByOwner: string;
|
|
55
55
|
sceneViewNotSupported: string;
|
|
56
|
-
|
|
56
|
+
utilityNetworkLoadFailed: string;
|
|
57
57
|
};
|
|
58
58
|
info: { validateCanceled: string; };
|
|
59
59
|
input: {
|
|
@@ -104,7 +104,7 @@ export abstract class ArcgisUtilityNetworkValidateNetworkTopology extends LitEle
|
|
|
104
104
|
noView?: string | undefined;
|
|
105
105
|
operationOnlyAllowedByOwner?: string | undefined;
|
|
106
106
|
sceneViewNotSupported?: string | undefined;
|
|
107
|
-
|
|
107
|
+
utilityNetworkLoadFailed?: string | undefined;
|
|
108
108
|
} | undefined;
|
|
109
109
|
info?: { validateCanceled?: string | undefined; } | undefined;
|
|
110
110
|
input?: {
|
|
@@ -151,7 +151,7 @@ class q extends A {
|
|
|
151
151
|
} catch (t) {
|
|
152
152
|
if (C(t))
|
|
153
153
|
return;
|
|
154
|
-
this.
|
|
154
|
+
this.state = { type: "error-disable-execute", message: this._messages.errors.utilityNetworkLoadFailed }, I(t, this, this.state.message);
|
|
155
155
|
} finally {
|
|
156
156
|
this._setupTask === e && (this._setupTask = void 0);
|
|
157
157
|
}
|