@arcgis/map-components 5.2.0-next.5 → 5.2.0-next.6
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/5DNVHLO6.js +2 -0
- package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
- package/dist/cdn/{AOC4VUP6.js → 6OOQ7GIC.js} +1 -1
- package/dist/cdn/ABPHGXQN.js +2 -0
- package/dist/cdn/CZXCSL3K.js +2 -0
- package/dist/cdn/L34RL7Y3.js +2 -0
- package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-daylight/customElement.js +34 -27
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
- package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +16 -16
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-version-management/customElement.js +21 -20
- package/dist/components/arcgis-version-management/index.js +1 -0
- 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/index.d.ts +14 -0
- package/dist/loader.js +2 -0
- package/dist/types/lumina.d.ts +14 -0
- package/dist/types/preact.d.ts +16 -0
- package/dist/types/react.d.ts +18 -0
- package/dist/types/stencil.d.ts +14 -0
- package/package.json +5 -5
- package/dist/cdn/IBTOXDST.js +0 -2
- package/dist/cdn/YJCBT5VK.js +0 -2
|
@@ -43,7 +43,7 @@ function Ee(e, t, i, a, s, o) {
|
|
|
43
43
|
const g = o.objectIdField ?? "";
|
|
44
44
|
return e.forEach((m) => {
|
|
45
45
|
if (m.name !== g && !h.includes(m.name) && !p.includes(m.name) && !s.includes(m.name) && m.type !== "global-id" && (u === "" || u !== m.name)) {
|
|
46
|
-
const f =
|
|
46
|
+
const f = Oe(m, t);
|
|
47
47
|
f.match && f.targetField && (l[f.targetField?.name] = i[m.name]);
|
|
48
48
|
}
|
|
49
49
|
}), l;
|
|
@@ -68,7 +68,7 @@ function Te(e, t) {
|
|
|
68
68
|
return !1;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Oe(e, t) {
|
|
72
72
|
const i = { match: !1, sourceField: null, targetField: null };
|
|
73
73
|
for (const a of t)
|
|
74
74
|
if (Te(e, a)) {
|
|
@@ -82,7 +82,7 @@ async function se(e, t, i, a) {
|
|
|
82
82
|
let s = !0;
|
|
83
83
|
const o = { hasAsyncArcadeExpressions: !1 }, l = e.items.filter((h) => h.type === "add");
|
|
84
84
|
for (const h of l) {
|
|
85
|
-
const p = h.graphic.clone(), u =
|
|
85
|
+
const p = h.graphic.clone(), u = Ge(
|
|
86
86
|
h.graphic,
|
|
87
87
|
h.layer
|
|
88
88
|
);
|
|
@@ -109,7 +109,7 @@ async function se(e, t, i, a) {
|
|
|
109
109
|
}
|
|
110
110
|
return s;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ge(e, t) {
|
|
113
113
|
if (t.type === "feature" || t.type === "subtype-sublayer")
|
|
114
114
|
return t;
|
|
115
115
|
const i = t.findSublayerForFeature(e);
|
|
@@ -416,7 +416,7 @@ A([
|
|
|
416
416
|
v = A([
|
|
417
417
|
C("components.paste.commands.PasteCommand")
|
|
418
418
|
], v);
|
|
419
|
-
var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor,
|
|
419
|
+
var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor, O = (e, t, i, a) => {
|
|
420
420
|
for (var s = a > 1 ? void 0 : a ? je(t, i) : t, o = e.length - 1, l; o >= 0; o--)
|
|
421
421
|
(l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
422
422
|
return a && s && Be(t, i, s), s;
|
|
@@ -533,25 +533,25 @@ let F = class extends v {
|
|
|
533
533
|
return e.pasteAppendTitle;
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
|
|
536
|
+
O([
|
|
537
537
|
r()
|
|
538
538
|
], F.prototype, "id", 1);
|
|
539
|
-
|
|
539
|
+
O([
|
|
540
540
|
r()
|
|
541
541
|
], F.prototype, "icon", 1);
|
|
542
|
-
|
|
542
|
+
O([
|
|
543
543
|
r()
|
|
544
544
|
], F.prototype, "immediate", 1);
|
|
545
|
-
|
|
545
|
+
O([
|
|
546
546
|
r()
|
|
547
547
|
], F.prototype, "mustShowOnCommandPage", 1);
|
|
548
|
-
|
|
548
|
+
O([
|
|
549
549
|
r()
|
|
550
550
|
], F.prototype, "commandEnabled", 1);
|
|
551
|
-
F =
|
|
551
|
+
F = O([
|
|
552
552
|
C("components.paste.commands.PasteAppendCommand")
|
|
553
553
|
], F);
|
|
554
|
-
var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor,
|
|
554
|
+
var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, G = (e, t, i, a) => {
|
|
555
555
|
for (var s = a > 1 ? void 0 : a ? Re(t, i) : t, o = e.length - 1, l; o >= 0; o--)
|
|
556
556
|
(l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
557
557
|
return a && s && We(t, i, s), s;
|
|
@@ -669,22 +669,22 @@ let _ = class extends v {
|
|
|
669
669
|
return e.pasteSubtractTitle;
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
|
|
672
|
+
G([
|
|
673
673
|
r()
|
|
674
674
|
], _.prototype, "id", 1);
|
|
675
|
-
|
|
675
|
+
G([
|
|
676
676
|
r()
|
|
677
677
|
], _.prototype, "icon", 1);
|
|
678
|
-
|
|
678
|
+
G([
|
|
679
679
|
r()
|
|
680
680
|
], _.prototype, "immediate", 1);
|
|
681
|
-
|
|
681
|
+
G([
|
|
682
682
|
r()
|
|
683
683
|
], _.prototype, "mustShowOnCommandPage", 1);
|
|
684
|
-
|
|
684
|
+
G([
|
|
685
685
|
r()
|
|
686
686
|
], _.prototype, "commandEnabled", 1);
|
|
687
|
-
_ =
|
|
687
|
+
_ = G([
|
|
688
688
|
C("components.paste.commands.PasteSubtractCommand")
|
|
689
689
|
], _);
|
|
690
690
|
var Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, k = (e, t, i, a) => {
|
|
@@ -1690,25 +1690,14 @@ class st extends he {
|
|
|
1690
1690
|
if (!this._templateGallery.value || this.viewModel.activeFlowPage !== "gallery-page")
|
|
1691
1691
|
return;
|
|
1692
1692
|
const t = this._templateGallery.value;
|
|
1693
|
-
if (t.state !== "ready")
|
|
1694
|
-
return;
|
|
1695
1693
|
if (this.viewModel.pasteTemplateIsValid || (this.viewModel.pasteTemplate = void 0), this.viewModel.pasteTemplate !== void 0) {
|
|
1696
|
-
t.
|
|
1694
|
+
t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
|
|
1697
1695
|
return;
|
|
1698
1696
|
}
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
i = a.items[0];
|
|
1704
|
-
break;
|
|
1705
|
-
}
|
|
1706
|
-
continue;
|
|
1707
|
-
}
|
|
1708
|
-
i = a;
|
|
1709
|
-
break;
|
|
1710
|
-
}
|
|
1711
|
-
i && t.select(i);
|
|
1697
|
+
if (t.effectiveTemplates.length === 0)
|
|
1698
|
+
return;
|
|
1699
|
+
const i = t.effectiveTemplates[0].templates[0];
|
|
1700
|
+
i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
|
|
1712
1701
|
});
|
|
1713
1702
|
}
|
|
1714
1703
|
_renderFlowCommandStart(t) {
|
|
@@ -1775,11 +1764,11 @@ class st extends he {
|
|
|
1775
1764
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1776
1765
|
}} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
|
|
1777
1766
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1778
|
-
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates
|
|
1767
|
+
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
|
|
1779
1768
|
this._checkAndUpdateInitialPasteTemplate();
|
|
1780
|
-
}} @
|
|
1781
|
-
this.viewModel.pasteTemplate = i.detail.
|
|
1782
|
-
}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates
|
|
1769
|
+
}} @arcgisSelectTemplate=${(i) => {
|
|
1770
|
+
this.viewModel.pasteTemplate = i.detail.template;
|
|
1771
|
+
}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
|
|
1783
1772
|
i.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.viewModel.activeFlowPage = "commands-page");
|
|
1784
1773
|
}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);
|
|
1785
1774
|
}
|
|
@@ -10,7 +10,7 @@ import "@esri/calcite-components/components/calcite-link";
|
|
|
10
10
|
import "@esri/calcite-components/components/calcite-list";
|
|
11
11
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
12
12
|
import "@esri/calcite-components/components/calcite-icon";
|
|
13
|
-
import "../arcgis-feature-templates
|
|
13
|
+
import "../arcgis-feature-templates/index.js";
|
|
14
14
|
import "../arcgis-feature-title/index.js";
|
|
15
15
|
import "../arcgis-feature-image/index.js";
|
|
16
16
|
import "@esri/calcite-components/components/calcite-chip";
|
|
@@ -5,7 +5,7 @@ import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } fr
|
|
|
5
5
|
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import { u as v } from "../../chunks/useView.js";
|
|
7
7
|
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
-
import { css as L, html as
|
|
8
|
+
import { css as L, html as r } from "lit";
|
|
9
9
|
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
10
10
|
import { createRef as b, ref as w } from "lit/directives/ref.js";
|
|
11
11
|
import T from "@arcgis/core/portal/Portal.js";
|
|
@@ -84,7 +84,7 @@ const h = /* @__PURE__ */ new Set([
|
|
|
84
84
|
"th-th",
|
|
85
85
|
"zh-cn",
|
|
86
86
|
"zh-tw"
|
|
87
|
-
]), P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:
|
|
87
|
+
]), P = L`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`, l = [
|
|
88
88
|
{ id: "world", scale: 147914382, minScale: 147914382, maxScale: 1e8 },
|
|
89
89
|
{ id: "continent", scale: 5e7, minScale: 99999999, maxScale: 35e6 },
|
|
90
90
|
{ id: "countriesBig", scale: 25e6, minScale: 34999999, maxScale: 15e6 },
|
|
@@ -155,9 +155,9 @@ class R extends g {
|
|
|
155
155
|
if (s)
|
|
156
156
|
this._layerMinScaleLimit = s[0].scale === 0 ? l[0].minScale : Math.min(l[0].minScale, s[0].scale), !("resampling" in this.layer) || this.layer.resampling || (this._layerMaxScaleLimit = s[s.length - 1].scale);
|
|
157
157
|
else {
|
|
158
|
-
const
|
|
158
|
+
const m = this.layer && "maxScaleRange" in this.layer ? this.layer.maxScaleRange : null;
|
|
159
159
|
let n = 0, o = 0;
|
|
160
|
-
|
|
160
|
+
m && (n = m.minScale, o = m.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
|
|
161
161
|
}
|
|
162
162
|
this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
|
|
163
163
|
const c = this.layer;
|
|
@@ -236,21 +236,21 @@ class R extends g {
|
|
|
236
236
|
}
|
|
237
237
|
_renderScalePreviewPopover() {
|
|
238
238
|
const e = this._renderScalePreview();
|
|
239
|
-
return this.hidePreview || !e ? null :
|
|
239
|
+
return this.hidePreview || !e ? null : r`<div slot=popover>${e}</div>`;
|
|
240
240
|
}
|
|
241
241
|
render() {
|
|
242
|
-
return
|
|
242
|
+
return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode === "max-scale-only" ? "start" : this.mode === "min-scale-only" ? "end" : void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length - 1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e, i, a) => a(Math.round(this._mapSliderToScale(e)))} .values=${this.mode === "max-scale-only" ? [this._mapScaleToSlider(this._effectiveMaxScale)] : this.mode === "min-scale-only" ? [this._mapScaleToSlider(this._effectiveMinScale)] : [this._mapScaleToSlider(this._effectiveMinScale), this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${w(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale != null && this._renderCurrentScaleIndicator(this.view.scale) || ""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode !== "max-scale-only" && !this.hideMinScaleMenu ? [this._renderScaleMenuButtons("min"), this._renderScaleMenuPopover("min")] : r`<div></div>`}${this.mode !== "min-scale-only" && !this.hideMaxScaleMenu && [this._renderScaleMenuButtons("max"), this._renderScaleMenuPopover("max")] || ""}</div></div>`;
|
|
243
243
|
}
|
|
244
244
|
_renderCurrentScaleIndicator(e) {
|
|
245
245
|
const i = this._sliderRef.value, a = i?.fullRangeMax ?? this._mapScaleToSlider(l[l.length - 1].maxScale), t = i?.fullRangeMin ?? this._mapScaleToSlider(l[0].minScale), s = a - t, c = Math.min(100, Math.max(0, (this._mapScaleToSlider(e) - t) / s * 100));
|
|
246
|
-
return _("scale-indicator",
|
|
246
|
+
return _("scale-indicator", r`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({
|
|
247
247
|
position: "absolute",
|
|
248
248
|
left: `${c}%`
|
|
249
249
|
})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`);
|
|
250
250
|
}
|
|
251
251
|
_renderCustomScaleValue(e, i) {
|
|
252
252
|
const a = Math.round(i).toString();
|
|
253
|
-
return
|
|
253
|
+
return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected === e} @calciteListItemSelect=${(t) => {
|
|
254
254
|
const s = t.target.querySelector("calcite-input-number");
|
|
255
255
|
this._handleCustomScaleInput(e, s?.value ?? ""), this._customScaleSelected = e;
|
|
256
256
|
}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length - 1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${a} @click=${(t) => t.stopPropagation()} @keydown=${(t) => {
|
|
@@ -258,10 +258,10 @@ class R extends g {
|
|
|
258
258
|
}}></calcite-input-number></calcite-list-item>`;
|
|
259
259
|
}
|
|
260
260
|
_renderScaleMenuButtons(e) {
|
|
261
|
-
return
|
|
261
|
+
return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu === e ? "outline" : "transparent"}>${this._getDropdownLabel(e)}</calcite-button>`;
|
|
262
262
|
}
|
|
263
263
|
_renderScaleMenuPopover(e) {
|
|
264
|
-
return
|
|
264
|
+
return r`<calcite-popover auto-close .label=${`${e === "min" ? "Min" : "Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e === "max" ? "bottom-end" : "bottom-start"} .open=${this._activeMenu === e} scale=s @calcitePopoverOpen=${() => this._activeMenu = e} @calcitePopoverClose=${() => {
|
|
265
265
|
this._activeMenu === e && (this._activeMenu = null);
|
|
266
266
|
}}>${this._renderScaleMenu(e)}</calcite-popover>`;
|
|
267
267
|
}
|
|
@@ -269,14 +269,14 @@ class R extends g {
|
|
|
269
269
|
const i = Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)), a = Math.floor(this._mapScaleToSlider(this._effectiveMinScale)), t = e === "min" ? this._effectiveMinScale : this._effectiveMaxScale, s = this.messages.featuredScaleLabels;
|
|
270
270
|
if (!s)
|
|
271
271
|
return;
|
|
272
|
-
const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)),
|
|
272
|
+
const c = Math.floor(this._mapScaleToSlider(this.maxScaleLimit)), m = Math.floor(this._mapScaleToSlider(this.minScaleLimit)), n = l.filter((o, S) => e === "min" ? S < i && S >= m : S > a && S <= c).map((o) => this._renderScaleMenuItem({
|
|
273
273
|
scaleLabel: s[o.id],
|
|
274
274
|
scaleValue: o.scale,
|
|
275
275
|
isSelected: t === o.scale,
|
|
276
276
|
valueVisible: o.id !== "world" || this.showWorldValue,
|
|
277
277
|
type: e
|
|
278
278
|
}));
|
|
279
|
-
return
|
|
279
|
+
return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale != null && this._renderCustomScaleValue(e, t) || ""}${this.view?.scale != null ? this._renderScaleMenuItem({
|
|
280
280
|
scaleValue: this.view.scale,
|
|
281
281
|
scaleLabel: s.current,
|
|
282
282
|
isSelected: t === this.view.scale,
|
|
@@ -286,7 +286,7 @@ class R extends g {
|
|
|
286
286
|
}
|
|
287
287
|
_renderScaleMenuItem(e) {
|
|
288
288
|
const { scaleValue: i, scaleLabel: a, isSelected: t, valueVisible: s } = e, c = i === l[0].scale ? ` ${this.messages.aboveSuffix}` : i === l[l.length - 1].scale ? ` ${this.messages.belowSuffix}` : "";
|
|
289
|
-
return
|
|
289
|
+
return r`<calcite-list-item .label=${a} .selected=${t && this._customScaleSelected !== e.type} .description=${s ? `1:${Math.round(i).toLocaleString(this.messages._t9nLocale)}${c}` : void 0} @calciteListItemSelect=${() => {
|
|
290
290
|
this._setScale(e.type, i), this._customScaleSelected = null;
|
|
291
291
|
}}></calcite-list-item>`;
|
|
292
292
|
}
|
|
@@ -294,12 +294,12 @@ class R extends g {
|
|
|
294
294
|
const e = this._sliderRef.value?.activeValue;
|
|
295
295
|
if (typeof e != "number")
|
|
296
296
|
return null;
|
|
297
|
-
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a),
|
|
298
|
-
return
|
|
297
|
+
const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
|
|
298
|
+
return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
|
|
299
299
|
display: "block",
|
|
300
300
|
height: `${t}px`,
|
|
301
301
|
width: `${t}px`,
|
|
302
|
-
objectPosition:
|
|
302
|
+
objectPosition: m,
|
|
303
303
|
objectFit: "none"
|
|
304
304
|
})}></div>`;
|
|
305
305
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
|
|
3
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The Template Image component generates a feature swatch representing a
|
|
7
|
+
* Feature Template.
|
|
8
|
+
*
|
|
9
|
+
* @since 5.1
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export abstract class ArcgisTemplateImage extends LitElement {
|
|
13
|
+
accessor template: TemplateItem | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as h } from "../../chunks/runtime.js";
|
|
3
|
+
import g from "@arcgis/core/Graphic.js";
|
|
4
|
+
import { css as p, html as s } from "lit";
|
|
5
|
+
import { createRef as d, ref as f } from "lit/directives/ref.js";
|
|
6
|
+
import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
|
|
7
|
+
import { LitElement as b, safeStyleMap as y } from "@arcgis/lumina";
|
|
8
|
+
import * as l from "@arcgis/toolkit/log";
|
|
9
|
+
import { isSharedTemplateMetadata as u, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
10
|
+
import "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
|
|
11
|
+
import { renderPreviewHTML as w } from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
12
|
+
const I = p`.esri-thumbnail-preview{width:3%;height:32px;background-size:contain;background-position:center}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
|
|
13
|
+
async function D(e, t, i) {
|
|
14
|
+
if (u(e) && e.thumbnail) {
|
|
15
|
+
const c = `data:image/png;base64,${e.thumbnail.imageData}`;
|
|
16
|
+
return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${c})` })}></div>`;
|
|
17
|
+
}
|
|
18
|
+
const r = await x(t, e);
|
|
19
|
+
if (r == null)
|
|
20
|
+
return null;
|
|
21
|
+
const n = { maxSize: 24, ariaLabel: i?.ariaLabel };
|
|
22
|
+
v(e) && "renderer" in t && t.renderer?.type === "dictionary" && (n.fieldMap = t.renderer.fieldMap ?? void 0, n.feature = {
|
|
23
|
+
attributes: e.prototype.attributes ?? {}
|
|
24
|
+
});
|
|
25
|
+
const o = await w(r, n);
|
|
26
|
+
return o ? s`${_(o.outerHTML)}` : null;
|
|
27
|
+
}
|
|
28
|
+
async function x(e, t) {
|
|
29
|
+
if (u(t))
|
|
30
|
+
return await m(e);
|
|
31
|
+
if ("renderer" in e && e.renderer) {
|
|
32
|
+
const { renderer: i } = e, r = new g({ attributes: t.prototype.attributes });
|
|
33
|
+
if ("getSymbolAsync" in i) {
|
|
34
|
+
const a = await i.getSymbolAsync(r);
|
|
35
|
+
if (a)
|
|
36
|
+
return a;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return await m(e);
|
|
40
|
+
}
|
|
41
|
+
async function T(e) {
|
|
42
|
+
const t = e === "point" || e === "multipoint" ? await import("@arcgis/core/symbols/SimpleMarkerSymbol.js") : e === "polyline" ? await import("@arcgis/core/symbols/SimpleLineSymbol.js") : e === "polygon" || e === "mesh" || e === "multipatch" ? await import("@arcgis/core/symbols/SimpleFillSymbol.js") : null;
|
|
43
|
+
return t ? new t.default() : null;
|
|
44
|
+
}
|
|
45
|
+
async function m(e) {
|
|
46
|
+
return "geometryType" in e && e.geometryType ? await T(e.geometryType) : null;
|
|
47
|
+
}
|
|
48
|
+
class C extends b {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments), this._lastRun = 0, this._attempted = !1, this._isCurrentlyInView = !1, this._intersectionObserver = null, this._imageContainerDiv = d(), this._generatedImageData = null;
|
|
51
|
+
}
|
|
52
|
+
static {
|
|
53
|
+
this.properties = { _generatedImageData: 16, template: 0 };
|
|
54
|
+
}
|
|
55
|
+
static {
|
|
56
|
+
this.styles = I;
|
|
57
|
+
}
|
|
58
|
+
get rootLayer() {
|
|
59
|
+
return this.template?.layer?.type === "subtype-sublayer" ? this.template.layer.parent : this.template?.layer;
|
|
60
|
+
}
|
|
61
|
+
willUpdate(t) {
|
|
62
|
+
t.has("template") && (this.hasUpdated || this.template !== null) && this._resetData();
|
|
63
|
+
}
|
|
64
|
+
updated() {
|
|
65
|
+
!this._attempted && this._isCurrentlyInView && (this._attempted = !0, this._handleImage().catch((t) => {
|
|
66
|
+
l.log("warn", this, "Failed processing image");
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
loaded() {
|
|
70
|
+
this.manager.onLifecycle(() => (this._addIntersectionObserver(), () => {
|
|
71
|
+
this._removeIntersectionObserver();
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
_resetData() {
|
|
75
|
+
this._generatedImageData = null, this._attempted = !1;
|
|
76
|
+
}
|
|
77
|
+
async _generateImage() {
|
|
78
|
+
return this.template ? await D(this.template.template, this.template.layer) : "";
|
|
79
|
+
}
|
|
80
|
+
async _handleImage() {
|
|
81
|
+
const t = ++this._lastRun;
|
|
82
|
+
if (!this._generatedImageData || this._generatedImageData === "")
|
|
83
|
+
try {
|
|
84
|
+
const i = await this._generateImage();
|
|
85
|
+
if (this._lastRun !== t || this._generatedImageData === i)
|
|
86
|
+
return;
|
|
87
|
+
this._generatedImageData = i;
|
|
88
|
+
} finally {
|
|
89
|
+
this._attempted = !0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
_addIntersectionObserver() {
|
|
93
|
+
const t = {
|
|
94
|
+
// If the image gets within 50px in the Y axis, start the download.
|
|
95
|
+
rootMargin: "50px 0px",
|
|
96
|
+
threshold: 0.01
|
|
97
|
+
};
|
|
98
|
+
this._imageContainerDiv.value && requestAnimationFrame(() => {
|
|
99
|
+
this.isConnected && (this._intersectionObserver = new IntersectionObserver((i) => {
|
|
100
|
+
let r = !1;
|
|
101
|
+
i.forEach((a) => {
|
|
102
|
+
a.intersectionRatio > 0 && !r ? (r = !0, this._isCurrentlyInView = !0, this._handleImage().catch((n) => {
|
|
103
|
+
l.log("warn", this, "Failed processing image");
|
|
104
|
+
})) : this._isCurrentlyInView = !1;
|
|
105
|
+
});
|
|
106
|
+
}, t), this._intersectionObserver?.observe(this._imageContainerDiv.value));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
_removeIntersectionObserver() {
|
|
110
|
+
this._intersectionObserver?.disconnect(), this._intersectionObserver = null;
|
|
111
|
+
}
|
|
112
|
+
render() {
|
|
113
|
+
return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData ?? ""}</div>`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
h("arcgis-template-image", C);
|
|
117
|
+
export {
|
|
118
|
+
C as ArcgisTemplateImage
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -3,21 +3,22 @@ import { c as S } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { once as L, watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
4
|
import _ from "@arcgis/core/versionManagement/VersionManager.js";
|
|
5
5
|
import { LitElement as b, createEvent as u } from "@arcgis/lumina";
|
|
6
|
-
import { css as
|
|
6
|
+
import { css as N, render as C, html as v } from "lit";
|
|
7
7
|
import { createRef as F, ref as M } from "lit/directives/ref.js";
|
|
8
8
|
import { u as k } from "../../chunks/useT9n.js";
|
|
9
9
|
import { m as x } from "../../chunks/useViewModel.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import { d as $ } from "../../chunks/component-utils.js";
|
|
11
|
+
import { rethrowError as A } from "@arcgis/toolkit/log";
|
|
12
|
+
const T = N`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`, O = x(_), w = "map-components:version-management";
|
|
13
|
+
class U extends b {
|
|
13
14
|
constructor() {
|
|
14
|
-
super(...arguments), this.flowElement = F(), this.messages = k({ blocking: !0 }), this.viewModel =
|
|
15
|
+
super(...arguments), this.flowElement = F(), this.messages = k({ blocking: !0 }), this.viewModel = O(this), this._isInitialVersionInvalid = /* @__PURE__ */ new Map(), this._initialVersionInfos = [], this._showInvalidFeatureServiceNotice = !1, this.allowEditingDisabled = !1, this.autoDestroyDisabled = !1, this.closable = !1, this.pageSize = 5, this.state = this.viewModel.state, this.versioningStates = this.viewModel.versioningStates, this.view = this.viewModel.view, this.arcgisReady = u(), this.arcgisVersioningStateChanged = u();
|
|
15
16
|
}
|
|
16
17
|
static {
|
|
17
18
|
this.properties = { versionList: 16, _showInvalidFeatureServiceNotice: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, closable: 7, initialVersionInfos: 0, icon: 1, label: 3, messageOverrides: 0, mode: 1, pageSize: 9, referenceElement: 1, state: 32, versioningStates: 0, view: 0 };
|
|
18
19
|
}
|
|
19
20
|
static {
|
|
20
|
-
this.styles =
|
|
21
|
+
this.styles = T;
|
|
21
22
|
}
|
|
22
23
|
get initialVersionInfos() {
|
|
23
24
|
return this._initialVersionInfos;
|
|
@@ -37,7 +38,7 @@ class O extends b {
|
|
|
37
38
|
try {
|
|
38
39
|
this._changeToInitialVersion(e);
|
|
39
40
|
} catch (i) {
|
|
40
|
-
|
|
41
|
+
A(this)(i);
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
}), this.manager.onLifecycle(() => [
|
|
@@ -74,7 +75,7 @@ class O extends b {
|
|
|
74
75
|
versionInfo: i
|
|
75
76
|
};
|
|
76
77
|
this.versionPropertiesContainer = document.createElement("div");
|
|
77
|
-
const s =
|
|
78
|
+
const s = C(v`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`, this.versionPropertiesContainer), a = Array.from(s.parentNode.childNodes).find((c) => c.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");
|
|
78
79
|
return this.listenOn(a, "arcgisFlowItemBack", () => {
|
|
79
80
|
this._removeVersionPropertiesFlowItem(this.flowElement.value);
|
|
80
81
|
}), this.listenOn(a, "calciteFlowItemBack", (c) => {
|
|
@@ -197,37 +198,37 @@ class O extends b {
|
|
|
197
198
|
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES" && e.removeChild(i);
|
|
198
199
|
}
|
|
199
200
|
render() {
|
|
200
|
-
const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos: t, _isInitialVersionInvalid: n, label: o, messages: s, mode: a, pageSize: c, versionList: m, viewModel:
|
|
201
|
+
const { allowEditingDisabled: e, closable: i, flowElement: { value: r }, initialVersionInfos: t, _isInitialVersionInvalid: n, label: o, messages: s, mode: a, pageSize: c, versionList: m, viewModel: d, viewModel: { loadError: f, state: g } } = this, I = Array.from(d.serviceNameLookup, ([l, h]) => ({ url: l, name: h })), V = g !== "disabled" ? I.map((l) => {
|
|
201
202
|
const h = {
|
|
202
203
|
allowEditing: !e,
|
|
203
204
|
closable: i,
|
|
204
|
-
currentUser:
|
|
205
|
-
currentVersionIdentifier:
|
|
205
|
+
currentUser: d.userLookup.get(l.url),
|
|
206
|
+
currentVersionIdentifier: d.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,
|
|
206
207
|
executionError: void 0,
|
|
207
208
|
flowElement: r,
|
|
208
209
|
heading: o,
|
|
209
210
|
initialVersionInfos: t,
|
|
210
211
|
isInitialVersionInvalid: n,
|
|
211
|
-
isVersionAdministrator:
|
|
212
|
-
isVersioningApiAvailable: (
|
|
212
|
+
isVersionAdministrator: d.versionAdministratorLookup.get(l.url),
|
|
213
|
+
isVersioningApiAvailable: (d.serverVersionLookup.get(l.url) ?? 0) >= 11.2,
|
|
213
214
|
mode: a,
|
|
214
215
|
pageSize: c,
|
|
215
216
|
serviceName: l.name,
|
|
216
|
-
state:
|
|
217
|
+
state: g,
|
|
217
218
|
serviceUrl: l.url,
|
|
218
219
|
strings: s,
|
|
219
|
-
versionInfos:
|
|
220
|
+
versionInfos: d.versioningStateLookup.get(l.url)?.versionInfos ?? []
|
|
220
221
|
};
|
|
221
|
-
return
|
|
222
|
+
return v`<arcgis-version-management-service-item .serviceItemElementProps=${h} @arcgisFlowItemBack=${() => {
|
|
222
223
|
r && (this._removeVersionListFlowItem(r), this.versionList = void 0);
|
|
223
224
|
}} @arcgisFlowItemClose=${() => this._handleFlowItemClose()} @arcgisGetVersions=${async (p) => {
|
|
224
225
|
await this._refreshVersionList(p.detail.serviceUrl);
|
|
225
226
|
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(p) => this.versionList = p.detail}></arcgis-version-management-service-item>`;
|
|
226
|
-
}) : void 0, E =
|
|
227
|
-
return
|
|
227
|
+
}) : void 0, E = g === "disabled" && f != null ? v`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(f)}</div></calcite-notice>` : void 0, y = this._showInvalidFeatureServiceNotice ? v`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${() => this._showInvalidFeatureServiceNotice = !1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>` : void 0;
|
|
228
|
+
return v`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${M(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${$(o) ? s.label : o} @calciteFlowItemClose=${() => this._handleFlowItemClose()} .selected=${!m}>${y}${g === "loading" || g === "executing" ? v`<calcite-loader .label=${`${s.label} - loading`}></calcite-loader>` : v`<calcite-panel>${V}${E}</calcite-panel>`}</calcite-flow-item></calcite-flow></div>`;
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
|
-
S("arcgis-version-management",
|
|
231
|
+
S("arcgis-version-management", U);
|
|
231
232
|
export {
|
|
232
|
-
|
|
233
|
+
U as ArcgisVersionManagement
|
|
233
234
|
};
|
|
@@ -3,5 +3,6 @@ import "../arcgis-version-management-service-item/index.js";
|
|
|
3
3
|
import "@esri/calcite-components/components/calcite-notice";
|
|
4
4
|
import "@esri/calcite-components/components/calcite-flow";
|
|
5
5
|
import "@esri/calcite-components/components/calcite-flow-item";
|
|
6
|
+
import "@esri/calcite-components/components/calcite-loader";
|
|
6
7
|
import "@esri/calcite-components/components/calcite-panel";
|
|
7
8
|
export * from "./customElement.js";
|