@arcgis/map-components 5.1.0-next.125 → 5.1.0-next.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{TPIXZL2K.js → 43M5VJRC.js} +1 -1
- package/dist/cdn/{GD7MA2TO.js → AXN7G236.js} +1 -1
- package/dist/cdn/{3YM2QRWA.js → CE2RZQQW.js} +1 -1
- package/dist/cdn/{V4TZKP3Y.js → FEUJIJZD.js} +1 -1
- package/dist/cdn/FKUYUCZI.js +2 -0
- package/dist/cdn/GSSYRVP6.js +2 -0
- package/dist/cdn/QDUGDBGL.js +2 -0
- package/dist/cdn/VF6XRFTD.js +2 -0
- package/dist/cdn/{XYM3N3G2.js → WL3M7M7U.js} +1 -1
- package/dist/cdn/{7SSL5FEN.js → XHF7LKTV.js} +1 -1
- package/dist/cdn/{HXG7STEU.js → YXFCBOAL.js} +1 -1
- package/dist/cdn/{7C32A3BK.js → ZJMD4XQE.js} +1 -1
- package/dist/cdn/ZRHYL7ZS.js +2 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/time-utils.js +14 -14
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
- package/dist/components/arcgis-daylight/customElement.js +237 -205
- package/dist/components/arcgis-directions/customElement.d.ts +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +7 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +2 -2
- package/dist/components/arcgis-legend/customElement.d.ts +1 -1
- package/dist/components/arcgis-legend/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
- package/dist/components/arcgis-link-chart/customElement.d.ts +2 -2
- package/dist/components/arcgis-locate/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +49 -6
- package/dist/components/arcgis-popup/customElement.d.ts +8 -2
- package/dist/components/arcgis-print/customElement.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +3 -3
- package/dist/components/arcgis-search/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +1 -1
- package/dist/components/arcgis-template-image/customElement.js +25 -22
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-time-slider/customElement.d.ts +6 -6
- package/dist/components/arcgis-track/customElement.d.ts +2 -2
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
- package/dist/components/arcgis-video/customElement.d.ts +1 -1
- package/dist/components/arcgis-weather/customElement.d.ts +1 -1
- package/dist/components/arcgis-weather/customElement.js +96 -94
- 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/package.json +4 -4
- package/dist/cdn/CH6EZH77.js +0 -2
- package/dist/cdn/GQTLJGQ6.js +0 -2
- package/dist/cdn/IQPGSWSL.js +0 -2
- package/dist/cdn/T6JFYEP2.js +0 -2
- package/dist/cdn/Y7X7TMXK.js +0 -2
|
@@ -97,7 +97,7 @@ export abstract class ArcgisDirections extends LitElement {
|
|
|
97
97
|
*
|
|
98
98
|
* @default 2
|
|
99
99
|
* @since 4.20
|
|
100
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
100
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
101
101
|
* @example
|
|
102
102
|
* // address text will render as an <h3>
|
|
103
103
|
* directions.headingLevel = 3;
|
|
@@ -43,7 +43,7 @@ export abstract class ArcgisEditor extends LitElement {
|
|
|
43
43
|
*
|
|
44
44
|
* @default 4
|
|
45
45
|
* @since 4.20
|
|
46
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
46
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
47
47
|
* @example
|
|
48
48
|
* // "Editor" will render as an <h3>
|
|
49
49
|
* editor.headingLevel = 3;
|
|
@@ -113,7 +113,7 @@ export abstract class ArcgisFeature extends LitElement {
|
|
|
113
113
|
* important for meeting accessibility standards.
|
|
114
114
|
*
|
|
115
115
|
* @default 2
|
|
116
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
116
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
117
117
|
* @example
|
|
118
118
|
* ```
|
|
119
119
|
* // feature title will render as an <h3>
|
|
@@ -127,7 +127,7 @@ export abstract class ArcgisFeatureForm extends LitElement {
|
|
|
127
127
|
*
|
|
128
128
|
* @default 2
|
|
129
129
|
* @since 4.20
|
|
130
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
130
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
131
131
|
* @example
|
|
132
132
|
* // form title will render as an <h3>
|
|
133
133
|
* // group element labels will render as an <h4>
|
|
@@ -596,6 +596,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
|
|
|
596
596
|
* Use with `layerUrl` when the service contains multiple layers and you want to specify which layer to use.
|
|
597
597
|
*
|
|
598
598
|
* @since 5.1
|
|
599
|
+
* @internal
|
|
599
600
|
*/
|
|
600
601
|
accessor layerId: number | undefined;
|
|
601
602
|
/**
|
|
@@ -122,7 +122,7 @@ export abstract class ArcgisFeatureTemplatesLegacy extends LitElement {
|
|
|
122
122
|
*
|
|
123
123
|
* @default 4
|
|
124
124
|
* @since 4.20
|
|
125
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
125
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
126
126
|
* @example
|
|
127
127
|
* // Group label will render as an <h3>
|
|
128
128
|
* featureTemplates.headingLevel = 3;
|
|
@@ -159,7 +159,13 @@ export abstract class ArcgisFeaturesNext extends LitElement {
|
|
|
159
159
|
* @default 20
|
|
160
160
|
*/
|
|
161
161
|
accessor featuresPerPage: number;
|
|
162
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* When `true`, the component will trap focus when opened.
|
|
164
|
+
* This ensures that keyboard navigation is contained within the component when it opens.
|
|
165
|
+
*
|
|
166
|
+
* @default false
|
|
167
|
+
* @since 5.1
|
|
168
|
+
*/
|
|
163
169
|
accessor focusTrapEnabled: boolean;
|
|
164
170
|
/**
|
|
165
171
|
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
@@ -78,7 +78,7 @@ export abstract class ArcgisFloorFilter extends LitElement {
|
|
|
78
78
|
*
|
|
79
79
|
* @default 2
|
|
80
80
|
* @since 4.20
|
|
81
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
81
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
82
82
|
* @example
|
|
83
83
|
* // building headings will render as an <h3>
|
|
84
84
|
* floorFilter.headingLevel = 3;
|
|
@@ -13,13 +13,13 @@ import type { Button as Button } from "@esri/calcite-components/components/calci
|
|
|
13
13
|
*
|
|
14
14
|
* **Known limitations**
|
|
15
15
|
*
|
|
16
|
-
* * Fullscreen only works with browsers that implement the [Fullscreen](https://developer.mozilla.org/
|
|
16
|
+
* * Fullscreen only works with browsers that implement the [Fullscreen](https://developer.mozilla.org/docs/Web/API/Fullscreen_API) API.
|
|
17
17
|
* Thus, iOS Safari is not supported.
|
|
18
18
|
*
|
|
19
19
|
* @since 4.28
|
|
20
20
|
*/
|
|
21
21
|
export abstract class ArcgisFullscreen extends LitElement {
|
|
22
|
-
/** The [HTMLElement](https://developer.mozilla.org/
|
|
22
|
+
/** The [HTMLElement](https://developer.mozilla.org/docs/Web/API/HTMLElement) to present in fullscreen mode. */
|
|
23
23
|
get element(): Element | undefined;
|
|
24
24
|
set element(value: Element | string | undefined);
|
|
25
25
|
/** The component's default label. */
|
|
@@ -152,7 +152,7 @@ export abstract class ArcgisLegend extends LitElement {
|
|
|
152
152
|
* in your app, you may need to adjust this heading for proper semantics. This is important for meeting accessibility standards.
|
|
153
153
|
*
|
|
154
154
|
* @default 3
|
|
155
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
155
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
156
156
|
* @example
|
|
157
157
|
* Legend title will render as an `<h2>`
|
|
158
158
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as d, html as r } from "lit";
|
|
4
|
-
import { on as o, watch as
|
|
4
|
+
import { on as o, watch as a } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import c from "@arcgis/core/widgets/Legend/LegendViewModel.js";
|
|
6
6
|
import { LitElement as g, createEvent as h, safeClassMap as p } from "@arcgis/lumina";
|
|
7
7
|
import { usePropertyChange as f } from "@arcgis/lumina/controllers";
|
|
@@ -9,8 +9,8 @@ import { classes as u } from "@arcgis/toolkit/dom";
|
|
|
9
9
|
import { u as _ } from "../../chunks/useHandles.js";
|
|
10
10
|
import { u as m } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as v } from "../../chunks/useViewModel.js";
|
|
12
|
-
import { g as
|
|
13
|
-
const w = d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, y = v(c);
|
|
12
|
+
import { g as s } from "../../chunks/globalCss.js";
|
|
13
|
+
const w = d`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--arcgis-internal-legend-heading-margin: 0 0 .5rem;--arcgis-internal-legend-layer-padding: var( --arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg) );--arcgis-internal-legend-layer-gap: var(--calcite-spacing-xxl);--arcgis-internal-legend-layer-element-gap: var(--calcite-spacing-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, y = v(c);
|
|
14
14
|
class b extends g {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments), this.messages = m({}), this.final = _("destroy"), this.viewModel = y(this), this._isCardStyle = !1, this.view = this.viewModel.view, this.icon = "legend", this.activeLayerInfos = this.viewModel.activeLayerInfos, this.basemapLegendVisible = this.viewModel.basemapLegendVisible, this.headingLevel = 3, this.hideLayersNotInCurrentView = this.viewModel.hideLayersNotInCurrentView, this.respectLayerDefinitionExpression = this.viewModel.respectLayerDefinitionExpression, this.layerInfos = this.viewModel.layerInfos, this.loading = this.viewModel.loading, this.legendStyle = "classic", this.autoDestroyDisabled = !1, this.label = this.messages?.componentLabel, this.state = this.viewModel.state, this.arcgisPropertyChange = f()("state"), this.arcgisReady = h();
|
|
@@ -34,7 +34,7 @@ class b extends g {
|
|
|
34
34
|
this.manager.onLifecycle(() => [
|
|
35
35
|
o(() => this.el.view, "resize", () => this.requestUpdate()),
|
|
36
36
|
o(() => this.activeLayerInfos, "change", () => this._refreshActiveLayerInfos(this.activeLayerInfos)),
|
|
37
|
-
|
|
37
|
+
a(() => [
|
|
38
38
|
this.cardStyleLayout,
|
|
39
39
|
this.legendStyle,
|
|
40
40
|
typeof this.legendStyle == "object" ? this.legendStyle.type : void 0,
|
|
@@ -51,10 +51,10 @@ class b extends g {
|
|
|
51
51
|
}), this.requestUpdate();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return r`<div class=${p(u("root",
|
|
54
|
+
return r`<div class=${p(u("root", s.widget, { [s.panel]: !this._isCardStyle }))}>${this._isCardStyle && this.view ? r`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>` : r`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`;
|
|
55
55
|
}
|
|
56
56
|
_renderOnActiveLayerInfoChange(e) {
|
|
57
|
-
const i =
|
|
57
|
+
const i = a(() => e.version, () => this.requestUpdate());
|
|
58
58
|
this.final.addHandles(i, `version_${e.layer.uid}`);
|
|
59
59
|
const n = o(() => e.children, "change", () => e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t)));
|
|
60
60
|
this.final.addHandles(n, `version_${e.layer.uid}`), e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t));
|
|
@@ -4,7 +4,7 @@ import { css as $, html as s } from "lit";
|
|
|
4
4
|
import { LitElement as u, safeClassMap as n, nothing as c, safeStyleMap as w } from "@arcgis/lumina";
|
|
5
5
|
import { classes as g } from "@arcgis/toolkit/dom";
|
|
6
6
|
import { b as E, s as p, i as f, c as d, g as y } from "../../chunks/utils2.js";
|
|
7
|
-
const L =
|
|
7
|
+
const L = $`:host{contain:content}.layer-table{display:table;width:100%}.layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.layer-row{display:table-row}.layer-cell{padding:var(--calcite-spacing-xxs) 0;vertical-align:middle;word-break:break-word;display:table-cell}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.imagery-layer-stretched-image{display:block;margin-bottom:-2px}.imagery-layer-info-stretched{padding:0 2px;vertical-align:top}.layer-cell-symbols{text-align:center}.symbol{display:flex;justify-content:center}`;
|
|
8
8
|
class x extends u {
|
|
9
9
|
static {
|
|
10
10
|
this.properties = { cssEffectFilter: 1, layer: 0, legendElement: 0, messages: 0 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as c, html as
|
|
3
|
+
import { css as c, html as a } from "lit";
|
|
4
4
|
import { LitElement as d, safeClassMap as o } from "@arcgis/lumina";
|
|
5
5
|
import { classes as g } from "@arcgis/toolkit/dom";
|
|
6
6
|
import { H as m } from "../../chunks/heading.js";
|
|
7
|
-
const h = c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:block}.
|
|
8
|
-
class
|
|
7
|
+
const h = c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:block}.layers{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layers>.layer{position:relative}.layers>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layers>.layer:last-child{padding-bottom:var(--arcgis-internal-legend-layer-gap)}.layer>.esri-widget__heading{margin:var(--arcgis-internal-legend-heading-margin)}.no-legend{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md)}.layer{padding:var(--arcgis-internal-legend-layer-padding);word-wrap:break-word}.layer-elements{margin-left:var(--calcite-spacing-sm);display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-element-gap);overflow:auto}.layer-children{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layer-children>.layer{position:relative}.layer-children>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer-child{margin-left:var(--calcite-spacing-sm);padding:0}:dir(rtl) .layer-elements,:dir(rtl) .layer-child{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}`;
|
|
8
|
+
class y extends d {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments), this.headingLevel = 3, this.type = "classic";
|
|
11
11
|
}
|
|
@@ -16,31 +16,31 @@ class p extends d {
|
|
|
16
16
|
this.styles = h;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
19
|
+
const r = this.activeLayerInfos?.toArray().map((l) => this._renderLegendForLayer(l)).filter(Boolean);
|
|
20
|
+
return r?.length ? a`<section class="layers">${r}</section>` : a`<div class="no-legend">${this.messages.noLegend}</div>`;
|
|
21
21
|
}
|
|
22
22
|
_renderLegendForLayer(e) {
|
|
23
23
|
if (!e.ready)
|
|
24
24
|
return null;
|
|
25
|
-
const
|
|
25
|
+
const r = e.title ? m({
|
|
26
26
|
level: this.headingLevel,
|
|
27
27
|
children: e.title
|
|
28
28
|
}) : null;
|
|
29
29
|
if (e.children.length) {
|
|
30
|
-
const
|
|
31
|
-
return
|
|
30
|
+
const l = e.children.toArray().map((i) => this._renderLegendForLayer(i));
|
|
31
|
+
return a`<section class="layer">${r}<div class="layer-children">${l}</div></section>`;
|
|
32
32
|
}
|
|
33
|
-
return this._renderLegendElementsForLayer(e,
|
|
33
|
+
return this._renderLegendElementsForLayer(e, r);
|
|
34
34
|
}
|
|
35
|
-
_renderLegendElementsForLayer(e,
|
|
36
|
-
const
|
|
37
|
-
if (!
|
|
35
|
+
_renderLegendElementsForLayer(e, r) {
|
|
36
|
+
const l = e.legendElements?.filter(Boolean);
|
|
37
|
+
if (!l?.length)
|
|
38
38
|
return null;
|
|
39
|
-
const i =
|
|
40
|
-
return
|
|
39
|
+
const i = l.map((s) => a`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter ?? void 0} .layer=${e.layer} .legendElement=${s} .messages=${this.messages}></arcgis-legend-classic-element>`), t = { "layer-child": !!e.parent };
|
|
40
|
+
return a`<section class=${o(g("layer", t))}>${r}<div class="layer-elements">${i}</div></section>`;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
n("arcgis-legend-classic-view",
|
|
43
|
+
n("arcgis-legend-classic-view", y);
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
y as LegendClassicView
|
|
46
46
|
};
|
|
@@ -35,7 +35,7 @@ import type { ResizeAlign } from "@arcgis/core/views/2d/types.js";
|
|
|
35
35
|
import type { SlotGroupRefs } from "../../support/slots.js";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Loads a [WebLinkChart](https://developers.arcgis.com/javascript/latest/references/core/WebLinkChart/) from an [ArcGIS Enterprise portal](https://
|
|
38
|
+
* Loads a [WebLinkChart](https://developers.arcgis.com/javascript/latest/references/core/WebLinkChart/) from an [ArcGIS Enterprise portal](https://doc.esri.com/en/arcgis-enterprise/latest/plan/what-is-portal-for-arcgis-.html) into a [LinkChartView](https://developers.arcgis.com/javascript/latest/references/core/views/LinkChartView/).
|
|
39
39
|
*
|
|
40
40
|
* Note: Sign in to access the data in this demo, U/P: `viewer01`/`I68VGU^nMurF`
|
|
41
41
|
*
|
|
@@ -95,7 +95,7 @@ export abstract class ArcgisLinkChart extends LitElement {
|
|
|
95
95
|
*/
|
|
96
96
|
accessor animationsDisabled: boolean;
|
|
97
97
|
/**
|
|
98
|
-
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/
|
|
98
|
+
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [`description`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [`describedByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [`labelledByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
|
|
99
99
|
*
|
|
100
100
|
* @since 4.34
|
|
101
101
|
*/
|
|
@@ -12,7 +12,7 @@ import type { Button as Button } from "@esri/calcite-components/components/calci
|
|
|
12
12
|
/**
|
|
13
13
|
* The Locate component animates the Map or Scene to the user's current location.
|
|
14
14
|
*
|
|
15
|
-
* This component uses the browser's [Geolocation API](https://developer.mozilla.org/
|
|
15
|
+
* This component uses the browser's [Geolocation API](https://developer.mozilla.org/docs/Web/API/Geolocation_API) which is only available in [secure contexts](https://developer.mozilla.org/docs/Web/Security/Defenses/Secure_Contexts), such as HTTPS.
|
|
16
16
|
* `localhost` is considered "potentially secure" and can be used for testing.
|
|
17
17
|
*
|
|
18
18
|
* > [!WARNING]
|
|
@@ -48,7 +48,7 @@ import type { SlotGroupRefs } from "../../support/slots.js";
|
|
|
48
48
|
*
|
|
49
49
|
* ##### 1. Using a WebMap
|
|
50
50
|
* Load a [WebMap](https://developers.arcgis.com/javascript/latest/references/core/WebMap/) from [ArcGIS Online](https://www.arcgis.com/home/index.html)
|
|
51
|
-
* or an [ArcGIS Enterprise portal](https://
|
|
51
|
+
* or an [ArcGIS Enterprise portal](https://doc.esri.com/en/arcgis-enterprise/latest/plan/what-is-portal-for-arcgis-.html) by specifying the [itemId](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#itemId) attribute.
|
|
52
52
|
*
|
|
53
53
|
* ```html
|
|
54
54
|
* <arcgis-map item-id="05e015c5f0314db9a487a9b46cb37eca"></arcgis-map>
|
|
@@ -165,7 +165,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
165
165
|
*/
|
|
166
166
|
accessor animationsDisabled: boolean;
|
|
167
167
|
/**
|
|
168
|
-
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/
|
|
168
|
+
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [`description`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [`describedByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [`labelledByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
|
|
169
169
|
*
|
|
170
170
|
* @since 4.34
|
|
171
171
|
*/
|
|
@@ -211,11 +211,34 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
211
211
|
* Specifies a basemap for the map. The basemap is a set of layers that give
|
|
212
212
|
* geographic context to the view and the other operational layers
|
|
213
213
|
* in the map.
|
|
214
|
-
* It can either be set using a basemap ID string ([see values](https://developers.arcgis.com/javascript/latest/references/core/Map/#basemap)),
|
|
215
|
-
* [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/)
|
|
216
|
-
* or [BasemapStyle](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/).
|
|
217
214
|
*
|
|
218
|
-
* [
|
|
215
|
+
* The basemap can be set from a basemap ID string from the [basemap styles service](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/), such as `arcgis/navigation`, or from the [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/) class.
|
|
216
|
+
*
|
|
217
|
+
* > [!NOTE]
|
|
218
|
+
* > Accessing the basemap styles service requires authentication, see [Authentication and access tokens](https://developers.arcgis.com/javascript/latest/authentication/access-tokens/) for more information.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```html
|
|
222
|
+
* <!-- Basemap set using a basemap ID string from the basemap styles service -->
|
|
223
|
+
* <arcgis-map basemap="arcgis/navigation" center="-98, 39" zoom="4"></arcgis-map>
|
|
224
|
+
* ```
|
|
225
|
+
* @example
|
|
226
|
+
* ```js
|
|
227
|
+
* // Basemap set using a Basemap instance
|
|
228
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
229
|
+
* viewElement.basemap = new Basemap({
|
|
230
|
+
* title: "Terrain",
|
|
231
|
+
* baseLayers: [
|
|
232
|
+
* new VectorTileLayer({
|
|
233
|
+
* url: "https://arcgis.com/sharing/rest/content/items/b5676525747f499687f12746441101ef/resources/styles/root.json",
|
|
234
|
+
* })
|
|
235
|
+
* ]
|
|
236
|
+
* });
|
|
237
|
+
* ```
|
|
238
|
+
* @see [Map.basemap](https://developers.arcgis.com/javascript/latest/references/core/Map/#basemap)
|
|
239
|
+
* @see [Basemap](https://developers.arcgis.com/javascript/latest/references/core/Basemap/)
|
|
240
|
+
* @see [BasemapStyle](https://developers.arcgis.com/javascript/latest/references/core/support/BasemapStyle/)
|
|
241
|
+
* @see [Authentication and access tokens](https://developers.arcgis.com/javascript/latest/authentication/access-tokens/)
|
|
219
242
|
*/
|
|
220
243
|
accessor basemap: Basemap | string | undefined;
|
|
221
244
|
/** Represents the view for a single basemap after it has been added to the map. */
|
|
@@ -883,6 +906,26 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
883
906
|
* Represents the current view as a Viewpoint or point of observation on the view.
|
|
884
907
|
* Setting the viewpoint immediately changes the current view. For animating
|
|
885
908
|
* the view, see this component's [goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) method.
|
|
909
|
+
*
|
|
910
|
+
* @example
|
|
911
|
+
* ```js
|
|
912
|
+
* // Set the viewpoint to the Empire State Building in New York City
|
|
913
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
914
|
+
* viewElement.viewpoint = new Viewpoint({
|
|
915
|
+
* targetGeometry: new Point({
|
|
916
|
+
* longitude: -73.9857,
|
|
917
|
+
* latitude: 40.7484
|
|
918
|
+
* }),
|
|
919
|
+
* scale: 5000
|
|
920
|
+
* });
|
|
921
|
+
* ```
|
|
922
|
+
* @example
|
|
923
|
+
* ```js
|
|
924
|
+
* // Get the initial viewpoint of the view once the view is ready
|
|
925
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
926
|
+
* await viewElement.viewOnReady();
|
|
927
|
+
* const initialViewpoint = viewElement.viewpoint.clone();
|
|
928
|
+
* ```
|
|
886
929
|
*/
|
|
887
930
|
accessor viewpoint: Viewpoint;
|
|
888
931
|
/**
|
|
@@ -304,7 +304,13 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
304
304
|
* ```
|
|
305
305
|
*/
|
|
306
306
|
accessor features: Array<Graphic>;
|
|
307
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* When `true`, this prevents the popup from trapping focus when opened.
|
|
309
|
+
* Preventing focus trapping can be used in scenarios where interactions are expected within the user interface, such as when the popup resides in a panel.
|
|
310
|
+
*
|
|
311
|
+
* @default false
|
|
312
|
+
* @since 5.1
|
|
313
|
+
*/
|
|
308
314
|
accessor focusTrapDisabled: boolean;
|
|
309
315
|
/**
|
|
310
316
|
* This function provides the ability to override either the [arcgis-map.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#goTo) or [arcgis-scene.goTo()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#goTo) methods.
|
|
@@ -350,7 +356,7 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
350
356
|
* important for meeting accessibility standards.
|
|
351
357
|
*
|
|
352
358
|
* @default 2
|
|
353
|
-
* @see [Heading Elements](https://developer.mozilla.org/
|
|
359
|
+
* @see [Heading Elements](https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements)
|
|
354
360
|
* @see [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading)
|
|
355
361
|
* @example
|
|
356
362
|
* ```html
|
|
@@ -16,7 +16,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
16
16
|
import type { Formats as Formats2, Layouts, TemplateCustomTextElements, State } from "@arcgis/core/widgets/Print/types.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* The Print component connects your application with a [printing service](https://
|
|
19
|
+
* The Print component connects your application with a [printing service](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-the-portal-to-print-maps.html) to allow the map to be printed.
|
|
20
20
|
* It takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebMap service of ArcGIS,
|
|
21
21
|
* which can be configured with custom layout templates. One is provided that shows the map only, while another provides a layout with legend, etc.
|
|
22
22
|
* The Print component works with the [print](https://developers.arcgis.com/javascript/latest/references/core/rest/print/) module, which generates a printer-ready version of the map.
|
|
@@ -48,7 +48,7 @@ import type { SlotGroupRefs } from "../../support/slots.js";
|
|
|
48
48
|
*
|
|
49
49
|
* The Scene component creates a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/)
|
|
50
50
|
* and loads a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/) item from either
|
|
51
|
-
* [ArcGIS Online](https://www.arcgis.com/home/index.html) or [ArcGIS Enterprise portal](https://
|
|
51
|
+
* [ArcGIS Online](https://www.arcgis.com/home/index.html) or [ArcGIS Enterprise portal](https://doc.esri.com/en/arcgis-enterprise/latest/plan/what-is-portal-for-arcgis-.html).
|
|
52
52
|
*
|
|
53
53
|
* ```html
|
|
54
54
|
* <arcgis-scene item-id="e2da7564e4f24eaaa918ffd70378056a"></arcgis-scene>
|
|
@@ -170,7 +170,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
170
170
|
*/
|
|
171
171
|
accessor animationsDisabled: boolean;
|
|
172
172
|
/**
|
|
173
|
-
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/
|
|
173
|
+
* The ARIA attributes for the view container. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [`label`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [`description`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [`describedByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [`labelledByElements`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
|
|
174
174
|
*
|
|
175
175
|
* @since 4.34
|
|
176
176
|
*/
|
|
@@ -562,7 +562,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
562
562
|
get interacting(): boolean;
|
|
563
563
|
/**
|
|
564
564
|
* The ID of a [WebScene](https://developers.arcgis.com/javascript/latest/references/core/WebScene/) item from either
|
|
565
|
-
* [ArcGIS Online](https://www.arcgis.com/home/index.html) or [ArcGIS Enterprise portal](https://
|
|
565
|
+
* [ArcGIS Online](https://www.arcgis.com/home/index.html) or [ArcGIS Enterprise portal](https://doc.esri.com/en/arcgis-enterprise/latest/plan/what-is-portal-for-arcgis-.html).
|
|
566
566
|
*
|
|
567
567
|
* To configure the portal url you must set the [config.portalUrl](https://developers.arcgis.com/javascript/latest/references/core/config/#portalUrl) property before the Scene component loads.
|
|
568
568
|
*/
|
|
@@ -162,7 +162,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
162
162
|
* The use of this property is only supported on secure origins.
|
|
163
163
|
* To use it, switch your application to a secure origin, such as HTTPS.
|
|
164
164
|
* Note that localhost is considered "potentially secure" and can be used for easy testing in browsers that supports
|
|
165
|
-
* [Window.isSecureContext](https://developer.mozilla.org/
|
|
165
|
+
* [Window.isSecureContext](https://developer.mozilla.org/docs/Web/API/isSecureContext#browser_compatibility)
|
|
166
166
|
* (currently Chrome and Firefox).
|
|
167
167
|
*
|
|
168
168
|
* @default false
|
|
@@ -138,7 +138,7 @@ export abstract class ArcgisShadowCast extends LitElement {
|
|
|
138
138
|
*
|
|
139
139
|
* _See also_
|
|
140
140
|
*
|
|
141
|
-
* * [Date](https://developer.mozilla.org/
|
|
141
|
+
* * [Date](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date/Date)
|
|
142
142
|
*/
|
|
143
143
|
get date(): Date;
|
|
144
144
|
set date(value: Date | number | string);
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import { css as
|
|
3
|
+
import p from "@arcgis/core/Graphic.js";
|
|
4
|
+
import { css as g, html as s } from "lit";
|
|
5
5
|
import { createRef as d, ref as f } from "lit/directives/ref.js";
|
|
6
|
-
import { unsafeHTML as
|
|
7
|
-
import { LitElement as
|
|
6
|
+
import { unsafeHTML as b } from "lit/directives/unsafe-html.js";
|
|
7
|
+
import { LitElement as _, safeStyleMap as y } from "@arcgis/lumina";
|
|
8
8
|
import * as l from "@arcgis/toolkit/log";
|
|
9
|
-
import { isSharedTemplateMetadata as
|
|
9
|
+
import { isSharedTemplateMetadata as c, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
10
10
|
import "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
|
|
11
11
|
import { renderPreviewHTML as w } from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
import { isTable as I } from "@arcgis/core/applications/Components/layerUtils.js";
|
|
13
|
+
const D = g`.esri-thumbnail-preview{width:22px;height:22px;background-position:50% 50%;background-repeat:no-repeat}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
|
|
14
|
+
async function x(e, t, i) {
|
|
15
|
+
if (c(e) && e.thumbnail) {
|
|
16
|
+
const u = `data:image/png;base64,${e.thumbnail.imageData}`;
|
|
17
|
+
return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${u})` })}></div>`;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
if (I(t))
|
|
20
|
+
return s`<calcite-icon icon=table scale=s></calcite-icon>`;
|
|
21
|
+
const r = await T(t, e);
|
|
19
22
|
if (r == null)
|
|
20
23
|
return null;
|
|
21
24
|
const n = { maxSize: 24, ariaLabel: i?.ariaLabel };
|
|
@@ -23,13 +26,13 @@ async function D(e, t, i) {
|
|
|
23
26
|
attributes: e.prototype.attributes ?? {}
|
|
24
27
|
});
|
|
25
28
|
const o = await w(r, n);
|
|
26
|
-
return o ? s`${
|
|
29
|
+
return o ? s`${b(o.outerHTML)}` : null;
|
|
27
30
|
}
|
|
28
|
-
async function
|
|
29
|
-
if (
|
|
31
|
+
async function T(e, t) {
|
|
32
|
+
if (c(t))
|
|
30
33
|
return await m(e);
|
|
31
34
|
if ("renderer" in e && e.renderer) {
|
|
32
|
-
const { renderer: i } = e, r = new
|
|
35
|
+
const { renderer: i } = e, r = new p({ attributes: t.prototype.attributes });
|
|
33
36
|
if ("getSymbolAsync" in i) {
|
|
34
37
|
const a = await i.getSymbolAsync(r);
|
|
35
38
|
if (a)
|
|
@@ -38,14 +41,14 @@ async function x(e, t) {
|
|
|
38
41
|
}
|
|
39
42
|
return await m(e);
|
|
40
43
|
}
|
|
41
|
-
async function
|
|
44
|
+
async function C(e) {
|
|
42
45
|
const t = e === "point" || e === "multipoint" ? await import("@arcgis/core/symbols/SimpleMarkerSymbol.js") : e === "polyline" ? await import("@arcgis/core/symbols/SimpleLineSymbol.js") : e === "polygon" || e === "mesh" || e === "multipatch" ? await import("@arcgis/core/symbols/SimpleFillSymbol.js") : null;
|
|
43
46
|
return t ? new t.default() : null;
|
|
44
47
|
}
|
|
45
48
|
async function m(e) {
|
|
46
|
-
return "geometryType" in e && e.geometryType ? await
|
|
49
|
+
return "geometryType" in e && e.geometryType ? await C(e.geometryType) : null;
|
|
47
50
|
}
|
|
48
|
-
class
|
|
51
|
+
class L extends _ {
|
|
49
52
|
constructor() {
|
|
50
53
|
super(...arguments), this._lastRun = 0, this._attempted = !1, this._isCurrentlyInView = !1, this._intersectionObserver = null, this._imageContainerDiv = d(), this._generatedImageData = null;
|
|
51
54
|
}
|
|
@@ -53,7 +56,7 @@ class C extends b {
|
|
|
53
56
|
this.properties = { _generatedImageData: 16, template: 0 };
|
|
54
57
|
}
|
|
55
58
|
static {
|
|
56
|
-
this.styles =
|
|
59
|
+
this.styles = D;
|
|
57
60
|
}
|
|
58
61
|
get rootLayer() {
|
|
59
62
|
return this.template?.layer?.type === "subtype-sublayer" ? this.template.layer.parent : this.template?.layer;
|
|
@@ -75,7 +78,7 @@ class C extends b {
|
|
|
75
78
|
this._generatedImageData = null, this._attempted = !1;
|
|
76
79
|
}
|
|
77
80
|
async _generateImage() {
|
|
78
|
-
return this.template ? await
|
|
81
|
+
return this.template ? await x(this.template.template, this.template.layer) : "";
|
|
79
82
|
}
|
|
80
83
|
async _handleImage() {
|
|
81
84
|
const t = ++this._lastRun;
|
|
@@ -113,7 +116,7 @@ class C extends b {
|
|
|
113
116
|
return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData ?? ""}</div>`;
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
|
-
h("arcgis-template-image",
|
|
119
|
+
h("arcgis-template-image", L);
|
|
117
120
|
export {
|
|
118
|
-
|
|
121
|
+
L as ArcgisTemplateImage
|
|
119
122
|
};
|