@arcgis/map-components 4.32.0-next.55 → 4.32.0-next.57
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/{YT4IRHK6.js → 2YHU2XWU.js} +2 -2
- package/dist/arcgis-map-components/{MDKVXX6K.js → 3OQGOLTN.js} +2 -2
- package/dist/arcgis-map-components/{632EOAZB.js → 4AKSHN2F.js} +2 -2
- package/dist/arcgis-map-components/{2HXOB7NN.js → 4LXXFNMV.js} +2 -2
- package/dist/arcgis-map-components/{QDVD5KLK.js → 4MQVEBCS.js} +2 -2
- package/dist/arcgis-map-components/{QQLGKPIJ.js → 5CXYQAG2.js} +2 -2
- package/dist/arcgis-map-components/{HMYRXBDG.js → 5HXT7Q52.js} +2 -2
- package/dist/arcgis-map-components/{ML2JI7PY.js → 5PUCPPRN.js} +2 -2
- package/dist/arcgis-map-components/{FGCVWQTU.js → 6ASDW7MF.js} +2 -2
- package/dist/arcgis-map-components/{JBFKVEEU.js → 6OQB7WQ4.js} +2 -2
- package/dist/arcgis-map-components/{I6EPR7OO.js → 6PYNCQQT.js} +2 -2
- package/dist/arcgis-map-components/{Z2SRHL2F.js → 6WKV4SUQ.js} +2 -2
- package/dist/arcgis-map-components/{GWV4XN2J.js → 6ZF5J3I7.js} +2 -2
- package/dist/arcgis-map-components/{GHVFKNO6.js → 7O5NETNJ.js} +2 -2
- package/dist/arcgis-map-components/{YIJSP45O.js → A5HEBUDH.js} +2 -2
- package/dist/arcgis-map-components/{4A2QUMUJ.js → ABHDJTYU.js} +2 -2
- package/dist/arcgis-map-components/{A3F7BJPR.js → BKUPRBTN.js} +2 -2
- package/dist/arcgis-map-components/{GWZ22KOB.js → D2PXXCEX.js} +2 -2
- package/dist/arcgis-map-components/{RG2TICKX.js → D5ANZF24.js} +2 -2
- package/dist/arcgis-map-components/{DSDWBLCI.js → D7UYSSAN.js} +2 -2
- package/dist/arcgis-map-components/{D5BNZBQG.js → DDRW5HWP.js} +2 -2
- package/dist/arcgis-map-components/{FB5FLZQM.js → DMCJJPM2.js} +2 -2
- package/dist/arcgis-map-components/{YGWHUEC5.js → E3DPCAEB.js} +2 -2
- package/dist/arcgis-map-components/{6NMFGRWI.js → FGJGYIY7.js} +2 -2
- package/dist/arcgis-map-components/{VLL6C3Z3.js → FIUAL5BE.js} +2 -2
- package/dist/arcgis-map-components/{LW6O564D.js → FPQQQFRI.js} +2 -2
- package/dist/arcgis-map-components/{KDTAOITF.js → G5GHK4VX.js} +2 -2
- package/dist/arcgis-map-components/{CAWM7NWD.js → G65KUN7C.js} +2 -2
- package/dist/arcgis-map-components/{74SSTGEK.js → GCUTVBKY.js} +2 -2
- package/dist/arcgis-map-components/{EGMMO6B3.js → GLLDQ2J3.js} +2 -2
- package/dist/arcgis-map-components/{DBQJW7OT.js → H22OP5GJ.js} +2 -2
- package/dist/arcgis-map-components/{LCPJ2X5A.js → HJRLWOMC.js} +2 -2
- package/dist/arcgis-map-components/{OVRIV6RK.js → HUWGNLRA.js} +2 -2
- package/dist/arcgis-map-components/{E4N7YT6E.js → HX5HJNDC.js} +2 -2
- package/dist/arcgis-map-components/{UCCNJ6U3.js → ICEV3QAV.js} +2 -2
- package/dist/arcgis-map-components/{VTV77F5D.js → ILOOVZNN.js} +1 -1
- package/dist/arcgis-map-components/J6B3SEJ3.js +6 -0
- package/dist/arcgis-map-components/{NEUE4OHG.js → JMVFGJBD.js} +2 -2
- package/dist/arcgis-map-components/{6VHOGXPP.js → K6PWZWXG.js} +2 -2
- package/dist/arcgis-map-components/{7V5CZN75.js → KKYMY6DT.js} +2 -2
- package/dist/arcgis-map-components/{43SC7K27.js → L4PTPKU6.js} +2 -2
- package/dist/arcgis-map-components/{ISHWPHCP.js → LA4M6KQR.js} +2 -2
- package/dist/arcgis-map-components/{NLKXI35H.js → LXNM2MEA.js} +2 -2
- package/dist/arcgis-map-components/{FSTFEUNP.js → MHWDV2KG.js} +2 -2
- package/dist/arcgis-map-components/{FOOTHSNZ.js → MNGIGCDO.js} +2 -2
- package/dist/arcgis-map-components/{2TK3FX5M.js → NXIKOW2R.js} +2 -2
- package/dist/arcgis-map-components/{MXWJOVOK.js → O2HZGCHO.js} +2 -2
- package/dist/arcgis-map-components/{BNUJAF2X.js → OYRJL42M.js} +2 -2
- package/dist/arcgis-map-components/{N3XVRDHQ.js → QIDQ7Q5F.js} +2 -2
- package/dist/arcgis-map-components/{SY7NUIM3.js → QOLHJVFZ.js} +2 -2
- package/dist/arcgis-map-components/{G2ZV34LD.js → R6EWVYKI.js} +2 -2
- package/dist/arcgis-map-components/{I5SXR3NW.js → R6TKNGCP.js} +2 -2
- package/dist/arcgis-map-components/{FEFPIFXG.js → RADGGFFX.js} +2 -2
- package/dist/arcgis-map-components/{WB35MU6V.js → RNSQFL4P.js} +2 -2
- package/dist/arcgis-map-components/{X63J5A4X.js → RRNQABFM.js} +2 -2
- package/dist/arcgis-map-components/{XQ24COPH.js → RTPK3VH4.js} +2 -2
- package/dist/arcgis-map-components/{G44PJT6P.js → SCMEYPKP.js} +1 -1
- package/dist/arcgis-map-components/{6ESNR27U.js → SCMRWQK5.js} +2 -2
- package/dist/arcgis-map-components/{LS6KII4K.js → SPZOCMC5.js} +1 -1
- package/dist/arcgis-map-components/{CPGSW72K.js → T7YRCTXS.js} +2 -2
- package/dist/arcgis-map-components/UKXBLWCH.js +6 -0
- package/dist/arcgis-map-components/{BDJKX5AZ.js → UZIHBZTH.js} +2 -2
- package/dist/arcgis-map-components/{V7SEKNOK.js → WDJDJPLT.js} +2 -2
- package/dist/arcgis-map-components/{5NBG2UGH.js → X6TBRLE6.js} +2 -2
- package/dist/arcgis-map-components/{NTA5OPNU.js → XELMAVFT.js} +2 -2
- package/dist/arcgis-map-components/{ZKASXFWM.js → Y2V5VGMG.js} +2 -2
- package/dist/arcgis-map-components/{FIHUPT2L.js → YES6CSTR.js} +2 -2
- package/dist/arcgis-map-components/{NUFQJ2DJ.js → YGUU4TNS.js} +2 -2
- package/dist/arcgis-map-components/{DSSOZNNP.js → Z64HLDC4.js} +2 -2
- package/dist/arcgis-map-components/{VUPU4HQR.js → ZKS4YYJE.js} +1 -1
- package/dist/arcgis-map-components/{GLIDRRHL.js → ZVF7AYMF.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.ar.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.bg.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.bs.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.ca.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.cs.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.da.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.de.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.el.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.en.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.es.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.et.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.fi.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.fr.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.he.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.hr.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.hu.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.id.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.it.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.ja.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.ko.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.lt.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.lv.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.nl.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.no.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.pl.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.pt-BR.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.pt-PT.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.ro.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.ru.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.sk.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.sl.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.sr.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.sv.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.th.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.tr.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.uk.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.vi.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.zh-CN.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.zh-HK.json +1 -1
- package/dist/arcgis-map-components/assets/version-management/t9n/messages.zh-TW.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.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.d.ts +1 -0
- package/dist/components/arcgis-basemap-gallery/components/basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -0
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -0
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +1 -0
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -0
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +1 -0
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +1 -0
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +1 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +1 -0
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-directline-measurement-3d/customElement.d.ts +1 -0
- package/dist/components/arcgis-directline-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +1 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.d.ts +1 -0
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +1 -0
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -0
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -0
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-histogram/customElement.d.ts +1 -0
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +1 -0
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -0
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +1 -0
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +1 -0
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.d.ts +1 -0
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -0
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.d.ts +1 -0
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -0
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.d.ts +1 -0
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +1 -0
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -0
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +1 -0
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +1 -0
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +1 -0
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +1 -0
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.d.ts +1 -0
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.d.ts +1 -0
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -0
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.d.ts +1 -0
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -0
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +1 -0
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +15 -0
- package/dist/components/arcgis-version-management/customElement.js +126 -94
- package/dist/components/arcgis-version-management-service-item/customElement.d.ts +4 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +29 -29
- package/dist/components/arcgis-version-management-service-item/index.d.ts +1 -0
- package/dist/components/arcgis-version-management-service-item/index.js +1 -0
- package/dist/components/arcgis-version-management-version-item/customElement.d.ts +1 -0
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.d.ts +1 -0
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.d.ts +1 -0
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.d.ts +1 -0
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +53 -3
- package/dist/docs/docs.json +32 -5
- package/dist/docs/web-types.json +6 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/arcgis-map-components/CFSD3B2N.js +0 -6
- package/dist/arcgis-map-components/Q5EOCWUP.js +0 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { default as UtilityNetworkTrace } from '@arcgis/core/widgets/UtilityNetworkTrace';
|
|
3
4
|
import { ArcgisReferenceElement, WidgetElement } from '../../utils/component-utils';
|
|
4
5
|
import { Nil } from '@arcgis/components-utils';
|
|
@@ -8,7 +8,7 @@ import { LitElement as f, createEvent as t, noShadowRoot as w } 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.57
|
|
12
12
|
*/
|
|
13
13
|
class g extends f {
|
|
14
14
|
constructor() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { default as UtilityNetworkValidateTopology } from '@arcgis/core/widgets/UtilityNetworkValidateTopology';
|
|
3
4
|
import { ArcgisReferenceElement, WidgetElement } from '../../utils/component-utils';
|
|
4
5
|
import { Nil } from '@arcgis/components-utils';
|
|
@@ -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.57
|
|
12
12
|
*/
|
|
13
13
|
class m extends n {
|
|
14
14
|
constructor() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
3
4
|
import { Use } from '@arcgis/components-controllers';
|
|
4
5
|
import { Nil } from '@arcgis/components-utils';
|
|
@@ -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.57
|
|
12
12
|
*/
|
|
13
13
|
const l = r`arcgis-value-picker{display:block}`, c = s(e);
|
|
14
14
|
class u extends o {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { Use } from '@arcgis/components-controllers';
|
|
3
4
|
import { Nil } from '@arcgis/components-utils';
|
|
4
5
|
import { default as VersionManagementViewModel } from '@arcgis/core/widgets/VersionManagement/VersionManagementViewModel';
|
|
@@ -40,6 +41,10 @@ export interface VersioningStateEvent {
|
|
|
40
41
|
versionIdentifier?: __esri.VersionInfoVersionIdentifier;
|
|
41
42
|
versioningState?: __esri.VersioningState;
|
|
42
43
|
}
|
|
44
|
+
export interface InitialVersionInfo {
|
|
45
|
+
url: string;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
43
48
|
/** The Version Management Component allows users to view available versions, change versions, delete versions, and alter versions.
|
|
44
49
|
The [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) will update to match the features on the selected version.
|
|
45
50
|
To learn more about version management please visit the [versioning guide doc](https://developers.arcgis.com/javascript/latest/utility-network/version-management-service/).
|
|
@@ -78,6 +83,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
78
83
|
manageVersions: string;
|
|
79
84
|
filterVersions: string;
|
|
80
85
|
versionProperties: string;
|
|
86
|
+
invalidInitialVersion: string;
|
|
87
|
+
invalidInitialFeatureService: string;
|
|
81
88
|
};
|
|
82
89
|
input: {
|
|
83
90
|
versionAccess: string;
|
|
@@ -86,6 +93,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
86
93
|
versionOwner: string;
|
|
87
94
|
};
|
|
88
95
|
loadErrors: {
|
|
96
|
+
invalidInitialVersion: string;
|
|
97
|
+
invalidInitialFeatureService: string;
|
|
89
98
|
noFeatureServices: string;
|
|
90
99
|
noViewProperty: string;
|
|
91
100
|
};
|
|
@@ -118,6 +127,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
118
127
|
manageVersions: string;
|
|
119
128
|
filterVersions: string;
|
|
120
129
|
versionProperties: string;
|
|
130
|
+
invalidInitialVersion: string;
|
|
131
|
+
invalidInitialFeatureService: string;
|
|
121
132
|
};
|
|
122
133
|
input: {
|
|
123
134
|
versionAccess: string;
|
|
@@ -126,6 +137,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
126
137
|
versionOwner: string;
|
|
127
138
|
};
|
|
128
139
|
loadErrors: {
|
|
140
|
+
invalidInitialVersion: string;
|
|
141
|
+
invalidInitialFeatureService: string;
|
|
129
142
|
noFeatureServices: string;
|
|
130
143
|
noViewProperty: string;
|
|
131
144
|
};
|
|
@@ -140,6 +153,8 @@ export declare class ArcgisVersionManagement extends LitElement {
|
|
|
140
153
|
*/
|
|
141
154
|
autoDestroyDisabled: boolean;
|
|
142
155
|
closable: boolean;
|
|
156
|
+
set initialVersionInfos(value: InitialVersionInfo[]);
|
|
157
|
+
get initialVersionInfos(): InitialVersionInfo[];
|
|
143
158
|
icon: Nil | string;
|
|
144
159
|
label: string | undefined;
|
|
145
160
|
messageOverrides?: typeof this.messages._overrides;
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { html as
|
|
3
|
-
import { load as
|
|
4
|
-
import { importCoreReactiveUtils as
|
|
5
|
-
import { u as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { LitElement as
|
|
8
|
-
import { css as
|
|
1
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as h } from "lit-html";
|
|
3
|
+
import { load as _ } from "@arcgis/components-controllers";
|
|
4
|
+
import { importCoreReactiveUtils as y, newWidgetsVersionManagementVersionManagementViewModel as P } from "@arcgis/core-adapter";
|
|
5
|
+
import { u as F, m as M } from "../../chunks/useViewModel.js";
|
|
6
|
+
import { createRef as C, ref as N } from "lit-html/directives/ref.js";
|
|
7
|
+
import { LitElement as k, createEvent as w, noShadowRoot as b, safeClassMap as $ } from "@arcgis/lumina";
|
|
8
|
+
import { css as A } 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.57
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
15
|
-
class
|
|
14
|
+
const T = A`.initial-version-invalid-block{margin-bottom:1rem}.calcite-combobox-item{width:330px}.calcite-flow-widget{width:350px}calcite-block{margin:0}calcite-pagination{justify-content:center}`, x = M(P), u = "map-components:version-management";
|
|
15
|
+
class R extends k {
|
|
16
16
|
constructor() {
|
|
17
|
-
super(...arguments), this.flowElement =
|
|
17
|
+
super(...arguments), this.flowElement = C(), this.messages = F({ blocking: !0 }), this.reactiveUtils = _(y), this.viewModel = x(this), this._isInitialVersionInvalid = /* @__PURE__ */ new Map(), this._initialVersionInfos = [], this._showInvalidFeatureServiceNotice = !1, 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();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
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 };
|
|
20
|
+
this.properties = { versionList: 16, _showInvalidFeatureServiceNotice: 16, allowEditingDisabled: 5, autoDestroyDisabled: 5, closable: 7, initialVersionInfos: 0, 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 = b;
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
this.styles =
|
|
26
|
+
this.styles = T;
|
|
27
|
+
}
|
|
28
|
+
set initialVersionInfos(e) {
|
|
29
|
+
this._initialVersionInfos = e.map((i) => ({
|
|
30
|
+
...i,
|
|
31
|
+
url: this._removeTrailingSlash(i.url)
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
get initialVersionInfos() {
|
|
35
|
+
return this._initialVersionInfos;
|
|
27
36
|
}
|
|
28
37
|
// #endregion
|
|
29
38
|
// #region Public Methods
|
|
@@ -33,73 +42,84 @@ class A extends M {
|
|
|
33
42
|
}
|
|
34
43
|
// #endregion
|
|
35
44
|
// #region Lifecycle
|
|
36
|
-
load() {
|
|
37
|
-
const {
|
|
38
|
-
this.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
async load() {
|
|
46
|
+
const { once: e, watch: i } = this.reactiveUtils;
|
|
47
|
+
e(() => this.viewModel.state === "ready").then(() => {
|
|
48
|
+
this.initialVersionInfos.forEach((o) => {
|
|
49
|
+
try {
|
|
50
|
+
this._changeToInitialVersion(o);
|
|
51
|
+
} catch (s) {
|
|
52
|
+
console.error(s);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}), this.manager.onLifecycle(() => [
|
|
56
|
+
i(() => this.viewModel.state, (o) => {
|
|
57
|
+
const { flowElement: { value: s }, versionList: t } = this, r = s?.getElementsByTagName("arcgis-version-management-version-properties")[0];
|
|
58
|
+
if (o === "disabled" && s) {
|
|
59
|
+
r && this._removeVersionPropertiesFlowItem(s), t && this._removeVersionListFlowItem(s);
|
|
43
60
|
return;
|
|
44
61
|
}
|
|
45
|
-
|
|
46
|
-
...
|
|
62
|
+
t && (t.versionListElementProps = {
|
|
63
|
+
...t.versionListElementProps,
|
|
47
64
|
executionError: this.viewModel.executionError
|
|
48
|
-
},
|
|
49
|
-
...
|
|
50
|
-
state:
|
|
51
|
-
}),
|
|
52
|
-
...
|
|
53
|
-
state:
|
|
65
|
+
}, t.versionListElementProps = {
|
|
66
|
+
...t.versionListElementProps,
|
|
67
|
+
state: o
|
|
68
|
+
}), r && (r.versionPropertiesElementProps = {
|
|
69
|
+
...r.versionPropertiesElementProps,
|
|
70
|
+
state: o
|
|
54
71
|
});
|
|
55
72
|
})
|
|
56
73
|
]);
|
|
57
74
|
}
|
|
58
75
|
// #endregion
|
|
59
76
|
// #region Private Methods
|
|
77
|
+
_removeTrailingSlash(e) {
|
|
78
|
+
return e.replace(/\/+$/u, "");
|
|
79
|
+
}
|
|
60
80
|
_createVersionPropertiesFlowItem(e, i) {
|
|
61
|
-
const { closable:
|
|
81
|
+
const { closable: o, flowElement: { value: s }, viewModel: t, viewModel: { state: r } } = this, n = document.createElement("arcgis-version-management-version-properties");
|
|
62
82
|
return n.versionPropertiesElementProps = {
|
|
63
|
-
closable:
|
|
83
|
+
closable: o,
|
|
64
84
|
currentUser: t.userLookup.get(e),
|
|
65
85
|
hasAdvEditingUte: t.advancedEditingUserTypeExtensionLookup.get(e),
|
|
66
86
|
isVersionAdministrator: t.versionAdministratorLookup.get(e),
|
|
67
87
|
serviceUrl: e,
|
|
68
|
-
state:
|
|
88
|
+
state: r,
|
|
69
89
|
strings: this.messages,
|
|
70
90
|
versionInfo: i
|
|
71
|
-
}, n.selected = !0, n.showBackButton = !0, n.addEventListener("arcgisCreateVersion", (
|
|
72
|
-
const { createVersionParameters:
|
|
73
|
-
t.createVersion(
|
|
74
|
-
|
|
91
|
+
}, n.selected = !0, n.showBackButton = !0, n.addEventListener("arcgisCreateVersion", (a) => {
|
|
92
|
+
const { createVersionParameters: d, switchToVersion: v } = a.detail;
|
|
93
|
+
t.createVersion(d).then(async (l) => {
|
|
94
|
+
l && this.arcgisVersioningStateChanged.emit({
|
|
75
95
|
type: "version-created",
|
|
76
|
-
versionIdentifier:
|
|
96
|
+
versionIdentifier: l.versionIdentifier,
|
|
77
97
|
versioningState: t.versioningStateLookup.get(e)
|
|
78
|
-
}),
|
|
79
|
-
|
|
98
|
+
}), v && await this.viewModel.changeVersion(e, l.versionIdentifier.name, l.versionIdentifier.guid).then((g) => {
|
|
99
|
+
g && this.arcgisVersioningStateChanged.emit({
|
|
80
100
|
type: "version-switched",
|
|
81
|
-
versionIdentifier:
|
|
101
|
+
versionIdentifier: l.versionIdentifier,
|
|
82
102
|
versioningState: t.versioningStateLookup.get(e)
|
|
83
103
|
});
|
|
84
104
|
}), await this._refreshVersionList(e);
|
|
85
105
|
}).finally(() => {
|
|
86
|
-
|
|
106
|
+
s && this._removeVersionPropertiesFlowItem(s);
|
|
87
107
|
});
|
|
88
|
-
}), n.addEventListener("arcgisAlterVersion", async (
|
|
89
|
-
const { flowElement: { value:
|
|
90
|
-
await t.alterVersion(
|
|
91
|
-
|
|
108
|
+
}), n.addEventListener("arcgisAlterVersion", async (a) => {
|
|
109
|
+
const { flowElement: { value: d } } = this, { alterVersionParameters: v } = a.detail;
|
|
110
|
+
await t.alterVersion(v).then(async (l) => {
|
|
111
|
+
l && this.arcgisVersioningStateChanged.emit({
|
|
92
112
|
type: "version-changed",
|
|
93
|
-
versionIdentifier:
|
|
113
|
+
versionIdentifier: v.versionIdentifier,
|
|
94
114
|
versioningState: t.versioningStateLookup.get(e)
|
|
95
115
|
}), await this._refreshVersionList(e);
|
|
96
116
|
}).finally(() => {
|
|
97
|
-
|
|
117
|
+
d && this._removeVersionPropertiesFlowItem(d);
|
|
98
118
|
});
|
|
99
119
|
}), n.addEventListener("arcgisFlowItemBack", () => {
|
|
100
120
|
this._removeVersionPropertiesFlowItem(this.flowElement.value);
|
|
101
|
-
}), n.addEventListener("calciteFlowItemBack", (
|
|
102
|
-
|
|
121
|
+
}), n.addEventListener("calciteFlowItemBack", (a) => {
|
|
122
|
+
a.preventDefault(), this._removeVersionPropertiesFlowItem(this.flowElement.value), this.versionList && (this.versionList.selected = !0);
|
|
103
123
|
}), n.addEventListener("calciteFlowItemClose", () => {
|
|
104
124
|
this._handleFlowItemClose();
|
|
105
125
|
}), n;
|
|
@@ -115,6 +135,16 @@ class A extends M {
|
|
|
115
135
|
return e;
|
|
116
136
|
}
|
|
117
137
|
}
|
|
138
|
+
_changeToInitialVersion(e) {
|
|
139
|
+
const { _isInitialVersionInvalid: i, viewModel: o } = this, { url: s, name: t } = e, r = o.versioningStateLookup.get(s);
|
|
140
|
+
if (!r)
|
|
141
|
+
throw this._showInvalidFeatureServiceNotice = !0, new Error(`${u} - no versioning state found for feature service ${s}`);
|
|
142
|
+
const n = r?.versionInfos.find((v) => v.versionIdentifier.name === t);
|
|
143
|
+
if (!n)
|
|
144
|
+
throw i.set(s, !0), new Error(`${u} - version ${t} not found in the versioning state for feature service ${s}`);
|
|
145
|
+
const a = n.versionIdentifier, d = r?.currentVersionInfo.versionIdentifier;
|
|
146
|
+
a.guid !== d?.guid && o.changeVersion(s, a.name, a.guid);
|
|
147
|
+
}
|
|
118
148
|
_handleFlowItemClose() {
|
|
119
149
|
const e = document.querySelector("arcgis-version-management");
|
|
120
150
|
e.parentElement?.removeChild(e);
|
|
@@ -124,52 +154,52 @@ class A extends M {
|
|
|
124
154
|
this.flowElement.value?.appendChild(i), this.versionList && (this.versionList.selected = !1);
|
|
125
155
|
}
|
|
126
156
|
async _handleManageVersionAction(e) {
|
|
127
|
-
const { actionType: i, serviceUrl:
|
|
157
|
+
const { actionType: i, serviceUrl: o, versionInfo: s } = e.detail, { viewModel: t, flowElement: r } = this;
|
|
128
158
|
switch (i) {
|
|
129
159
|
case "changeVersion": {
|
|
130
|
-
t.changeVersion(
|
|
160
|
+
t.changeVersion(o, s.versionIdentifier.name, s.versionIdentifier.guid).then((n) => {
|
|
131
161
|
n && this.arcgisVersioningStateChanged.emit({
|
|
132
162
|
type: "version-switched",
|
|
133
|
-
versionIdentifier:
|
|
134
|
-
versioningState: t.versioningStateLookup.get(
|
|
163
|
+
versionIdentifier: s.versionIdentifier,
|
|
164
|
+
versioningState: t.versioningStateLookup.get(o)
|
|
135
165
|
});
|
|
136
|
-
const { versionList:
|
|
137
|
-
|
|
138
|
-
...
|
|
139
|
-
currentVersionIdentifier: t.versioningStateLookup.get(
|
|
166
|
+
const { versionList: a } = this;
|
|
167
|
+
a && (a.versionListElementProps = {
|
|
168
|
+
...a.versionListElementProps,
|
|
169
|
+
currentVersionIdentifier: t.versioningStateLookup.get(o).currentVersionInfo.versionIdentifier
|
|
140
170
|
});
|
|
141
171
|
});
|
|
142
172
|
break;
|
|
143
173
|
}
|
|
144
174
|
case "deleteVersion": {
|
|
145
|
-
t.deleteVersion(
|
|
175
|
+
t.deleteVersion(o, s.versionIdentifier.name, s.versionIdentifier.guid).then(async (n) => {
|
|
146
176
|
n && this.arcgisVersioningStateChanged.emit({
|
|
147
177
|
type: "version-deleted",
|
|
148
|
-
versionIdentifier:
|
|
149
|
-
versioningState: t.versioningStateLookup.get(
|
|
150
|
-
}), await this._refreshVersionList(
|
|
178
|
+
versionIdentifier: s.versionIdentifier,
|
|
179
|
+
versioningState: t.versioningStateLookup.get(o)
|
|
180
|
+
}), await this._refreshVersionList(o);
|
|
151
181
|
});
|
|
152
182
|
break;
|
|
153
183
|
}
|
|
154
184
|
case "editVersion": {
|
|
155
|
-
const n = this._createVersionPropertiesFlowItem(
|
|
156
|
-
|
|
185
|
+
const n = this._createVersionPropertiesFlowItem(o, s);
|
|
186
|
+
r.value?.appendChild(n), this.versionList && (this.versionList.selected = !1);
|
|
157
187
|
break;
|
|
158
188
|
}
|
|
159
189
|
}
|
|
160
190
|
}
|
|
161
191
|
async _refreshVersionList(e) {
|
|
162
|
-
const { flowElement: { value: i }, versionList:
|
|
192
|
+
const { flowElement: { value: i }, versionList: o, viewModel: s } = this;
|
|
163
193
|
if (i) {
|
|
164
|
-
const t = await
|
|
165
|
-
for (const n of
|
|
194
|
+
const t = await s.getVersionInfos(e), r = i.getElementsByTagName("arcgis-version-management-service-item");
|
|
195
|
+
for (const n of r)
|
|
166
196
|
n.serviceItemElementProps.serviceUrl === e && (n.serviceItemElementProps = {
|
|
167
197
|
...n.serviceItemElementProps,
|
|
168
198
|
versionInfos: t
|
|
169
199
|
});
|
|
170
|
-
|
|
171
|
-
...
|
|
172
|
-
currentVersionIdentifier:
|
|
200
|
+
o && (o.versionListElementProps = {
|
|
201
|
+
...o.versionListElementProps,
|
|
202
|
+
currentVersionIdentifier: s.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,
|
|
173
203
|
versionInfos: t
|
|
174
204
|
});
|
|
175
205
|
}
|
|
@@ -185,42 +215,44 @@ class A extends M {
|
|
|
185
215
|
// #endregion
|
|
186
216
|
// #region Rendering
|
|
187
217
|
render() {
|
|
188
|
-
const { allowEditingDisabled: e, closable: i, flowElement: { value:
|
|
189
|
-
const
|
|
218
|
+
const { allowEditingDisabled: e, closable: i, flowElement: { value: o }, initialVersionInfos: s, _isInitialVersionInvalid: t, label: r, messages: n, mode: a, pageSize: d, versionList: v, viewModel: l, viewModel: { loadError: g, state: m } } = this, I = Array.from(l.serviceNameLookup, ([c, f]) => ({ url: c, name: f })), V = m !== "disabled" ? I.map((c) => {
|
|
219
|
+
const f = {
|
|
190
220
|
allowEditing: !e,
|
|
191
221
|
closable: i,
|
|
192
|
-
currentUser:
|
|
193
|
-
currentVersionIdentifier:
|
|
222
|
+
currentUser: l.userLookup.get(c.url),
|
|
223
|
+
currentVersionIdentifier: l.versioningStateLookup.get(c.url).currentVersionInfo.versionIdentifier,
|
|
194
224
|
executionError: void 0,
|
|
195
|
-
flowElement:
|
|
196
|
-
hasAdvEditingUte:
|
|
197
|
-
heading:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
225
|
+
flowElement: o,
|
|
226
|
+
hasAdvEditingUte: l.advancedEditingUserTypeExtensionLookup.get(c.url),
|
|
227
|
+
heading: r,
|
|
228
|
+
initialVersionInfos: s,
|
|
229
|
+
isInitialVersionInvalid: t,
|
|
230
|
+
isVersionAdministrator: l.versionAdministratorLookup.get(c.url),
|
|
231
|
+
isVersioningApiAvailable: (l.serverVersionLookup.get(c.url) ?? 0) >= 11.2,
|
|
232
|
+
mode: a,
|
|
233
|
+
pageSize: d,
|
|
202
234
|
serviceName: c.name,
|
|
203
|
-
state:
|
|
235
|
+
state: m,
|
|
204
236
|
serviceUrl: c.url,
|
|
205
|
-
strings:
|
|
206
|
-
versionInfos:
|
|
237
|
+
strings: n,
|
|
238
|
+
versionInfos: l.versioningStateLookup.get(c.url)?.versionInfos ?? []
|
|
207
239
|
};
|
|
208
|
-
return
|
|
209
|
-
await this._refreshVersionList(
|
|
240
|
+
return h`<arcgis-version-management-service-item .serviceItemElementProps=${f} @arcgisGetVersions=${async (p) => {
|
|
241
|
+
await this._refreshVersionList(p.detail.serviceUrl);
|
|
210
242
|
}} @arcgisFlowItemBack=${() => {
|
|
211
|
-
|
|
243
|
+
o && (this._removeVersionListFlowItem(o), this.versionList = void 0);
|
|
212
244
|
}} @arcgisFlowItemClose=${() => {
|
|
213
245
|
this._handleFlowItemClose();
|
|
214
|
-
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(
|
|
215
|
-
this.versionList =
|
|
246
|
+
}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${(p) => {
|
|
247
|
+
this.versionList = p.detail;
|
|
216
248
|
}}></arcgis-version-management-service-item>`;
|
|
217
|
-
}) : void 0,
|
|
218
|
-
return
|
|
249
|
+
}) : void 0, E = m === "disabled" ? h`<calcite-notice class="notice" kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(g)}</div></calcite-notice>` : void 0, L = this._showInvalidFeatureServiceNotice ? h`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${() => this._showInvalidFeatureServiceNotice = !1}><div slot=title>${n.headers.invalidInitialFeatureService}</div><div slot=message>${n.loadErrors.invalidInitialFeatureService}</div></calcite-notice>` : void 0;
|
|
250
|
+
return h`<calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" class=${$(this.mode === "dialog" ? "" : "calcite-flow-widget")} ${N(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${r ?? void 0} @calciteFlowItemClose=${() => {
|
|
219
251
|
this._handleFlowItemClose();
|
|
220
|
-
}} .selected=${!
|
|
252
|
+
}} .selected=${!v}>${L}<calcite-panel .loading=${m === "loading" || m === "executing"}>${V}${E}</calcite-panel></calcite-flow-item></calcite-flow>`;
|
|
221
253
|
}
|
|
222
254
|
}
|
|
223
|
-
|
|
255
|
+
S("arcgis-version-management", R);
|
|
224
256
|
export {
|
|
225
|
-
|
|
257
|
+
R as ArcgisVersionManagement
|
|
226
258
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { Nil } from '@arcgis/components-utils';
|
|
3
4
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
5
|
import { ArcgisVersionManagementVersionList } from '../arcgis-version-management-version-list/customElement.js';
|
|
5
|
-
import { ArcgisVersionManagement } from '../arcgis-version-management/customElement.js';
|
|
6
|
+
import { ArcgisVersionManagement, InitialVersionInfo } from '../arcgis-version-management/customElement.js';
|
|
6
7
|
|
|
7
8
|
/** @private */
|
|
8
9
|
export declare class ArcgisVersionManagementServiceItem extends LitElement {
|
|
@@ -16,6 +17,8 @@ export declare class ArcgisVersionManagementServiceItem extends LitElement {
|
|
|
16
17
|
hasAdvEditingUte: boolean;
|
|
17
18
|
heading: string;
|
|
18
19
|
mode: Nil | string;
|
|
20
|
+
initialVersionInfos: InitialVersionInfo[];
|
|
21
|
+
isInitialVersionInvalid: Map<string, boolean>;
|
|
19
22
|
isVersionAdministrator: boolean;
|
|
20
23
|
isVersioningApiAvailable: boolean;
|
|
21
24
|
pageSize: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { html as
|
|
3
|
-
import { LitElement as C, createEvent as
|
|
1
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as t } from "lit-html";
|
|
3
|
+
import { LitElement as C, createEvent as n, noShadowRoot as G, safeClassMap as F } 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.57
|
|
8
8
|
*/
|
|
9
|
-
class
|
|
9
|
+
class y 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 C {
|
|
|
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._showInvalidVersionNotice = !0, this.arcgisFlowItemBack = n(), this.arcgisFlowItemClose = n(), this.arcgisGetVersions = n(), this.arcgisManageVersion = n(), this.arcgisNewVersion = n(), this.arcgisCreateVersionList = n();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
20
|
-
this.properties = { serviceItemElementProps: 0 };
|
|
20
|
+
this.properties = { _showInvalidVersionNotice: 16, serviceItemElementProps: 0 };
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
|
-
this.shadowRootOptions =
|
|
23
|
+
this.shadowRootOptions = G;
|
|
24
24
|
}
|
|
25
25
|
// #endregion
|
|
26
26
|
// #region Lifecycle
|
|
@@ -33,44 +33,44 @@ class G extends C {
|
|
|
33
33
|
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);
|
|
34
34
|
}
|
|
35
35
|
_removeVersionListEventListeners(e) {
|
|
36
|
-
for (const [
|
|
37
|
-
e.removeEventListener(
|
|
36
|
+
for (const [c, l] of this._versionListEventListeners)
|
|
37
|
+
e.removeEventListener(c, l);
|
|
38
38
|
}
|
|
39
39
|
// #endregion
|
|
40
40
|
// #region Rendering
|
|
41
41
|
render() {
|
|
42
|
-
const { serviceItemElementProps: { allowEditing: e, closable:
|
|
42
|
+
const { serviceItemElementProps: { allowEditing: e, closable: c, currentUser: l, executionError: h, currentVersionIdentifier: d, flowElement: V, hasAdvEditingUte: p, heading: L, isInitialVersionInvalid: E, isVersionAdministrator: _, isVersioningApiAvailable: b, mode: w, pageSize: I, serviceName: o, serviceUrl: g, state: u, strings: r, versionInfos: a } } = this;
|
|
43
43
|
let { _versionList: i } = this;
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: g, versionInfo:
|
|
47
|
-
}}>${
|
|
48
|
-
let
|
|
49
|
-
return e && (
|
|
44
|
+
const f = E.get(g) && this._showInvalidVersionNotice ? t`<calcite-notice class="initial-version-invalid-block" closable kind=warning open scale=s width=full icon @calciteNoticeClose=${() => this._showInvalidVersionNotice = !1}><div slot=title>${r.headers.invalidInitialVersion}</div><div slot=message>${r.loadErrors.invalidInitialVersion}</div></calcite-notice>` : void 0, $ = t`<calcite-combobox clear-disabled .label=${o} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${(s) => {
|
|
45
|
+
const x = s.target, M = a.find((N) => N.versionIdentifier.guid === x.value);
|
|
46
|
+
this.arcgisManageVersion.emit({ actionType: "changeVersion", serviceUrl: g, versionInfo: M });
|
|
47
|
+
}}>${a ? a.map((s) => t`<calcite-combobox-item class=${F(w === "dialog" ? "" : "calcite-combobox-item")} .selected=${d.guid === s.versionIdentifier.guid && d.name === s.versionIdentifier.name} .textLabel=${s.versionIdentifier.name} .value=${s.versionIdentifier.guid}></calcite-combobox-item>`) : void 0}</calcite-combobox>`;
|
|
48
|
+
let m, v;
|
|
49
|
+
return e && (m = t`<calcite-action .id=${`actionManageVersions_${o}`} icon=list scale=s slot=control text @click=${async () => {
|
|
50
50
|
i = document.createElement("arcgis-version-management-version-list"), i.versionListElementProps = {
|
|
51
|
-
closable:
|
|
52
|
-
currentUser:
|
|
53
|
-
currentVersionIdentifier:
|
|
51
|
+
closable: c,
|
|
52
|
+
currentUser: l,
|
|
53
|
+
currentVersionIdentifier: d,
|
|
54
54
|
executionError: h,
|
|
55
55
|
hasAdvEditingUte: p,
|
|
56
56
|
heading: L,
|
|
57
|
-
isVersionAdministrator:
|
|
57
|
+
isVersionAdministrator: _,
|
|
58
58
|
isVersioningApiAvailable: b,
|
|
59
|
-
pageSize:
|
|
60
|
-
serviceName:
|
|
59
|
+
pageSize: I,
|
|
60
|
+
serviceName: o,
|
|
61
61
|
serviceUrl: g,
|
|
62
|
-
state:
|
|
63
|
-
strings:
|
|
64
|
-
versionInfos:
|
|
62
|
+
state: u,
|
|
63
|
+
strings: r,
|
|
64
|
+
versionInfos: a
|
|
65
65
|
}, i.selected = !0, i.showBackButton = !0, i.addEventListener("calciteFlowItemBack", (s) => {
|
|
66
66
|
s.preventDefault(), this.arcgisFlowItemBack.emit();
|
|
67
67
|
}), i.addEventListener("calciteFlowItemClose", () => {
|
|
68
68
|
this.arcgisFlowItemClose.emit();
|
|
69
69
|
}), this._addVersionListEventListeners(i), V?.append(i), this.arcgisCreateVersionList.emit(i);
|
|
70
|
-
}}></calcite-action>`, v =
|
|
70
|
+
}}></calcite-action>`, v = t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`actionManageVersions_${o}`}><span>${r.headers.manageVersions}</span></calcite-tooltip>`), t`<calcite-block open .heading=${o}>${f}${$}${m}${v}</calcite-block>`;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
k("arcgis-version-management-service-item", y);
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
y as ArcgisVersionManagementServiceItem
|
|
76
76
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
4
|
import { ArcgisVersionManagement } from '../arcgis-version-management/customElement.js';
|
|
4
5
|
|
|
@@ -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.57
|
|
8
8
|
*/
|
|
9
9
|
class E extends b {
|
|
10
10
|
constructor() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
/// <reference types="../../index.d.ts" />
|
|
2
3
|
import { PropertyValues } from 'lit';
|
|
3
4
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
4
5
|
import { ArcgisVersionManagement } from '../arcgis-version-management/customElement.js';
|
|
@@ -6,7 +6,7 @@ import { css as U } from "@lit/reactive-element/css-tag.js";
|
|
|
6
6
|
/*!
|
|
7
7
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
9
|
-
* v4.32.0-next.
|
|
9
|
+
* v4.32.0-next.57
|
|
10
10
|
*/
|
|
11
11
|
const A = U`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}calcite-block{margin-block:0}calcite-pagination{justify-content:center}`;
|
|
12
12
|
class N extends F {
|