@arcgis/map-components 5.2.0-next.33 → 5.2.0-next.35
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/{USDF674A.js → 4PLVKLIO.js} +1 -1
- 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/{WCXM6TPE.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/{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/{DMVLKBEO.js → X32UMW74.js} +1 -1
- 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-editor/customElement.d.ts +6 -0
- package/dist/components/arcgis-editor/customElement.js +6 -6
- 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 +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +4 -4
- package/dist/cdn/3ACWQZMG.js +0 -2
- package/dist/cdn/3UEX6WWW.js +0 -2
- package/dist/cdn/EI7NXMGF.js +0 -2
- package/dist/cdn/ITCLBS5H.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/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,10 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { watch as
|
|
2
|
+
import { c as r } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as n, html as t } from "lit";
|
|
4
|
+
import { watch as o } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as c } from "@arcgis/lumina";
|
|
6
|
-
|
|
7
|
-
const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`, d = [
|
|
6
|
+
const h = n`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`, u = [
|
|
8
7
|
"catalog-footprint",
|
|
9
8
|
"geojson",
|
|
10
9
|
"csv",
|
|
@@ -13,49 +12,52 @@ const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);displ
|
|
|
13
12
|
"map-notes",
|
|
14
13
|
"stream"
|
|
15
14
|
];
|
|
16
|
-
function
|
|
17
|
-
if (!
|
|
15
|
+
function d(a) {
|
|
16
|
+
if (!a)
|
|
18
17
|
return !1;
|
|
19
|
-
const { map: e, graphics:
|
|
20
|
-
return
|
|
21
|
-
if (
|
|
22
|
-
const { type:
|
|
23
|
-
return
|
|
18
|
+
const { map: e, graphics: l } = a;
|
|
19
|
+
return l?.length ? !0 : e?.allLayers.some((i) => {
|
|
20
|
+
if (i.type === "feature" && "source" in i) {
|
|
21
|
+
const { type: s } = i.source;
|
|
22
|
+
return s !== "feature-layer" && s !== "ogc-feature";
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return u.includes(i.type);
|
|
26
25
|
}) ?? !1;
|
|
27
26
|
}
|
|
28
|
-
function
|
|
29
|
-
const e =
|
|
27
|
+
function p(a) {
|
|
28
|
+
const e = a?.map;
|
|
30
29
|
return !!e && e.tables.length > 0;
|
|
31
30
|
}
|
|
32
|
-
class
|
|
31
|
+
class m extends c {
|
|
33
32
|
constructor() {
|
|
34
|
-
super(...arguments), this.
|
|
33
|
+
super(...arguments), this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
35
34
|
}
|
|
36
35
|
static {
|
|
37
36
|
this.properties = { _selectedTemplate: 16, _showAuthorInput: 16, _showCopyrightInput: 16, _showLegendInput: 16, _showNorthArrowInput: 16, _showScaleBarInput: 16, _showForceFeatureAttributes: 16, _showTablesInput: 16, autoPopulateAuthor: 5, viewModel: 0, messages: 0, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
38
37
|
}
|
|
39
38
|
static {
|
|
40
|
-
this.styles =
|
|
39
|
+
this.styles = h;
|
|
41
40
|
}
|
|
42
41
|
loaded() {
|
|
43
|
-
this.manager.onLifecycle(() =>
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
this.manager.onLifecycle(() => {
|
|
43
|
+
let e;
|
|
44
|
+
const l = o(() => this.viewModel.templateOptions.id, (s) => {
|
|
45
|
+
e?.remove(), this._selectedTemplate = s ? this.viewModel.getLayoutTemplateById(s) ?? void 0 : void 0, e = o(() => [
|
|
46
46
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText,
|
|
47
47
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText,
|
|
48
48
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend,
|
|
49
49
|
this._selectedTemplate?.mapSurroundInfoOptions?.northArrow?.length,
|
|
50
50
|
this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar?.length
|
|
51
51
|
], () => {
|
|
52
|
-
this._showAuthorInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText ?? !0, this._showCopyrightInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText ?? !0, this._showLegendInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend ?? !0, this._showNorthArrowInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length, this._showScaleBarInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length, this._showForceFeatureAttributes =
|
|
53
|
-
}, { initial: !0 })
|
|
54
|
-
}, { initial: !0 }),
|
|
55
|
-
s(() => [this.viewModel.portal?.user, this.autoPopulateAuthor], () => {
|
|
52
|
+
this._showAuthorInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText ?? !0, this._showCopyrightInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText ?? !0, this._showLegendInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend ?? !0, this._showNorthArrowInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length, this._showScaleBarInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length, this._showForceFeatureAttributes = d(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideFeatureAttributes, this._showTablesInput = p(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideIncludeTables;
|
|
53
|
+
}, { initial: !0 });
|
|
54
|
+
}, { initial: !0 }), i = o(() => [this.viewModel.portal?.user, this.autoPopulateAuthor], () => {
|
|
56
55
|
!this.viewModel.templateOptions.author && this.autoPopulateAuthor && this.viewModel.portal?.user?.username && (this.viewModel.templateOptions.author = this.viewModel.portal.user.username, this.requestUpdate());
|
|
57
|
-
}, { initial: !0 })
|
|
58
|
-
|
|
56
|
+
}, { initial: !0 });
|
|
57
|
+
return () => {
|
|
58
|
+
l.remove(), i.remove(), e?.remove();
|
|
59
|
+
};
|
|
60
|
+
});
|
|
59
61
|
}
|
|
60
62
|
render() {
|
|
61
63
|
return t`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderAuthorSection()}${this._renderCopyrightSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderDatumTransformationSection()}${this._renderCustomTextElementSection()}${this._renderLegendSection()}${this._renderNorthArrowSection()}${this._renderScaleBarSection()}${this._renderForceFeatureAttributesSection()}${this._renderIncludeTablesSection()}</div>`;
|
|
@@ -93,13 +95,13 @@ class g extends c {
|
|
|
93
95
|
}}><calcite-option value=kilometers>${this.messages.milesAndKilometers}</calcite-option><calcite-option value=meters>${this.messages.feetAndMeters}</calcite-option></calcite-select></calcite-label>` : null}</div>` : null;
|
|
94
96
|
}
|
|
95
97
|
_renderForceFeatureAttributesSection() {
|
|
96
|
-
return this._showForceFeatureAttributes ? t`<div><calcite-label layout=inline><calcite-checkbox .checked=${
|
|
98
|
+
return this._showForceFeatureAttributes ? t`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.forceFeatureAttributes} @calciteCheckboxChange=${(e) => this.viewModel.templateOptions.forceFeatureAttributes = e.target.checked}></calcite-checkbox>${this.messages.forceFeatureAttributes}</calcite-label></div>` : null;
|
|
97
99
|
}
|
|
98
100
|
_renderIncludeTablesSection() {
|
|
99
|
-
return this._showTablesInput ? t`<div><calcite-label layout=inline><calcite-checkbox .checked=${
|
|
101
|
+
return this._showTablesInput ? t`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.includeTables} @calciteCheckboxChange=${(e) => this.viewModel.templateOptions.includeTables = e.target.checked}></calcite-checkbox>${this.messages.includeTables}</calcite-label></div>` : null;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
|
-
|
|
104
|
+
r("arcgis-print-layout-advanced-options", m);
|
|
103
105
|
export {
|
|
104
|
-
|
|
106
|
+
m as PrintLayoutAdvancedOptions
|
|
105
107
|
};
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as o, html as e } from "lit";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as a } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as r } from "@arcgis/lumina";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class d extends r {
|
|
6
|
+
const n = o`:host{display:flex;flex-direction:column;height:100%}.layout-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex-grow:1;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--calcite-spacing-sm)}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}`;
|
|
7
|
+
class c extends r {
|
|
9
8
|
constructor() {
|
|
10
|
-
super(...arguments), this.
|
|
9
|
+
super(...arguments), this.hideAdvancedOptions = !1, this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
11
10
|
}
|
|
12
11
|
static {
|
|
13
12
|
this.properties = { _selectedTemplate: 16, _showSelectedTemplateTitleText: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, viewModel: 0, messages: 0, showTemplateSelector: 0, selectExportsTab: 0, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
14
13
|
}
|
|
15
14
|
static {
|
|
16
|
-
this.styles =
|
|
15
|
+
this.styles = n;
|
|
17
16
|
}
|
|
18
17
|
loaded() {
|
|
19
|
-
this.manager.onLifecycle(() =>
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
this.manager.onLifecycle(() => {
|
|
19
|
+
let t;
|
|
20
|
+
const s = a(() => this.viewModel.templateOptions.id, (i) => {
|
|
21
|
+
t?.remove(), this._selectedTemplate = i ? this.viewModel.getLayoutTemplateById(i) ?? void 0 : void 0, t = a(() => this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText, () => {
|
|
22
22
|
this._showSelectedTemplateTitleText = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText ?? !0;
|
|
23
|
-
}, { initial: !0 })
|
|
24
|
-
}, { initial: !0 })
|
|
25
|
-
|
|
23
|
+
}, { initial: !0 });
|
|
24
|
+
}, { initial: !0 });
|
|
25
|
+
return () => {
|
|
26
|
+
s.remove(), t?.remove();
|
|
27
|
+
};
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
30
|
render() {
|
|
28
31
|
return e`<section class="layout-section" tabindex=-1><div class="panel-container">${this._renderTitleInput()}${this._renderTemplateSelect()}${this._renderFileFormatSection()}${this._renderAdvancedSection()}</div>${this._renderExportButton()}</section>`;
|
|
@@ -31,8 +34,8 @@ class d extends r {
|
|
|
31
34
|
if (!this._showSelectedTemplateTitleText)
|
|
32
35
|
return null;
|
|
33
36
|
const { title: t, titlePlaceHolder: s } = this.messages;
|
|
34
|
-
return e`<calcite-label>${t}<calcite-input .placeholder=${s} .value=${this.viewModel.templateOptions.title ?? ""} @calciteInputInput=${(
|
|
35
|
-
this.viewModel.templateOptions.title =
|
|
37
|
+
return e`<calcite-label>${t}<calcite-input .placeholder=${s} .value=${this.viewModel.templateOptions.title ?? ""} @calciteInputInput=${(i) => {
|
|
38
|
+
this.viewModel.templateOptions.title = i.currentTarget.value;
|
|
36
39
|
}}></calcite-input></calcite-label>`;
|
|
37
40
|
}
|
|
38
41
|
_renderTemplateSelect() {
|
|
@@ -48,7 +51,7 @@ class d extends r {
|
|
|
48
51
|
return e`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.title ?? void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
|
-
l("arcgis-print-layout-panel",
|
|
54
|
+
l("arcgis-print-layout-panel", c);
|
|
52
55
|
export {
|
|
53
|
-
|
|
56
|
+
c as PrintLayoutPanel
|
|
54
57
|
};
|
|
@@ -1,31 +1,38 @@
|
|
|
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 { i as
|
|
6
|
-
import { u as c } from "../../chunks/useHandles.js";
|
|
2
|
+
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as c, html as i } from "lit";
|
|
4
|
+
import { LitElement as n } from "@arcgis/lumina";
|
|
5
|
+
import { i as r } from "../../chunks/utils3.js";
|
|
7
6
|
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
-
const
|
|
9
|
-
class
|
|
7
|
+
const p = c`:host{display:flex;flex-direction:column;flex-grow:1}calcite-tabs{flex-grow:1}calcite-tab{--calcite-tab-content-block-padding: 0}calcite-loader{margin-right:var(--calcite-spacing-xxs)}`;
|
|
8
|
+
class h extends n {
|
|
10
9
|
constructor() {
|
|
11
|
-
super(...arguments), this._prevLayoutTemplateId = null, this.
|
|
10
|
+
super(...arguments), this._prevLayoutTemplateId = null, this._selectedTab = "layout", this._hasPendingExport = !1, this.hideAdvancedOptions = !1, this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
12
11
|
}
|
|
13
12
|
static {
|
|
14
13
|
this.properties = { _selectedTab: 16, _hasPendingExport: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, showSaveAs: 5, arcgisSaveAs: 0, viewModel: 0, messages: 0, showTemplateSelector: 0, allowedFormatsForSaving: 1, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
15
14
|
}
|
|
16
15
|
static {
|
|
17
|
-
this.styles =
|
|
16
|
+
this.styles = p;
|
|
18
17
|
}
|
|
19
18
|
loaded() {
|
|
20
|
-
this.manager.onLifecycle(() =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
this.manager.onLifecycle(() => {
|
|
20
|
+
let t = [];
|
|
21
|
+
const e = () => {
|
|
22
|
+
t.forEach((a) => a.remove()), t = [];
|
|
23
|
+
}, s = () => {
|
|
24
|
+
e(), t = this.viewModel.exportedLinks.toArray().map((a) => d(() => a.state, () => this.requestUpdate(), { initial: !0 }));
|
|
25
|
+
};
|
|
26
|
+
s();
|
|
27
|
+
const l = this.viewModel.exportedLinks.on("change", s);
|
|
28
|
+
return () => {
|
|
29
|
+
l.remove(), e();
|
|
30
|
+
};
|
|
31
|
+
});
|
|
25
32
|
}
|
|
26
33
|
async _layoutTabChangeHandler() {
|
|
27
|
-
const
|
|
28
|
-
await this.viewModel.applyTemplate(
|
|
34
|
+
const e = (this._prevLayoutTemplateId ? this.viewModel.getLayoutTemplateById(this._prevLayoutTemplateId) : null) ?? this.viewModel.defaultTemplate;
|
|
35
|
+
await this.viewModel.applyTemplate(e), this._prevLayoutTemplateId = e?.id, this._selectedTab = "layout";
|
|
29
36
|
}
|
|
30
37
|
async _mapOnlyTabChangeHandler() {
|
|
31
38
|
this._updatePrevLayoutTemplateId(), await this.viewModel.applyTemplate("map-only"), this._selectedTab = "map-only";
|
|
@@ -37,14 +44,14 @@ class r extends l {
|
|
|
37
44
|
this._updatePrevLayoutTemplateId(), this._selectedTab = "exports";
|
|
38
45
|
}
|
|
39
46
|
_updatePrevLayoutTemplateId() {
|
|
40
|
-
!
|
|
47
|
+
!r(this.viewModel.templateOptions.layout) && this.viewModel.templateOptions.id && (this._prevLayoutTemplateId = this.viewModel.templateOptions.id);
|
|
41
48
|
}
|
|
42
49
|
render() {
|
|
43
|
-
const
|
|
44
|
-
return
|
|
50
|
+
const t = this.viewModel.exportedLinks.some(({ state: e }) => e === "pending");
|
|
51
|
+
return i`<calcite-tabs layout=center bordered><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${this._layoutTabChangeHandler} .selected=${this._selectedTab === "layout"}>${this.messages.layoutTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._mapOnlyTabChangeHandler} .selected=${this._selectedTab === "map-only"}>${this.messages.mapOnlyTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._exportsTabChangeHandler} .selected=${this._selectedTab === "exports"}>${t ? i`<calcite-loader inline label=loading scale=s></calcite-loader>` : null}${this.messages.exportsTab}</calcite-tab-title></calcite-tab-nav><calcite-tab selected><arcgis-print-layout-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .showTemplateSelector=${this.showTemplateSelector} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-layout-panel></calcite-tab><calcite-tab><arcgis-print-map-only-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-map-only-panel></calcite-tab><calcite-tab><arcgis-print-exports-panel .messages=${this.messages} .viewModel=${this.viewModel} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-exports-panel></calcite-tab></calcite-tabs>`;
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
|
-
|
|
54
|
+
o("arcgis-print-main-panel", h);
|
|
48
55
|
export {
|
|
49
|
-
|
|
56
|
+
h as PrintMainPanel
|
|
50
57
|
};
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { css as
|
|
4
|
-
import { watch as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class h extends c {
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as o, html as a } from "lit";
|
|
4
|
+
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
+
import { LitElement as r } from "@arcgis/lumina";
|
|
6
|
+
import { g as n, a as m, b as p } from "../../chunks/utils3.js";
|
|
7
|
+
import { useDirection as d } from "@arcgis/lumina/controllers";
|
|
8
|
+
const h = o`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`;
|
|
9
|
+
class g extends r {
|
|
11
10
|
constructor() {
|
|
12
|
-
super(...arguments), this.
|
|
11
|
+
super(...arguments), this._direction = d(), this._templateState = "not-loaded";
|
|
13
12
|
}
|
|
14
13
|
static {
|
|
15
14
|
this.properties = { _selectedTemplate: 16, _templateState: 16, viewModel: 0, messages: 0, showTemplateSelector: 0 };
|
|
16
15
|
}
|
|
17
16
|
static {
|
|
18
|
-
this.styles =
|
|
17
|
+
this.styles = h;
|
|
19
18
|
}
|
|
20
19
|
loaded() {
|
|
21
|
-
this.manager.onLifecycle(() =>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
this.manager.onLifecycle(() => {
|
|
21
|
+
let e;
|
|
22
|
+
const t = s(() => this.viewModel.templateOptions.id, (l) => {
|
|
23
|
+
e?.remove(), this._selectedTemplate = l ? this.viewModel.getLayoutTemplateById(l) ?? void 0 : void 0, e = s(() => this._selectedTemplate?.state, (i) => this._templateState = i ?? "not-loaded", { initial: !0 });
|
|
24
|
+
}, { initial: !0 });
|
|
25
|
+
return () => {
|
|
26
|
+
t.remove(), e?.remove();
|
|
27
|
+
};
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
30
|
render() {
|
|
28
|
-
const e = this._selectedTemplate ?
|
|
29
|
-
return
|
|
31
|
+
const e = this._selectedTemplate ? n(this._selectedTemplate, this.messages) : this.messages.selectTemplate;
|
|
32
|
+
return a`<calcite-block class="template-select-container" .description=${m(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState === "loading"} @click=${this.showTemplateSelector} @keydown=${(t) => {
|
|
30
33
|
(t.key === "Enter" || t.key === " ") && this.showTemplateSelector();
|
|
31
|
-
}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout ?
|
|
34
|
+
}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout ? p(this._selectedTemplate.layout) : null) || "custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState === "error" ? a`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>` : null}<calcite-icon class="template-select-arrow" .icon=${this._direction === "rtl" ? "chevron-left" : "chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`;
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
|
-
|
|
37
|
+
c("arcgis-print-template-select", g);
|
|
35
38
|
export {
|
|
36
|
-
|
|
39
|
+
g as PrintTemplateSelect
|
|
37
40
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as p, html as l } from "lit";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as u, nothing as h } from "@arcgis/lumina";
|
|
6
|
-
import { i as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class y extends u {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments), this._handles = w("disconnect");
|
|
12
|
-
}
|
|
6
|
+
import { i as o, r as g, a as v, g as f, b as T } from "../../chunks/utils3.js";
|
|
7
|
+
const w = p`:host{overflow-y:hidden;display:flex;flex:1 0}.template-select-flow-item-container{display:flex;flex-direction:column;justify-content:space-between;overflow-y:hidden;flex-grow:1}.template-select-flow-item-container .template-select-flow-item-content{display:flex;flex-direction:column;overflow-y:auto;flex:1 0}.template-select-flow-item-container .template-select-flow-item-content .template-select-flow-item-list-heading{display:flex;gap:var(--calcite-spacing-xs);align-items:center;justify-content:space-between;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);background-color:var(--calcite-color-foreground-2);border-bottom:1px solid var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-semibold)}.template-button-container{padding:var(--calcite-spacing-md)}.template-done-button{width:100%}`;
|
|
8
|
+
class $ extends u {
|
|
13
9
|
static {
|
|
14
10
|
this.properties = { _selectedTemplate: 16, excludeOrganizationTemplates: 5, viewModel: 0, messages: 0, hideTemplateSelector: 0 };
|
|
15
11
|
}
|
|
16
12
|
static {
|
|
17
|
-
this.styles =
|
|
13
|
+
this.styles = w;
|
|
18
14
|
}
|
|
19
15
|
loaded() {
|
|
20
|
-
this.manager.onLifecycle(() =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
this.manager.onLifecycle(() => {
|
|
17
|
+
let e;
|
|
18
|
+
const i = c(() => this.viewModel.templateOptions.id, (t) => {
|
|
19
|
+
e?.remove(), this._selectedTemplate = t ? this.viewModel.getLayoutTemplateById(t) ?? void 0 : void 0, e = c(() => this._selectedTemplate?.state, () => this.requestUpdate(), { initial: !0 });
|
|
20
|
+
}, { initial: !0 });
|
|
21
|
+
return () => {
|
|
22
|
+
i.remove(), e?.remove();
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
25
|
}
|
|
26
26
|
_getPortalTemplates() {
|
|
27
|
-
return this.viewModel.includeDefaultTemplates && !this.excludeOrganizationTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !
|
|
27
|
+
return this.viewModel.includeDefaultTemplates && !this.excludeOrganizationTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !o(e) && !!i?.id) : [];
|
|
28
28
|
}
|
|
29
29
|
_getDefaultTemplates() {
|
|
30
|
-
return this.viewModel.includeDefaultTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !
|
|
30
|
+
return this.viewModel.includeDefaultTemplates ? this.viewModel.defaultTemplates.toArray().filter(({ layout: e, layoutItem: i }) => !o(e) && !i?.id) : [];
|
|
31
31
|
}
|
|
32
32
|
_getPrintServiceTemplates() {
|
|
33
|
-
return !this.viewModel.includeDefaultTemplates || !this._getDefaultTemplates().length ? this.viewModel.printServiceTemplates.toArray().filter(({ layout: e }) => !
|
|
33
|
+
return !this.viewModel.includeDefaultTemplates || !this._getDefaultTemplates().length ? this.viewModel.printServiceTemplates.toArray().filter(({ layout: e }) => !o(e)) : [];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const { messages: e } = this, i = g.test(this.viewModel.portal?.url), t = this.viewModel.browseTemplates.toArray(), a = this._getPortalTemplates(), s = this._getDefaultTemplates(), n = this._getPrintServiceTemplates(), r = t.length + a.length + s.length + n.length > 15;
|
|
@@ -40,7 +40,7 @@ class y extends u {
|
|
|
40
40
|
return e.map((t) => l`<calcite-list-item .description=${v(t)} .label=${f(t, this.messages)} .selected=${t.id === this.viewModel.templateOptions.id} title=${t.description ?? "" ?? h} .value=${t}><calcite-icon .icon=${(t.layout ? T(t.layout) : null) || "custom-print"} slot=content-start></calcite-icon>${t.state === "loading" ? l`<calcite-loader inline label=loading scale=s slot=content-end></calcite-loader>` : null}${t?.state === "error" ? l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=content-end></calcite-icon>` : null}${i ? l`<calcite-action icon=trash @click=${() => this.viewModel.removePortalTemplate(t)} slot=actions-end text=delete></calcite-action>` : null}</calcite-list-item>`);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
m("arcgis-print-template-selector",
|
|
43
|
+
m("arcgis-print-template-selector", $);
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
$ as PrintTemplateSelector
|
|
46
46
|
};
|