@arcgis/map-components 5.2.0-next.32 → 5.2.0-next.34
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/{PXZ7GYGB.js → 2FBLF35H.js} +1 -1
- package/dist/cdn/{I5MVHBKV.js → 2GQUMXRP.js} +1 -1
- package/dist/cdn/{VLXRN5II.js → 2TWSQAFW.js} +1 -1
- package/dist/cdn/{KIQMUMR7.js → 32VPFWAU.js} +1 -1
- package/dist/cdn/{UMJTWBQ3.js → 3TV4AW2U.js} +1 -1
- package/dist/cdn/{TMOESX4H.js → 3XN5WC3E.js} +1 -1
- package/dist/cdn/{6EKV3B5S.js → 43E5Q7SX.js} +1 -1
- package/dist/cdn/{N3JXA7DZ.js → 4CIY4MDE.js} +1 -1
- package/dist/cdn/{RKXL42SK.js → 4LXXTKLF.js} +1 -1
- package/dist/cdn/4PLVKLIO.js +2 -0
- package/dist/cdn/{4NMNJIYV.js → 4RYRGSLZ.js} +1 -1
- package/dist/cdn/{YUV3XEWE.js → 5EO47VPH.js} +1 -1
- package/dist/cdn/{TSL4BZHI.js → 6NVBAMUC.js} +1 -1
- package/dist/cdn/6Z4HUEBW.js +2 -0
- package/dist/cdn/{NAWH5P73.js → 737FF4ZH.js} +1 -1
- package/dist/cdn/{OPP5DWFT.js → 7DJQ6AV3.js} +1 -1
- package/dist/cdn/{EVYO2SIO.js → 7EYV5QCR.js} +1 -1
- package/dist/cdn/7GTMLYFP.js +2 -0
- package/dist/cdn/{TCYTMU4A.js → 7NXADBPZ.js} +1 -1
- package/dist/cdn/{DUDVPO32.js → 7SS6YS6U.js} +1 -1
- package/dist/cdn/{ENSUS3VL.js → ACB6VKEU.js} +1 -1
- package/dist/cdn/{R72MT5TQ.js → ACGQG2T3.js} +1 -1
- package/dist/cdn/AGNHPUGM.js +2 -0
- package/dist/cdn/{UQIJOVPD.js → BABV4Q67.js} +1 -1
- package/dist/cdn/{ESTUA4YE.js → BB2OVX6Z.js} +1 -1
- package/dist/cdn/BD27PEC7.js +2 -0
- package/dist/cdn/{IZVYML7I.js → BJHI57US.js} +1 -1
- package/dist/cdn/{NVKY5H7W.js → BMEV46IM.js} +1 -1
- package/dist/cdn/{R5NVFWFA.js → BPXDBUNH.js} +1 -1
- package/dist/cdn/{7MKSGCWC.js → BYIKUU2V.js} +1 -1
- package/dist/cdn/{AW7PMR3D.js → CDY4M34V.js} +1 -1
- package/dist/cdn/{KZBBEVWQ.js → CML7DSDS.js} +1 -1
- package/dist/cdn/{MMNJNQ3Q.js → CMXX5I5Y.js} +1 -1
- package/dist/cdn/{TCKCE5NB.js → CUWHMMMX.js} +1 -1
- package/dist/cdn/{3XWUH3TJ.js → CW3A3NSF.js} +1 -1
- package/dist/cdn/{VLJKBHDD.js → CWXLMMIV.js} +1 -1
- package/dist/cdn/{ZBWHLMXA.js → CZE4HGAH.js} +1 -1
- package/dist/cdn/{3TFVMVSU.js → D5OF45DN.js} +1 -1
- package/dist/cdn/{NANWWHJ6.js → D5YLOINY.js} +1 -1
- package/dist/cdn/{EFYUNXBG.js → DAPA72LS.js} +1 -1
- package/dist/cdn/{CCFKZSFO.js → DGHNWABD.js} +1 -1
- package/dist/cdn/{43OLIA7Q.js → DGIBWHDZ.js} +1 -1
- package/dist/cdn/{GLNO2ZMW.js → DI6UP5OE.js} +1 -1
- package/dist/cdn/{JCHYVWCR.js → EE2CA7CT.js} +1 -1
- package/dist/cdn/{54WXILYF.js → EOK45N5T.js} +1 -1
- package/dist/cdn/{ATLWKCAP.js → ESA5KBF2.js} +1 -1
- package/dist/cdn/{SHJGMBBY.js → EV4FZDIH.js} +1 -1
- package/dist/cdn/EXQF6CLS.js +2 -0
- package/dist/cdn/{435CL2BU.js → FC3W4JBU.js} +1 -1
- package/dist/cdn/{A2Q7UAOI.js → FJI7SX3Z.js} +1 -1
- package/dist/cdn/{6HJM34BD.js → FK5W4CAM.js} +1 -1
- package/dist/cdn/{YMCZRMWW.js → FPWQJH6Z.js} +1 -1
- package/dist/cdn/{YMHPA3VC.js → FW6YER2T.js} +1 -1
- package/dist/cdn/{45OF43WO.js → FWRGAMLD.js} +1 -1
- package/dist/cdn/FWVU47N3.js +2 -0
- package/dist/cdn/{7XUCMK3B.js → FZD4BWTZ.js} +1 -1
- package/dist/cdn/{NLQ5PJXM.js → G62ON2MX.js} +1 -1
- package/dist/cdn/{GPVFCWMU.js → GSI2ZI7D.js} +1 -1
- package/dist/cdn/{3XUZ45XB.js → HB3P56AO.js} +1 -1
- package/dist/cdn/HF7TEJAO.js +2 -0
- package/dist/cdn/HL32BXZ6.js +2 -0
- package/dist/cdn/{IKBRNNUA.js → HLW5IWNW.js} +1 -1
- package/dist/cdn/{6S7LUYCJ.js → HSVIFDP7.js} +1 -1
- package/dist/cdn/{KPOSO4HB.js → I5OLG552.js} +1 -1
- package/dist/cdn/{2SEZT4WZ.js → I75L57XX.js} +1 -1
- package/dist/cdn/{TCFK2EXM.js → IAQVHCU7.js} +1 -1
- package/dist/cdn/{SSVJJAR5.js → IIFKJ5KI.js} +1 -1
- package/dist/cdn/{K3BJFKYY.js → IJM4ETBT.js} +1 -1
- package/dist/cdn/ISUTHAE7.js +2 -0
- package/dist/cdn/{6IEKX6LJ.js → J5WF4RA3.js} +1 -1
- package/dist/cdn/{V2FVPSX3.js → JAPZRY7D.js} +1 -1
- package/dist/cdn/{V7MKCC7O.js → JC5VO2H6.js} +1 -1
- package/dist/cdn/JK5WW4LS.js +2 -0
- package/dist/cdn/{6JMYHTFN.js → JRGDCJFD.js} +1 -1
- package/dist/cdn/{NCHQCPM6.js → K3PRLBKN.js} +1 -1
- package/dist/cdn/{LA3UYF7I.js → K3RZVWUG.js} +1 -1
- package/dist/cdn/KI2RJGYP.js +2 -0
- package/dist/cdn/KN4B6FCH.js +2 -0
- package/dist/cdn/{4LB5GOV2.js → KS54PV2C.js} +1 -1
- package/dist/cdn/KY3F7CGM.js +2 -0
- package/dist/cdn/{3YDQP3TL.js → KYIGNAWR.js} +1 -1
- package/dist/cdn/{HIHYNNEU.js → LWFBZABK.js} +1 -1
- package/dist/cdn/{7GXEJLOM.js → LWUHDIX7.js} +1 -1
- package/dist/cdn/{PKS3JYAN.js → M7QNKIPS.js} +1 -1
- package/dist/cdn/{S7HZFJQZ.js → MHFQFV3U.js} +1 -1
- package/dist/cdn/MS7AHPCF.js +2 -0
- package/dist/cdn/{NC472JXT.js → MVGWB3RU.js} +1 -1
- package/dist/cdn/{BCXPJXAK.js → NRSO2H4L.js} +1 -1
- package/dist/cdn/{45O57WR4.js → O2ETKQ5D.js} +1 -1
- package/dist/cdn/{DBF4LUEJ.js → O5TYAJJC.js} +1 -1
- package/dist/cdn/{7PTCONZB.js → OES2XNU6.js} +1 -1
- package/dist/cdn/{LKR52VUM.js → OJZS7SEO.js} +1 -1
- package/dist/cdn/{EK7GAWIV.js → OPXW6KNI.js} +1 -1
- package/dist/cdn/{2NYG7G7M.js → P5CMHBXY.js} +1 -1
- package/dist/cdn/P6RTW6EN.js +2 -0
- package/dist/cdn/{NRYA6EOZ.js → PIBSUNDA.js} +1 -1
- package/dist/cdn/{YUCJQ6XI.js → Q3W5PUKE.js} +1 -1
- package/dist/cdn/{CX5LLKOW.js → QEKL2JAR.js} +1 -1
- package/dist/cdn/{VSXLCBBA.js → QHA2WGXH.js} +1 -1
- package/dist/cdn/{BXLXZYRC.js → R76WDXDY.js} +1 -1
- package/dist/cdn/{EL6TAK3S.js → RIFV5I7U.js} +1 -1
- package/dist/cdn/{GRUB3M36.js → RUFWW2L5.js} +1 -1
- package/dist/cdn/{TDEIRM7H.js → RY6OC64Z.js} +1 -1
- package/dist/cdn/{3MDY3AXY.js → S3Q7DCIL.js} +1 -1
- package/dist/cdn/{BPQPJXPT.js → SDWAS6TI.js} +1 -1
- package/dist/cdn/{GJIDZ4M6.js → T2U3NVKA.js} +1 -1
- package/dist/cdn/{XOTOMH2G.js → TCOOCOVG.js} +1 -1
- package/dist/cdn/{3IVI7KSX.js → TJFVBTGT.js} +1 -1
- package/dist/cdn/{SGY36MUJ.js → TJL2GS3I.js} +1 -1
- package/dist/cdn/{TCS6CS2V.js → TPL6IAKN.js} +1 -1
- package/dist/cdn/{KG2IHV32.js → TWF5DLV4.js} +1 -1
- package/dist/cdn/{7KPJBKO6.js → UCRELG4W.js} +1 -1
- package/dist/cdn/{O7SRECHG.js → URUIZIXD.js} +1 -1
- package/dist/cdn/{42N4OII5.js → UYO3EHF5.js} +1 -1
- package/dist/cdn/{B7P66JTS.js → VDRSNCLD.js} +1 -1
- package/dist/cdn/{TA7JY4OV.js → VPMDOL5A.js} +1 -1
- package/dist/cdn/{3JEAUEUY.js → VZP4JMWS.js} +1 -1
- package/dist/cdn/{A5W6D3EH.js → WIGC724I.js} +1 -1
- package/dist/cdn/{4ICKT52U.js → WVH3PWDM.js} +1 -1
- package/dist/cdn/X32UMW74.js +2 -0
- package/dist/cdn/{B2ZGMSHQ.js → X34ZFQYZ.js} +1 -1
- package/dist/cdn/{BRDTU3O6.js → XC3A635J.js} +1 -1
- package/dist/cdn/{6O7GP3C3.js → XDK4EBMF.js} +1 -1
- package/dist/cdn/{EK44YZYH.js → XHS7LMVO.js} +1 -1
- package/dist/cdn/{CTUD7CTJ.js → XJ45UBQS.js} +1 -1
- package/dist/cdn/{DBJFHC3S.js → XR4WLNHC.js} +1 -1
- package/dist/cdn/{FCRUDE4P.js → XRRV7RO4.js} +1 -1
- package/dist/cdn/{SFP62RAJ.js → XVEDSEO5.js} +1 -1
- package/dist/cdn/{AU7UZMXF.js → Y4BLBOOK.js} +1 -1
- package/dist/cdn/{YNIECEKR.js → Y6YN2NUF.js} +1 -1
- package/dist/cdn/{3PM2WTS4.js → YMGM7P5W.js} +1 -1
- package/dist/cdn/{MPYM4XNR.js → YQHCTUQF.js} +1 -1
- package/dist/cdn/{EEF3VY5V.js → YVZBBDWC.js} +1 -1
- package/dist/cdn/{MECGUFOT.js → ZVK4FCTD.js} +1 -1
- package/dist/cdn/{Z2HJETJA.js → ZVZAGAA3.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +215 -210
- package/dist/components/arcgis-editor/customElement.d.ts +20 -0
- package/dist/components/arcgis-editor/customElement.js +6 -6
- package/dist/components/arcgis-feature-attachments/customElement.js +32 -32
- package/dist/components/arcgis-feature-expression/customElement.js +55 -52
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-templates/customElement.js +3 -3
- package/dist/components/arcgis-legend/customElement.d.ts +1 -1
- package/dist/components/arcgis-legend/customElement.js +34 -33
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +234 -227
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +33 -31
- package/dist/components/arcgis-print-layout-panel/customElement.js +19 -16
- package/dist/components/arcgis-print-main-panel/customElement.js +28 -21
- package/dist/components/arcgis-print-template-select/customElement.js +24 -21
- package/dist/components/arcgis-print-template-selector/customElement.js +19 -19
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/3ACWQZMG.js +0 -2
- package/dist/cdn/3UEX6WWW.js +0 -2
- package/dist/cdn/AEBJAVUX.js +0 -2
- package/dist/cdn/EI7NXMGF.js +0 -2
- package/dist/cdn/ITCLBS5H.js +0 -2
- package/dist/cdn/JSQZYDU6.js +0 -2
- package/dist/cdn/K5M3ZRVS.js +0 -2
- package/dist/cdn/MTYQJ4TB.js +0 -2
- package/dist/cdn/NYS47GN2.js +0 -2
- package/dist/cdn/PLLSFCLD.js +0 -2
- package/dist/cdn/Q2XRS2MQ.js +0 -2
- package/dist/cdn/TZAGBPDN.js +0 -2
- package/dist/cdn/TZHGOM2Y.js +0 -2
- package/dist/cdn/UFGA4NGM.js +0 -2
- package/dist/cdn/VJ2SMYNX.js +0 -2
- package/dist/cdn/VRWFW2LF.js +0 -2
- package/dist/cdn/VYBNGAPG.js +0 -2
- package/dist/cdn/YOXKII2K.js +0 -2
- package/dist/cdn/assets/home/t9n/messages.home.json +0 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ScaleRangeSlider.json +0 -1
- package/dist/cdn/assets/swipe/t9n/messages.swipe.json +0 -1
- package/dist/chunks/useHandles.js +0 -207
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { LitElement as
|
|
3
|
+
import { css as I, html as a } from "lit";
|
|
4
|
+
import L from "@arcgis/core/rest/query/support/AttachmentInfo.js";
|
|
5
|
+
import z from "@arcgis/core/rest/support/AttachmentQuery.js";
|
|
6
|
+
import S from "@arcgis/core/core/Collection.js";
|
|
7
|
+
import w from "@arcgis/core/core/Error.js";
|
|
8
|
+
import { LitElement as P, nothing as h, safeClassMap as b, safeStyleMap as $ } from "@arcgis/lumina";
|
|
9
9
|
import { classes as A } from "@arcgis/toolkit/dom";
|
|
10
10
|
import { g as u } from "../../chunks/feature-utils.js";
|
|
11
|
-
import { watch as
|
|
11
|
+
import { watch as _ } from "@arcgis/core/core/reactiveUtils.js";
|
|
12
12
|
function v(i) {
|
|
13
13
|
const e = i.toLowerCase();
|
|
14
14
|
return e === "image/bmp" || e === "image/emf" || e === "image/exif" || e === "image/gif" || e === "image/x-icon" || e === "image/jpeg" || e === "image/png" || e === "image/tiff" || e === "image/x-wmf";
|
|
@@ -16,16 +16,16 @@ function v(i) {
|
|
|
16
16
|
function x(i) {
|
|
17
17
|
return i ? i === "text/plain" ? "file-text" : i === "application/pdf" ? "file-pdf" : i === "text/csv" ? "file-csv" : i === "application/gpx+xml" ? "file-gpx" : i === "application/x-dwf" ? "file-cad" : i === "application/postscript" || i === "application/json" || i === "text/xml" || i === "model/vrml" ? "file-code" : i === "application/x-zip-compressed" || i === "application/x-7z-compressed" || i === "application/x-gzip" || i === "application/x-tar" || i === "application/x-gtar" || i === "application/x-bzip2" || i === "application/gzip" || i === "application/x-compress" || i === "application/x-apple-diskimage" || i === "application/x-rar-compressed" || i === "application/zip" ? "file-zip" : i.includes("image/") ? "file-image" : i.includes("audio/") ? "file-sound" : i.includes("video/") ? "file-video" : i.includes("msexcel") || i.includes("ms-excel") || i.includes("spreadsheetml") ? "file-excel" : i.includes("msword") || i.includes("ms-word") || i.includes("wordprocessingml") ? "file-word" : i.includes("powerpoint") || i.includes("presentationml") ? "file-report" : "file" : "file";
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
class R extends
|
|
19
|
+
const C = I`.item-link{display:flex;flex-grow:1}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`, j = S.ofType(L);
|
|
20
|
+
class R extends P {
|
|
21
21
|
constructor() {
|
|
22
|
-
super(...arguments), this._attachmentInfos = new j(), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.getAttachmentsPromise = null, this.hideSection = !1, this.headingLevel = 2;
|
|
22
|
+
super(...arguments), this._attachmentInfos = new j(), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.getAttachmentsPromise = null, this.hideSection = !1, this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1;
|
|
23
23
|
}
|
|
24
24
|
static {
|
|
25
|
-
this.properties = { effectiveDisplayType: 16, getAttachmentsPromise: 16, hideSection: 16, supportsResizeAttachments: 16, attachmentKeywords: 0, attachmentTypes: 0, description: 1, displayType: 1, graphic: 0, heading: 1, messages: 0, orderByFields: 0, headingLevel: 9 };
|
|
25
|
+
this.properties = { effectiveDisplayType: 16, getAttachmentsPromise: 16, hideSection: 16, supportsResizeAttachments: 16, attachmentKeywords: 0, attachmentTypes: 0, description: 1, displayType: 1, graphic: 0, heading: 1, messages: 0, orderByFields: 0, headingLevel: 9, hidePreviewImageAttachmentName: 5 };
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
28
|
-
this.styles =
|
|
28
|
+
this.styles = C;
|
|
29
29
|
}
|
|
30
30
|
get _supportsTypeWildcard() {
|
|
31
31
|
const { graphic: e } = this;
|
|
@@ -47,26 +47,26 @@ class R extends _ {
|
|
|
47
47
|
}
|
|
48
48
|
loaded() {
|
|
49
49
|
this.manager.onLifecycle(() => [
|
|
50
|
-
|
|
50
|
+
_(() => this.graphic, () => this.graphicChanged(), { initial: !0 })
|
|
51
51
|
]);
|
|
52
52
|
}
|
|
53
53
|
async getAttachments() {
|
|
54
|
-
const { _attachmentLayer: e, _attachmentInfos: t, orderByFields:
|
|
54
|
+
const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: o, attachmentTypes: m, attachmentKeywords: s, _supportsTypeWildcard: g } = this;
|
|
55
55
|
if (!e || typeof e.queryAttachments != "function")
|
|
56
|
-
throw new
|
|
57
|
-
const
|
|
58
|
-
if (typeof
|
|
59
|
-
throw new
|
|
60
|
-
const
|
|
61
|
-
objectIds: [
|
|
56
|
+
throw new w("invalid-layer", "getAttachments(): A valid layer is required.");
|
|
57
|
+
const d = this.graphic?.getObjectId();
|
|
58
|
+
if (typeof d != "number")
|
|
59
|
+
throw new w("invalid-object-id", "getAttachments(): Numeric object id is required");
|
|
60
|
+
const r = o?.map((n) => `${n.field} ${n.order === "descending" ? "DESC" : "ASC"}`), f = new z({
|
|
61
|
+
objectIds: [d],
|
|
62
62
|
returnMetadata: !0,
|
|
63
|
-
orderByFields:
|
|
64
|
-
attachmentTypes: g ?
|
|
63
|
+
orderByFields: r,
|
|
64
|
+
attachmentTypes: g ? m?.filter(Boolean).map((n) => `${n}/*`) : void 0,
|
|
65
65
|
keywords: s
|
|
66
|
-
}),
|
|
67
|
-
this.getAttachmentsPromise =
|
|
68
|
-
const
|
|
69
|
-
t.destroyAll(),
|
|
66
|
+
}), c = [], p = e.queryAttachments(f).then((n) => n[d] || c).catch(() => c);
|
|
67
|
+
this.getAttachmentsPromise = p;
|
|
68
|
+
const l = await p;
|
|
69
|
+
t.destroyAll(), l.length && t.addMany(l), this.getAttachmentsPromise = null;
|
|
70
70
|
}
|
|
71
71
|
setAttachmentLayer() {
|
|
72
72
|
const { graphic: e } = this, t = u(e);
|
|
@@ -96,14 +96,14 @@ class R extends _ {
|
|
|
96
96
|
return e === "preview" ? this.renderAttachmentsPreview(t) : this.renderAttachmentsList(t);
|
|
97
97
|
}
|
|
98
98
|
renderAttachmentListItem(e) {
|
|
99
|
-
const { supportsResizeAttachments: t } = this, { contentType:
|
|
100
|
-
"item-link--list-icon": !
|
|
101
|
-
}))} slot=content-start href=${s ?? void 0 ??
|
|
102
|
-
return a`<calcite-list-item .label=${
|
|
99
|
+
const { supportsResizeAttachments: t } = this, { contentType: o, name: m, url: s, size: g } = e, d = 64, r = m || this.messages?.noTitle, f = x(o), c = this.getCSSTransform(e), p = c ? { transform: c, "image-orientation": "none" } : {}, l = t && v(o), n = a`<a class=${b(A("item-link", "item-link--list", {
|
|
100
|
+
"item-link--list-icon": !l
|
|
101
|
+
}))} slot=content-start href=${s ?? void 0 ?? h} rel=noreferrer target=_blank>${l ? a`<img alt=${m ?? h} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${d}&s=${g}`} style=${$(p)} title=${m ?? h}>` : a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`, y = a`<calcite-link slot=content .href=${s ?? void 0} rel=noreferrer target=_blank>${r}</calcite-link>`;
|
|
102
|
+
return a`<calcite-list-item .label=${r}>${n}${y}</calcite-list-item>`;
|
|
103
103
|
}
|
|
104
104
|
renderAttachmentPreviewItem(e) {
|
|
105
|
-
const { supportsResizeAttachments: t } = this, { contentType:
|
|
106
|
-
return a`<calcite-card .label=${
|
|
105
|
+
const { supportsResizeAttachments: t } = this, { contentType: o, name: m, url: s, size: g } = e, d = 225, r = m || this.messages?.noTitle, f = x(o), c = this.getCSSTransform(e), p = c ? { transform: c, "image-orientation": "none" } : {}, l = t && v(o), n = a`<a class=${b(A("item-link", "item-link--preview"))} slot=thumbnail href=${s ?? void 0 ?? h} rel=noreferrer target=_blank aria-label=${r ?? h} title=${r ?? h}>${l ? a`<img alt=${r ?? h} src=${`${s}${s?.includes("?") ? "&" : "?"}w=${d}&s=${g}`} style=${$(p)}>` : a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;
|
|
106
|
+
return a`<calcite-card .label=${r}>${n}${this.hidePreviewImageAttachmentName && l ? null : a`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
k("arcgis-feature-attachments", R);
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { watch as k, when as
|
|
6
|
-
import { a as
|
|
7
|
-
import { c as
|
|
8
|
-
import { throttle as
|
|
9
|
-
import
|
|
2
|
+
import { c as _ } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as T, html as l } from "lit";
|
|
4
|
+
import { LitElement as x } from "@arcgis/lumina";
|
|
5
|
+
import { watch as k, when as y } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import { a as d } from "../../chunks/maybe.js";
|
|
7
|
+
import { c as f, t as p } from "../../chunks/async-utils.js";
|
|
8
|
+
import { throttle as v } from "lodash-es";
|
|
9
|
+
import $ from "@arcgis/core/popup/content/MediaContent.js";
|
|
10
10
|
import w from "@arcgis/core/popup/content/FieldsContent.js";
|
|
11
|
-
import
|
|
11
|
+
import I from "@arcgis/core/popup/content/TextContent.js";
|
|
12
12
|
import { compileExpression as L } from "@arcgis/core/applications/Components/arcadeFeatureUtils.js";
|
|
13
|
-
import { s as
|
|
14
|
-
const
|
|
15
|
-
class
|
|
13
|
+
import { s as E } from "../../chunks/feature-utils.js";
|
|
14
|
+
const A = T`.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`, g = 1;
|
|
15
|
+
class b extends x {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this._compileThrottled =
|
|
17
|
+
super(...arguments), this._compileThrottled = v(this._startCompile, g), this._evaluateThrottled = v(this._startEvaluate, g), this.headingLevel = 2;
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.properties = { _compileTask: 16, _evaluateTask: 16, values: 0, fieldInfoMap: 0, expressionInfo: 0, graphic: 0, headingLevel: 9, interceptor: 0, location: 0, messages: 0, spatialReference: 0, map: 0, view: 0 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.styles =
|
|
23
|
+
this.styles = A;
|
|
24
24
|
}
|
|
25
25
|
loaded() {
|
|
26
26
|
this.manager.onLifecycle(() => [
|
|
27
27
|
k(() => [this.expressionInfo, this.graphic], () => this._compileThrottled(), { initial: !0 }),
|
|
28
|
-
|
|
28
|
+
y(() => {
|
|
29
29
|
if (!this._compileTask?.finished)
|
|
30
30
|
return null;
|
|
31
31
|
const t = this._compileTask.value, s = t?.dependencies, { view: e } = this;
|
|
@@ -48,72 +48,75 @@ class C extends y {
|
|
|
48
48
|
this._compileThrottled.cancel(), this._evaluateThrottled.cancel();
|
|
49
49
|
}
|
|
50
50
|
_startCompile() {
|
|
51
|
-
this._evaluateTask =
|
|
52
|
-
const { expressionInfo: s, graphic: e } = this,
|
|
53
|
-
if (!
|
|
51
|
+
this._evaluateTask = d(this._evaluateTask), this._compileTask = d(this._compileTask), this._compileTask = f(async (t) => {
|
|
52
|
+
const { expressionInfo: s, graphic: e } = this, a = s?.expression;
|
|
53
|
+
if (!a || !e)
|
|
54
54
|
return null;
|
|
55
|
-
const
|
|
56
|
-
expression:
|
|
55
|
+
const n = await L({
|
|
56
|
+
expression: a,
|
|
57
57
|
graphic: e
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return p(t), n;
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
_startEvaluate(t) {
|
|
63
|
-
this._evaluateTask =
|
|
63
|
+
this._evaluateTask = d(this._evaluateTask), this._evaluateTask = f(async (s) => {
|
|
64
64
|
const { graphic: e } = this;
|
|
65
65
|
if (!t || !e)
|
|
66
66
|
return null;
|
|
67
|
-
const { interceptor:
|
|
67
|
+
const { interceptor: a, spatialReference: n, map: i, location: r, view: o } = this, c = await t.evaluate({
|
|
68
68
|
graphic: e,
|
|
69
|
-
interceptor:
|
|
70
|
-
location:
|
|
71
|
-
map:
|
|
69
|
+
interceptor: a,
|
|
70
|
+
location: r,
|
|
71
|
+
map: i,
|
|
72
72
|
options: { signal: s },
|
|
73
|
-
spatialReference:
|
|
73
|
+
spatialReference: n,
|
|
74
74
|
view: o
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
76
|
+
p(s);
|
|
77
|
+
const m = c && "castAsJsonAsync" in c && typeof c.castAsJsonAsync == "function" ? c : null;
|
|
78
|
+
if (!m)
|
|
79
79
|
return null;
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
const u =
|
|
83
|
-
return
|
|
80
|
+
const h = await m.castAsJsonAsync(s);
|
|
81
|
+
p(s);
|
|
82
|
+
const u = h?.type;
|
|
83
|
+
return u === "media" ? $.fromJSON(h) : u === "text" ? I.fromJSON(h) : u === "fields" ? w.fromJSON(h) : null;
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
87
|
const t = !this._compileTask?.finished || !this._evaluateTask?.finished;
|
|
88
|
-
return
|
|
88
|
+
return l`<div class="root">${t ? this._renderLoading() : this._evaluateTask?.value ? this._renderContent() : null}</div>`;
|
|
89
89
|
}
|
|
90
90
|
_renderContent() {
|
|
91
|
-
const { values: t, fieldInfoMap: s } = this, e = this._evaluateTask?.value,
|
|
92
|
-
if (!
|
|
91
|
+
const { values: t, fieldInfoMap: s } = this, e = this._evaluateTask?.value, a = e?.type, n = { ...t, ...e?.attributes };
|
|
92
|
+
if (!a)
|
|
93
93
|
return null;
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
|
|
94
|
+
if (a === "text") {
|
|
95
|
+
const { text: i } = e;
|
|
96
|
+
if (!i)
|
|
97
|
+
return null;
|
|
98
|
+
const r = E({
|
|
99
|
+
values: n,
|
|
97
100
|
fieldInfoMap: s ?? /* @__PURE__ */ new Map(),
|
|
98
|
-
globalValues:
|
|
101
|
+
globalValues: n,
|
|
99
102
|
layer: void 0,
|
|
100
|
-
text:
|
|
103
|
+
text: i
|
|
101
104
|
});
|
|
102
|
-
return
|
|
103
|
-
} else if (
|
|
104
|
-
const { title:
|
|
105
|
-
return o?.length ?
|
|
106
|
-
} else if (
|
|
107
|
-
const { title:
|
|
108
|
-
return o?.length ?
|
|
105
|
+
return l`<arcgis-feature-content .creator=${r} .graphic=${this.graphic}></arcgis-feature-content>`;
|
|
106
|
+
} else if (a === "media") {
|
|
107
|
+
const { title: i, description: r, mediaInfos: o } = e;
|
|
108
|
+
return !o?.length && !i && !r ? null : l`<arcgis-feature-media .heading=${i ?? ""} .values=${n} .formattedValues=${n} .description=${r ?? ""} .mediaInfos=${o ?? []} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`;
|
|
109
|
+
} else if (a === "fields") {
|
|
110
|
+
const { title: i, description: r, fieldInfos: o } = e;
|
|
111
|
+
return !o?.length && !i && !r ? null : l`<arcgis-feature-fields .fieldInfos=${o ?? []} .heading=${i ?? ""} .values=${n} .description=${r ?? ""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`;
|
|
109
112
|
}
|
|
110
113
|
return null;
|
|
111
114
|
}
|
|
112
115
|
_renderLoading() {
|
|
113
|
-
return
|
|
116
|
+
return l`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
|
-
|
|
119
|
+
_("arcgis-feature-expression", b);
|
|
117
120
|
export {
|
|
118
|
-
|
|
121
|
+
b as ArcgisFeatureExpression
|
|
119
122
|
};
|
|
@@ -115,7 +115,7 @@ class S extends b {
|
|
|
115
115
|
layer: s,
|
|
116
116
|
text: e.description
|
|
117
117
|
});
|
|
118
|
-
return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${o} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${n} .messages=${this.messages}></arcgis-feature-attachments>`;
|
|
118
|
+
return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${o} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${n} hide-preview-image-attachment-name .messages=${this.messages}></arcgis-feature-attachments>`;
|
|
119
119
|
}
|
|
120
120
|
_renderCustom(e) {
|
|
121
121
|
return r`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
@@ -149,6 +149,13 @@ export abstract class ArcgisFeatureTemplates extends LitElement {
|
|
|
149
149
|
accessor hideTemplatesMode: "never" | "scale" | "visible";
|
|
150
150
|
/** List of layers for which to show Templates. If not provided, the layers will be derived from the View. */
|
|
151
151
|
accessor layers: (LayerWithFeatureTemplatesUnion | SubtypeGroupLayer)[] | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Automatically hide the filter if below a certain number of templates.
|
|
154
|
+
*
|
|
155
|
+
* @default 2
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
accessor minRequiredFilterCount: number;
|
|
152
159
|
/**
|
|
153
160
|
* The text the user has entered to filter the list on the recent tab
|
|
154
161
|
*
|
|
@@ -430,10 +430,10 @@ s = a([
|
|
|
430
430
|
const A = M(s);
|
|
431
431
|
class P extends b {
|
|
432
432
|
constructor() {
|
|
433
|
-
super(...arguments), this._messages = w(), this.viewModel = A(this), this.favoritesEnabled = this.viewModel.favoritesEnabled, this.favorites = this.viewModel.favorites, this.restoreFavorites = this.viewModel.restoreFavorites, this.restoreRecentlyUsed = this.viewModel.restoreRecentlyUsed, this.recentlyUsed = this.viewModel.recentlyUsed, this.sharedTemplatesDisabled = this.viewModel.sharedTemplatesDisabled, this.filterText = this.viewModel.filterText, this.recentFilterText = this.viewModel.recentFilterText, this.favoritesFilterText = this.viewModel.favoritesFilterText, this.recentlyUsedEnabled = this.viewModel.recentlyUsedEnabled, this.excludeTables = this.viewModel.excludeTables, this.effectiveTemplates = this.viewModel.effectiveTemplates, this.applicationTemplates = this.viewModel.applicationTemplates, this.selectedTemplateId = this.viewModel.selectedTemplateId, this.selectedTemplate = this.viewModel.selectedTemplate, this.applicationFilterFunction = this.viewModel.applicationFilterFunction, this.applicationDisabledFunction = this.viewModel.applicationDisabledFunction, this.display = this.viewModel.display, this.groupBy = this.viewModel.groupBy, this.sectionSortBy = this.viewModel.sectionSortBy, this.templateSortBy = this.viewModel.templateSortBy, this.templateSortByFunction = this.viewModel.templateSortByFunction, this.sectionSortByFunction = this.viewModel.sectionSortByFunction, this.hideTemplatesMode = this.viewModel.hideTemplatesMode, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.groupByFunction = this.viewModel.groupByFunction, this.hideTemplateDescription = this.viewModel.hideTemplateDescription, this.layers = this.viewModel.layers, this.view = F(this), this.autoDestroyDisabled = !1, this.updating = this.viewModel.updating, this.disabled = !1, this.showCollapseButton = !1, this.showFilter = !1, this.arcgisPropertyChange = D()("effectiveTemplates", "filterText", "recentlyUsed", "favorites"), this.arcgisReady = h(), this.arcgisTemplatesChanged = h(), this.arcgisSelectTemplate = h();
|
|
433
|
+
super(...arguments), this._messages = w(), this.viewModel = A(this), this.favoritesEnabled = this.viewModel.favoritesEnabled, this.favorites = this.viewModel.favorites, this.restoreFavorites = this.viewModel.restoreFavorites, this.restoreRecentlyUsed = this.viewModel.restoreRecentlyUsed, this.recentlyUsed = this.viewModel.recentlyUsed, this.sharedTemplatesDisabled = this.viewModel.sharedTemplatesDisabled, this.filterText = this.viewModel.filterText, this.recentFilterText = this.viewModel.recentFilterText, this.favoritesFilterText = this.viewModel.favoritesFilterText, this.recentlyUsedEnabled = this.viewModel.recentlyUsedEnabled, this.excludeTables = this.viewModel.excludeTables, this.effectiveTemplates = this.viewModel.effectiveTemplates, this.applicationTemplates = this.viewModel.applicationTemplates, this.selectedTemplateId = this.viewModel.selectedTemplateId, this.selectedTemplate = this.viewModel.selectedTemplate, this.applicationFilterFunction = this.viewModel.applicationFilterFunction, this.applicationDisabledFunction = this.viewModel.applicationDisabledFunction, this.display = this.viewModel.display, this.groupBy = this.viewModel.groupBy, this.sectionSortBy = this.viewModel.sectionSortBy, this.templateSortBy = this.viewModel.templateSortBy, this.templateSortByFunction = this.viewModel.templateSortByFunction, this.sectionSortByFunction = this.viewModel.sectionSortByFunction, this.hideTemplatesMode = this.viewModel.hideTemplatesMode, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.groupByFunction = this.viewModel.groupByFunction, this.hideTemplateDescription = this.viewModel.hideTemplateDescription, this.layers = this.viewModel.layers, this.view = F(this), this.autoDestroyDisabled = !1, this.updating = this.viewModel.updating, this.disabled = !1, this.showCollapseButton = !1, this.showFilter = !1, this.minRequiredFilterCount = 2, this.arcgisPropertyChange = D()("effectiveTemplates", "filterText", "recentlyUsed", "favorites"), this.arcgisReady = h(), this.arcgisTemplatesChanged = h(), this.arcgisSelectTemplate = h();
|
|
434
434
|
}
|
|
435
435
|
static {
|
|
436
|
-
this.properties = { favoritesEnabled: 5, favorites: 32, restoreFavorites: 0, restoreRecentlyUsed: 0, recentlyUsed: 32, sharedTemplatesDisabled: 5, filterText: 1, recentFilterText: 1, favoritesFilterText: 1, recentlyUsedEnabled: 5, excludeTables: 5, effectiveTemplates: 32, applicationTemplates: 0, selectedTemplateId: 1, selectedTemplate: 32, applicationFilterFunction: 0, applicationDisabledFunction: 0, display: 1, groupBy: 1, sectionSortBy: 1, templateSortBy: 1, templateSortByFunction: 0, sectionSortByFunction: 0, hideTemplatesMode: 1, disableTemplatesMode: 1, groupByFunction: 0, hideTemplateDescription: 5, layers: 0, view: 0, referenceElement: 1, autoDestroyDisabled: 5, updating: 32, disabled: 5, showCollapseButton: 5, showFilter: 5 };
|
|
436
|
+
this.properties = { favoritesEnabled: 5, favorites: 32, restoreFavorites: 0, restoreRecentlyUsed: 0, recentlyUsed: 32, sharedTemplatesDisabled: 5, filterText: 1, recentFilterText: 1, favoritesFilterText: 1, recentlyUsedEnabled: 5, excludeTables: 5, effectiveTemplates: 32, applicationTemplates: 0, selectedTemplateId: 1, selectedTemplate: 32, applicationFilterFunction: 0, applicationDisabledFunction: 0, display: 1, groupBy: 1, sectionSortBy: 1, templateSortBy: 1, templateSortByFunction: 0, sectionSortByFunction: 0, hideTemplatesMode: 1, disableTemplatesMode: 1, groupByFunction: 0, hideTemplateDescription: 5, layers: 0, view: 0, referenceElement: 1, autoDestroyDisabled: 5, updating: 32, disabled: 5, showCollapseButton: 5, showFilter: 5, minRequiredFilterCount: 9 };
|
|
437
437
|
}
|
|
438
438
|
static {
|
|
439
439
|
this.styles = E;
|
|
@@ -472,7 +472,7 @@ class P extends b {
|
|
|
472
472
|
this.viewModel.removeRecent(e);
|
|
473
473
|
}
|
|
474
474
|
_renderTemplates() {
|
|
475
|
-
return this.effectiveTemplates.length === 0 ? o`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${this._messages.noTemplates}</div></calcite-notice>` : o`<calcite-list .filterPlaceholder=${this._messages.filterPlaceholder ?? ""} .filterText=${this.filterText} .label=${this._messages?.templates ?? ""} .filterEnabled=${this.showFilter} selection-appearance=border selection-mode=single @calciteListFilter=${(e) => {
|
|
475
|
+
return this.effectiveTemplates.length === 0 ? o`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${this._messages.noTemplates}</div></calcite-notice>` : o`<calcite-list .filterPlaceholder=${this._messages.filterPlaceholder ?? ""} .filterText=${this.filterText} .label=${this._messages?.templates ?? ""} .filterEnabled=${this.showFilter && this.viewModel.templateList.length >= this.minRequiredFilterCount} selection-appearance=border selection-mode=single @calciteListFilter=${(e) => {
|
|
476
476
|
this.filterText = e.target.filterText;
|
|
477
477
|
}}>${this.display === "grouped" ? this.effectiveTemplates.map((e) => o`<calcite-list-item-group .heading=${e.autoTranslate ? this._messages[e.sectionName] ?? "" : e.sectionName}>${e.templates.map((i) => o`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(i)} .label=${i.label} .selected=${i.id === this.selectedTemplateId} .description=${this.hideTemplateDescription ? void 0 : i.description} .value=${i.id} @calciteListItemSelect=${() => {
|
|
478
478
|
this._handleSelectTemplate(i);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type ActiveLayerInfo from "@arcgis/core/widgets/Legend/support/ActiveLayerInfo.js";
|
|
3
|
-
import type Collection from "@arcgis/core/core/Collection.js";
|
|
4
3
|
import type LinkChartView from "@arcgis/core/views/LinkChartView.js";
|
|
4
|
+
import type Collection from "@arcgis/core/core/Collection.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { on as
|
|
5
|
-
import
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { usePropertyChange as
|
|
8
|
-
import { classes as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class b extends g {
|
|
2
|
+
import { c as d } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as g, html as o } from "lit";
|
|
4
|
+
import { on as a, watch as n } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import h from "@arcgis/core/widgets/Legend/LegendViewModel.js";
|
|
6
|
+
import { LitElement as p, createEvent as f, safeClassMap as u } from "@arcgis/lumina";
|
|
7
|
+
import { usePropertyChange as m } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { classes as v } from "@arcgis/toolkit/dom";
|
|
9
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
10
|
+
import { m as _ } from "../../chunks/useViewModel.js";
|
|
11
|
+
import { g as l } from "../../chunks/globalCss.js";
|
|
12
|
+
const y = g`.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}`, b = _(h);
|
|
13
|
+
class x extends p {
|
|
15
14
|
constructor() {
|
|
16
|
-
super(...arguments), this.messages =
|
|
15
|
+
super(...arguments), this.messages = w({}), this.viewModel = b(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 = m()("state"), this.arcgisReady = f();
|
|
17
16
|
}
|
|
18
17
|
static {
|
|
19
18
|
this.properties = { _isCardStyle: 16, view: 0, referenceElement: 1, icon: 1, activeLayerInfos: 0, basemapLegendVisible: 5, headingLevel: 9, hideLayersNotInCurrentView: 5, respectLayerDefinitionExpression: 5, ignoreLayerVisibility: 5, layerInfos: 0, loading: 39, cardStyleLayout: 1, legendStyle: 1, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
20
19
|
}
|
|
21
20
|
static {
|
|
22
|
-
this.styles =
|
|
21
|
+
this.styles = y;
|
|
23
22
|
}
|
|
24
23
|
get ignoreLayerVisibility() {
|
|
25
24
|
return !this.viewModel.respectLayerVisibility;
|
|
@@ -32,9 +31,8 @@ class b extends g {
|
|
|
32
31
|
}
|
|
33
32
|
loaded() {
|
|
34
33
|
this.manager.onLifecycle(() => [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
a(() => [
|
|
34
|
+
a(() => this.el.view, "resize", () => this.requestUpdate()),
|
|
35
|
+
n(() => [
|
|
38
36
|
this.cardStyleLayout,
|
|
39
37
|
this.legendStyle,
|
|
40
38
|
typeof this.legendStyle == "object" ? this.legendStyle.type : void 0,
|
|
@@ -43,24 +41,27 @@ class b extends g {
|
|
|
43
41
|
const e = this.legendStyle, i = typeof e == "object" ? e : { type: e };
|
|
44
42
|
this._isCardStyle = i.type === "card", this._isCardStyle ? (this.cardStyleLayout = this.cardStyleLayout || i.layout || "auto", this.cardStyleLayout === "auto" && this.el.closest("arcgis-expand") && (this.cardStyleLayout = "stack"), this.setAttribute("card-style-layout", this.cardStyleLayout)) : this.removeAttribute("card-style-layout");
|
|
45
43
|
}, { initial: !0 })
|
|
46
|
-
])
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
]), this.manager.onLifecycle(() => {
|
|
45
|
+
let e = [];
|
|
46
|
+
const i = () => {
|
|
47
|
+
e.forEach((t) => t.remove()), e = [];
|
|
48
|
+
}, s = (t) => {
|
|
49
|
+
e.push(n(() => t.version, () => this.requestUpdate()), a(() => t.children, "change", r)), t.children.forEach(s);
|
|
50
|
+
}, r = () => {
|
|
51
|
+
i(), this.activeLayerInfos.forEach(s), this.requestUpdate();
|
|
52
|
+
};
|
|
53
|
+
r();
|
|
54
|
+
const c = a(() => this.activeLayerInfos, "change", r);
|
|
55
|
+
return () => {
|
|
56
|
+
c.remove(), i();
|
|
57
|
+
};
|
|
58
|
+
});
|
|
52
59
|
}
|
|
53
60
|
render() {
|
|
54
|
-
return
|
|
55
|
-
}
|
|
56
|
-
_renderOnActiveLayerInfoChange(e) {
|
|
57
|
-
const i = a(() => e.version, () => this.requestUpdate());
|
|
58
|
-
this.final.addHandles(i, `version_${e.layer.uid}`);
|
|
59
|
-
const n = o(() => e.children, "change", () => e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t)));
|
|
60
|
-
this.final.addHandles(n, `version_${e.layer.uid}`), e.children.forEach((t) => this._renderOnActiveLayerInfoChange(t));
|
|
61
|
+
return o`<div class=${u(v("root", l.widget, { [l.panel]: !this._isCardStyle }))}>${this._isCardStyle && this.view ? o`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>` : o`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
d("arcgis-legend", x);
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
x as ArcgisLegend
|
|
66
67
|
};
|
|
@@ -6,7 +6,7 @@ import s from "@arcgis/core/widgets/BatchAttributeForm.js";
|
|
|
6
6
|
import { LitElement as d, createEvent as m } from "@arcgis/lumina";
|
|
7
7
|
import { m as h } from "../../chunks/useWidget.js";
|
|
8
8
|
import { css as p } from "lit";
|
|
9
|
-
const g = p`.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}.esri-batch-attribute-form{background-color:var(--calcite-color-background);padding:var(--arcgis-internal-padding, var(--calcite-space-md) var(--calcite-space-lg))}.esri-batch-attribute-form__notice-error{margin:0 0 var(--calcite-space-2xl)}.esri-batch-attribute-form__form{display:flex;flex-direction:column}.esri-batch-attribute-form__centered-button{align-self:center}.esri-batch-attribute-form__description-text{color:var(--calcite-color-text-3)}.esri-batch-attribute-form__label{white-space:pre-wrap;overflow-wrap:break-word;display:flex;position:relative;flex-direction:column;justify-content:space-between;transition:opacity .25s,margin .25s;opacity:1;margin-bottom:var(--calcite-space-xs);&:last-child{margin-bottom:0}}.esri-batch-attribute-form__label-text-content{white-space:pre-wrap;overflow-wrap:break-word;display:flex;align-items:center}.esri-batch-attribute-form__input--switch{margin:7px 0}.esri-batch-attribute-form__input--radio-label{display:flex;align-items:center}.esri-batch-attribute-form__input--radio-group{display:flex;flex-direction:column}.esri-batch-attribute-form__input--radio-placeholder{color:var(--calcite-color-text-3);font-style:italic}.esri-batch-attribute-form__multiple-choice-input,.esri-batch-attribute-form__multiple-choice-input__other-choice{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__select-all{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-end:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__other-choice--with-select-all{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-start:var(--calcite-space-sm)}.esri-batch-attribute-form__form-header{margin-bottom:var(--calcite-space-md);.esri-batch-attribute-form__description-text~.esri-widget__heading{margin-bottom:0}}.esri-batch-attribute-form__input{width:100%;&:not(calcite-checkbox):focus{outline:var(--calcite-space-base) solid var(--calcite-color-brand);outline-offset:-2px}}.esri-batch-attribute-form__input--disabled{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__individual-element{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__date-input-container{display:flex;flex-direction:column;gap:var(--calcite-space-sm);.esri-batch-attribute-form__input{margin-bottom:var(--calcite-space-base)}&:last-child{margin-bottom:0}}.esri-batch-attribute-form__group{margin:0 0 var(--calcite-space-md) 0;background-color:inherit;margin-inline:calc(var(--calcite-space-md) * -1)}.esri-batch-attribute-form__group--sequential{border-bottom:none;border-inline-start:3px solid var(--calcite-color-border-1)}.esri-batch-attribute-form__group--active{border-inline-start-color:var(--calcite-color-brand)}.esri-batch-attribute-form__relationship-element-input{margin-block-end:var(--calcite-space-lg);calcite-notice,.esri-batch-attribute-form__relationship-element-input_list{margin-bottom:var(--calcite-space-md-plus)}}.esri-batch-attribute-form__relationship-element-input_header{color:var(--calcite-color-text-1)}.esri-batch-attribute-form__relationship-element-input_description,.esri-batch-attribute-form__relationship-element-input_header{margin-bottom:var(--calcite-space-md-plus)}.esri-batch-attribute-form__relationship-element-input_list{min-height:var(--calcite-space-2xs)}.esri-batch-attribute-form__relationship-element-input_list-observer{position:relative;bottom:20px;z-index:2;text-align:center}.esri-batch-attribute-form__relationship-element-input_showing-all{.esri-batch-attribute-form__relationship-element-input_add-button{margin-block:var(--calcite-space-md)}}.esri-batch-attribute-form__attachment-element-input{margin-bottom:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-label{white-space:pre-wrap;overflow-wrap:break-word;margin-bottom:var(--calcite-space-2xs);color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-list{margin-block:var(--calcite-space-sm);border-block:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-batch-attribute-form__attachment-element-list-item{--calcite-list-item-border-color: var(--calcite-color-border-3);white-space:pre-wrap;overflow-wrap:break-word;min-block-size:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-list-item-start{display:flex;align-items:center;justify-content:center;border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-3);block-size:var(--calcite-space-3xl);inline-size:var(--calcite-space-3xl);color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-list-item-staged-indicator{display:inline-flex;border-radius:50%;background-color:var(--calcite-color-brand);block-size:var(--calcite-space-xs);inline-size:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-list-item-thumb{border-radius:inherit;block-size:100%;inline-size:100%;object-fit:cover}.esri-batch-attribute-form__attachment-element-list-item-icon{color:inherit}.esri-batch-attribute-form__attachment-element-empty-state{padding-block:var(--calcite-space-sm);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}.esri-batch-attribute-form__attachment-element-add-actions{display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:flex-start;justify-content:flex-start;inline-size:100%}.esri-batch-attribute-form__attachment-element-capture-notice{inline-size:100%}.esri-batch-attribute-form__attachment-element-empty-action-hint{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-empty-action-hint-value{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-all-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-file-input{display:none}.esri-batch-attribute-form__attachment-element-add-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-add-dropzone{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:0;align-items:center;justify-content:center;transition:border-color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out;border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-lg) var(--calcite-space-md);min-block-size:10.875rem;inline-size:100%;text-align:center}.esri-batch-attribute-form__attachment-element-add-dropzone-icon{margin-block-end:var(--calcite-space-sm);color:var(--calcite-color-text-3)}.esri-batch-attribute-form__attachment-element-add-dropzone-heading{margin-block-end:var(--calcite-space-xs);line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone-detail{white-space:pre-wrap;overflow-wrap:break-word;margin-block-end:var(--calcite-space-md);max-inline-size:13rem;line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone calcite-button{align-self:center}.esri-batch-attribute-form__attachment-element-validation-criteria{display:flex;flex-direction:column;gap:var(--calcite-space-xs);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail-metadata-group{display:flex;flex-direction:column;gap:var(--calcite-space-2xs)}.esri-batch-attribute-form__attachment-element-detail-file-name-row{display:flex;gap:var(--calcite-space-2xs);align-items:center;inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-file-name-input{flex:1 1 auto;min-inline-size:0}.esri-batch-attribute-form__attachment-element-detail-preview{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-preview-image{display:block;block-size:auto;max-block-size:min(24rem,50vh);inline-size:100%;object-fit:contain}.esri-batch-attribute-form__attachment-element-detail-preview-icon{color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-detail-actions{display:flex;flex-wrap:wrap;gap:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-detail-metadata{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding-block-start:var(--calcite-space-lg)}.esri-batch-attribute-form__attachment-element-detail-metadata-label{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__attachment-element-detail-metadata-value{white-space:pre-wrap;overflow-wrap:break-word;line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__text-element-input{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);a{display:inline;position:relative;transition:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start inset-size,opacity,outline-color,transform var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;border-style:none;background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;padding:0;text-decoration:none;color:var(--calcite-color-text-link);&:hover,&:focus{background-size:100% 1px,100% 1px}&:active{background-size:100% 2px,100% 2px}&.calcite--rtl{background-position:100% 100%,100% 100%}}code{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-xs);background-color:var(--calcite-color-surface-4);padding:var(--calcite-space-2xs);white-space:normal;word-break:break-word;color:var(--calcite-color-text-2);font-family:var(--calcite-code-family);font-size:85%}h1,h2,h3,h4,h5{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}h5{font-weight:var(--calcite-font-weight-medium)}h6{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}p{margin-bottom:var(--calcite-space-lg);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}strong{font-weight:var(--calcite-font-weight-bold)}}.esri-batch-attribute-form__utility-network-associations-element-input{margin-block-end:var(--calcite-space-md);.esri-feature-utility-network-associations{.esri-feature-element-info__description{color:var(--calcite-color-text-3)}h5{color:var(--calcite-color-text-1);font-size:inherit}}}`;
|
|
9
|
+
const g = p`.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}.esri-batch-attribute-form{background-color:var(--calcite-color-background);padding:var(--arcgis-internal-padding, var(--calcite-space-md) var(--calcite-space-lg))}.esri-batch-attribute-form__notice-error{margin:0 0 var(--calcite-space-2xl)}.esri-batch-attribute-form__form{display:flex;flex-direction:column}.esri-batch-attribute-form__centered-button{align-self:center}.esri-batch-attribute-form__description-text{color:var(--calcite-color-text-3)}.esri-batch-attribute-form__label{white-space:pre-wrap;overflow-wrap:break-word;display:flex;position:relative;flex-direction:column;justify-content:space-between;transition:opacity .25s,margin .25s;opacity:1;margin-bottom:var(--calcite-space-xs);&:last-child{margin-bottom:0}}.esri-batch-attribute-form__label-text-content{white-space:pre-wrap;overflow-wrap:break-word;display:flex;align-items:center}.esri-batch-attribute-form__input--switch{margin:7px 0}.esri-batch-attribute-form__input--radio-label{display:flex;align-items:center}.esri-batch-attribute-form__input--radio-group{display:flex;flex-direction:column}.esri-batch-attribute-form__input--radio-placeholder{color:var(--calcite-color-text-3);font-style:italic}.esri-batch-attribute-form__multiple-choice-input,.esri-batch-attribute-form__multiple-choice-input__other-choice{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__select-all{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-end:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__other-choice--with-select-all{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-start:var(--calcite-space-sm)}.esri-batch-attribute-form__form-header{margin-bottom:var(--calcite-space-md);.esri-batch-attribute-form__description-text~.esri-widget__heading{margin-bottom:0}}.esri-batch-attribute-form__input{width:100%;&:not(calcite-checkbox):focus{outline:var(--calcite-space-base) solid var(--calcite-color-brand);outline-offset:-2px}}.esri-batch-attribute-form__input--disabled{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__individual-element{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__date-input-container{display:flex;flex-direction:column;gap:var(--calcite-space-sm);.esri-batch-attribute-form__input{margin-bottom:var(--calcite-space-base)}&:last-child{margin-bottom:0}}.esri-batch-attribute-form__group{margin:0 0 var(--calcite-space-md) 0;background-color:inherit;margin-inline:calc(var(--calcite-space-md) * -1)}.esri-batch-attribute-form__group--sequential{border-bottom:none;border-inline-start:3px solid var(--calcite-color-border-1)}.esri-batch-attribute-form__group--active{border-inline-start-color:var(--calcite-color-brand)}.esri-batch-attribute-form__relationship-element-input{margin-block-end:var(--calcite-space-lg);calcite-notice,.esri-batch-attribute-form__relationship-element-input_list{margin-bottom:var(--calcite-space-md-plus)}}.esri-batch-attribute-form__relationship-element-input_header{color:var(--calcite-color-text-1)}.esri-batch-attribute-form__relationship-element-input_description,.esri-batch-attribute-form__relationship-element-input_header{margin-bottom:var(--calcite-space-md-plus)}.esri-batch-attribute-form__relationship-element-input_list{min-height:var(--calcite-space-2xs)}.esri-batch-attribute-form__relationship-element-input_list-observer{position:relative;bottom:20px;z-index:2;text-align:center}.esri-batch-attribute-form__relationship-element-input_showing-all{.esri-batch-attribute-form__relationship-element-input_add-button{margin-block:var(--calcite-space-md)}}.esri-batch-attribute-form__attachment-element-input{margin-bottom:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-label{white-space:pre-wrap;overflow-wrap:break-word;margin-bottom:var(--calcite-space-2xs);color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-list{margin-block:var(--calcite-space-sm);border-block:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-batch-attribute-form__attachment-element-list-item{--calcite-list-item-border-color: var(--calcite-color-border-3);white-space:pre-wrap;overflow-wrap:break-word;min-block-size:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-list-item-start{display:flex;align-items:center;justify-content:center;border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-3);block-size:var(--calcite-space-3xl);inline-size:var(--calcite-space-3xl);color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-list-item-staged-indicator{display:inline-flex;border-radius:50%;background-color:var(--calcite-color-brand);block-size:var(--calcite-space-xs);inline-size:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-list-item-thumb{border-radius:inherit;block-size:100%;inline-size:100%;object-fit:cover}.esri-batch-attribute-form__attachment-element-list-item-icon{color:inherit}.esri-batch-attribute-form__attachment-element-empty-state{padding-block:var(--calcite-space-sm);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}.esri-batch-attribute-form__attachment-element-add-actions{display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:flex-start;justify-content:flex-start;inline-size:100%}.esri-batch-attribute-form__attachment-element-capture-notice{inline-size:100%}.esri-batch-attribute-form__attachment-element-empty-action-hint{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-empty-action-hint-value{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-all-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-file-input{display:none}.esri-batch-attribute-form__attachment-element-add-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-add-dropzone{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:0;align-items:center;justify-content:center;transition:border-color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out;border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-lg) var(--calcite-space-md);min-block-size:10.875rem;inline-size:100%;text-align:center}.esri-batch-attribute-form__attachment-element-add-dropzone-icon{margin-block-end:var(--calcite-space-sm);color:var(--calcite-color-text-3)}.esri-batch-attribute-form__attachment-element-add-dropzone-heading{margin-block-end:var(--calcite-space-xs);line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone-detail{white-space:pre-wrap;overflow-wrap:break-word;margin-block-end:var(--calcite-space-md);max-inline-size:13rem;line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone calcite-button{align-self:center}.esri-batch-attribute-form__attachment-element-validation-criteria{display:flex;flex-direction:column;gap:var(--calcite-space-xs);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail-metadata-group{display:flex;flex-direction:column;gap:var(--calcite-space-2xs)}.esri-batch-attribute-form__attachment-element-detail-file-name-row{display:flex;gap:var(--calcite-space-2xs);align-items:center;inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-file-name-input{flex:1 1 auto;min-inline-size:0}.esri-batch-attribute-form__attachment-element-detail-preview{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);inline-size:100%}.esri-batch-attribute-form__attachment-element-dialog-preview{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--calcite-space-sm);align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);block-size:100%;min-block-size:0;max-block-size:100%;inline-size:100%;overflow:hidden;.esri-batch-attribute-form__attachment-element-detail-preview-image{max-block-size:100%;max-inline-size:100%}}.esri-batch-attribute-form__attachment-element-detail-preview-image{display:block;block-size:auto;max-block-size:min(24rem,50vh);inline-size:100%;object-fit:contain}.esri-batch-attribute-form__attachment-element-detail-preview-icon{color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-detail-actions{display:flex;flex-wrap:wrap;gap:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-detail-metadata{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding-block-start:var(--calcite-space-lg)}.esri-batch-attribute-form__attachment-element-detail-metadata-label{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__attachment-element-detail-metadata-value{white-space:pre-wrap;overflow-wrap:break-word;line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__text-element-input{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);a{display:inline;position:relative;transition:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start inset-size,opacity,outline-color,transform var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;border-style:none;background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;padding:0;text-decoration:none;color:var(--calcite-color-text-link);&:hover,&:focus{background-size:100% 1px,100% 1px}&:active{background-size:100% 2px,100% 2px}&.calcite--rtl{background-position:100% 100%,100% 100%}}code{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-xs);background-color:var(--calcite-color-surface-4);padding:var(--calcite-space-2xs);white-space:normal;word-break:break-word;color:var(--calcite-color-text-2);font-family:var(--calcite-code-family);font-size:85%}h1,h2,h3,h4,h5{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}h5{font-weight:var(--calcite-font-weight-medium)}h6{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}p{margin-bottom:var(--calcite-space-lg);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}strong{font-weight:var(--calcite-font-weight-bold)}}.esri-batch-attribute-form__utility-network-associations-element-input{margin-block-end:var(--calcite-space-md);.esri-feature-utility-network-associations{.esri-feature-element-info__description{color:var(--calcite-color-text-3)}h5{color:var(--calcite-color-text-1);font-size:inherit}}}`;
|
|
10
10
|
var o = (t) => {
|
|
11
11
|
throw TypeError(t);
|
|
12
12
|
}, c = (t, e, i) => e.has(t) || o("Cannot " + i), u = (t, e, i) => (c(t, e, "read from private field"), i ? i.call(t) : e.get(t)), b = (t, e, i) => e.has(t) ? o("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), f = (t, e, i, x) => (c(t, e, "write to private field"), e.set(t, i), i), r;
|