@arcgis/map-components 5.1.0-next.101 → 5.1.0-next.102
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/{VD5IUHXQ.js → 6E3T7FRP.js} +1 -1
- package/dist/cdn/CKK5QADX.js +2 -0
- package/dist/cdn/DTIC27TR.js +2 -0
- package/dist/cdn/FBVHVWJP.js +2 -0
- package/dist/cdn/H43ZBRJO.js +2 -0
- package/dist/cdn/{GZSSBAS6.js → HIYCE253.js} +1 -1
- package/dist/cdn/{XSZJFT45.js → HW3D7A2P.js} +1 -1
- package/dist/cdn/{5VV4YRMW.js → LNB4R35D.js} +1 -1
- package/dist/cdn/{JTZZY6SL.js → TQA6ARSR.js} +1 -1
- package/dist/cdn/UW5RUFDI.js +2 -0
- package/dist/cdn/{FJYJ55I6.js → X6BCGFB3.js} +1 -1
- package/dist/cdn/assets/search/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/unit-select/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +3 -3
- package/dist/chunks/sr.js +6 -0
- package/dist/components/arcgis-bookmarks/customElement.js +51 -50
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +5 -0
- package/dist/components/arcgis-search/customElement.d.ts +3 -0
- package/dist/components/arcgis-search/customElement.js +39 -35
- 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/package.json +5 -5
- package/dist/cdn/5L6QRSD5.js +0 -2
- package/dist/cdn/6S6N2CNY.js +0 -2
- package/dist/cdn/RBTK5IMU.js +0 -2
- package/dist/cdn/YFFIRY3F.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as U, html as a } from "lit";
|
|
4
4
|
import { ref as f } from "lit/directives/ref.js";
|
|
5
5
|
import { keyed as F } from "lit/directives/keyed.js";
|
|
6
|
-
import
|
|
6
|
+
import C from "@arcgis/core/webmap/Bookmark.js";
|
|
7
7
|
import y from "@arcgis/core/core/Collection.js";
|
|
8
8
|
import b from "@arcgis/core/core/Error.js";
|
|
9
9
|
import A from "@arcgis/core/webdoc/support/SlideThumbnail.js";
|
|
@@ -18,55 +18,56 @@ import { c as q } from "../../chunks/goTo.js";
|
|
|
18
18
|
import { classes as R } from "@arcgis/toolkit/dom";
|
|
19
19
|
import { formatDate as S, convertDateFormatToIntlOptions as I } from "@arcgis/core/intl.js";
|
|
20
20
|
import { generateGuid as H } from "@arcgis/toolkit/string";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { u as M } from "../../chunks/
|
|
21
|
+
import { s as Z } from "../../chunks/sr.js";
|
|
22
|
+
import { usePropertyChange as j } from "@arcgis/lumina/controllers";
|
|
23
|
+
import { u as M } from "../../chunks/useT9n.js";
|
|
24
|
+
import { u as G } from "../../chunks/useView.js";
|
|
24
25
|
import { watch as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
25
|
-
var
|
|
26
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
27
|
-
(n =
|
|
28
|
-
return i && r &&
|
|
26
|
+
var J = Object.defineProperty, K = Object.getOwnPropertyDescriptor, u = (s, e, t, i) => {
|
|
27
|
+
for (var r = i > 1 ? void 0 : i ? K(e, t) : e, o = s.length - 1, n; o >= 0; o--)
|
|
28
|
+
(n = s[o]) && (r = (i ? n(e, t, r) : n(r)) || r);
|
|
29
|
+
return i && r && J(e, t, r), r;
|
|
29
30
|
};
|
|
30
31
|
let m = class extends V {
|
|
31
|
-
constructor(
|
|
32
|
-
super(
|
|
32
|
+
constructor(s) {
|
|
33
|
+
super(s);
|
|
33
34
|
}
|
|
34
35
|
get editedBookmark() {
|
|
35
|
-
const { bookmark:
|
|
36
|
-
return
|
|
36
|
+
const { bookmark: s } = this;
|
|
37
|
+
return s ? this._get("editedBookmark") || s.clone() : null;
|
|
37
38
|
}
|
|
38
39
|
get customUrl() {
|
|
39
40
|
if (this._customUrl)
|
|
40
41
|
return this._customUrl;
|
|
41
|
-
const
|
|
42
|
-
return
|
|
42
|
+
const s = this.editedBookmark?.thumbnail?.url ?? "";
|
|
43
|
+
return s ?? (_(s) ? s : null);
|
|
43
44
|
}
|
|
44
|
-
set customUrl(
|
|
45
|
-
this._customUrl =
|
|
45
|
+
set customUrl(s) {
|
|
46
|
+
this._customUrl = s;
|
|
46
47
|
}
|
|
47
48
|
get screenshotUrl() {
|
|
48
49
|
if (this._screenshotUrl)
|
|
49
50
|
return this._screenshotUrl;
|
|
50
|
-
const
|
|
51
|
-
return
|
|
51
|
+
const s = this.editedBookmark?.thumbnail?.url ?? "";
|
|
52
|
+
return s ?? (T(s) ? s : null);
|
|
52
53
|
}
|
|
53
|
-
set screenshotUrl(
|
|
54
|
-
this._screenshotUrl =
|
|
54
|
+
set screenshotUrl(s) {
|
|
55
|
+
this._screenshotUrl = s;
|
|
55
56
|
}
|
|
56
57
|
get state() {
|
|
57
58
|
return this._get("state");
|
|
58
59
|
}
|
|
59
|
-
set state(
|
|
60
|
-
this.validationState = void 0, this.creatingBookmark = void 0, this._set("state",
|
|
60
|
+
set state(s) {
|
|
61
|
+
this.validationState = void 0, this.creatingBookmark = void 0, this._set("state", s);
|
|
61
62
|
}
|
|
62
63
|
get thumbnailState() {
|
|
63
64
|
if (this._thumbnailState)
|
|
64
65
|
return this._thumbnailState;
|
|
65
|
-
const
|
|
66
|
-
return
|
|
66
|
+
const s = this.editedBookmark?.thumbnail?.url;
|
|
67
|
+
return s ? _(s) ? "url" : "screenshot" : "none";
|
|
67
68
|
}
|
|
68
|
-
set thumbnailState(
|
|
69
|
-
this._thumbnailState =
|
|
69
|
+
set thumbnailState(s) {
|
|
70
|
+
this._thumbnailState = s;
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
73
|
u([
|
|
@@ -105,7 +106,7 @@ u([
|
|
|
105
106
|
m = u([
|
|
106
107
|
P("UserState")
|
|
107
108
|
], m);
|
|
108
|
-
const K = 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)}.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{display:flex}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .root{display:none}.empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.root .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.root calcite-flow-item[loading]{min-height:150px}.loader{margin-inline-end:0}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.bookmark-image-container .bookmark-image{max-width:64px;overflow:hidden}.drag-enabled .bookmark-image-container{margin-inline-start:0}.no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.authoring{display:flex;flex-direction:column}.authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.authoring-image-container .bookmark-image{max-width:128px;max-height:128px}.form{display:flex;height:100%}.form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.bookmark-content calcite-table{margin-inline-start:-.25rem}.bookmark-content calcite-table,.bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`, Q = C`.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`, W = y.ofType(D), X = {
|
|
109
|
+
const Q = U`.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{display:flex}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .root{display:none}.empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.root .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.root calcite-flow-item[loading]{min-height:150px}.loader{margin-inline-end:0}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.bookmark-image-container .bookmark-image{max-width:64px;overflow:hidden}.drag-enabled .bookmark-image-container{margin-inline-start:0}.no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.authoring{display:flex;flex-direction:column}.authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.authoring-image-container .bookmark-image{max-width:128px;max-height:128px}.form{display:flex;height:100%}.form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.bookmark-content calcite-table{margin-inline-start:-.25rem}.bookmark-content calcite-table,.bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`, W = y.ofType(C), X = {
|
|
109
110
|
width: 128,
|
|
110
111
|
height: 128,
|
|
111
112
|
format: "png"
|
|
@@ -118,19 +119,19 @@ const K = C`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .
|
|
|
118
119
|
};
|
|
119
120
|
class Y extends z {
|
|
120
121
|
constructor() {
|
|
121
|
-
super(...arguments), this._bookmarks = null, this._defaultCreateOptions = { ...E }, this._defaultEditOptions = { ...E }, this._defaultBookmarks = new W(), this._guid = H(), this._addInputNode = null, this._editInputNode = null, this._urlEditInputNode = null, this._lastDragDetail = null, this.messages =
|
|
122
|
+
super(...arguments), this._bookmarks = null, this._defaultCreateOptions = { ...E }, this._defaultEditOptions = { ...E }, this._defaultBookmarks = new W(), this._guid = H(), this._addInputNode = null, this._editInputNode = null, this._urlEditInputNode = null, this._lastDragDetail = null, this.messages = M({}), this._storeEditFlowItemNode = (e) => {
|
|
122
123
|
this._editFlowItemEl = e;
|
|
123
124
|
}, this._storeRootFlowItem = (e) => {
|
|
124
125
|
this._rootFlowItemEl = e;
|
|
125
126
|
}, this._storeAddFlowItemNode = (e) => {
|
|
126
127
|
this._addFlowItemEl = e;
|
|
127
|
-
}, this._activeBookmark = null, this._userState = null, this._userCreatingBookmark = !1, this.editIncludeTimeExtent = !1, this.view =
|
|
128
|
+
}, this._activeBookmark = null, this._userState = null, this._userCreatingBookmark = !1, this.editIncludeTimeExtent = !1, this.view = G(this), this.icon = "bookmark", this.closed = !1, this.disabled = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.showAddBookmarkButton = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditBookmarkButton = !1, this.showFilter = !1, this.showHeading = !1, this.hideThumbnail = !1, this.hideTime = !1, this.timeDisabled = !1, this.autoDestroyDisabled = !1, this.state = this._state, this.arcgisBookmarkEdit = x(), this.arcgisBookmarkSelect = x(), this.arcgisPropertyChange = j()("state"), this.arcgisReady = x(), this.arcgisClose = x();
|
|
128
129
|
}
|
|
129
130
|
static {
|
|
130
131
|
this.properties = { _bookmarkSelectedMessage: 16, _activeBookmark: 16, _userState: 16, _userStateValue: 16, _userValidationState: 16, _userThumbnailState: 16, _userCreatingBookmark: 16, editIncludeTimeExtent: 16, _state: 16, view: 0, referenceElement: 1, icon: 1, closed: 7, defaultCreateOptions: 0, defaultEditOptions: 0, bookmarks: [1, { type: y }], disabled: 5, dragEnabled: 5, filterPlaceholder: 1, filterText: 1, headingLevel: 9, goToOverride: 0, showAddBookmarkButton: 5, showCloseButton: 5, showCollapseButton: 5, showEditBookmarkButton: 5, showFilter: 5, showHeading: 5, hideThumbnail: 5, hideTime: 5, timeDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
131
132
|
}
|
|
132
133
|
static {
|
|
133
|
-
this.styles = [
|
|
134
|
+
this.styles = [Q, Z];
|
|
134
135
|
}
|
|
135
136
|
get _state() {
|
|
136
137
|
const { view: e } = this;
|
|
@@ -182,15 +183,15 @@ class Y extends z {
|
|
|
182
183
|
const { view: t, defaultCreateOptions: i } = this;
|
|
183
184
|
if (!t)
|
|
184
185
|
throw new b("create-bookmark:invalid-view", "Cannot create a bookmark without a view.");
|
|
185
|
-
const { takeScreenshot: r, screenshotSettings: o, captureViewpoint: n, captureRotation:
|
|
186
|
+
const { takeScreenshot: r, screenshotSettings: o, captureViewpoint: n, captureRotation: l, captureScale: c, captureTimeExtent: h } = {
|
|
186
187
|
...i,
|
|
187
188
|
...e
|
|
188
189
|
}, d = r ? await this._createThumbnail(o) : void 0, p = !this.timeDisabled && h && t.timeExtent != null ? t.timeExtent.clone() : void 0;
|
|
189
|
-
return new
|
|
190
|
+
return new C({
|
|
190
191
|
...d && { thumbnail: d },
|
|
191
192
|
...h && { timeExtent: p },
|
|
192
193
|
...n && {
|
|
193
|
-
viewpoint: this._createViewpoint({ view: t, captureScale: c, captureRotation:
|
|
194
|
+
viewpoint: this._createViewpoint({ view: t, captureScale: c, captureRotation: l })
|
|
194
195
|
}
|
|
195
196
|
});
|
|
196
197
|
}
|
|
@@ -200,11 +201,11 @@ class Y extends z {
|
|
|
200
201
|
const { view: i, defaultEditOptions: r } = this;
|
|
201
202
|
if (!i)
|
|
202
203
|
throw new b("edit-bookmark:invalid-view", "Cannot edit a bookmark without a view.");
|
|
203
|
-
const { takeScreenshot: o, screenshotSettings: n, captureViewpoint:
|
|
204
|
+
const { takeScreenshot: o, screenshotSettings: n, captureViewpoint: l, captureRotation: c, captureScale: h, captureTimeExtent: d } = {
|
|
204
205
|
...r,
|
|
205
206
|
...t
|
|
206
207
|
}, p = o ? await this._createThumbnail(n) : void 0;
|
|
207
|
-
return p && (e.thumbnail = p),
|
|
208
|
+
return p && (e.thumbnail = p), l && (e.viewpoint = this._createViewpoint({ view: i, captureScale: h, captureRotation: c })), d && i.timeExtent != null && (e.timeExtent = i.timeExtent.clone()), this.arcgisBookmarkEdit.emit({ bookmark: e }), e;
|
|
208
209
|
}
|
|
209
210
|
async _createThumbnail(e) {
|
|
210
211
|
const { view: t } = this;
|
|
@@ -241,11 +242,11 @@ class Y extends z {
|
|
|
241
242
|
const { hideTime: t } = this, { timeExtent: i } = e;
|
|
242
243
|
if (!i)
|
|
243
244
|
return {};
|
|
244
|
-
const { start: r, end: o } = i, n = o != null && r?.getTime() !== o.getTime(),
|
|
245
|
+
const { start: r, end: o } = i, n = o != null && r?.getTime() !== o.getTime(), l = r ? this._formatDate(r) : "", c = r && !t ? this._formatTime(r) : "";
|
|
245
246
|
if (!n)
|
|
246
|
-
return { startDate:
|
|
247
|
+
return { startDate: l, startTime: c };
|
|
247
248
|
const h = this._formatDate(o), d = t ? "" : this._formatTime(o);
|
|
248
|
-
return { startDate:
|
|
249
|
+
return { startDate: l, startTime: c, endDate: h, endTime: d };
|
|
249
250
|
}
|
|
250
251
|
_handleUrlEditInputChange() {
|
|
251
252
|
const { _userState: e, _urlEditInputNode: t } = this, i = t?.value;
|
|
@@ -277,10 +278,10 @@ class Y extends z {
|
|
|
277
278
|
});
|
|
278
279
|
}
|
|
279
280
|
_onCalciteListOrderChange(e) {
|
|
280
|
-
const { _lastDragDetail: t, bookmarks: i } = this, { toEl: r, fromEl: o, dragEl: n, newIndex:
|
|
281
|
+
const { _lastDragDetail: t, bookmarks: i } = this, { toEl: r, fromEl: o, dragEl: n, newIndex: l } = e;
|
|
281
282
|
if (!i.length)
|
|
282
283
|
return;
|
|
283
|
-
const c = t?.newIndex ===
|
|
284
|
+
const c = t?.newIndex === l && t?.dragEl === n && t?.toEl === r && t?.fromEl === o;
|
|
284
285
|
if (!o || !r || c)
|
|
285
286
|
return;
|
|
286
287
|
this._lastDragDetail = e;
|
|
@@ -416,7 +417,7 @@ class Y extends z {
|
|
|
416
417
|
return e ? e.toArray().map((t) => this._renderBookmark(t)) : [];
|
|
417
418
|
}
|
|
418
419
|
_renderBookmarksContainer() {
|
|
419
|
-
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText:
|
|
420
|
+
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText: l, closed: c, headingLevel: h } = this, d = t.filter((k) => k != null), w = d.length ? a`<calcite-list class="list" display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${n} .filterProps=${["label", "description", "metadata"]} .filterText=${l} .group=${`bookmarks-${this._guid}`} .label=${r.componentLabel ?? ""} selection-appearance=border selection-mode=none @calciteListDragEnd=${(k) => this._handleCalciteListDragEnd(k.detail)} @calciteListFilter=${(k) => this.filterText = k.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(k) => this._onCalciteListOrderChange(k.detail)}>${this._renderBookmarkItems(d)}${this.showFilter ? a`<div class="filter-no-results" slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${r.noBookmarksHeading}</div>;</calcite-notice></div>` : null}</calcite-list>` : null, v = [
|
|
420
421
|
a`<calcite-flow-item .closable=${this.showCloseButton} .closed=${c} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading ? r.componentLabel : void 0} .headingLevel=${h} .loading=${e === "loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${this._handleClose} ${f(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(d)}${w}${this._renderAddBookmarkButton()}</calcite-flow-item>`,
|
|
421
422
|
this._renderAddingBookmark(),
|
|
422
423
|
this._renderEditBookmarkFlowItems()
|
|
@@ -447,12 +448,12 @@ class Y extends z {
|
|
|
447
448
|
const { startDate: t, startTime: i, endDate: r, endTime: o } = this._getTimeExtentStrings(e);
|
|
448
449
|
if (!t)
|
|
449
450
|
return "";
|
|
450
|
-
const n = `${t} ${i}`,
|
|
451
|
-
return r ? `${n} - ${
|
|
451
|
+
const n = `${t} ${i}`, l = `${r} ${o}`;
|
|
452
|
+
return r ? `${n} - ${l}` : n;
|
|
452
453
|
}
|
|
453
454
|
_renderBookmarkTimeExtent(e, t = !1) {
|
|
454
|
-
const { messages: i } = this, { startDate: r, startTime: o, endDate: n, endTime:
|
|
455
|
-
return r ? a`<calcite-table .caption=${i.timeExtent ?? ""} scale=s>${c}<calcite-table-row><calcite-table-cell>${r} ${o ? [a`<br>`, o] : null}</calcite-table-cell>${n ? a`<calcite-table-cell>${n}${
|
|
455
|
+
const { messages: i } = this, { startDate: r, startTime: o, endDate: n, endTime: l } = this._getTimeExtentStrings(e), c = t ? null : a`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${n ? a`<calcite-table-header .heading=${i.endDate}></calcite-table-header>` : null}</calcite-table-row>`;
|
|
456
|
+
return r ? a`<calcite-table .caption=${i.timeExtent ?? ""} scale=s>${c}<calcite-table-row><calcite-table-cell>${r} ${o ? [a`<br>`, o] : null}</calcite-table-cell>${n ? a`<calcite-table-cell>${n}${l ? [a`<br>`, l] : null}</calcite-table-cell>` : null}</calcite-table-row></calcite-table>` : null;
|
|
456
457
|
}
|
|
457
458
|
_renderBookmarkActiveScrim(e, t) {
|
|
458
459
|
return this._activeBookmark === e && t ? a`<calcite-scrim loading></calcite-scrim>` : null;
|
|
@@ -505,8 +506,8 @@ class Y extends z {
|
|
|
505
506
|
}} width=full>${t.updateThumbnail}</calcite-button>` : null;
|
|
506
507
|
}
|
|
507
508
|
_renderEditingBookmarkUrlInput(e) {
|
|
508
|
-
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n = _(o) ? o : void 0,
|
|
509
|
-
return r === "url" ? a`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t ? `https://<${t.imageUrlPlaceholder}>` : void 0} required title=${t.imageUrlTooltip ?? B} type=text .value=${n} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${f(this._storeUrlEditInput)}></calcite-input>${
|
|
509
|
+
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n = _(o) ? o : void 0, l = o && i === "absolute-url-required";
|
|
510
|
+
return r === "url" ? a`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t ? `https://<${t.imageUrlPlaceholder}>` : void 0} required title=${t.imageUrlTooltip ?? B} type=text .value=${n} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${f(this._storeUrlEditInput)}></calcite-input>${l ? a`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>` : null}</calcite-label>` : null;
|
|
510
511
|
}
|
|
511
512
|
_renderThumbnailSelector() {
|
|
512
513
|
const { hideThumbnail: e, messages: t, _userThumbnailState: i } = this;
|
|
@@ -536,7 +537,7 @@ class Y extends z {
|
|
|
536
537
|
}} ${f(this._storeAddFlowItemNode)}><div class="form-content">${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>` : null;
|
|
537
538
|
}
|
|
538
539
|
}
|
|
539
|
-
|
|
540
|
+
D("arcgis-bookmarks", Y);
|
|
540
541
|
export {
|
|
541
542
|
Y as ArcgisBookmarks
|
|
542
543
|
};
|
|
@@ -10,7 +10,7 @@ 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
12
|
import { g as a } 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{overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`, y = v(c);
|
|
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);
|
|
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();
|
|
@@ -11,6 +11,11 @@ import type { ScaleRangeSliderViewModelState } from "@arcgis/core/widgets/ScaleR
|
|
|
11
11
|
/**
|
|
12
12
|
* The Scale Range Slider component allows the user to set a minimum and maximum scale based on named scale ranges.
|
|
13
13
|
*
|
|
14
|
+
* > [!WARNING]
|
|
15
|
+
* > This component is a wrapped version of the [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html) widget.
|
|
16
|
+
* > We recommend using the [arcgis-slider-scale-range](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) component instead, which provides a native implementation with improved features and accessibility.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated since 5.1. Use [arcgis-slider-scale-range](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-slider-scale-range/) instead.
|
|
14
19
|
* @since 4.28
|
|
15
20
|
*/
|
|
16
21
|
export abstract class ArcgisScaleRangeSlider extends LitElement {
|
|
@@ -204,6 +204,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
204
204
|
searchResult?: string | undefined;
|
|
205
205
|
moreResultsHeader?: string | undefined;
|
|
206
206
|
useCurrentLocation?: string | undefined;
|
|
207
|
+
resultSelected?: string | undefined;
|
|
207
208
|
};
|
|
208
209
|
/** @internal */
|
|
209
210
|
protected messages: {
|
|
@@ -224,6 +225,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
224
225
|
searchResult: string;
|
|
225
226
|
moreResultsHeader: string;
|
|
226
227
|
useCurrentLocation: string;
|
|
228
|
+
resultSelected: string;
|
|
227
229
|
} & T9nMeta<{
|
|
228
230
|
componentLabel: string;
|
|
229
231
|
searchButtonTitle: string;
|
|
@@ -242,6 +244,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
242
244
|
searchResult: string;
|
|
243
245
|
moreResultsHeader: string;
|
|
244
246
|
useCurrentLocation: string;
|
|
247
|
+
resultSelected: string;
|
|
245
248
|
}>;
|
|
246
249
|
/**
|
|
247
250
|
* The minimum number of characters needed for the search if not specified by the source.
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { ref as
|
|
5
|
-
import
|
|
6
|
-
import { LitElement as
|
|
2
|
+
import { c as m } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as _, html as o } from "lit";
|
|
4
|
+
import { ref as v } from "lit/directives/ref.js";
|
|
5
|
+
import w from "@arcgis/core/widgets/Search/SearchViewModel.js";
|
|
6
|
+
import { LitElement as f, createEvent as b, renderElement as x, safeClassMap as M, nothing as S } from "@arcgis/lumina";
|
|
7
7
|
import { reEmitEvent as l } from "@arcgis/lumina/controllers/accessor";
|
|
8
8
|
import { a as u } from "../../chunks/maybe.js";
|
|
9
|
-
import { classes as
|
|
10
|
-
import { g as
|
|
11
|
-
import { isAbortError as
|
|
12
|
-
import { m as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
import { classes as y } from "@arcgis/toolkit/dom";
|
|
10
|
+
import { g as C } from "../../chunks/globalCss.js";
|
|
11
|
+
import { isAbortError as $ } from "@arcgis/core/core/promiseUtils.js";
|
|
12
|
+
import { m as R } from "../../chunks/useViewModel.js";
|
|
13
|
+
import { s as k } from "../../chunks/sr.js";
|
|
14
|
+
import { substitute as h } from "@arcgis/core/intl.js";
|
|
15
|
+
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
16
|
+
import { u as E } from "../../chunks/useT9n.js";
|
|
17
|
+
import { watch as d, on as T } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
|
+
const A = _`.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-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, L = R(w);
|
|
19
|
+
function g(a) {
|
|
19
20
|
return typeof a == "object" && a !== null && "openPopup" in a && "closePopup" in a;
|
|
20
21
|
}
|
|
21
|
-
class
|
|
22
|
+
class z extends f {
|
|
22
23
|
constructor() {
|
|
23
|
-
super(...arguments), this.viewModel =
|
|
24
|
+
super(...arguments), this.viewModel = L(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this._handleSelectResult = (e) => {
|
|
25
|
+
const { name: t } = e.detail.result;
|
|
26
|
+
this._selectedMessage = h(this.messages.resultSelected, { resultName: t });
|
|
27
|
+
}, this.messages = E({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = D()("state"), this.arcgisReady = b(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
|
|
24
28
|
}
|
|
25
29
|
static {
|
|
26
|
-
this.properties = { messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
30
|
+
this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
27
31
|
}
|
|
28
32
|
static {
|
|
29
|
-
this.styles =
|
|
33
|
+
this.styles = [A, k];
|
|
30
34
|
}
|
|
31
35
|
get _isDisabled() {
|
|
32
36
|
const { state: e } = this.viewModel;
|
|
@@ -42,7 +46,7 @@ class L extends w {
|
|
|
42
46
|
return this.viewModel?.activeSource;
|
|
43
47
|
}
|
|
44
48
|
clear() {
|
|
45
|
-
this._locateFailed = !1, this.viewModel.clear();
|
|
49
|
+
this._locateFailed = !1, this._selectedMessage = void 0, this.viewModel.clear();
|
|
46
50
|
}
|
|
47
51
|
async destroy() {
|
|
48
52
|
this._closePopup(this.viewModel.resultGraphic), this._cancelQueries(), await this._searchResultRendererEl?.destroy(), await this._searchResultRendererContentEl?.destroy(), await this.manager.destroy();
|
|
@@ -61,6 +65,9 @@ class L extends w {
|
|
|
61
65
|
return;
|
|
62
66
|
}
|
|
63
67
|
}
|
|
68
|
+
async setFocus() {
|
|
69
|
+
await this._autocompleteEl?.setFocus();
|
|
70
|
+
}
|
|
64
71
|
async suggest(e) {
|
|
65
72
|
this._cancelSuggest();
|
|
66
73
|
const t = new AbortController(), { signal: i } = t;
|
|
@@ -72,11 +79,8 @@ class L extends w {
|
|
|
72
79
|
return this._suggestController !== t || (this._suggestController = void 0), null;
|
|
73
80
|
}
|
|
74
81
|
}
|
|
75
|
-
async setFocus() {
|
|
76
|
-
await this._autocompleteEl?.setFocus();
|
|
77
|
-
}
|
|
78
82
|
loaded() {
|
|
79
|
-
this.manager.onLifecycle(() => [
|
|
83
|
+
this.listen("arcgisSelectResult", this._handleSelectResult), this.manager.onLifecycle(() => [
|
|
80
84
|
d(() => [this._searchResultRendererEl, this.viewModel?.defaultPopupTemplate], () => {
|
|
81
85
|
const e = this.viewModel?.defaultPopupTemplate, { _searchResultRendererEl: t } = this;
|
|
82
86
|
if (e && t) {
|
|
@@ -86,21 +90,21 @@ class L extends w {
|
|
|
86
90
|
}, { initial: !0 }),
|
|
87
91
|
d(() => this.messages, (e) => this.viewModel.messages = e, { initial: !0 }),
|
|
88
92
|
d(() => this.viewModel?.resultGraphic, (e, t) => this._closePopup(t)),
|
|
89
|
-
|
|
93
|
+
T(() => this.viewModel, "select-result", (e) => {
|
|
90
94
|
const { popupEnabled: t } = e;
|
|
91
95
|
t && this._openPopup();
|
|
92
96
|
})
|
|
93
97
|
]);
|
|
94
98
|
}
|
|
95
99
|
_addSearchResultRenderer() {
|
|
96
|
-
this._searchResultRendererEl =
|
|
100
|
+
this._searchResultRendererEl = x(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`);
|
|
97
101
|
}
|
|
98
102
|
_closePopup(e) {
|
|
99
103
|
const { referenceElement: t, view: i } = this;
|
|
100
|
-
|
|
104
|
+
g(t) && t.popupElement?.selectedFeature === e ? t?.closePopup() : i?.popup?.selectedFeature === e && i?.closePopup();
|
|
101
105
|
}
|
|
102
106
|
_openPopup() {
|
|
103
|
-
if (
|
|
107
|
+
if (g(this.referenceElement)) {
|
|
104
108
|
const { resultGraphic: e, resultLocation: t } = this.viewModel, i = { features: e ? [e] : [], location: t };
|
|
105
109
|
this.referenceElement?.openPopup(i);
|
|
106
110
|
} else if (this.view) {
|
|
@@ -143,7 +147,7 @@ class L extends w {
|
|
|
143
147
|
try {
|
|
144
148
|
await this.viewModel.searchNearby({ signal: t });
|
|
145
149
|
} catch (i) {
|
|
146
|
-
|
|
150
|
+
$(i) || (this._locateFailed = !0, this.activeMenu = "suggestion");
|
|
147
151
|
} finally {
|
|
148
152
|
this._searchController = void 0;
|
|
149
153
|
}
|
|
@@ -175,7 +179,7 @@ class L extends w {
|
|
|
175
179
|
return (e === -1 ? t.all : r?.name || t.untitledSource) || "";
|
|
176
180
|
}
|
|
177
181
|
render() {
|
|
178
|
-
return this._addSearchResultRenderer(), o`<div class=${
|
|
182
|
+
return this._addSearchResultRenderer(), o`<div class=${M(y("root", C.widget))}><div class="sr-only" aria-live=polite>${this._selectedMessage}</div><div class="container">${this._renderSourcesMenu()}${this._renderForm()}</div></div>`;
|
|
179
183
|
}
|
|
180
184
|
_renderSourcesMenu() {
|
|
181
185
|
const { messages: e, _isDisabled: t, _effectiveActiveMenu: i } = this, { allSources: r, searchAllEnabled: s } = this.viewModel;
|
|
@@ -186,8 +190,8 @@ class L extends w {
|
|
|
186
190
|
return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation ?? ""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`;
|
|
187
191
|
}
|
|
188
192
|
_renderAutocomplete() {
|
|
189
|
-
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder: s, searchTerm: n, state: c } = this.viewModel,
|
|
190
|
-
return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${n} .label=${
|
|
193
|
+
const { _effectiveActiveMenu: e, messages: t, _isDisabled: i } = this, { maxInputLength: r, placeholder: s, searchTerm: n, state: c } = this.viewModel, p = this.label ?? t.searchButtonTitle ?? "";
|
|
194
|
+
return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon || void 0} .inputValue=${n} .label=${p} .loading=${c === "searching"} .maxLength=${r} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e === "suggestion"} overlay-positioning=fixed .placeholder=${s} .topLayerDisabled=${this.topLayerDisabled} title=${(n ? "" : s) ?? S} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${v(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`;
|
|
191
195
|
}
|
|
192
196
|
_renderForm() {
|
|
193
197
|
return o`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label ?? this.messages.searchButtonTitle ?? ""}</button></form>`;
|
|
@@ -215,7 +219,7 @@ class L extends w {
|
|
|
215
219
|
return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e === this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`;
|
|
216
220
|
}
|
|
217
221
|
_renderNoResultsWarning(e) {
|
|
218
|
-
const { messages: t } = this, i = e ?
|
|
222
|
+
const { messages: t } = this, i = e ? h(t.noResultsFoundForValue ?? "", {
|
|
219
223
|
value: `"${e}"`
|
|
220
224
|
}) : t.noResultsFound;
|
|
221
225
|
return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`;
|
|
@@ -227,7 +231,7 @@ class L extends w {
|
|
|
227
231
|
return this._locateFailed ? this._renderLocateError() : this._showNoResults ? this._renderNoResultsWarning(this._lastSearchTerm ?? this.viewModel.searchTerm) : null;
|
|
228
232
|
}
|
|
229
233
|
}
|
|
230
|
-
|
|
234
|
+
m("arcgis-search", z);
|
|
231
235
|
export {
|
|
232
|
-
|
|
236
|
+
z as ArcgisSearch
|
|
233
237
|
};
|
|
@@ -82,7 +82,7 @@ class q extends A {
|
|
|
82
82
|
const { _messages: { errors: { cannotAcquireVersionLock: t, noDirtyAreasInExtent: i, operationOnlyAllowedByOwner: r } } } = this;
|
|
83
83
|
this.result = void 0;
|
|
84
84
|
const o = e, a = o.details?.raw?.extendedCode;
|
|
85
|
-
let c = o.message;
|
|
85
|
+
let c = o.message || this._messages.info.validateCanceled;
|
|
86
86
|
switch (a) {
|
|
87
87
|
case p.noDirtyAreasInExtent:
|
|
88
88
|
c = i;
|