@arcgis/map-components 5.1.0-next.109 → 5.1.0-next.111
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/2SFQKFYO.js +2 -0
- package/dist/cdn/{X3YFIQGW.js → 3J457ML6.js} +1 -1
- package/dist/cdn/4SNOTPCF.js +2 -0
- package/dist/cdn/6QQ4WA4M.js +2 -0
- package/dist/cdn/{R4VSDUYE.js → KYVT2WTY.js} +1 -1
- package/dist/cdn/PFVM4TPN.js +2 -0
- package/dist/cdn/TBKV4QZ6.js +2 -0
- package/dist/cdn/TFFF4SV3.js +2 -0
- package/dist/cdn/YUQI6BEG.js +2 -0
- package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-item-indicator.js +24 -27
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +118 -120
- package/dist/components/arcgis-coordinate-conversion/index.js +2 -1
- package/dist/components/arcgis-features/customElement.d.ts +9 -1
- package/dist/components/arcgis-features/customElement.js +76 -64
- package/dist/components/arcgis-layer-list-new/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +24 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -1
- package/dist/components/arcgis-presentation/customElement.js +12 -11
- package/dist/components/arcgis-print/customElement.d.ts +30 -3
- package/dist/components/arcgis-print-export-button/customElement.js +13 -8
- package/dist/components/arcgis-print-export-button/index.js +1 -0
- package/dist/components/arcgis-print-template-selector/customElement.js +4 -4
- package/dist/components/arcgis-scene/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +141 -78
- package/dist/components/arcgis-shadow-cast/customElement.js +111 -90
- 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 +5 -5
- package/dist/cdn/2FEX7FAZ.js +0 -2
- package/dist/cdn/2SZ3WJGX.js +0 -2
- package/dist/cdn/KOBC25QZ.js +0 -2
- package/dist/cdn/O2ECQYMW.js +0 -2
- package/dist/cdn/R6JH26DC.js +0 -2
- package/dist/cdn/RED6TO3K.js +0 -2
- package/dist/cdn/XVWZZS5G.js +0 -2
|
@@ -265,6 +265,7 @@ class Y extends C {
|
|
|
265
265
|
const p = s[0];
|
|
266
266
|
return this._setFallbackPopupTemplate(p, o, r), this._setFallbackGeometry(p, t?.location), { success: !0, features: s, popupInfo: t };
|
|
267
267
|
}
|
|
268
|
+
debugger;
|
|
268
269
|
return { success: !1, features: s };
|
|
269
270
|
}
|
|
270
271
|
_getLayersFromView(e, t, s) {
|
|
@@ -348,7 +349,7 @@ class Y extends C {
|
|
|
348
349
|
}
|
|
349
350
|
//#endregion
|
|
350
351
|
}
|
|
351
|
-
const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }),
|
|
352
|
+
const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @__PURE__ */ new WeakMap(), b = () => ({
|
|
352
353
|
topCenter: { ...g },
|
|
353
354
|
topLeft: { ...g },
|
|
354
355
|
topRight: { ...g },
|
|
@@ -363,12 +364,12 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), b = /* @_
|
|
|
363
364
|
bottomLeft: { ...i.bottomLeft },
|
|
364
365
|
bottomRight: { ...i.bottomRight }
|
|
365
366
|
}), F = (i) => {
|
|
366
|
-
let e =
|
|
367
|
+
let e = y.get(i);
|
|
367
368
|
return e || (e = {
|
|
368
369
|
observedGroups: /* @__PURE__ */ new Map(),
|
|
369
|
-
observedSizes:
|
|
370
|
+
observedSizes: b(),
|
|
370
371
|
subscribers: /* @__PURE__ */ new Set()
|
|
371
|
-
},
|
|
372
|
+
}, y.set(i, e)), e;
|
|
372
373
|
}, ee = (i) => {
|
|
373
374
|
const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, o = i?.bottomRight.value;
|
|
374
375
|
return e && t && s && n && r && o ? {
|
|
@@ -383,7 +384,7 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), b = /* @_
|
|
|
383
384
|
const e = L(i.observedSizes);
|
|
384
385
|
i.subscribers.forEach((t) => t(e));
|
|
385
386
|
}, se = (i, e) => {
|
|
386
|
-
const t =
|
|
387
|
+
const t = y.get(i);
|
|
387
388
|
if (!t)
|
|
388
389
|
return;
|
|
389
390
|
let s = !1;
|
|
@@ -411,8 +412,8 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), b = /* @_
|
|
|
411
412
|
}, ne = (i, e) => {
|
|
412
413
|
const t = F(i);
|
|
413
414
|
return t.subscribers.add(e), e(L(t.observedSizes)), () => {
|
|
414
|
-
const s =
|
|
415
|
-
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(),
|
|
415
|
+
const s = y.get(i);
|
|
416
|
+
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), y.delete(i)));
|
|
416
417
|
};
|
|
417
418
|
};
|
|
418
419
|
class re extends C {
|
|
@@ -426,10 +427,10 @@ class re extends C {
|
|
|
426
427
|
* @param component The host component that owns the slot group elements.
|
|
427
428
|
*/
|
|
428
429
|
constructor(e) {
|
|
429
|
-
super(e), this.exports =
|
|
430
|
+
super(e), this.exports = b();
|
|
430
431
|
}
|
|
431
432
|
hostDisconnected() {
|
|
432
|
-
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports =
|
|
433
|
+
this.#i?.(), this.#i = void 0, this.#e = void 0, this.#t = void 0, this.exports = b();
|
|
433
434
|
}
|
|
434
435
|
hostLifecycle() {
|
|
435
436
|
return [
|
|
@@ -438,7 +439,7 @@ class re extends C {
|
|
|
438
439
|
(t) => {
|
|
439
440
|
if (this.#e !== t) {
|
|
440
441
|
if (this.#i?.(), this.#i = void 0, this.#e = t, this.#t = t?.slotGroupRefs, !t) {
|
|
441
|
-
this.exports =
|
|
442
|
+
this.exports = b();
|
|
442
443
|
return;
|
|
443
444
|
}
|
|
444
445
|
this.#i = ne(t, (s) => {
|
|
@@ -466,7 +467,7 @@ class re extends C {
|
|
|
466
467
|
}
|
|
467
468
|
// Compares the newly measured sizes against the currently exported values.
|
|
468
469
|
#n(e) {
|
|
469
|
-
const t = this.exports ??
|
|
470
|
+
const t = this.exports ?? b();
|
|
470
471
|
return _.every((s) => {
|
|
471
472
|
const n = t[s], r = e[s];
|
|
472
473
|
return n.width === r.width && n.height === r.height;
|
|
@@ -267,7 +267,8 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
267
267
|
chooseTemplate?: string | undefined;
|
|
268
268
|
templateList?: string | undefined;
|
|
269
269
|
generatingExport?: string | undefined;
|
|
270
|
-
|
|
270
|
+
consumesCredits?: string | undefined;
|
|
271
|
+
credits?: string | undefined;
|
|
271
272
|
templatesNoLongerAvailable?: string | undefined;
|
|
272
273
|
templatesNoLongerAvailableDescription?: string | undefined;
|
|
273
274
|
myTemplates?: string | undefined;
|
|
@@ -287,6 +288,14 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
287
288
|
"nautical-miles"?: string | undefined;
|
|
288
289
|
milesAndKilometers?: string | undefined;
|
|
289
290
|
feetAndMeters?: string | undefined;
|
|
291
|
+
outOfCredits?: string | undefined;
|
|
292
|
+
outOfCreditsDescription?: string | undefined;
|
|
293
|
+
customerService?: string | undefined;
|
|
294
|
+
contactCustomerService?: string | undefined;
|
|
295
|
+
restrictedStatus?: string | undefined;
|
|
296
|
+
restrictedStatusDescription?: string | undefined;
|
|
297
|
+
suspendedStatus?: string | undefined;
|
|
298
|
+
suspendedStatusDescription?: string | undefined;
|
|
290
299
|
};
|
|
291
300
|
/** @internal */
|
|
292
301
|
protected messages: {
|
|
@@ -353,7 +362,8 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
353
362
|
chooseTemplate: string;
|
|
354
363
|
templateList: string;
|
|
355
364
|
generatingExport: string;
|
|
356
|
-
|
|
365
|
+
consumesCredits: string;
|
|
366
|
+
credits: string;
|
|
357
367
|
templatesNoLongerAvailable: string;
|
|
358
368
|
templatesNoLongerAvailableDescription: string;
|
|
359
369
|
myTemplates: string;
|
|
@@ -373,6 +383,14 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
373
383
|
"nautical-miles": string;
|
|
374
384
|
milesAndKilometers: string;
|
|
375
385
|
feetAndMeters: string;
|
|
386
|
+
outOfCredits: string;
|
|
387
|
+
outOfCreditsDescription: string;
|
|
388
|
+
customerService: string;
|
|
389
|
+
contactCustomerService: string;
|
|
390
|
+
restrictedStatus: string;
|
|
391
|
+
restrictedStatusDescription: string;
|
|
392
|
+
suspendedStatus: string;
|
|
393
|
+
suspendedStatusDescription: string;
|
|
376
394
|
} & T9nMeta<{
|
|
377
395
|
componentLabel: string;
|
|
378
396
|
title: string;
|
|
@@ -437,7 +455,8 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
437
455
|
chooseTemplate: string;
|
|
438
456
|
templateList: string;
|
|
439
457
|
generatingExport: string;
|
|
440
|
-
|
|
458
|
+
consumesCredits: string;
|
|
459
|
+
credits: string;
|
|
441
460
|
templatesNoLongerAvailable: string;
|
|
442
461
|
templatesNoLongerAvailableDescription: string;
|
|
443
462
|
myTemplates: string;
|
|
@@ -457,6 +476,14 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
457
476
|
"nautical-miles": string;
|
|
458
477
|
milesAndKilometers: string;
|
|
459
478
|
feetAndMeters: string;
|
|
479
|
+
outOfCredits: string;
|
|
480
|
+
outOfCreditsDescription: string;
|
|
481
|
+
customerService: string;
|
|
482
|
+
contactCustomerService: string;
|
|
483
|
+
restrictedStatus: string;
|
|
484
|
+
restrictedStatusDescription: string;
|
|
485
|
+
suspendedStatus: string;
|
|
486
|
+
suspendedStatusDescription: string;
|
|
460
487
|
}>;
|
|
461
488
|
/**
|
|
462
489
|
* The [spatial reference](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/) used to render the printed map on the server.
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c
|
|
3
|
-
import { html as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
|
|
2
|
+
import { c } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as p, html as o } from "lit";
|
|
4
|
+
import { LitElement as d } from "@arcgis/lumina";
|
|
5
|
+
import { r as m } from "../../chunks/utils3.js";
|
|
6
|
+
const h = p`.export-button-container{display:flex;flex-direction:column;align-items:center;gap:.5rem}`;
|
|
7
|
+
class u extends d {
|
|
6
8
|
static {
|
|
7
9
|
this.properties = { viewModel: 0, messages: 0, fileName: 1, selectExportsTab: 0 };
|
|
8
10
|
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = h;
|
|
13
|
+
}
|
|
9
14
|
loaded() {
|
|
10
15
|
this.manager.onLifecycle(() => []);
|
|
11
16
|
}
|
|
@@ -13,11 +18,11 @@ class n extends l {
|
|
|
13
18
|
this.viewModel.export(this.fileName || this.messages.untitled), this.selectExportsTab();
|
|
14
19
|
}
|
|
15
20
|
render() {
|
|
16
|
-
const { messages: t } = this, { layout:
|
|
17
|
-
return r`<
|
|
21
|
+
const { messages: t } = this, { layout: i, layoutItem: e, format: l } = this.viewModel.templateOptions, a = this.viewModel.state !== "ready" || !(i || e), r = m.test(this.viewModel.portal?.url), s = `5 ${t.credits}`, n = !!e?.id;
|
|
22
|
+
return o`<div class="export-button-container">${r && n ? o`<calcite-chip icon=credits kind=neutral .label=${s} scale=s>${s}</calcite-chip>` : null}<calcite-button .ariaLabel=${t.exportDescription} .disabled=${a || !(i || e?.id) && !l} @click=${this._handlePrintMap} scale=l width=full>${t.export}</calcite-button></div>`;
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
|
-
|
|
25
|
+
c("arcgis-print-export-button", u);
|
|
21
26
|
export {
|
|
22
|
-
|
|
27
|
+
u as PrintExportButton
|
|
23
28
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { c as m } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as p, html as l } from "lit";
|
|
4
4
|
import { watch as c } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import { LitElement as
|
|
5
|
+
import { LitElement as u, nothing as h } from "@arcgis/lumina";
|
|
6
6
|
import { i as o, r as g, a as v, g as f, b as T } from "../../chunks/utils3.js";
|
|
7
7
|
import { u as w } from "../../chunks/useHandles.js";
|
|
8
8
|
const $ = 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;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%}`;
|
|
9
|
-
class y extends
|
|
9
|
+
class y extends u {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this._handles = w("disconnect");
|
|
12
12
|
}
|
|
@@ -34,10 +34,10 @@ class y extends h {
|
|
|
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;
|
|
37
|
-
return l`<div class="template-select-flow-item-container"><div class="template-select-flow-item-content"><slot></slot><calcite-list .filterEnabled=${r} .filterProps=${["label"]} .label=${e.templateList} selection-mode=single-persist @calciteListChange=${({ currentTarget: d }) => this.viewModel.applyTemplate(d.selectedItems[0]?.value)}>${t.length ? l`<div><div class="template-select-flow-item-list-heading">${e.myTemplates}${i ? l`<calcite-chip appearance=outline kind=neutral .label=${e.
|
|
37
|
+
return l`<div class="template-select-flow-item-container"><div class="template-select-flow-item-content"><slot></slot><calcite-list .filterEnabled=${r} .filterProps=${["label"]} .label=${e.templateList} selection-mode=single-persist @calciteListChange=${({ currentTarget: d }) => this.viewModel.applyTemplate(d.selectedItems[0]?.value)}>${t.length ? l`<div><div class="template-select-flow-item-list-heading">${e.myTemplates}${i ? l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>` : null}</div>${this._renderLayoutTemplates(t, !0)}</div>` : null}${a.length ? l`<div><div class="template-select-flow-item-list-heading">${e.organizationTemplates}${i ? l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>` : null}</div>${this._renderLayoutTemplates(a)}</div>` : null}${t.length || a.length ? s.length ? l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(s)}</div>` : null : this._renderLayoutTemplates(s)}${t.length || a.length ? n.length ? l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(n)}</div>` : null : this._renderLayoutTemplates(n)}</calcite-list></div><div class="template-button-container"><calcite-button class="template-done-button" @click=${this.hideTemplateSelector}>Done</calcite-button></div></div>`;
|
|
38
38
|
}
|
|
39
39
|
_renderLayoutTemplates(e, i = !1) {
|
|
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 ?? "" ??
|
|
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
43
|
m("arcgis-print-template-selector", y);
|
|
@@ -158,7 +158,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
158
158
|
* [CIMSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/CIMSymbol/),
|
|
159
159
|
* [PictureMarkerSymbol](https://developers.arcgis.com/javascript/latest/references/core/symbols/PictureMarkerSymbol/)
|
|
160
160
|
* from a GIF/animated PNG), animated renderers
|
|
161
|
-
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/
|
|
161
|
+
* ([FlowRenderer](https://developers.arcgis.com/javascript/latest/references/core/renderers/FlowRenderer/)),
|
|
162
162
|
* animated layers ([MediaLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/MediaLayer/),
|
|
163
163
|
* [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/)), and
|
|
164
164
|
* animations triggered by view navigation (for example,
|