@arcgis/map-components 5.1.0-next.124 → 5.1.0-next.125
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/K4QY44EL.js +2 -0
- package/dist/cdn/{XYUG5M3W.js → T6JFYEP2.js} +1 -1
- package/dist/cdn/YJT2XNV5.js +2 -0
- package/dist/cdn/ZJINX5IW.js +2 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +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/customElement.d.ts +10 -8
- package/dist/components/arcgis-feature-templates/customElement.js +198 -247
- 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 +2 -2
- package/dist/components/arcgis-slider-scale-range/customElement.js +1 -1
- package/dist/components/arcgis-template-image/customElement.d.ts +2 -2
- 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/package.json +5 -5
- package/dist/cdn/DZMN2UH5.js +0 -2
- package/dist/cdn/GMOWIPQL.js +0 -2
- package/dist/cdn/OCMGQ4AF.js +0 -2
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +0 -33
|
@@ -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";
|