@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
|
@@ -8,7 +8,7 @@ import { LitElement as n, createEvent as w, noShadowRoot as c } from "@arcgis/lu
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.49
|
|
12
12
|
*/
|
|
13
13
|
class m extends n {
|
|
14
14
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
/*!
|
|
9
9
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
11
|
-
* v4.32.0-next.
|
|
11
|
+
* v4.32.0-next.49
|
|
12
12
|
*/
|
|
13
13
|
const l = r`arcgis-value-picker{display:block}`, c = s(e);
|
|
14
14
|
class u extends o {
|
|
@@ -40,6 +40,7 @@ export interface VersioningStateEvent {
|
|
|
40
40
|
versionIdentifier?: __esri.VersionInfoVersionIdentifier;
|
|
41
41
|
versioningState?: __esri.VersioningState;
|
|
42
42
|
}
|
|
43
|
+
export type VersioningFlowState = "properties" | "root" | "version-list";
|
|
43
44
|
export declare class ArcgisVersionManagement extends LitElement {
|
|
44
45
|
private messages: {
|
|
45
46
|
label: string;
|
|
@@ -68,6 +69,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
68
69
|
headers: {
|
|
69
70
|
currentVersion: string;
|
|
70
71
|
manageVersions: string;
|
|
72
|
+
filterVersions: string;
|
|
73
|
+
versionProperties: string;
|
|
71
74
|
};
|
|
72
75
|
input: {
|
|
73
76
|
versionAccess: string;
|
|
@@ -106,6 +109,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
106
109
|
headers: {
|
|
107
110
|
currentVersion: string;
|
|
108
111
|
manageVersions: string;
|
|
112
|
+
filterVersions: string;
|
|
113
|
+
versionProperties: string;
|
|
109
114
|
};
|
|
110
115
|
input: {
|
|
111
116
|
versionAccess: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as E } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as f } from "lit-html";
|
|
3
|
-
import { load as
|
|
3
|
+
import { load as I } from "@arcgis/components-controllers";
|
|
4
4
|
import { importCoreReactiveUtils as V, newWidgetsVersionManagementVersionManagementViewModel as L } from "@arcgis/core-adapter";
|
|
5
|
-
import { u as S, m as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { LitElement as M, createEvent as p, noShadowRoot as
|
|
5
|
+
import { u as S, m as P } from "../../chunks/useViewModel.js";
|
|
6
|
+
import { createRef as y, ref as C } from "lit-html/directives/ref.js";
|
|
7
|
+
import { LitElement as M, createEvent as p, noShadowRoot as k, safeClassMap as _ } from "@arcgis/lumina";
|
|
8
8
|
import { css as F } 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
|
-
const
|
|
14
|
+
const b = F`.calcite-combobox-item{width:330px}.calcite-flow-widget{width:350px}calcite-block{margin:0}calcite-pagination{justify-content:center}`, N = P(L);
|
|
15
15
|
class A extends M {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this.flowElement =
|
|
17
|
+
super(...arguments), this.flowElement = y(), this.messages = S({ blocking: !0 }), this.reactiveUtils = I(V), this.viewModel = N(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 = p(), this.arcgisVersioningStateChanged = p();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
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 };
|
|
20
|
+
this.properties = { versionList: 16, 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 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.shadowRootOptions =
|
|
23
|
+
this.shadowRootOptions = k;
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.styles =
|
|
26
|
+
this.styles = b;
|
|
27
27
|
}
|
|
28
28
|
// #endregion
|
|
29
29
|
// #region Public Methods
|
|
@@ -37,19 +37,19 @@ class A extends M {
|
|
|
37
37
|
const { watch: e } = this.reactiveUtils;
|
|
38
38
|
this.manager.onLifecycle(() => [
|
|
39
39
|
e(() => this.viewModel.state, (i) => {
|
|
40
|
-
const { flowElement: { value: s } } = this,
|
|
41
|
-
if (i === "disabled") {
|
|
42
|
-
|
|
40
|
+
const { flowElement: { value: s }, versionList: o } = this, t = s?.getElementsByTagName("arcgis-version-management-version-properties")[0];
|
|
41
|
+
if (i === "disabled" && s) {
|
|
42
|
+
t && this._removeVersionPropertiesFlowItem(s), o && this._removeVersionListFlowItem(s);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
...
|
|
45
|
+
o && (o.versionListElementProps = {
|
|
46
|
+
...o.versionListElementProps,
|
|
47
47
|
executionError: this.viewModel.executionError
|
|
48
|
-
},
|
|
49
|
-
...
|
|
48
|
+
}, o.versionListElementProps = {
|
|
49
|
+
...o.versionListElementProps,
|
|
50
50
|
state: i
|
|
51
|
-
}),
|
|
52
|
-
...
|
|
51
|
+
}), t && (t.versionPropertiesElementProps = {
|
|
52
|
+
...t.versionPropertiesElementProps,
|
|
53
53
|
state: i
|
|
54
54
|
});
|
|
55
55
|
})
|
|
@@ -58,48 +58,48 @@ class A extends M {
|
|
|
58
58
|
// #endregion
|
|
59
59
|
// #region Private Methods
|
|
60
60
|
_createVersionPropertiesFlowItem(e, i) {
|
|
61
|
-
const { closable: s, flowElement: { value: o }, viewModel: t, viewModel: { state:
|
|
61
|
+
const { closable: s, flowElement: { value: o }, viewModel: t, viewModel: { state: m } } = this, n = document.createElement("arcgis-version-management-version-properties");
|
|
62
62
|
return n.versionPropertiesElementProps = {
|
|
63
63
|
closable: s,
|
|
64
64
|
currentUser: t.userLookup.get(e),
|
|
65
65
|
hasAdvEditingUte: t.advancedEditingUserTypeExtensionLookup.get(e),
|
|
66
66
|
isVersionAdministrator: t.versionAdministratorLookup.get(e),
|
|
67
67
|
serviceUrl: e,
|
|
68
|
-
state:
|
|
68
|
+
state: m,
|
|
69
69
|
strings: this.messages,
|
|
70
70
|
versionInfo: i
|
|
71
|
-
}, n.addEventListener("arcgisCreateVersion", (
|
|
72
|
-
const { createVersionParameters:
|
|
73
|
-
t.createVersion(
|
|
74
|
-
|
|
71
|
+
}, n.selected = !0, n.showBackButton = !0, n.addEventListener("arcgisCreateVersion", (l) => {
|
|
72
|
+
const { createVersionParameters: a, switchToVersion: d } = l.detail;
|
|
73
|
+
t.createVersion(a).then(async (r) => {
|
|
74
|
+
r && this.arcgisVersioningStateChanged.emit({
|
|
75
75
|
type: "version-created",
|
|
76
|
-
versionIdentifier:
|
|
76
|
+
versionIdentifier: r.versionIdentifier,
|
|
77
77
|
versioningState: t.versioningStateLookup.get(e)
|
|
78
|
-
}),
|
|
79
|
-
|
|
78
|
+
}), d && await this.viewModel.changeVersion(e, r.versionIdentifier.name, r.versionIdentifier.guid).then((v) => {
|
|
79
|
+
v && this.arcgisVersioningStateChanged.emit({
|
|
80
80
|
type: "version-switched",
|
|
81
|
-
versionIdentifier:
|
|
81
|
+
versionIdentifier: r.versionIdentifier,
|
|
82
82
|
versioningState: t.versioningStateLookup.get(e)
|
|
83
83
|
});
|
|
84
84
|
}), await this._refreshVersionList(e);
|
|
85
85
|
}).finally(() => {
|
|
86
86
|
o && this._removeVersionPropertiesFlowItem(o);
|
|
87
87
|
});
|
|
88
|
-
}), n.addEventListener("arcgisAlterVersion", async (
|
|
89
|
-
const { flowElement: { value:
|
|
90
|
-
await t.alterVersion(
|
|
91
|
-
|
|
88
|
+
}), n.addEventListener("arcgisAlterVersion", async (l) => {
|
|
89
|
+
const { flowElement: { value: a } } = this, { alterVersionParameters: d } = l.detail;
|
|
90
|
+
await t.alterVersion(d).then(async (r) => {
|
|
91
|
+
r && this.arcgisVersioningStateChanged.emit({
|
|
92
92
|
type: "version-changed",
|
|
93
|
-
versionIdentifier:
|
|
93
|
+
versionIdentifier: d.versionIdentifier,
|
|
94
94
|
versioningState: t.versioningStateLookup.get(e)
|
|
95
95
|
}), await this._refreshVersionList(e);
|
|
96
96
|
}).finally(() => {
|
|
97
|
-
|
|
97
|
+
a && this._removeVersionPropertiesFlowItem(a);
|
|
98
98
|
});
|
|
99
99
|
}), n.addEventListener("arcgisFlowItemBack", () => {
|
|
100
100
|
this._removeVersionPropertiesFlowItem(this.flowElement.value);
|
|
101
|
-
}), n.addEventListener("calciteFlowItemBack", (
|
|
102
|
-
|
|
101
|
+
}), n.addEventListener("calciteFlowItemBack", (l) => {
|
|
102
|
+
l.preventDefault(), this._removeVersionPropertiesFlowItem(this.flowElement.value), this.versionList && (this.versionList.selected = !0);
|
|
103
103
|
}), n.addEventListener("calciteFlowItemClose", () => {
|
|
104
104
|
this._handleFlowItemClose();
|
|
105
105
|
}), n;
|
|
@@ -119,8 +119,12 @@ class A extends M {
|
|
|
119
119
|
const e = document.querySelector("arcgis-version-management");
|
|
120
120
|
e.parentElement?.removeChild(e);
|
|
121
121
|
}
|
|
122
|
+
async _handleNewVersionAction(e) {
|
|
123
|
+
const i = this._createVersionPropertiesFlowItem(e.detail.serviceUrl, void 0);
|
|
124
|
+
this.flowElement.value?.appendChild(i), this.versionList && (this.versionList.selected = !1);
|
|
125
|
+
}
|
|
122
126
|
async _handleManageVersionAction(e) {
|
|
123
|
-
const { actionType: i, serviceUrl: s, versionInfo: o } = e.detail, { viewModel: t, flowElement:
|
|
127
|
+
const { actionType: i, serviceUrl: s, versionInfo: o } = e.detail, { viewModel: t, flowElement: m } = this;
|
|
124
128
|
switch (i) {
|
|
125
129
|
case "changeVersion": {
|
|
126
130
|
t.changeVersion(s, o.versionIdentifier.name, o.versionIdentifier.guid).then((n) => {
|
|
@@ -129,9 +133,9 @@ class A extends M {
|
|
|
129
133
|
versionIdentifier: o.versionIdentifier,
|
|
130
134
|
versioningState: t.versioningStateLookup.get(s)
|
|
131
135
|
});
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
...
|
|
136
|
+
const { versionList: l } = this;
|
|
137
|
+
l && (l.versionListElementProps = {
|
|
138
|
+
...l.versionListElementProps,
|
|
135
139
|
currentVersionIdentifier: t.versioningStateLookup.get(s).currentVersionInfo.versionIdentifier
|
|
136
140
|
});
|
|
137
141
|
});
|
|
@@ -149,76 +153,74 @@ class A extends M {
|
|
|
149
153
|
}
|
|
150
154
|
case "editVersion": {
|
|
151
155
|
const n = this._createVersionPropertiesFlowItem(s, o);
|
|
152
|
-
|
|
156
|
+
m.value?.appendChild(n), this.versionList && (this.versionList.selected = !1);
|
|
153
157
|
break;
|
|
154
158
|
}
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
async _refreshVersionList(e) {
|
|
158
|
-
const { flowElement: { value: i },
|
|
162
|
+
const { flowElement: { value: i }, versionList: s, viewModel: o } = this;
|
|
159
163
|
if (i) {
|
|
160
|
-
const
|
|
161
|
-
for (const n of
|
|
164
|
+
const t = await o.getVersionInfos(e), m = i.getElementsByTagName("arcgis-version-management-service-item");
|
|
165
|
+
for (const n of m)
|
|
162
166
|
n.serviceItemElementProps.serviceUrl === e && (n.serviceItemElementProps = {
|
|
163
167
|
...n.serviceItemElementProps,
|
|
164
|
-
versionInfos:
|
|
168
|
+
versionInfos: t
|
|
165
169
|
});
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
versionInfos: o
|
|
170
|
+
s && (s.versionListElementProps = {
|
|
171
|
+
...s.versionListElementProps,
|
|
172
|
+
currentVersionIdentifier: o.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,
|
|
173
|
+
versionInfos: t
|
|
171
174
|
});
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
177
|
_removeVersionListFlowItem(e) {
|
|
175
178
|
for (const i of e.childNodes)
|
|
176
|
-
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-LIST" && e.removeChild(i), i.nodeName.toUpperCase() === "CALCITE-FLOW-ITEM" && (i.hidden = !1);
|
|
179
|
+
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-LIST" && (e.removeChild(i), this.versionList = void 0), i.nodeName.toUpperCase() === "CALCITE-FLOW-ITEM" && (i.hidden = !1);
|
|
177
180
|
}
|
|
178
181
|
_removeVersionPropertiesFlowItem(e) {
|
|
179
182
|
for (const i of e.childNodes)
|
|
180
|
-
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES" && e.removeChild(i)
|
|
183
|
+
i.nodeName.toUpperCase() === "ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES" && e.removeChild(i);
|
|
181
184
|
}
|
|
182
185
|
// #endregion
|
|
183
186
|
// #region Rendering
|
|
184
187
|
render() {
|
|
185
|
-
const { allowEditingDisabled: e, closable: i, flowElement: { value: s },
|
|
186
|
-
const
|
|
188
|
+
const { allowEditingDisabled: e, closable: i, flowElement: { value: s }, versionList: o, label: t, messages: m, mode: n, pageSize: l, viewModel: a, viewModel: { loadError: d, state: r } } = this, v = Array.from(a.serviceNameLookup, ([c, g]) => ({ url: c, name: g })), w = r !== "disabled" ? v.map((c) => {
|
|
189
|
+
const g = {
|
|
187
190
|
allowEditing: !e,
|
|
188
191
|
closable: i,
|
|
189
|
-
currentUser:
|
|
190
|
-
currentVersionIdentifier:
|
|
192
|
+
currentUser: a.userLookup.get(c.url),
|
|
193
|
+
currentVersionIdentifier: a.versioningStateLookup.get(c.url).currentVersionInfo.versionIdentifier,
|
|
191
194
|
executionError: void 0,
|
|
192
195
|
flowElement: s,
|
|
193
|
-
hasAdvEditingUte:
|
|
194
|
-
heading:
|
|
195
|
-
isVersionAdministrator:
|
|
196
|
-
isVersioningApiAvailable: (
|
|
197
|
-
mode:
|
|
198
|
-
pageSize:
|
|
199
|
-
serviceName:
|
|
200
|
-
state:
|
|
201
|
-
serviceUrl:
|
|
202
|
-
strings:
|
|
203
|
-
versionInfos:
|
|
196
|
+
hasAdvEditingUte: a.advancedEditingUserTypeExtensionLookup.get(c.url),
|
|
197
|
+
heading: t,
|
|
198
|
+
isVersionAdministrator: a.versionAdministratorLookup.get(c.url),
|
|
199
|
+
isVersioningApiAvailable: (a.serverVersionLookup.get(c.url) ?? 0) >= 11.2,
|
|
200
|
+
mode: n,
|
|
201
|
+
pageSize: l,
|
|
202
|
+
serviceName: c.name,
|
|
203
|
+
state: r,
|
|
204
|
+
serviceUrl: c.url,
|
|
205
|
+
strings: m,
|
|
206
|
+
versionInfos: a.versioningStateLookup.get(c.url)?.versionInfos ?? []
|
|
204
207
|
};
|
|
205
|
-
return f`<arcgis-version-management-service-item .serviceItemElementProps=${
|
|
208
|
+
return f`<arcgis-version-management-service-item .serviceItemElementProps=${g} @arcgisGetVersions=${async (h) => {
|
|
206
209
|
await this._refreshVersionList(h.detail.serviceUrl);
|
|
207
210
|
}} @arcgisFlowItemBack=${() => {
|
|
208
|
-
s && this._removeVersionListFlowItem(s);
|
|
211
|
+
s && (this._removeVersionListFlowItem(s), this.versionList = void 0);
|
|
209
212
|
}} @arcgisFlowItemClose=${() => {
|
|
210
213
|
this._handleFlowItemClose();
|
|
211
|
-
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${(h) => {
|
|
212
|
-
|
|
213
|
-
s?.appendChild(E);
|
|
214
|
+
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(h) => {
|
|
215
|
+
this.versionList = h.detail;
|
|
214
216
|
}}></arcgis-version-management-service-item>`;
|
|
215
|
-
}) : void 0,
|
|
216
|
-
return f`<calcite-flow class=${
|
|
217
|
+
}) : void 0, u = r === "disabled" ? f`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(d)}</div></calcite-notice>` : void 0;
|
|
218
|
+
return f`<calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" class=${_(this.mode === "dialog" ? "" : "calcite-flow-widget")} ${C(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${t ?? void 0} @calciteFlowItemClose=${() => {
|
|
217
219
|
this._handleFlowItemClose();
|
|
218
|
-
}}><calcite-panel .loading=${
|
|
220
|
+
}} .selected=${!o}><calcite-panel .loading=${r === "loading" || r === "executing"}>${w}${u}</calcite-panel></calcite-flow-item></calcite-flow>`;
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
|
-
|
|
223
|
+
E("arcgis-version-management", A);
|
|
222
224
|
export {
|
|
223
225
|
A as ArcgisVersionManagement
|
|
224
226
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
import { Nil } from '@arcgis/components-utils';
|
|
3
3
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
|
+
import { ArcgisVersionManagementVersionList } from '../arcgis-version-management-version-list/customElement.js';
|
|
4
5
|
import { ArcgisVersionManagement } from '../arcgis-version-management/customElement.js';
|
|
5
6
|
|
|
6
7
|
/** @private */
|
|
@@ -37,4 +38,5 @@ export declare class ArcgisVersionManagementServiceItem extends LitElement {
|
|
|
37
38
|
readonly arcgisNewVersion: TargetedEvent<this, {
|
|
38
39
|
serviceUrl: string;
|
|
39
40
|
}>;
|
|
41
|
+
readonly arcgisCreateVersionList: TargetedEvent<this, import('@arcgis/lumina').ToElement<ArcgisVersionManagementVersionList>>;
|
|
40
42
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as I } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { html as r } from "lit-html";
|
|
3
|
+
import { LitElement as C, createEvent as t, noShadowRoot as k, safeClassMap as N } from "@arcgis/lumina";
|
|
4
4
|
/*!
|
|
5
5
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
7
|
-
* v4.32.0-next.
|
|
7
|
+
* v4.32.0-next.49
|
|
8
8
|
*/
|
|
9
|
-
class G extends
|
|
9
|
+
class G extends C {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this._arcgisGetVersions = (e) => {
|
|
12
12
|
this.arcgisGetVersions.emit(e.detail);
|
|
@@ -14,13 +14,13 @@ class G extends k {
|
|
|
14
14
|
this.arcgisManageVersion.emit(e.detail);
|
|
15
15
|
}, this._arcgisNewVersion = (e) => {
|
|
16
16
|
this.arcgisNewVersion.emit(e.detail);
|
|
17
|
-
}, this._versionListEventListeners = /* @__PURE__ */ new Map(), this.arcgisFlowItemBack =
|
|
17
|
+
}, this._versionListEventListeners = /* @__PURE__ */ new Map(), this.arcgisFlowItemBack = t(), this.arcgisFlowItemClose = t(), this.arcgisGetVersions = t(), this.arcgisManageVersion = t(), this.arcgisNewVersion = t(), this.arcgisCreateVersionList = t();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
20
|
this.properties = { serviceItemElementProps: 0 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.shadowRootOptions =
|
|
23
|
+
this.shadowRootOptions = k;
|
|
24
24
|
}
|
|
25
25
|
// #endregion
|
|
26
26
|
// #region Lifecycle
|
|
@@ -39,15 +39,15 @@ class G extends k {
|
|
|
39
39
|
// #endregion
|
|
40
40
|
// #region Rendering
|
|
41
41
|
render() {
|
|
42
|
-
const { serviceItemElementProps: { allowEditing: e, closable: a, currentUser: c, executionError: h, currentVersionIdentifier: l, flowElement: V, hasAdvEditingUte: p, heading: L, isVersionAdministrator: E, isVersioningApiAvailable: b, mode: _, pageSize:
|
|
43
|
-
let { _versionList:
|
|
44
|
-
const
|
|
45
|
-
const $ =
|
|
42
|
+
const { serviceItemElementProps: { allowEditing: e, closable: a, currentUser: c, executionError: h, currentVersionIdentifier: l, flowElement: V, hasAdvEditingUte: p, heading: L, isVersionAdministrator: E, isVersioningApiAvailable: b, mode: _, pageSize: u, serviceName: n, serviceUrl: g, state: f, strings: m, versionInfos: o } } = this;
|
|
43
|
+
let { _versionList: i } = this;
|
|
44
|
+
const w = r`<calcite-combobox clear-disabled .label=${n} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${(s) => {
|
|
45
|
+
const $ = s.target, x = o.find((M) => M.versionIdentifier.guid === $.value);
|
|
46
46
|
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: g, versionInfo: x });
|
|
47
|
-
}}>${o ? o.map((
|
|
47
|
+
}}>${o ? o.map((s) => r`<calcite-combobox-item class=${N(_ === "dialog" ? "" : "calcite-combobox-item")} .selected=${l.guid === s.versionIdentifier.guid && l.name === s.versionIdentifier.name} .textLabel=${s.versionIdentifier.name} .value=${s.versionIdentifier.guid}></calcite-combobox-item>`) : void 0}</calcite-combobox>`;
|
|
48
48
|
let d, v;
|
|
49
|
-
return e && (d =
|
|
50
|
-
|
|
49
|
+
return e && (d = r`<calcite-action .id=${`actionManageVersions_${n}`} icon=list scale=s slot=control text @click=${async () => {
|
|
50
|
+
i = document.createElement("arcgis-version-management-version-list"), i.versionListElementProps = {
|
|
51
51
|
closable: a,
|
|
52
52
|
currentUser: c,
|
|
53
53
|
currentVersionIdentifier: l,
|
|
@@ -56,18 +56,18 @@ class G extends k {
|
|
|
56
56
|
heading: L,
|
|
57
57
|
isVersionAdministrator: E,
|
|
58
58
|
isVersioningApiAvailable: b,
|
|
59
|
-
pageSize:
|
|
60
|
-
serviceName:
|
|
59
|
+
pageSize: u,
|
|
60
|
+
serviceName: n,
|
|
61
61
|
serviceUrl: g,
|
|
62
|
-
state:
|
|
62
|
+
state: f,
|
|
63
63
|
strings: m,
|
|
64
64
|
versionInfos: o
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
}),
|
|
65
|
+
}, i.selected = !0, i.showBackButton = !0, i.addEventListener("calciteFlowItemBack", (s) => {
|
|
66
|
+
s.preventDefault(), this.arcgisFlowItemBack.emit();
|
|
67
|
+
}), i.addEventListener("calciteFlowItemClose", () => {
|
|
68
68
|
this.arcgisFlowItemClose.emit();
|
|
69
|
-
}), this._addVersionListEventListeners(
|
|
70
|
-
}}></calcite-action>`, v =
|
|
69
|
+
}), this._addVersionListEventListeners(i), V?.append(i), this.arcgisCreateVersionList.emit(i);
|
|
70
|
+
}}></calcite-action>`, v = r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`actionManageVersions_${n}`}><span>${m.headers.manageVersions}</span></calcite-tooltip>`), r`<calcite-block open .heading=${n}>${w}${d}${v}</calcite-block>`;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
I("arcgis-version-management-service-item", G);
|
|
@@ -4,7 +4,7 @@ import { LitElement as b, createEvent as f, noShadowRoot as x, nothing as I } fr
|
|
|
4
4
|
/*!
|
|
5
5
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
7
|
-
* v4.32.0-next.
|
|
7
|
+
* v4.32.0-next.49
|
|
8
8
|
*/
|
|
9
9
|
class E extends b {
|
|
10
10
|
constructor() {
|
|
@@ -19,7 +19,7 @@ class E extends b {
|
|
|
19
19
|
// #endregion
|
|
20
20
|
// #region Rendering
|
|
21
21
|
render() {
|
|
22
|
-
const { versionItemElementProps: { currentUser: d, currentVersionIdentifier: m, hasAdvEditingUte: g, isVersionAdministrator: p, isVersioningApiAvailable: h, serviceUrl: t, strings: { actions: n }, versionInfo: e } } = this, s = e.versionIdentifier.name, V = s.substring(s.lastIndexOf(".") + 1), a = s.substring(0, s.lastIndexOf(".")), r = e.versionIdentifier.guid, l = `actionSwitchToVersion_${r}`, o = a.toUpperCase() === d.toUpperCase() && h && g || p, i = m.guid === e.versionIdentifier.guid, $ = c`<calcite-action .disabled=${i} id=${l ?? I} icon=code-branch text @click=${() => {
|
|
22
|
+
const { versionItemElementProps: { currentUser: d, currentVersionIdentifier: m, hasAdvEditingUte: g, isVersionAdministrator: p, isVersioningApiAvailable: h, serviceUrl: t, strings: { actions: n }, versionInfo: e } } = this, s = e.versionIdentifier.name, V = s.substring(s.lastIndexOf(".") + 1), a = s.substring(0, s.lastIndexOf(".")), r = e.versionIdentifier.guid, l = `actionSwitchToVersion_${r}`, o = a.toUpperCase() === d.toUpperCase() && h && g || p, i = m.guid === e.versionIdentifier.guid, $ = c`<calcite-action appearance=transparent .disabled=${i} id=${l ?? I} icon=code-branch text @click=${() => {
|
|
23
23
|
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: t, versionInfo: e });
|
|
24
24
|
}} slot=actions-start></calcite-action>`, u = i ? void 0 : c`<calcite-tooltip overlay-positioning=fixed .referenceElement=${l}><span>${n.switchToVersion}</span></calcite-tooltip>`;
|
|
25
25
|
return c`<calcite-list-item .description=${a} .label=${V} .value=${r}>${$}${u}<calcite-action-menu overlay-positioning=fixed slot=actions-end label><calcite-action .disabled=${i} icon=code-branch @click=${() => {
|
|
@@ -22,6 +22,8 @@ export type VersionListElementProps = {
|
|
|
22
22
|
/** @private */
|
|
23
23
|
export declare class ArcgisVersionManagementVersionList extends LitElement {
|
|
24
24
|
currentPage: number;
|
|
25
|
+
selected: boolean;
|
|
26
|
+
showBackButton: boolean;
|
|
25
27
|
versionListElementProps: VersionListElementProps;
|
|
26
28
|
readonly arcgisGetVersions: TargetedEvent<this, {
|
|
27
29
|
serviceUrl: string;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { html as
|
|
3
|
-
import { createRef as
|
|
4
|
-
import { LitElement as
|
|
1
|
+
import { c as y } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as s } from "lit";
|
|
3
|
+
import { createRef as p, ref as g } from "lit-html/directives/ref.js";
|
|
4
|
+
import { LitElement as F, createEvent as a } from "@arcgis/lumina";
|
|
5
|
+
import { css as U } 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 A = U`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}calcite-block{margin-block:0}calcite-pagination{justify-content:center}`;
|
|
12
|
+
class N extends F {
|
|
11
13
|
constructor() {
|
|
12
|
-
super(...arguments), this._filterInputElement =
|
|
14
|
+
super(...arguments), this._filterInputElement = p(), this._flowItemElement = p(), this.currentPage = 1, this.selected = !1, this.showBackButton = !1, this.arcgisGetVersions = a(), this.arcgisManageVersion = a(), this.arcgisNewVersion = a();
|
|
13
15
|
}
|
|
14
16
|
static {
|
|
15
|
-
this.properties = { _filteredVersionInfos: 16, currentPage: 11, versionListElementProps: 0 };
|
|
17
|
+
this.properties = { _filteredVersionInfos: 16, currentPage: 11, selected: 7, showBackButton: 7, versionListElementProps: 0 };
|
|
18
|
+
}
|
|
19
|
+
static {
|
|
20
|
+
this.styles = A;
|
|
21
|
+
}
|
|
22
|
+
// #endregion
|
|
23
|
+
// #region Public Methods
|
|
24
|
+
async setFocus() {
|
|
25
|
+
this._flowItemElement.value?.setFocus();
|
|
26
|
+
}
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28
|
+
goBack() {
|
|
16
29
|
}
|
|
17
30
|
// #endregion
|
|
18
31
|
// #region Lifecycle
|
|
@@ -21,8 +34,8 @@ class F extends U {
|
|
|
21
34
|
}
|
|
22
35
|
willUpdate(e) {
|
|
23
36
|
if (e.has("versionListElementProps")) {
|
|
24
|
-
const
|
|
25
|
-
|
|
37
|
+
const t = e.get("versionListElementProps"), i = this.versionListElementProps;
|
|
38
|
+
t?.versionInfos !== i.versionInfos && (this._filteredVersionInfos = i.versionInfos, this._filterInputElement.value && this._handleFilterChange());
|
|
26
39
|
}
|
|
27
40
|
}
|
|
28
41
|
updated() {
|
|
@@ -31,8 +44,8 @@ class F extends U {
|
|
|
31
44
|
// #endregion
|
|
32
45
|
// #region Private Methods
|
|
33
46
|
_handleFilterChange() {
|
|
34
|
-
const { versionListElementProps: { versionInfos: e } } = this,
|
|
35
|
-
this._filteredVersionInfos =
|
|
47
|
+
const { versionListElementProps: { versionInfos: e } } = this, t = this._filterInputElement.value.value.toUpperCase();
|
|
48
|
+
this._filteredVersionInfos = t === "" ? e : e.filter((i) => i.versionIdentifier.name.toUpperCase().includes(t) || i.versionIdentifier.guid.toUpperCase().includes(t)), this._filteredVersionInfos.length && (this.currentPage = 1);
|
|
36
49
|
}
|
|
37
50
|
_handleNoticeClosed() {
|
|
38
51
|
this.versionListElementProps = {
|
|
@@ -44,51 +57,51 @@ class F extends U {
|
|
|
44
57
|
this.currentPage = e.target.startItem;
|
|
45
58
|
}
|
|
46
59
|
_getExecutionError(e) {
|
|
47
|
-
const { versionListElementProps: { strings: { executionErrors:
|
|
60
|
+
const { versionListElementProps: { strings: { executionErrors: t } } } = this;
|
|
48
61
|
switch (e) {
|
|
49
62
|
case "no-advanced-editing-user-type-extension":
|
|
50
|
-
return
|
|
63
|
+
return t.noAdvancedEditingUserTypeExtension;
|
|
51
64
|
case "no-feature-service-found":
|
|
52
|
-
return
|
|
65
|
+
return t.noFeatureServiceFound;
|
|
53
66
|
case "no-valid-enterprise-version":
|
|
54
|
-
return
|
|
67
|
+
return t.notValidEnterpriseVersion;
|
|
55
68
|
case "no-valid-version-name":
|
|
56
|
-
return
|
|
69
|
+
return t.invalidVersionName;
|
|
57
70
|
default:
|
|
58
71
|
return e;
|
|
59
72
|
}
|
|
60
73
|
}
|
|
61
|
-
_paginate(e,
|
|
62
|
-
return e.slice((
|
|
74
|
+
_paginate(e, t, i) {
|
|
75
|
+
return e.slice((i - 1) * t, i * t);
|
|
63
76
|
}
|
|
64
77
|
// #endregion
|
|
65
78
|
// #region Rendering
|
|
66
79
|
render() {
|
|
67
|
-
const { currentPage: e, versionListElementProps: { closable:
|
|
80
|
+
const { currentPage: e, selected: t, showBackButton: i, versionListElementProps: { closable: m, currentUser: u, currentVersionIdentifier: l, executionError: c, hasAdvEditingUte: h, heading: v, isVersionAdministrator: V, isVersioningApiAvailable: d, pageSize: n, serviceName: I, serviceUrl: r, state: E, strings: { headers: f }, strings: o, versionInfos: _ } } = this, $ = s`<calcite-block .heading=${f.currentVersion} .description=${l.name} overlay-positioning=fixed></calcite-block>`, P = s`<calcite-action id=actionRefreshVersions icon=refresh text @click=${() => {
|
|
68
81
|
this.arcgisGetVersions.emit({
|
|
69
|
-
serviceUrl:
|
|
82
|
+
serviceUrl: r
|
|
70
83
|
});
|
|
71
|
-
}} slot=header-actions-end><calcite-tooltip overlay-positioning=fixed reference-element=actionRefreshVersions><span>${
|
|
72
|
-
this._paginatedVersionInfos = this._filteredVersionInfos.length >
|
|
73
|
-
const
|
|
74
|
-
currentUser:
|
|
84
|
+
}} slot=header-actions-end><calcite-tooltip overlay-positioning=fixed reference-element=actionRefreshVersions><span>${o.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`;
|
|
85
|
+
this._paginatedVersionInfos = this._filteredVersionInfos.length > n ? this._paginate(this._filteredVersionInfos, n, e) : this._filteredVersionInfos;
|
|
86
|
+
const x = 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, b = this._paginate(this._paginatedVersionInfos, n, 1).map((B) => s`<arcgis-version-management-version-item .versionItemElementProps=${{
|
|
87
|
+
currentUser: u,
|
|
75
88
|
currentVersionIdentifier: l,
|
|
76
89
|
isCurrentVersionCard: !1,
|
|
77
90
|
hasAdvEditingUte: h,
|
|
78
|
-
isVersionAdministrator:
|
|
91
|
+
isVersionAdministrator: V,
|
|
79
92
|
isVersioningApiAvailable: d,
|
|
80
|
-
serviceUrl:
|
|
81
|
-
strings:
|
|
82
|
-
versionInfo:
|
|
83
|
-
}}></arcgis-version-management-version-item>`),
|
|
93
|
+
serviceUrl: r,
|
|
94
|
+
strings: o,
|
|
95
|
+
versionInfo: B
|
|
96
|
+
}}></arcgis-version-management-version-item>`), w = _.length > n ? s`<calcite-block heading .label=${f.filterVersions} open><calcite-input-text clearable icon=search @calciteInputTextInput=${this._handleFilterChange} .placeholder=${o.actions.searchVersions} ${g(this._filterInputElement)}></calcite-input-text></calcite-block>` : void 0, k = s`<calcite-list label=versions>${b}</calcite-list>`, C = d && h ? s`<calcite-fab appearance=outline-fill slot=fab text-enabled .text=${o.actions.newVersion} @click=${() => {
|
|
84
97
|
this.arcgisNewVersion.emit({
|
|
85
|
-
serviceUrl:
|
|
98
|
+
serviceUrl: r
|
|
86
99
|
});
|
|
87
|
-
}}></calcite-fab>` : void 0,
|
|
88
|
-
return
|
|
100
|
+
}}></calcite-fab>` : void 0, L = c ? s`<calcite-notice @calciteNoticeClose=${this._handleNoticeClosed} class="notice" closable kind=warning open scale=s slot=footer width=full><div slot=message>${this._getExecutionError(c)}</div></calcite-notice>` : void 0;
|
|
101
|
+
return s`<calcite-flow-item .closable=${m} .description=${I} .heading=${v} .selected=${t} .showBackButton=${i} ${g(this._flowItemElement)}><calcite-panel .loading=${E === "executing"}>${$}<calcite-panel .heading=${this._filteredVersionInfos.length ? `${o.headers.manageVersions} (${this._filteredVersionInfos.length})` : o.headers.manageVersions}>${P}${w}${k}${C}</calcite-panel>${x}${L}</calcite-panel></calcite-flow-item>`;
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
|
-
|
|
104
|
+
y("arcgis-version-management-version-list", N);
|
|
92
105
|
export {
|
|
93
|
-
|
|
106
|
+
N as ArcgisVersionManagementVersionList
|
|
94
107
|
};
|
|
@@ -4,6 +4,8 @@ import { ArcgisVersionManagement } from '../arcgis-version-management/customElem
|
|
|
4
4
|
|
|
5
5
|
/** @private */
|
|
6
6
|
export declare class ArcgisVersionManagementVersionProperties extends LitElement {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
showBackButton: boolean;
|
|
7
9
|
versionPropertiesElementProps: {
|
|
8
10
|
closable: boolean;
|
|
9
11
|
currentUser: string;
|