@arcgis/map-components 4.32.0-next.47 → 4.32.0-next.49
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/arcgis-map-components/{PTGJKOHK.js → 24FV52G7.js} +2 -2
- package/dist/arcgis-map-components/{MJUMOONG.js → 3V6FJUHM.js} +2 -2
- package/dist/arcgis-map-components/{76GJWP5W.js → 4AFGJS4T.js} +2 -2
- package/dist/arcgis-map-components/{HROHFNSS.js → 4PU3AQ26.js} +2 -2
- package/dist/arcgis-map-components/{ZCPLK45Q.js → 4R6UCJYU.js} +2 -2
- package/dist/arcgis-map-components/{EOXBO4RH.js → 4W5WUVD3.js} +2 -2
- package/dist/arcgis-map-components/{PBJ2P6QO.js → 5UX353ZA.js} +2 -2
- package/dist/arcgis-map-components/{JLOFZ3HY.js → 6PGG5PII.js} +2 -2
- package/dist/arcgis-map-components/{EWPJIHIX.js → 6RKX63MQ.js} +2 -2
- package/dist/arcgis-map-components/{5NRNYEDM.js → 7DE2A3EN.js} +2 -2
- package/dist/arcgis-map-components/{OXYN5F22.js → 7JMFK4QR.js} +2 -2
- package/dist/arcgis-map-components/{WFTMORXO.js → AE3CH2NE.js} +2 -2
- package/dist/arcgis-map-components/{PRKJYBCJ.js → APFR2DZB.js} +2 -2
- package/dist/arcgis-map-components/{YLCCNC34.js → AZPYA45T.js} +1 -1
- package/dist/arcgis-map-components/{MZAVXUZD.js → BAGB4VON.js} +2 -2
- package/dist/arcgis-map-components/{BTUX2Z66.js → BGMDDAFY.js} +2 -2
- package/dist/arcgis-map-components/{YSSF4ED4.js → BJHQOQOD.js} +2 -2
- package/dist/arcgis-map-components/{GZQKU35F.js → C4LZJFZN.js} +2 -2
- package/dist/arcgis-map-components/{2RU5SPWR.js → CMVZ7BRB.js} +2 -2
- package/dist/arcgis-map-components/{IQHQSS6T.js → CR2W44A2.js} +2 -2
- package/dist/arcgis-map-components/{HNE6XW3C.js → DNRQNAM3.js} +2 -2
- package/dist/arcgis-map-components/{252D7QVH.js → DXIRVJAP.js} +2 -2
- package/dist/arcgis-map-components/{6B5VN2AZ.js → EEPDNN47.js} +2 -2
- package/dist/arcgis-map-components/{HG5L57KX.js → EJRA3LRG.js} +2 -2
- package/dist/arcgis-map-components/{FU24MSS4.js → ERH7TKFN.js} +2 -2
- package/dist/arcgis-map-components/{DFS6HCHO.js → F6F4554A.js} +2 -2
- package/dist/arcgis-map-components/{RQOCXUKO.js → GKGDONIQ.js} +2 -2
- package/dist/arcgis-map-components/{MYFPFCDM.js → GRSE6UXG.js} +2 -2
- package/dist/arcgis-map-components/{LWO26JBR.js → HOMWSMFE.js} +2 -2
- package/dist/arcgis-map-components/{A5KW63WX.js → ICF7P5GR.js} +2 -2
- package/dist/arcgis-map-components/{EAGHH6QU.js → IQZIZEOA.js} +2 -2
- package/dist/arcgis-map-components/{VPQHMDJ2.js → IWH3PN4S.js} +2 -2
- package/dist/arcgis-map-components/{TJ4OGPG4.js → JFFFFZPS.js} +2 -2
- package/dist/arcgis-map-components/{VH5QTUDW.js → JOBJV55A.js} +1 -1
- package/dist/arcgis-map-components/{B7PSHKMP.js → K7P3EC5M.js} +2 -2
- package/dist/arcgis-map-components/{4Y6NHB7L.js → KFJHOFHF.js} +2 -2
- package/dist/arcgis-map-components/{OY67DYJO.js → LHNXFII3.js} +2 -2
- package/dist/arcgis-map-components/{FOQWMRFK.js → LHSYDMB2.js} +2 -2
- package/dist/arcgis-map-components/LIDGQ4ND.js +6 -0
- package/dist/arcgis-map-components/{Q26FTWJP.js → LJO5OMPX.js} +1 -1
- package/dist/arcgis-map-components/{GNF5KT5X.js → M36QWZIC.js} +1 -1
- package/dist/arcgis-map-components/{NRLXPEDG.js → MCG427D6.js} +2 -2
- package/dist/arcgis-map-components/{HZAGHNFW.js → MQPSD4TK.js} +2 -2
- package/dist/arcgis-map-components/{QMASVEGG.js → MRQOHYVD.js} +2 -2
- package/dist/arcgis-map-components/{722AIY4B.js → MTV2D6ZL.js} +2 -2
- package/dist/arcgis-map-components/{TJTBXXY7.js → MUH4AK6L.js} +2 -2
- package/dist/arcgis-map-components/{ZQWZWRDC.js → O2QVFPTU.js} +2 -2
- package/dist/arcgis-map-components/ODQC7MVH.js +6 -0
- package/dist/arcgis-map-components/{MBLK645G.js → OWJM3GU7.js} +2 -2
- package/dist/arcgis-map-components/{DWE2TIQK.js → P6TYFFUH.js} +2 -2
- package/dist/arcgis-map-components/{BFLSXYU5.js → PNDLYZEK.js} +2 -2
- package/dist/arcgis-map-components/{YKGJ5IBU.js → PPVRHKQV.js} +2 -2
- package/dist/arcgis-map-components/{R5OPZNHX.js → PXF5AFV5.js} +2 -2
- package/dist/arcgis-map-components/{CX5WIDQ7.js → Q7UZCBB5.js} +2 -2
- package/dist/arcgis-map-components/QD3Y4TH4.js +6 -0
- package/dist/arcgis-map-components/{7363UCEV.js → QE2KUVBE.js} +2 -2
- package/dist/arcgis-map-components/{7SVQKUF4.js → R4AO5D5K.js} +2 -2
- package/dist/arcgis-map-components/{JRO4QAU6.js → RHK2RYFJ.js} +2 -2
- package/dist/arcgis-map-components/{ZVO6UFKM.js → UBMZQWHA.js} +2 -2
- package/dist/arcgis-map-components/{T6WJR2KJ.js → UIHR333Q.js} +2 -2
- package/dist/arcgis-map-components/{OGLL3SVD.js → UMDVWR47.js} +2 -2
- package/dist/arcgis-map-components/{IEIFBIIS.js → UX5OMF7L.js} +2 -2
- package/dist/arcgis-map-components/{VEINHQQD.js → WJX7CCDY.js} +2 -2
- package/dist/arcgis-map-components/{RAMMIRXI.js → WK2ZXPKN.js} +2 -2
- package/dist/arcgis-map-components/{464GKVW3.js → WO253IUM.js} +2 -2
- package/dist/arcgis-map-components/YMSVBVSZ.js +6 -0
- package/dist/arcgis-map-components/{LAXC6FVF.js → YTACIFPN.js} +2 -2
- package/dist/arcgis-map-components/{XUT27GQR.js → YYHRIJES.js} +2 -2
- package/dist/arcgis-map-components/{IFQOSCFG.js → Z6XBZZJG.js} +2 -2
- package/dist/arcgis-map-components/ZCN42BHK.js +6 -0
- package/dist/arcgis-map-components/{EY5CKDGG.js → ZT5OCNBJ.js} +2 -2
- package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -2
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.en.json +1 -1
- package/dist/chunks/basemap-gallery-item.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/disconnected.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +5 -0
- package/dist/components/arcgis-version-management/customElement.js +80 -78
- package/dist/components/arcgis-version-management-service-item/customElement.d.ts +2 -0
- package/dist/components/arcgis-version-management-service-item/customElement.js +21 -21
- package/dist/components/arcgis-version-management-version-item/customElement.js +2 -2
- package/dist/components/arcgis-version-management-version-list/customElement.d.ts +2 -0
- package/dist/components/arcgis-version-management-version-list/customElement.js +48 -35
- package/dist/components/arcgis-version-management-version-properties/customElement.d.ts +2 -0
- package/dist/components/arcgis-version-management-version-properties/customElement.js +56 -43
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +3 -3
- package/dist/docs/docs.json +5 -5
- package/dist/docs/web-types.json +2 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/package.json +5 -5
- package/dist/arcgis-map-components/3YN2ATEM.js +0 -6
- package/dist/arcgis-map-components/7APV5GQD.js +0 -6
- package/dist/arcgis-map-components/7XKIPITA.js +0 -6
- package/dist/arcgis-map-components/QIDSHFN3.js +0 -6
- package/dist/arcgis-map-components/ZKHFO7X5.js +0 -6
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { html as
|
|
1
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as n } from "lit-html";
|
|
3
3
|
import { createRef as u, ref as v } from "lit-html/directives/ref.js";
|
|
4
|
-
import { LitElement as V, createEvent as
|
|
4
|
+
import { LitElement as V, createEvent as p, noShadowRoot as I } from "@arcgis/lumina";
|
|
5
|
+
import { css as x } from "@lit/reactive-element/css-tag.js";
|
|
5
6
|
/*!
|
|
6
7
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
8
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
8
|
-
* v4.32.0-next.
|
|
9
|
+
* v4.32.0-next.49
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
const C = x`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}.properties-buttons{display:flex}`;
|
|
12
|
+
class k extends V {
|
|
11
13
|
constructor() {
|
|
12
|
-
super(...arguments), this._switchToVersion = !0, this._switchToVersionCheckboxElement = u(), this._versionNameInputElement = u(), this.arcgisAlterVersion =
|
|
14
|
+
super(...arguments), this._flowItemElement = u(), this._switchToVersion = !0, this._switchToVersionCheckboxElement = u(), this._versionNameInputElement = u(), this.selected = !1, this.showBackButton = !1, this.arcgisAlterVersion = p(), this.arcgisCreateVersion = p(), this.arcgisFlowItemBack = p(), this.arcgisFlowItemClose = p();
|
|
13
15
|
}
|
|
14
16
|
static {
|
|
15
|
-
this.properties = { versionPropertiesElementProps: 0 };
|
|
17
|
+
this.properties = { selected: 7, showBackButton: 7, versionPropertiesElementProps: 0 };
|
|
16
18
|
}
|
|
17
19
|
static {
|
|
18
|
-
this.shadowRootOptions =
|
|
20
|
+
this.shadowRootOptions = I;
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.styles = C;
|
|
24
|
+
}
|
|
25
|
+
// #endregion
|
|
26
|
+
// #region Public Methods
|
|
27
|
+
async setFocus() {
|
|
28
|
+
this._flowItemElement.value?.setFocus();
|
|
29
|
+
}
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31
|
+
goBack() {
|
|
19
32
|
}
|
|
20
33
|
// #endregion
|
|
21
34
|
// #region Lifecycle
|
|
22
35
|
load() {
|
|
23
|
-
const { versionPropertiesElementProps: { versionInfo:
|
|
24
|
-
|
|
36
|
+
const { versionPropertiesElementProps: { versionInfo: t } } = this;
|
|
37
|
+
t ? (this._mode = "edit", this._fullVersionName = t.versionIdentifier.name, this._ownerName = this._fullVersionName.substring(0, this._fullVersionName.lastIndexOf(".")), this._versionName = this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".") + 1)) : this._mode = "create";
|
|
25
38
|
}
|
|
26
39
|
updated() {
|
|
27
40
|
this._mode === "create" && this._versionNameInputElement.value?.setFocus();
|
|
@@ -31,64 +44,64 @@ class $ extends V {
|
|
|
31
44
|
_handleCancel() {
|
|
32
45
|
this.arcgisFlowItemBack.emit();
|
|
33
46
|
}
|
|
34
|
-
_handleChange(
|
|
35
|
-
const { _mode:
|
|
36
|
-
let { _alterVersionParameters:
|
|
37
|
-
switch (
|
|
47
|
+
_handleChange(t) {
|
|
48
|
+
const { _mode: s, _ownerName: l, _versionName: h, versionPropertiesElementProps: { currentUser: m, isVersionAdministrator: d, serviceUrl: i, versionInfo: c } } = this;
|
|
49
|
+
let { _alterVersionParameters: e, _createVersionParameters: a } = this;
|
|
50
|
+
switch (s === "create" && (a || (a = {
|
|
38
51
|
access: "public",
|
|
39
52
|
description: "",
|
|
40
|
-
featureServerUrl:
|
|
41
|
-
ownerName:
|
|
53
|
+
featureServerUrl: i,
|
|
54
|
+
ownerName: m,
|
|
42
55
|
versionName: ""
|
|
43
|
-
})),
|
|
44
|
-
featureServerUrl:
|
|
45
|
-
versionIdentifier:
|
|
46
|
-
ownerName:
|
|
47
|
-
versionName:
|
|
48
|
-
access:
|
|
49
|
-
description:
|
|
50
|
-
})),
|
|
56
|
+
})), s === "edit" && (e || (e = {
|
|
57
|
+
featureServerUrl: i,
|
|
58
|
+
versionIdentifier: c.versionIdentifier,
|
|
59
|
+
ownerName: l,
|
|
60
|
+
versionName: h,
|
|
61
|
+
access: c.access,
|
|
62
|
+
description: c.description
|
|
63
|
+
})), t.type) {
|
|
51
64
|
case "calciteChipGroupSelect": {
|
|
52
|
-
const r =
|
|
53
|
-
|
|
65
|
+
const r = t.target.label, o = t.target.selectedItems[0].value;
|
|
66
|
+
s === "create" && (a = { ...a, [r]: o }), s === "edit" && (e = { ...e, [r]: o });
|
|
54
67
|
break;
|
|
55
68
|
}
|
|
56
69
|
case "calciteInputTextInput": {
|
|
57
|
-
const r =
|
|
58
|
-
|
|
70
|
+
const r = t.target.name, o = t.target.value;
|
|
71
|
+
s === "create" && (a = { ...a, [r]: o }), s === "edit" && (e = { ...e, [r]: o });
|
|
59
72
|
break;
|
|
60
73
|
}
|
|
61
74
|
case "calciteTextAreaInput": {
|
|
62
|
-
const r =
|
|
63
|
-
|
|
75
|
+
const r = t.target.name, o = t.target.value;
|
|
76
|
+
s === "create" && (a = { ...a, [r]: o }), s === "edit" && (e = { ...e, [r]: o });
|
|
64
77
|
break;
|
|
65
78
|
}
|
|
66
79
|
}
|
|
67
|
-
|
|
80
|
+
s === "create" && (a.access !== "public" && m.toUpperCase() !== a.ownerName?.toUpperCase() && !d ? (this._switchToVersionCheckboxElement.value.checked = !1, this._switchToVersionCheckboxElement.value.disabled = !0, this._switchToVersion = !1) : this._switchToVersionCheckboxElement.value.disabled = !1, this._createVersionParameters = a), s === "edit" && (this._alterVersionParameters = e);
|
|
68
81
|
}
|
|
69
82
|
_handleClose() {
|
|
70
83
|
this.arcgisFlowItemClose.emit();
|
|
71
84
|
}
|
|
72
85
|
_handleSave() {
|
|
73
|
-
const { _alterVersionParameters:
|
|
74
|
-
|
|
75
|
-
createVersionParameters:
|
|
76
|
-
switchToVersion:
|
|
77
|
-
}),
|
|
78
|
-
alterVersionParameters:
|
|
86
|
+
const { _alterVersionParameters: t, _createVersionParameters: s, _mode: l, _switchToVersion: h } = this;
|
|
87
|
+
l === "create" && this.arcgisCreateVersion.emit({
|
|
88
|
+
createVersionParameters: s,
|
|
89
|
+
switchToVersion: h
|
|
90
|
+
}), l === "edit" && this.arcgisAlterVersion.emit({
|
|
91
|
+
alterVersionParameters: t
|
|
79
92
|
});
|
|
80
93
|
}
|
|
81
|
-
_handleSwitchToVersionChange(
|
|
82
|
-
this._switchToVersion =
|
|
94
|
+
_handleSwitchToVersionChange(t) {
|
|
95
|
+
this._switchToVersion = t.target.checked;
|
|
83
96
|
}
|
|
84
97
|
// #endregion
|
|
85
98
|
// #region Rendering
|
|
86
99
|
render() {
|
|
87
|
-
const { versionPropertiesElementProps: { closable:
|
|
88
|
-
return
|
|
100
|
+
const { selected: t, showBackButton: s, versionPropertiesElementProps: { closable: l, currentUser: h, hasAdvEditingUte: m, state: d, strings: i, versionInfo: c }, _mode: e, _ownerName: a, _versionName: r } = this, o = n`<div class="properties-buttons"><calcite-button appearance=outline width=half @click=${this._handleCancel}>${i.actions.cancelSave}</calcite-button><calcite-button width=half @click=${this._handleSave}>${i.actions.saveVersion}</calcite-button></div>`, f = n`<calcite-label>${i.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${e === "edit" && c.access === "public" || e === "create"} label=public>${i.accessLevels.public}</calcite-chip><calcite-chip .selected=${e === "edit" && c.access === "protected"} label=protected>${i.accessLevels.protected}</calcite-chip><calcite-chip .selected=${e === "edit" && c.access === "private"} label=private>${i.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`, b = n`<calcite-label>${i.input.versionDescription}<calcite-text-area name=description @calciteTextAreaInput=${this._handleChange} resize=vertical .value=${e === "edit" ? c.description : ""}></calcite-text-area></calcite-label>`, _ = n`<calcite-label>${i.input.versionName}<calcite-input-text name=versionName @calciteInputTextInput=${this._handleChange} max-length=62 .value=${e === "edit" ? r : ""} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`, w = n`<calcite-label>${i.input.versionOwner}<calcite-input-text name=ownerName @calciteInputTextInput=${this._handleChange} .disabled=${!m} .value=${e === "edit" ? a : h}></calcite-input-text></calcite-label>`, g = e === "create" ? n`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${i.actions.switchToVersion}</calcite-label>` : void 0;
|
|
101
|
+
return n`<calcite-flow-item .closable=${l} .description=${c ? c.versionIdentifier.name : ""} .heading=${c ? i.actions.editVersion : i.actions.newVersion} .selected=${t} .showBackButton=${s} @calciteFlowItemClose=${this._handleClose} ${v(this._flowItemElement)}><calcite-panel .loading=${d === "executing"}><calcite-block .label=${i.headers.versionProperties} open>${_}${b}${f}${w}${g}${o}</calcite-block></calcite-panel></calcite-flow-item>`;
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
|
-
|
|
104
|
+
$("arcgis-version-management-version-properties", k);
|
|
92
105
|
export {
|
|
93
|
-
|
|
106
|
+
k as ArcgisVersionManagementVersionProperties
|
|
94
107
|
};
|
|
@@ -7,7 +7,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
|
7
7
|
/*!
|
|
8
8
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
10
|
-
* v4.32.0-next.
|
|
10
|
+
* v4.32.0-next.49
|
|
11
11
|
*/
|
|
12
12
|
const d = h`arcgis-weather{display:block}`, l = i(t);
|
|
13
13
|
class n extends o {
|
|
@@ -9,7 +9,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
|
|
|
9
9
|
/*!
|
|
10
10
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
12
|
-
* v4.32.0-next.
|
|
12
|
+
* v4.32.0-next.49
|
|
13
13
|
*/
|
|
14
14
|
const o = {
|
|
15
15
|
base: "arcgis-zoom",
|
package/dist/docs/api.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-12-
|
|
2
|
+
"timestamp": "2024-12-15T13:08:47",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "4.32.0-next.
|
|
5
|
+
"version": "4.32.0-next.49",
|
|
6
6
|
"typescriptVersion": "5.6.3"
|
|
7
7
|
},
|
|
8
8
|
"schemaVersion": "1.0.0",
|
|
@@ -46682,7 +46682,7 @@
|
|
|
46682
46682
|
"kind": "field",
|
|
46683
46683
|
"name": "messageOverrides",
|
|
46684
46684
|
"type": {
|
|
46685
|
-
"text": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}"
|
|
46685
|
+
"text": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n filterVersions?: string | undefined;\n versionProperties?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}"
|
|
46686
46686
|
}
|
|
46687
46687
|
},
|
|
46688
46688
|
{
|
package/dist/docs/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-12-
|
|
2
|
+
"timestamp": "2024-12-15T13:08:47",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "4.32.0-next.
|
|
5
|
+
"version": "4.32.0-next.49",
|
|
6
6
|
"typescriptVersion": "5.6.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -39869,10 +39869,10 @@
|
|
|
39869
39869
|
},
|
|
39870
39870
|
{
|
|
39871
39871
|
"name": "messageOverrides",
|
|
39872
|
-
"type": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39872
|
+
"type": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n filterVersions?: string | undefined;\n versionProperties?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39873
39873
|
"complexType": {
|
|
39874
|
-
"original": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39875
|
-
"resolved": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39874
|
+
"original": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n filterVersions?: string | undefined;\n versionProperties?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39875
|
+
"resolved": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n filterVersions?: string | undefined;\n versionProperties?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}",
|
|
39876
39876
|
"references": {}
|
|
39877
39877
|
},
|
|
39878
39878
|
"mutable": true,
|
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/map-components",
|
|
4
|
-
"version": "4.32.0-next.
|
|
4
|
+
"version": "4.32.0-next.49",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -13952,7 +13952,7 @@
|
|
|
13952
13952
|
},
|
|
13953
13953
|
{
|
|
13954
13954
|
"name": "messageOverrides",
|
|
13955
|
-
"type": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}"
|
|
13955
|
+
"type": "{\n label?: string | undefined;\n actions?: {\n cancelSave?: string | undefined;\n deleteVersion?: string | undefined;\n editVersion?: string | undefined;\n newVersion?: string | undefined;\n refreshVersions?: string | undefined;\n saveVersion?: string | undefined;\n searchVersions?: string | undefined;\n switchToVersion?: string | undefined;\n } | undefined;\n accessLevels?: {\n private?: string | undefined;\n protected?: string | undefined;\n public?: string | undefined;\n } | undefined;\n executionErrors?: {\n invalidVersionName?: string | undefined;\n noAdvancedEditingUserTypeExtension?: string | undefined;\n noFeatureServiceFound?: string | undefined;\n notValidEnterpriseVersion?: string | undefined;\n noVersionManagementServiceFound?: string | undefined;\n } | undefined;\n headers?: {\n currentVersion?: string | undefined;\n manageVersions?: string | undefined;\n filterVersions?: string | undefined;\n versionProperties?: string | undefined;\n } | undefined;\n input?: {\n versionAccess?: string | undefined;\n versionDescription?: string | undefined;\n versionName?: string | undefined;\n versionOwner?: string | undefined;\n } | undefined;\n loadErrors?: {\n noFeatureServices?: string | undefined;\n noViewProperty?: string | undefined;\n } | undefined;\n}"
|
|
13956
13956
|
},
|
|
13957
13957
|
{
|
|
13958
13958
|
"name": "mode",
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { s, g as t } from "./chunks/runtime.js";
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
5
|
-
* v4.32.0-next.
|
|
5
|
+
* v4.32.0-next.49
|
|
6
6
|
*/
|
|
7
7
|
const a = s, A = t;
|
|
8
8
|
export {
|
package/dist/loader.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
|
3
3
|
/*!
|
|
4
4
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
6
|
-
* v4.32.0-next.
|
|
6
|
+
* v4.32.0-next.49
|
|
7
7
|
*/
|
|
8
8
|
const a = t(e, {
|
|
9
9
|
"arcgis-area-measurement-2d": [() => import("./components/arcgis-area-measurement-2d/customElement.js"), "autoDestroyDisabled,icon,label,position,referenceElement,state,unit,unitOptions:;destroy"],
|
|
@@ -64,8 +64,8 @@ const a = t(e, {
|
|
|
64
64
|
"arcgis-version-management": [() => import("./components/arcgis-version-management/customElement.js"), "allowEditingDisabled,autoDestroyDisabled,closable,icon,label,messageOverrides:,mode,pageSize,position,referenceElement,state,versioningStates:,view:;destroy"],
|
|
65
65
|
"arcgis-version-management-service-item": [() => import("./components/arcgis-version-management-service-item/customElement.js"), "serviceItemElementProps:"],
|
|
66
66
|
"arcgis-version-management-version-item": [() => import("./components/arcgis-version-management-version-item/customElement.js"), "versionItemElementProps:"],
|
|
67
|
-
"arcgis-version-management-version-list": [() => import("./components/arcgis-version-management-version-list/customElement.js"), "currentPage,versionListElementProps:"],
|
|
68
|
-
"arcgis-version-management-version-properties": [() => import("./components/arcgis-version-management-version-properties/customElement.js"), "versionPropertiesElementProps:"],
|
|
67
|
+
"arcgis-version-management-version-list": [() => import("./components/arcgis-version-management-version-list/customElement.js"), "currentPage,selected,showBackButton,versionListElementProps:"],
|
|
68
|
+
"arcgis-version-management-version-properties": [() => import("./components/arcgis-version-management-version-properties/customElement.js"), "selected,showBackButton,versionPropertiesElementProps:"],
|
|
69
69
|
"arcgis-weather": [() => import("./components/arcgis-weather/customElement.js"), "autoDestroyDisabled,headingLevel,hideHeader,icon,label,position,referenceElement,state;destroy"],
|
|
70
70
|
"arcgis-zoom": [() => import("./components/arcgis-zoom/customElement.js"), "autoDestroyDisabled,icon,label,layout,messageOverrides:,position,referenceElement,state;destroy,zoomIn,zoomOut"]
|
|
71
71
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.49",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
],
|
|
41
41
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
44
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
45
|
-
"@arcgis/core-adapter": "4.32.0-next.
|
|
46
|
-
"@arcgis/lumina": "4.32.0-next.
|
|
43
|
+
"@arcgis/components-controllers": "4.32.0-next.49",
|
|
44
|
+
"@arcgis/components-utils": "4.32.0-next.49",
|
|
45
|
+
"@arcgis/core-adapter": "4.32.0-next.49",
|
|
46
|
+
"@arcgis/lumina": "4.32.0-next.49",
|
|
47
47
|
"tslib": "^2.7.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.47
|
|
5
|
-
*/
|
|
6
|
-
import{A as n,B as p,C as L,G as E,f as V,s as t}from"./VH5QTUDW.js";var g=class extends p{constructor(){super(...arguments),this._arcgisGetVersions=e=>{this.arcgisGetVersions.emit(e.detail)},this._arcgisManageVersion=e=>{this.arcgisManageVersion.emit(e.detail)},this._arcgisNewVersion=e=>{this.arcgisNewVersion.emit(e.detail)},this._versionListEventListeners=new Map,this.arcgisFlowItemBack=n(),this.arcgisFlowItemClose=n(),this.arcgisGetVersions=n(),this.arcgisManageVersion=n(),this.arcgisNewVersion=n()}static{this.properties={serviceItemElementProps:0}}static{this.shadowRootOptions=V}disconnectedCallback(){super.disconnectedCallback(),this._versionList&&this._removeVersionListEventListeners(this._versionList)}_addVersionListEventListeners(e){e.addEventListener("arcgisGetVersions",this._arcgisGetVersions),this._versionListEventListeners.set("arcgisGetVersions",this._arcgisGetVersions),e.addEventListener("arcgisManageVersion",this._arcgisManageVersion),this._versionListEventListeners.set("arcgisManageVersion",this._arcgisManageVersion),e.addEventListener("arcgisNewVersion",this._arcgisNewVersion),this._versionListEventListeners.set("arcgisNewVersion",this._arcgisNewVersion)}_removeVersionListEventListeners(e){for(let[o,c]of this._versionListEventListeners)e.removeEventListener(o,c)}render(){let{serviceItemElementProps:{allowEditing:e,closable:o,currentUser:c,executionError:b,currentVersionIdentifier:l,flowElement:_,hasAdvEditingUte:f,heading:u,isVersionAdministrator:I,isVersioningApiAvailable:w,mode:$,pageSize:x,serviceName:r,serviceUrl:m,state:M,strings:d,versionInfos:a}}=this,{_versionList:s}=this,N=t`<calcite-combobox clear-disabled .label=${r} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${i=>{let k=i.target,A=a.find(C=>C.versionIdentifier.guid===k.value);this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:m,versionInfo:A})}}>${a?a.map(i=>t`<calcite-combobox-item class=${L($==="dialog"?"":"calcite-combobox-item")} .selected=${l.guid===i.versionIdentifier.guid&&l.name===i.versionIdentifier.name} .textLabel=${i.versionIdentifier.name} .value=${i.versionIdentifier.guid}></calcite-combobox-item>`):void 0}</calcite-combobox>`,v,h;return e&&(v=t`<calcite-action .id=${`actionManageVersions_${r}`} icon=list scale=s slot=control text @click=${async()=>{s=document.createElement("arcgis-version-management-version-list"),s.versionListElementProps={closable:o,currentUser:c,currentVersionIdentifier:l,executionError:b,hasAdvEditingUte:f,heading:u,isVersionAdministrator:I,isVersioningApiAvailable:w,pageSize:x,serviceName:r,serviceUrl:m,state:M,strings:d,versionInfos:a},s.addEventListener("calciteFlowItemBack",i=>{i.preventDefault(),this.arcgisFlowItemBack.emit()}),s.addEventListener("calciteFlowItemClose",()=>{this.arcgisFlowItemClose.emit()}),this._addVersionListEventListeners(s),_?.append(s)}}></calcite-action>`,h=t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`actionManageVersions_${r}`}><span>${d.headers.manageVersions}</span></calcite-tooltip>`),t`<calcite-block open .heading=${r}>${N}${v}${h}</calcite-block>`}};E("arcgis-version-management-service-item",g);export{g as ArcgisVersionManagementServiceItem};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.47
|
|
5
|
-
*/
|
|
6
|
-
import{a as u,b as v}from"./EY5CKDGG.js";import{A as d,B as g,G as V,f as b,s as l}from"./VH5QTUDW.js";var _=class extends g{constructor(){super(...arguments),this._switchToVersion=!0,this._switchToVersionCheckboxElement=u(),this._versionNameInputElement=u(),this.arcgisAlterVersion=d(),this.arcgisCreateVersion=d(),this.arcgisFlowItemBack=d(),this.arcgisFlowItemClose=d()}static{this.properties={versionPropertiesElementProps:0}}static{this.shadowRootOptions=b}load(){let{versionPropertiesElementProps:{versionInfo:e}}=this;e?(this._mode="edit",this._fullVersionName=e.versionIdentifier.name,this._ownerName=this._fullVersionName.substring(0,this._fullVersionName.lastIndexOf(".")),this._versionName=this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".")+1)):this._mode="create"}updated(){this._mode==="create"&&this._versionNameInputElement.value?.setFocus()}_handleCancel(){this.arcgisFlowItemBack.emit()}_handleChange(e){let{_mode:i,_ownerName:h,_versionName:m,versionPropertiesElementProps:{currentUser:t,isVersionAdministrator:o,serviceUrl:s,versionInfo:p}}=this,{_alterVersionParameters:c,_createVersionParameters:a}=this;switch(i==="create"&&(a||(a={access:"public",description:"",featureServerUrl:s,ownerName:t,versionName:""})),i==="edit"&&(c||(c={featureServerUrl:s,versionIdentifier:p.versionIdentifier,ownerName:h,versionName:m,access:p.access,description:p.description})),e.type){case"calciteChipGroupSelect":{let r=e.target.label,n=e.target.selectedItems[0].value;i==="create"&&(a={...a,[r]:n}),i==="edit"&&(c={...c,[r]:n});break}case"calciteInputTextInput":{let r=e.target.name,n=e.target.value;i==="create"&&(a={...a,[r]:n}),i==="edit"&&(c={...c,[r]:n});break}case"calciteTextAreaInput":{let r=e.target.name,n=e.target.value;i==="create"&&(a={...a,[r]:n}),i==="edit"&&(c={...c,[r]:n});break}}i==="create"&&(a.access!=="public"&&t.toUpperCase()!==a.ownerName?.toUpperCase()&&!o?(this._switchToVersionCheckboxElement.value.checked=!1,this._switchToVersionCheckboxElement.value.disabled=!0,this._switchToVersion=!1):this._switchToVersionCheckboxElement.value.disabled=!1,this._createVersionParameters=a),i==="edit"&&(this._alterVersionParameters=c)}_handleClose(){this.arcgisFlowItemClose.emit()}_handleSave(){let{_alterVersionParameters:e,_createVersionParameters:i,_mode:h,_switchToVersion:m}=this;h==="create"&&this.arcgisCreateVersion.emit({createVersionParameters:i,switchToVersion:m}),h==="edit"&&this.arcgisAlterVersion.emit({alterVersionParameters:e})}_handleSwitchToVersionChange(e){this._switchToVersion=e.target.checked}render(){let{versionPropertiesElementProps:{closable:e,currentUser:i,hasAdvEditingUte:h,state:m,strings:t,versionInfo:o},_mode:s,_ownerName:p,_versionName:c}=this,a=l`<div><calcite-button appearance=outline slot=footer width=half @click=${this._handleCancel}>${t.actions.cancelSave}</calcite-button><calcite-button slot=footer width=half @click=${this._handleSave}>${t.actions.saveVersion}</calcite-button></div>`,r=l`<calcite-label>${t.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${s==="edit"&&o.access==="public"||s==="create"} label=public>${t.accessLevels.public}</calcite-chip><calcite-chip .selected=${s==="edit"&&o.access==="protected"} label=protected>${t.accessLevels.protected}</calcite-chip><calcite-chip .selected=${s==="edit"&&o.access==="private"} label=private>${t.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`,n=l`<calcite-label>${t.input.versionDescription}<calcite-text-area name=description @calciteTextAreaInput=${this._handleChange} resize=vertical .value=${s==="edit"?o.description:""}></calcite-text-area></calcite-label>`,w=l`<calcite-label>${t.input.versionName}<calcite-input-text name=versionName @calciteInputTextInput=${this._handleChange} max-length=62 .value=${s==="edit"?c:""} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`,$=l`<calcite-label>${t.input.versionOwner}<calcite-input-text name=ownerName @calciteInputTextInput=${this._handleChange} .disabled=${!h} .value=${s==="edit"?p:i}></calcite-input-text></calcite-label>`,f=s==="create"?l`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${t.actions.switchToVersion}</calcite-label>`:void 0;return l`<calcite-flow-item .closable=${e} .description=${o?o.versionIdentifier.name:""} .heading=${o?t.actions.editVersion:t.actions.newVersion} @calciteFlowItemClose=${this._handleClose}><calcite-panel .loading=${m==="executing"}><calcite-block heading open>${w}${n}${r}${$}${f}${a}</calcite-block></calcite-panel></calcite-flow-item>`}};V("arcgis-version-management-version-properties",_);export{_ as ArcgisVersionManagementVersionProperties};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.47
|
|
5
|
-
*/
|
|
6
|
-
import{a as v,b as m}from"./EY5CKDGG.js";import{A as o,B as p,G as f,s}from"./VH5QTUDW.js";var l=class extends p{constructor(){super(...arguments),this._filterInputElement=v(),this.currentPage=1,this.arcgisGetVersions=o(),this.arcgisManageVersion=o(),this.arcgisNewVersion=o()}static{this.properties={_filteredVersionInfos:16,currentPage:11,versionListElementProps:0}}load(){this._filteredVersionInfos=this.versionListElementProps.versionInfos}willUpdate(e){if(e.has("versionListElementProps")){let i=e.get("versionListElementProps"),t=this.versionListElementProps;i?.versionInfos!==t.versionInfos&&(this._filteredVersionInfos=t.versionInfos,this._filterInputElement.value&&this._handleFilterChange())}}updated(){this._filterInputElement.value?.setFocus()}_handleFilterChange(){let{versionListElementProps:{versionInfos:e}}=this,i=this._filterInputElement.value.value.toUpperCase();this._filteredVersionInfos=i===""?e:e.filter(t=>t.versionIdentifier.name.toUpperCase().includes(i)||t.versionIdentifier.guid.toUpperCase().includes(i)),this._filteredVersionInfos.length&&(this.currentPage=1)}_handleNoticeClosed(){this.versionListElementProps={...this.versionListElementProps,executionError:void 0}}_handlePaginationChange(e){this.currentPage=e.target.startItem}_getExecutionError(e){let{versionListElementProps:{strings:{executionErrors:i}}}=this;switch(e){case"no-advanced-editing-user-type-extension":return i.noAdvancedEditingUserTypeExtension;case"no-feature-service-found":return i.noFeatureServiceFound;case"no-valid-enterprise-version":return i.notValidEnterpriseVersion;case"no-valid-version-name":return i.invalidVersionName;default:return e}}_paginate(e,i,t){return e.slice((t-1)*i,t*i)}render(){let{currentPage:e,versionListElementProps:{closable:i,currentUser:t,currentVersionIdentifier:c,executionError:h,hasAdvEditingUte:d,heading:u,isVersionAdministrator:V,isVersioningApiAvailable:g,pageSize:n,serviceName:I,serviceUrl:a,state:_,strings:{headers:E},strings:r,versionInfos:$}}=this,P=s`<calcite-block .heading=${E.currentVersion} .description=${c.name} overlay-positioning=fixed></calcite-block>`,x=s`<calcite-action id=actionRefreshVersions icon=refresh text @click=${()=>{this.arcgisGetVersions.emit({serviceUrl:a})}} slot=header-actions-end><calcite-tooltip overlay-positioning=fixed reference-element=actionRefreshVersions><span>${r.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`;this._paginatedVersionInfos=this._filteredVersionInfos.length>n?this._paginate(this._filteredVersionInfos,n,e):this._filteredVersionInfos;let b=this._filteredVersionInfos.length>n?s`<calcite-pagination @calcitePaginationChange=${this._handlePaginationChange} page-size=1 .startItem=${e} .totalItems=${Math.ceil(this._filteredVersionInfos.length/n)}></calcite-pagination>`:void 0,C=this._paginate(this._paginatedVersionInfos,n,1).map(k=>s`<arcgis-version-management-version-item .versionItemElementProps=${{currentUser:t,currentVersionIdentifier:c,isCurrentVersionCard:!1,hasAdvEditingUte:d,isVersionAdministrator:V,isVersioningApiAvailable:g,serviceUrl:a,strings:r,versionInfo:k}}></arcgis-version-management-version-item>`),U=$.length>n?s`<calcite-block heading open><calcite-input-text clearable icon=search @calciteInputTextInput=${this._handleFilterChange} .placeholder=${r.actions.searchVersions} ${m(this._filterInputElement)}></calcite-input-text></calcite-block>`:void 0,L=s`<calcite-list label=versions>${C}</calcite-list>`,w=g&&d?s`<calcite-fab appearance=outline-fill slot=fab text-enabled .text=${r.actions.newVersion} @click=${()=>{this.arcgisNewVersion.emit({serviceUrl:a})}}></calcite-fab>`:void 0,A=h?s`<calcite-notice @calciteNoticeClose=${this._handleNoticeClosed} class="notice" closable kind=warning open scale=s slot=footer width=full><div slot=message>${this._getExecutionError(h)}</div></calcite-notice>`:void 0;return s`<calcite-flow-item .closable=${i} .description=${I} .heading=${u}><calcite-panel .loading=${_==="executing"}>${P}<calcite-panel .heading=${this._filteredVersionInfos.length?`${r.headers.manageVersions} (${this._filteredVersionInfos.length})`:r.headers.manageVersions}>${x}${U}${L}${w}</calcite-panel>${b}${A}</calcite-panel></calcite-flow-item>`}};f("arcgis-version-management-version-list",l);export{l as ArcgisVersionManagementVersionList};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.47
|
|
5
|
-
*/
|
|
6
|
-
import{A as g,B as p,E as v,G as h,f as m,s as o}from"./VH5QTUDW.js";var c=class extends p{constructor(){super(...arguments),this.arcgisManageVersion=g()}static{this.properties={versionItemElementProps:0}}static{this.shadowRootOptions=m}render(){let{versionItemElementProps:{currentUser:$,currentVersionIdentifier:V,hasAdvEditingUte:f,isVersionAdministrator:b,isVersioningApiAvailable:u,serviceUrl:t,strings:{actions:n},versionInfo:e}}=this,s=e.versionIdentifier.name,I=s.substring(s.lastIndexOf(".")+1),r=s.substring(0,s.lastIndexOf(".")),l=e.versionIdentifier.guid,d=`actionSwitchToVersion_${l}`,a=r.toUpperCase()===$.toUpperCase()&&u&&f||b,i=V.guid===e.versionIdentifier.guid,x=o`<calcite-action .disabled=${i} id=${d??v} icon=code-branch text @click=${()=>{this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:t,versionInfo:e})}} slot=actions-start></calcite-action>`,U=i?void 0:o`<calcite-tooltip overlay-positioning=fixed .referenceElement=${d}><span>${n.switchToVersion}</span></calcite-tooltip>`;return o`<calcite-list-item .description=${r} .label=${I} .value=${l}>${x}${U}<calcite-action-menu overlay-positioning=fixed slot=actions-end label><calcite-action .disabled=${i} icon=code-branch @click=${()=>{this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:t,versionInfo:e})}} scale=s .text=${n.switchToVersion} text-enabled></calcite-action><calcite-action .disabled=${!a||i} icon=code-branch-edit @click=${()=>{this.arcgisManageVersion.emit({actionType:"editVersion",serviceUrl:t,versionInfo:e})}} scale=s .text=${n.editVersion} text-enabled></calcite-action><calcite-action .disabled=${!a||a&&i} icon=trash @click=${()=>{this.arcgisManageVersion.emit({actionType:"deleteVersion",serviceUrl:t,versionInfo:e})}} scale=s .text=${n.deleteVersion} text-enabled></calcite-action></calcite-action-menu></calcite-list-item>`}};h("arcgis-version-management-version-item",c);export{c as ArcgisVersionManagementVersionItem};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.47
|
|
5
|
-
*/
|
|
6
|
-
import{a as N,b}from"./EY5CKDGG.js";import{a as C,b as M}from"./VEINHQQD.js";import"./7SVQKUF4.js";import{ga as y,ja as P}from"./Q26FTWJP.js";import"./GNF5KT5X.js";import{A as w,B as V,C as L,G as S,f as E,o as u,r as I,s as v}from"./VH5QTUDW.js";var F=I`.calcite-combobox-item{width:330px}.calcite-flow-widget{width:350px}calcite-block{margin:0}calcite-pagination{justify-content:center}`,A=M(y),f=class extends V{constructor(){super(...arguments),this.flowElement=N(),this.messages=C({blocking:!0}),this.reactiveUtils=u(P),this.viewModel=A(this),this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.position="top-right",this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.view=this.viewModel.view,this.arcgisReady=w(),this.arcgisVersioningStateChanged=w()}static{this.properties={allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,icon:3,label:3,messageOverrides:0,mode:1,pageSize:9,position:1,referenceElement:1,state:3,versioningStates:0,view:0}}static{this.shadowRootOptions=E}static{this.styles=F}async destroy(){await this.manager.destroy()}load(){let{watch:e}=this.reactiveUtils;this.manager.onLifecycle(()=>[e(()=>this.viewModel.state,i=>{let{flowElement:{value:s}}=this,r=s?.getElementsByTagName("arcgis-version-management-version-properties")[0],t=s?.getElementsByTagName("arcgis-version-management-version-list")[0];if(i==="disabled"){r&&this._removeVersionPropertiesFlowItem(s),t&&this._removeVersionListFlowItem(s);return}t&&(t.versionListElementProps={...t.versionListElementProps,executionError:this.viewModel.executionError},t.versionListElementProps={...t.versionListElementProps,state:i}),r&&(r.versionPropertiesElementProps={...r.versionPropertiesElementProps,state:i})})])}_createVersionPropertiesFlowItem(e,i){let{closable:s,flowElement:{value:r},viewModel:t,viewModel:{state:a}}=this,o=document.createElement("arcgis-version-management-version-properties");return o.versionPropertiesElementProps={closable:s,currentUser:t.userLookup.get(e),hasAdvEditingUte:t.advancedEditingUserTypeExtensionLookup.get(e),isVersionAdministrator:t.versionAdministratorLookup.get(e),serviceUrl:e,state:a,strings:this.messages,versionInfo:i},o.addEventListener("arcgisCreateVersion",n=>{let{createVersionParameters:m,switchToVersion:l}=n.detail;t.createVersion(m).then(async d=>{d&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:d.versionIdentifier,versioningState:t.versioningStateLookup.get(e)}),l&&await this.viewModel.changeVersion(e,d.versionIdentifier.name,d.versionIdentifier.guid).then(g=>{g&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:d.versionIdentifier,versioningState:t.versioningStateLookup.get(e)})}),await this._refreshVersionList(e)}).finally(()=>{r&&this._removeVersionPropertiesFlowItem(r)})}),o.addEventListener("arcgisAlterVersion",async n=>{let{flowElement:{value:m}}=this,{alterVersionParameters:l}=n.detail;await t.alterVersion(l).then(async d=>{d&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:l.versionIdentifier,versioningState:t.versioningStateLookup.get(e)}),await this._refreshVersionList(e)}).finally(()=>{m&&this._removeVersionPropertiesFlowItem(m)})}),o.addEventListener("arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),o.addEventListener("calciteFlowItemBack",n=>{n.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value)}),o.addEventListener("calciteFlowItemClose",()=>{this._handleFlowItemClose()}),o}_getLoadError(e){let{messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-view-property":return i.loadErrors.noViewProperty;default:return e}}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleManageVersionAction(e){let{actionType:i,serviceUrl:s,versionInfo:r}=e.detail,{viewModel:t,flowElement:a}=this;switch(i){case"changeVersion":{t.changeVersion(s,r.versionIdentifier.name,r.versionIdentifier.guid).then(o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:r.versionIdentifier,versioningState:t.versioningStateLookup.get(s)});let n=a.value?.getElementsByTagName("arcgis-version-management-version-list")[0];n&&n&&(n.versionListElementProps={...n.versionListElementProps,currentVersionIdentifier:t.versioningStateLookup.get(s).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{t.deleteVersion(s,r.versionIdentifier.name,r.versionIdentifier.guid).then(async o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:r.versionIdentifier,versioningState:t.versioningStateLookup.get(s)}),await this._refreshVersionList(s)});break}case"editVersion":{let o=this._createVersionPropertiesFlowItem(s,r);a.value?.appendChild(o);break}}}async _refreshVersionList(e){let{flowElement:{value:i},viewModel:s}=this;if(i){let r=await s.getVersionInfos(e),t=i.getElementsByTagName("arcgis-version-management-service-item");for(let o of t)o.serviceItemElementProps.serviceUrl===e&&(o.serviceItemElementProps={...o.serviceItemElementProps,versionInfos:r});let a=i.getElementsByTagName("arcgis-version-management-version-list")[0];a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:s.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:r})}}_removeVersionListFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&e.removeChild(i),i.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(i.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(i),i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(i.getElementsByTagName("calcite-flow-item")[0].hidden=!1)}render(){let{allowEditingDisabled:e,closable:i,flowElement:{value:s},label:r,messages:t,mode:a,pageSize:o,viewModel:n,viewModel:{loadError:m,state:l}}=this,d=Array.from(n.serviceNameLookup,([c,h])=>({url:c,name:h})),g=l!=="disabled"?d.map(c=>{let h={allowEditing:!e,closable:i,currentUser:n.userLookup.get(c.url),currentVersionIdentifier:n.versioningStateLookup.get(c.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:s,hasAdvEditingUte:n.advancedEditingUserTypeExtensionLookup.get(c.url),heading:r,isVersionAdministrator:n.versionAdministratorLookup.get(c.url),isVersioningApiAvailable:(n.serverVersionLookup.get(c.url)??0)>=11.2,mode:a,pageSize:o,serviceName:c.name,state:l,serviceUrl:c.url,strings:t,versionInfos:n.versioningStateLookup.get(c.url)?.versionInfos??[]};return v`<arcgis-version-management-service-item .serviceItemElementProps=${h} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisFlowItemBack=${()=>{s&&this._removeVersionListFlowItem(s)}} @arcgisFlowItemClose=${()=>{this._handleFlowItemClose()}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${p=>{let _=this._createVersionPropertiesFlowItem(p.detail.serviceUrl,void 0);s?.appendChild(_)}}></arcgis-version-management-service-item>`}):void 0,k=l==="disabled"?v`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(m)}</div></calcite-notice>`:void 0;return v`<calcite-flow class=${L(this.mode==="dialog"?"":"calcite-flow-widget")} ${b(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${r??void 0} @calciteFlowItemClose=${()=>{this._handleFlowItemClose()}}><calcite-panel .loading=${l==="loading"||l==="executing"}>${g}${k}</calcite-panel></calcite-flow-item></calcite-flow>`}};S("arcgis-version-management",f);export{f as ArcgisVersionManagement};
|