@arcgis/map-components 5.1.0-next.97 → 5.1.0-next.98
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/{M2AGMETD.js → 5VV4YRMW.js} +1 -1
- package/dist/cdn/6S6N2CNY.js +2 -0
- package/dist/cdn/AU5Y2WFE.js +2 -0
- package/dist/cdn/B3GUVSOH.js +2 -0
- package/dist/cdn/{TOYDKBI3.js → FJYJ55I6.js} +1 -1
- package/dist/cdn/G2AWBB3W.js +2 -0
- package/dist/cdn/{76RELZX2.js → GZSSBAS6.js} +1 -1
- package/dist/cdn/KDVGMEXC.js +2 -0
- package/dist/cdn/{PAD4C5XS.js → MGLV5EEI.js} +1 -1
- package/dist/cdn/OSRU2RUW.js +2 -0
- package/dist/cdn/P27CM5PI.js +2 -0
- package/dist/cdn/QL46G5FB.js +2 -0
- package/dist/cdn/{4535AZQ2.js → VD5IUHXQ.js} +1 -1
- package/dist/cdn/{YFP5CWGB.js → XSZJFT45.js} +1 -1
- package/dist/cdn/assets/reverse-geocode-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/version-management/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +22 -3
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +56 -38
- package/dist/components/arcgis-reverse-geocode-list/index.js +2 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +6 -7
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +4 -2
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -48
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -0
- package/dist/components/arcgis-version-management/customElement.js +85 -85
- package/dist/components/arcgis-version-management-service-item/customElement.js +17 -17
- package/dist/components/arcgis-version-management-version-list/customElement.js +9 -9
- package/dist/components/arcgis-version-management-version-properties/customElement.js +44 -40
- package/dist/components/arcgis-version-management-version-properties/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/loader.js +1 -1
- package/dist/types/lumina.d.ts +2 -1
- package/dist/types/preact.d.ts +2 -1
- package/dist/types/react.d.ts +2 -1
- package/dist/types/stencil.d.ts +2 -1
- package/package.json +4 -4
- package/dist/cdn/4LIT2CPA.js +0 -2
- package/dist/cdn/F5GS7T5H.js +0 -2
- package/dist/cdn/GUATS4JC.js +0 -2
- package/dist/cdn/GZNXU67E.js +0 -2
- package/dist/cdn/M2LGHW4O.js +0 -2
- package/dist/cdn/M67KJTXP.js +0 -2
- package/dist/cdn/VTGHFASH.js +0 -2
- package/dist/cdn/WTUX37PY.js +0 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as V, html as l } from "lit";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
class
|
|
4
|
+
import { LitElement as C, createEvent as p } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as u, ref as v } from "lit/directives/ref.js";
|
|
6
|
+
const I = V`:host{min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}`;
|
|
7
|
+
class x extends C {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(...arguments), this._flowItemElement = u(), this._switchToVersion = !0, this._switchToVersionCheckboxElement = u(), this._versionNameInputElement = u(), this.selected = !1, this.showBackButton = !1, this.arcgisAlterVersion =
|
|
9
|
+
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();
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
|
-
this.properties = { selected: 7, showBackButton: 7, versionPropertiesElementProps: 0 };
|
|
12
|
+
this.properties = { _validationError: 16, selected: 7, showBackButton: 7, versionPropertiesElementProps: 0 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = I;
|
|
16
16
|
}
|
|
17
17
|
load() {
|
|
18
|
-
const { versionPropertiesElementProps: { versionInfo:
|
|
19
|
-
|
|
18
|
+
const { versionPropertiesElementProps: { versionInfo: t } } = this;
|
|
19
|
+
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";
|
|
20
20
|
}
|
|
21
21
|
updated() {
|
|
22
22
|
this._mode === "create" && this._versionNameInputElement.value?.setFocus();
|
|
@@ -29,62 +29,66 @@ class I extends $ {
|
|
|
29
29
|
_handleCancel() {
|
|
30
30
|
this.arcgisFlowItemBack.emit();
|
|
31
31
|
}
|
|
32
|
-
_handleChange(
|
|
33
|
-
const { _mode:
|
|
34
|
-
let { _alterVersionParameters:
|
|
35
|
-
switch (
|
|
32
|
+
_handleChange(t) {
|
|
33
|
+
const { _mode: s, _ownerName: h, _versionName: d, versionPropertiesElementProps: { currentUser: m, isVersionAdministrator: e, serviceUrl: c, versionInfo: i } } = this;
|
|
34
|
+
let { _alterVersionParameters: r, _createVersionParameters: a } = this;
|
|
35
|
+
switch (s === "create" && (a || (a = {
|
|
36
36
|
access: "public",
|
|
37
37
|
description: "",
|
|
38
|
-
featureServerUrl:
|
|
39
|
-
ownerName:
|
|
38
|
+
featureServerUrl: c,
|
|
39
|
+
ownerName: m,
|
|
40
40
|
versionName: ""
|
|
41
|
-
})),
|
|
42
|
-
featureServerUrl:
|
|
43
|
-
versionIdentifier:
|
|
41
|
+
})), s === "edit" && (r || (r = {
|
|
42
|
+
featureServerUrl: c,
|
|
43
|
+
versionIdentifier: i.versionIdentifier,
|
|
44
44
|
ownerName: h,
|
|
45
|
-
versionName:
|
|
46
|
-
access:
|
|
47
|
-
description:
|
|
48
|
-
})),
|
|
45
|
+
versionName: d,
|
|
46
|
+
access: i.access,
|
|
47
|
+
description: i.description
|
|
48
|
+
})), t.type) {
|
|
49
49
|
case "calciteChipGroupSelect": {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const o = t.target.label, n = t.target.selectedItems[0].label;
|
|
51
|
+
s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
54
|
case "calciteInputTextInput": {
|
|
55
|
-
const
|
|
56
|
-
|
|
55
|
+
const o = t.target.name, n = t.target.value;
|
|
56
|
+
s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
59
|
case "calciteTextAreaInput": {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const o = t.target.name, n = t.target.value;
|
|
61
|
+
s === "create" && (a = { ...a, [o]: n }), s === "edit" && (r = { ...r, [o]: n });
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
s === "create" && (a.access !== "public" && m.toUpperCase() !== a.ownerName?.toUpperCase() && !e ? (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 = r);
|
|
66
66
|
}
|
|
67
67
|
_handleClose() {
|
|
68
68
|
this.arcgisFlowItemClose.emit();
|
|
69
69
|
}
|
|
70
70
|
_handleSave() {
|
|
71
|
-
const { _alterVersionParameters:
|
|
71
|
+
const { _alterVersionParameters: t, _createVersionParameters: s, _mode: h, _switchToVersion: d, versionPropertiesElementProps: { strings: m } } = this, e = [".", ";", "'", '"'];
|
|
72
|
+
if (e.some((i) => s?.versionName?.includes(i)) || e.some((i) => t?.versionName?.includes(i))) {
|
|
73
|
+
this._validationError = m.validationErrors.invalidCharacters;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
72
76
|
h === "create" && this.arcgisCreateVersion.emit({
|
|
73
|
-
createVersionParameters:
|
|
74
|
-
switchToVersion:
|
|
77
|
+
createVersionParameters: s,
|
|
78
|
+
switchToVersion: d
|
|
75
79
|
}), h === "edit" && this.arcgisAlterVersion.emit({
|
|
76
|
-
alterVersionParameters:
|
|
80
|
+
alterVersionParameters: t
|
|
77
81
|
});
|
|
78
82
|
}
|
|
79
|
-
_handleSwitchToVersionChange(
|
|
80
|
-
this._switchToVersion =
|
|
83
|
+
_handleSwitchToVersionChange(t) {
|
|
84
|
+
this._switchToVersion = t.target.checked;
|
|
81
85
|
}
|
|
82
86
|
render() {
|
|
83
|
-
const { selected:
|
|
84
|
-
return l`<calcite-flow-item .closable=${h} .description=${
|
|
87
|
+
const { selected: t, showBackButton: s, versionPropertiesElementProps: { closable: h, currentUser: d, state: m, strings: e, versionInfo: c }, _mode: i, _ownerName: r, _versionName: a } = this, o = l`<calcite-button appearance=outline slot=footer width=full @click=${this._handleCancel}>${e.actions.cancelSave}</calcite-button><calcite-button appearance=solid slot=footer width=full @click=${this._handleSave}>${e.actions.saveVersion}</calcite-button>`, n = l`<calcite-label>${e.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${i === "edit" && c.access === "public" || i === "create"} label=public>${e.accessLevels.public}</calcite-chip><calcite-chip .selected=${i === "edit" && c.access === "protected"} label=protected>${e.accessLevels.protected}</calcite-chip><calcite-chip .selected=${i === "edit" && c.access === "private"} label=private>${e.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`, _ = l`<calcite-label>${e.input.versionDescription}<calcite-text-area limit-text max-length=64 name=description resize=none rows=2 scale=s .value=${i === "edit" ? c.description : ""} @calciteTextAreaInput=${this._handleChange}></calcite-text-area></calcite-label>`, f = l`<calcite-label>${e.input.versionName}<calcite-input-text max-length=62 name=versionName .value=${i === "edit" ? a : ""} @calciteInputTextInput=${this._handleChange} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`, b = l`<calcite-label>${e.input.versionOwner}<calcite-input-text name=ownerName .value=${i === "edit" ? r : d} @calciteInputTextInput=${this._handleChange}></calcite-input-text></calcite-label>`, g = i === "create" ? l`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${e.actions.switchToVersion}</calcite-label>` : void 0, w = this._validationError ? l`<calcite-notice closable kind=warning open scale=s width=full @calciteNoticeClose=${() => this._validationError = void 0}><div slot=message>${this._validationError}</div></calcite-notice>` : void 0;
|
|
88
|
+
return l`<calcite-flow-item .closable=${h} .description=${c ? c.versionIdentifier.name : ""} .heading=${c ? e.actions.editVersion : e.actions.newVersion} .selected=${t} .showBackButton=${s} @calciteFlowItemClose=${this._handleClose} ${v(this._flowItemElement)}><calcite-panel .loading=${m === "executing"}><calcite-block expanded .label=${e.headers.versionProperties}>${f}${_}${n}${b}${g}${w}</calcite-block>${o}</calcite-panel></calcite-flow-item>`;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
|
|
91
|
+
$("arcgis-version-management-version-properties", x);
|
|
88
92
|
export {
|
|
89
|
-
|
|
93
|
+
x as ArcgisVersionManagementVersionProperties
|
|
90
94
|
};
|
|
@@ -5,6 +5,7 @@ import "@esri/calcite-components/components/calcite-chip";
|
|
|
5
5
|
import "@esri/calcite-components/components/calcite-text-area";
|
|
6
6
|
import "@esri/calcite-components/components/calcite-input-text";
|
|
7
7
|
import "@esri/calcite-components/components/calcite-checkbox";
|
|
8
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
8
9
|
import "@esri/calcite-components/components/calcite-flow-item";
|
|
9
10
|
import "@esri/calcite-components/components/calcite-panel";
|
|
10
11
|
import "@esri/calcite-components/components/calcite-block";
|