@arcgis/map-components 5.0.0-next.163 → 5.0.0-next.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/27EX7BAT.js +2 -0
- package/dist/cdn/{ANP7PYGJ.js → 2FBKLGCE.js} +1 -1
- package/dist/cdn/{U3H7EVCU.js → 2GYHEEJC.js} +1 -1
- package/dist/cdn/2KXVCJMQ.js +2 -0
- package/dist/cdn/{K4PC3ILQ.js → 2TODV24L.js} +1 -1
- package/dist/cdn/{MAM7YHLA.js → 2VVXUYOF.js} +1 -1
- package/dist/cdn/{QUHJMEBB.js → 2YI467ME.js} +1 -1
- package/dist/cdn/34S3BZS7.js +2 -0
- package/dist/cdn/{JCW65STL.js → 36NT6EOS.js} +1 -1
- package/dist/cdn/{7NOD6U2Y.js → 3K3Q3L5Z.js} +1 -1
- package/dist/cdn/{ORVYHFUJ.js → 3L6KP67K.js} +1 -1
- package/dist/cdn/{UELD2T53.js → 3O5MUEQE.js} +1 -1
- package/dist/cdn/{ILFME5US.js → 3RF66PN5.js} +1 -1
- package/dist/cdn/{PYMUS3H4.js → 46XRVUAH.js} +1 -1
- package/dist/cdn/{CO7UZYM2.js → 4IFHPHVF.js} +1 -1
- package/dist/cdn/{42WUBROP.js → 4OMTR2QQ.js} +1 -1
- package/dist/cdn/{RZ4T32PU.js → 4PK3GJ4F.js} +1 -1
- package/dist/cdn/{BGG5VIEL.js → 53LWO7HI.js} +1 -1
- package/dist/cdn/{TGUIWWDN.js → 5M4DDFN6.js} +1 -1
- package/dist/cdn/{JWT66RP2.js → 5PG27K3A.js} +1 -1
- package/dist/cdn/{U4TAMNG3.js → 5UFFQJSU.js} +1 -1
- package/dist/cdn/{TQRR2FH6.js → 5Y6NI7HQ.js} +1 -1
- package/dist/cdn/{KAZBQ6OA.js → 67G4OVIE.js} +1 -1
- package/dist/cdn/{QKSSTPS3.js → 7INPCVND.js} +1 -1
- package/dist/cdn/{LE7AXIL2.js → 7QF7HEDI.js} +1 -1
- package/dist/cdn/{7AGJFQHK.js → AAH2GFLP.js} +1 -1
- package/dist/cdn/AC3NQPKC.js +2 -0
- package/dist/cdn/{26SX6MF4.js → AGY724TJ.js} +1 -1
- package/dist/cdn/AHTIA2R6.js +2 -0
- package/dist/cdn/{25HB2UBJ.js → AIRTNDBH.js} +1 -1
- package/dist/cdn/{JZXMWXVD.js → AOZ2GPBD.js} +1 -1
- package/dist/cdn/{PZ2JPHRS.js → AX67NWFX.js} +1 -1
- package/dist/cdn/{WDTFIXMM.js → BHWPGG7Z.js} +1 -1
- package/dist/cdn/{F2HPTFLQ.js → BPZSPB4L.js} +1 -1
- package/dist/cdn/{67DKLGTW.js → BQDOPZG6.js} +1 -1
- package/dist/cdn/{H5RGMC7S.js → BYVF7WOC.js} +1 -1
- package/dist/cdn/{KGJGLAWM.js → CAW2JA3E.js} +1 -1
- package/dist/cdn/{JUHCPSPF.js → CAYSZWRK.js} +1 -1
- package/dist/cdn/{CSU7GLED.js → CBR6PUEY.js} +1 -1
- package/dist/cdn/{CEB3VR24.js → CFZXYFU7.js} +1 -1
- package/dist/cdn/{R2FIOZIL.js → CGRFWSSV.js} +1 -1
- package/dist/cdn/{KWIBK4I5.js → CGROBDHE.js} +1 -1
- package/dist/cdn/{N7QKWBTM.js → COEDZB6D.js} +1 -1
- package/dist/cdn/{BKYII5LQ.js → CQ6KMSIO.js} +1 -1
- package/dist/cdn/CXJGKZ7S.js +2 -0
- package/dist/cdn/{5LG4S2WV.js → DGDL4K6G.js} +1 -1
- package/dist/cdn/{4ESEDU4X.js → DHOVN4JA.js} +1 -1
- package/dist/cdn/{IQ7EVFBF.js → DI66GYDO.js} +1 -1
- package/dist/cdn/{M3AVHGBC.js → DMUVML6L.js} +1 -1
- package/dist/cdn/{ZOBY4YF2.js → DXJ7TMEQ.js} +1 -1
- package/dist/cdn/EGCQFNG3.js +2 -0
- package/dist/cdn/EOFEVRA3.js +2 -0
- package/dist/cdn/{XCDPFMHG.js → FFKZELBO.js} +1 -1
- package/dist/cdn/{EO66UQLI.js → FNAMDUKT.js} +1 -1
- package/dist/cdn/{HYBTGX3N.js → FOLIPPYI.js} +1 -1
- package/dist/cdn/{4WMWNIPN.js → FZVLJT66.js} +1 -1
- package/dist/cdn/{NMUWFJ4U.js → GD4LUFAZ.js} +1 -1
- package/dist/cdn/{WV6XSMZW.js → GK5T2FD6.js} +1 -1
- package/dist/cdn/{AJ64UYFM.js → GNCHWVNF.js} +1 -1
- package/dist/cdn/{IL56ZRDO.js → GOBIBDSA.js} +1 -1
- package/dist/cdn/HOBC5TEW.js +2 -0
- package/dist/cdn/{YLSIF5R2.js → HVRIARCB.js} +1 -1
- package/dist/cdn/{7WJ6TNOT.js → IEH4OYWP.js} +1 -1
- package/dist/cdn/IMPTONCA.js +2 -0
- package/dist/cdn/{RYKRMJMK.js → IPCQCFE3.js} +1 -1
- package/dist/cdn/{FRGWWVJK.js → J2N4NGSM.js} +1 -1
- package/dist/cdn/{F6QNNUIN.js → J4BNEHAO.js} +1 -1
- package/dist/cdn/JDP3YCBM.js +2 -0
- package/dist/cdn/{RE2BXNZ3.js → JPZMCGTS.js} +1 -1
- package/dist/cdn/{2FTXKTA4.js → JW5X664C.js} +1 -1
- package/dist/cdn/{NXZJ43G3.js → JYJBSAJT.js} +1 -1
- package/dist/cdn/{RB7GCEEB.js → K6Z5GBWL.js} +1 -1
- package/dist/cdn/{6424II7L.js → KBQK73Z2.js} +1 -1
- package/dist/cdn/{UQKKALKO.js → KCQB4NNK.js} +1 -1
- package/dist/cdn/{DT74YNQP.js → KRVZWYAS.js} +1 -1
- package/dist/cdn/{OFQNQF6N.js → KVJKF3VJ.js} +1 -1
- package/dist/cdn/{J4XU75P7.js → KXTLXAZQ.js} +1 -1
- package/dist/cdn/{Z6LXLPK7.js → LRUQSH7S.js} +1 -1
- package/dist/cdn/{X7QWBVC2.js → M3LMLGTS.js} +1 -1
- package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
- package/dist/cdn/{FA3Z6QOE.js → MQYKZ2MY.js} +1 -1
- package/dist/cdn/{AX23Q2XH.js → N7JZUN7G.js} +1 -1
- package/dist/cdn/{ESNK6MCY.js → NMKZ77A3.js} +1 -1
- package/dist/cdn/{6IPVLMFQ.js → OJCRKH55.js} +1 -1
- package/dist/cdn/{WLNRPTCN.js → OKSHNWO7.js} +1 -1
- package/dist/cdn/{HKVQWRPL.js → OROETUZO.js} +1 -1
- package/dist/cdn/OY3WQBQM.js +2 -0
- package/dist/cdn/{KRVBBG4M.js → QGNFMBBV.js} +1 -1
- package/dist/cdn/{UW3G2BPO.js → QNCFWECI.js} +1 -1
- package/dist/cdn/{B7SDETM6.js → QSOGE4GS.js} +1 -1
- package/dist/cdn/{OKRTKYGF.js → QTOSV4XU.js} +1 -1
- package/dist/cdn/RTC24EVK.js +2 -0
- package/dist/cdn/{ONPN5M3Z.js → RTLNV5MH.js} +1 -1
- package/dist/cdn/RUC6NG6L.js +2 -0
- package/dist/cdn/RYH43ZOR.js +2 -0
- package/dist/cdn/{RMFIN5AS.js → RZDIL4FK.js} +1 -1
- package/dist/cdn/{NWXN5M4S.js → SAGJDTGS.js} +1 -1
- package/dist/cdn/SI3PITPE.js +2 -0
- package/dist/cdn/{AJIZTCGT.js → SS3BP5JY.js} +1 -1
- package/dist/cdn/{RU5U2DVA.js → STZ7NN7N.js} +1 -1
- package/dist/cdn/{T3JWZEB6.js → TBPQMJ3U.js} +1 -1
- package/dist/cdn/TCNK7NLA.js +2 -0
- package/dist/cdn/{3HYCJV4V.js → UCRB5RGH.js} +1 -1
- package/dist/cdn/{GAH6OGQE.js → UEUYXTE3.js} +1 -1
- package/dist/cdn/{LT5ALQM5.js → UFQOOCIO.js} +1 -1
- package/dist/cdn/{6IUQ5UHX.js → UFWKXIL5.js} +1 -1
- package/dist/cdn/UJXCCQWE.js +2 -0
- package/dist/cdn/{FD4A66OJ.js → V2QY34FP.js} +1 -1
- package/dist/cdn/{ZVTV4UKT.js → V4E5MPHA.js} +1 -1
- package/dist/cdn/{SK6O74LF.js → VAXL3OO6.js} +1 -1
- package/dist/cdn/{AHGLOKZI.js → VB66GDWY.js} +1 -1
- package/dist/cdn/{INYYRLED.js → VEBPC4NS.js} +1 -1
- package/dist/cdn/W627TIVM.js +2 -0
- package/dist/cdn/{DB2NOQ3D.js → WVRJP4IF.js} +1 -1
- package/dist/cdn/{QF7RABZH.js → WX4UNUXQ.js} +1 -1
- package/dist/cdn/{UBGE4QNR.js → WXQJ3OSA.js} +1 -1
- package/dist/cdn/{CGASUBOS.js → WXXTKBUN.js} +1 -1
- package/dist/cdn/{IKOLSNGV.js → WZVTF32R.js} +1 -1
- package/dist/cdn/X25QBU47.js +2 -0
- package/dist/cdn/{WBGZAAEK.js → X446GLUI.js} +1 -1
- package/dist/cdn/{G4FP7GXM.js → X4DF5NLE.js} +1 -1
- package/dist/cdn/{PQ5PGLJM.js → X4M3A7NY.js} +1 -1
- package/dist/cdn/{AEMKZZZS.js → X4PMY7Z5.js} +1 -1
- package/dist/cdn/{5DEOSU7J.js → X72XPU7O.js} +1 -1
- package/dist/cdn/{XIOIZK7A.js → X7Z2SLR4.js} +1 -1
- package/dist/cdn/{L5JWLRD3.js → XFCXD5BV.js} +1 -1
- package/dist/cdn/{D4PJU376.js → XL4ZVZQO.js} +1 -1
- package/dist/cdn/{SDWQW3ZX.js → XT5EYUOZ.js} +1 -1
- package/dist/cdn/{GCFNRINR.js → XUMBGLCM.js} +1 -1
- package/dist/cdn/{2AHY7O7C.js → Y7HAR5TE.js} +1 -1
- package/dist/cdn/{7OOAOM5T.js → YBPTQSLR.js} +1 -1
- package/dist/cdn/{YXYCWJFF.js → YGFR3GKE.js} +1 -1
- package/dist/cdn/{75LFOVPY.js → YJQ24JUD.js} +1 -1
- package/dist/cdn/{E5SXPWDJ.js → YOZLJOIM.js} +1 -1
- package/dist/cdn/{522HNMQI.js → YQ7TCV5A.js} +1 -1
- package/dist/cdn/{MD36SH63.js → YZSRJTGJ.js} +1 -1
- package/dist/cdn/{CXHSL2Y4.js → ZFHIU6DT.js} +1 -1
- package/dist/cdn/ZNBKMZP7.js +2 -0
- package/dist/cdn/{GMR2QJNU.js → ZY32LRC5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/measurementUtils.js +3 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +62 -74
- package/dist/components/arcgis-area-measurement-3d/customElement.js +52 -64
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +59 -71
- package/dist/components/arcgis-directions/customElement.d.ts +17 -0
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +58 -70
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-feature/customElement.js +6 -6
- package/dist/components/arcgis-feature-table/customElement.d.ts +57 -2
- package/dist/components/arcgis-feature-table/customElement.js +28 -13
- package/dist/components/arcgis-feature-templates/customElement.d.ts +3 -0
- package/dist/components/arcgis-feature-templates/customElement.js +2 -2
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +16 -16
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
- package/dist/components/arcgis-features/customElement.js +46 -52
- package/dist/components/arcgis-link-chart/customElement.js +10 -15
- package/dist/components/arcgis-map/customElement.js +1 -6
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +51 -47
- package/dist/components/arcgis-popup/customElement.js +106 -99
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +10 -0
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-scene/customElement.js +8 -13
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +7 -2
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +74 -14
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +12 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +80 -65
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +4 -0
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +13 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +39 -26
- package/dist/components/arcgis-volume-measurement/customElement.js +84 -84
- package/dist/components/types.d.ts +5 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +21 -21
- package/dist/types/lumina.d.ts +14 -14
- package/dist/types/preact.d.ts +14 -14
- package/dist/types/react.d.ts +14 -14
- package/dist/types/stencil.d.ts +14 -14
- package/package.json +4 -4
- package/dist/cdn/3URKZO5O.js +0 -2
- package/dist/cdn/55TRWAT7.js +0 -2
- package/dist/cdn/BHPXKX47.js +0 -2
- package/dist/cdn/D4LTASH2.js +0 -2
- package/dist/cdn/FKQSJXNW.js +0 -2
- package/dist/cdn/H7O5I4IF.js +0 -2
- package/dist/cdn/I5M2Z7WS.js +0 -2
- package/dist/cdn/L6YZXUBB.js +0 -2
- package/dist/cdn/LEUHIPSJ.js +0 -2
- package/dist/cdn/NZXDNMVC.js +0 -2
- package/dist/cdn/ODGGFBDK.js +0 -2
- package/dist/cdn/P76K34HQ.js +0 -2
- package/dist/cdn/P7PWOUNZ.js +0 -2
- package/dist/cdn/Q4B4MXH4.js +0 -2
- package/dist/cdn/RN57AN5P.js +0 -2
- package/dist/cdn/SKIP3GUP.js +0 -2
- package/dist/cdn/UNLAUFXF.js +0 -2
- package/dist/cdn/URUFNID2.js +0 -2
- package/dist/cdn/WREEAAEV.js +0 -2
- package/dist/cdn/WTTBFFC2.js +0 -2
- package/dist/cdn/Y4RMI55P.js +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as de } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as pe, html as d, svg as X } from "lit";
|
|
4
4
|
import { keyed as w } from "lit/directives/keyed.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { u as
|
|
7
|
-
import { m as
|
|
5
|
+
import { LitElement as he, createEvent as T, safeStyleMap as Z, nothing as ue, safeClassMap as me } from "@arcgis/lumina";
|
|
6
|
+
import { u as ge } from "../../chunks/useT9n.js";
|
|
7
|
+
import { m as ve } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { property as r, subclass as C } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
9
9
|
import U from "@arcgis/core/core/Accessor.js";
|
|
10
10
|
import B from "@arcgis/core/Graphic.js";
|
|
11
|
-
import { getApplicationClipboard as
|
|
12
|
-
import
|
|
13
|
-
import { g as
|
|
11
|
+
import { getApplicationClipboard as fe } from "@arcgis/core/applications/Components/clipboard.js";
|
|
12
|
+
import we from "@arcgis/core/layers/GraphicsLayer.js";
|
|
13
|
+
import { g as be, a as ye } from "../../chunks/clipoardSymbolHelper.js";
|
|
14
14
|
import j from "@arcgis/core/core/Collection.js";
|
|
15
|
-
import { getFullTemplate as J, isSharedTemplate as Q, getCreationAttributes as
|
|
15
|
+
import { getFullTemplate as J, isSharedTemplate as Q, getCreationAttributes as Me, isSharedTemplateOrMetadata as ie } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
16
16
|
import { createApplySetModifyItem as W, createApplySet as q, createFeatureStateProvider as K, createApplySetAddItem as R, writeApplySetToService as Ce } from "@arcgis/core/applications/Components/applySetUtils.js";
|
|
17
|
-
import { whenOnce as
|
|
17
|
+
import { whenOnce as ae, watch as N } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
18
|
import { getRendererFields as Y, getFeatureEditFields as Fe } from "@arcgis/core/layers/support/fieldUtils.js";
|
|
19
19
|
import _e from "@arcgis/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js";
|
|
20
20
|
import { f as ee } from "../../chunks/layer-utils.js";
|
|
@@ -23,13 +23,13 @@ import { usePropertyChange as xe } from "@arcgis/lumina/controllers";
|
|
|
23
23
|
import { createRef as V, ref as D } from "lit/directives/ref.js";
|
|
24
24
|
import "../arcgis-multi-feature-form/customElement.js";
|
|
25
25
|
import { createGraphicsMover as Pe } from "@arcgis/core/applications/Components/editUtils.js";
|
|
26
|
-
const $e =
|
|
26
|
+
const $e = pe`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.merge-feature-form{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;
|
|
27
27
|
async function Ae(e, t = {}) {
|
|
28
28
|
if (e?.type === "subtype-group") {
|
|
29
29
|
if (!e.subtypeField)
|
|
30
30
|
return [];
|
|
31
31
|
const a = t[e.subtypeField];
|
|
32
|
-
if (!
|
|
32
|
+
if (!le(a))
|
|
33
33
|
return [];
|
|
34
34
|
const s = e.findSublayerForSubtypeCode(a);
|
|
35
35
|
return s ? s.renderer && s.fieldsIndex ? await Y(s.renderer, e.fieldsIndex) : [] : [];
|
|
@@ -78,7 +78,7 @@ function Oe(e, t) {
|
|
|
78
78
|
}
|
|
79
79
|
return i;
|
|
80
80
|
}
|
|
81
|
-
async function
|
|
81
|
+
async function se(e, t, i, a) {
|
|
82
82
|
let s = !0;
|
|
83
83
|
const o = { hasAsyncArcadeExpressions: !1 }, l = e.items.filter((h) => h.type === "add");
|
|
84
84
|
for (const h of l) {
|
|
@@ -117,15 +117,15 @@ function Ge(e, t) {
|
|
|
117
117
|
}
|
|
118
118
|
async function ke(e, t, i, a, s) {
|
|
119
119
|
const o = i.formTemplate, l = i.fields.filter((f) => {
|
|
120
|
-
const z = t.attributes[f.name],
|
|
121
|
-
return f.editable && !f.nullable &&
|
|
120
|
+
const z = t.attributes[f.name], ce = z === null || z === "" || z === void 0;
|
|
121
|
+
return f.editable && !f.nullable && ce;
|
|
122
122
|
});
|
|
123
123
|
if (!o)
|
|
124
124
|
return l.length !== 0;
|
|
125
125
|
const h = /* @__PURE__ */ new Set();
|
|
126
|
-
|
|
126
|
+
oe(o.elements ?? [], h);
|
|
127
127
|
const p = /* @__PURE__ */ new Set();
|
|
128
|
-
if (
|
|
128
|
+
if (re(o.elements ?? [], p), h.size === 0 && p.size === 0)
|
|
129
129
|
return l.length > 0;
|
|
130
130
|
const u = t.clone();
|
|
131
131
|
u.layer = i, delete u.attributes[i.objectIdField], a.has(i) || a.set(
|
|
@@ -136,7 +136,7 @@ async function ke(e, t, i, a, s) {
|
|
|
136
136
|
})
|
|
137
137
|
);
|
|
138
138
|
const g = a.get(i);
|
|
139
|
-
if (g.features = new j([u]), await
|
|
139
|
+
if (g.features = new j([u]), await ae(
|
|
140
140
|
() => (g.status === "loaded" || g.status === "failed") && !g.updating
|
|
141
141
|
), g.hasAsyncArcadeExpressions && (s.hasAsyncArcadeExpressions = !0), g.status === "failed")
|
|
142
142
|
return !0;
|
|
@@ -153,15 +153,15 @@ async function ke(e, t, i, a, s) {
|
|
|
153
153
|
));
|
|
154
154
|
}), g.invalidFeatures.length > 0;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function re(e, t) {
|
|
157
157
|
for (const i of e)
|
|
158
|
-
i.type === "group" ?
|
|
158
|
+
i.type === "group" ? re(i.elements, t) : i.type === "field" && i.valueExpression && t.add(i.fieldName);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function oe(e, t) {
|
|
161
161
|
for (const i of e)
|
|
162
|
-
i.type === "group" ?
|
|
162
|
+
i.type === "group" ? oe(i.elements, t) : i.type === "field" && i.requiredExpression && t.add(i.fieldName);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function le(e) {
|
|
165
165
|
return typeof e == "number";
|
|
166
166
|
}
|
|
167
167
|
function He(e) {
|
|
@@ -179,7 +179,7 @@ function Le(e, t, i) {
|
|
|
179
179
|
return He(e) ? e : window.parseInt(e);
|
|
180
180
|
case "single":
|
|
181
181
|
case "double":
|
|
182
|
-
return
|
|
182
|
+
return le(e) ? e : window.parseFloat(e);
|
|
183
183
|
case "global-id":
|
|
184
184
|
case "guid":
|
|
185
185
|
return e === "" ? null : e;
|
|
@@ -220,7 +220,7 @@ var Ve = Object.defineProperty, De = Object.getOwnPropertyDescriptor, A = (e, t,
|
|
|
220
220
|
(l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
221
221
|
return a && s && Ve(t, i, s), s;
|
|
222
222
|
};
|
|
223
|
-
const
|
|
223
|
+
const ne = {
|
|
224
224
|
noChangeError: "Operation has not made any changes",
|
|
225
225
|
noSelectedError: "Operation requires a selected feature",
|
|
226
226
|
deletesGeometryError: "Operation would result in a null geometry",
|
|
@@ -290,7 +290,7 @@ let v = class extends U {
|
|
|
290
290
|
// If too many features, dont run anything
|
|
291
291
|
a.items.length > this.viewModel.maximumFeatureCount || // If going to show feature form, then do not do all the analysis!
|
|
292
292
|
this.viewModel.alwaysShowFeatureForm || i?.showFeatureForm === !0 || // Otherwise, need to see what is mandatory or not.
|
|
293
|
-
!await
|
|
293
|
+
!await se(
|
|
294
294
|
a,
|
|
295
295
|
this.viewModel.view,
|
|
296
296
|
this.viewModel.formViewModelMap,
|
|
@@ -332,7 +332,7 @@ let v = class extends U {
|
|
|
332
332
|
* Builds an ApplySet for the Paste, Paste-as and Paste-merge command
|
|
333
333
|
*/
|
|
334
334
|
async prepareCopy(e) {
|
|
335
|
-
const
|
|
335
|
+
const t = e === "paste" || e === "paste-as" && this.viewModel.pasteWithAttributes || e === "paste-merge" && this.viewModel.pasteWithAttributes, i = t && e === "paste-merge" ? this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex) : null, a = q();
|
|
336
336
|
if (a.featureState = K(this.viewModel.view), e === "paste-merge") {
|
|
337
337
|
const s = this.viewModel.pasteTemplate?.template ? await J(this.viewModel.view, this.viewModel.pasteTemplate.template) : null;
|
|
338
338
|
if (!s)
|
|
@@ -353,7 +353,11 @@ let v = class extends U {
|
|
|
353
353
|
return null;
|
|
354
354
|
const o = Q(s) ? s.layer : this.viewModel.pasteTemplate.layer;
|
|
355
355
|
for (const l of this.viewModel.clipboardFeatures) {
|
|
356
|
-
const h = await this.constructFeatureAttributesCopy(
|
|
356
|
+
const h = await this.constructFeatureAttributesCopy(
|
|
357
|
+
s,
|
|
358
|
+
o,
|
|
359
|
+
t ? l : null
|
|
360
|
+
), p = new B({
|
|
357
361
|
geometry: l.graphic?.geometry?.clone() ?? null,
|
|
358
362
|
attributes: h
|
|
359
363
|
});
|
|
@@ -363,7 +367,7 @@ let v = class extends U {
|
|
|
363
367
|
return a;
|
|
364
368
|
}
|
|
365
369
|
async constructFeatureAttributesCopy(e, t, i) {
|
|
366
|
-
let a =
|
|
370
|
+
let a = Me(e, {});
|
|
367
371
|
if (i) {
|
|
368
372
|
const s = i.layer?.fields;
|
|
369
373
|
if (s) {
|
|
@@ -448,7 +452,7 @@ let F = class extends v {
|
|
|
448
452
|
if (i.applySet && (t = i.applySet), !i.success) {
|
|
449
453
|
this.viewModel.lastPasteError = {
|
|
450
454
|
errorCode: i.failReason,
|
|
451
|
-
errorMessage:
|
|
455
|
+
errorMessage: ne[i.failReason],
|
|
452
456
|
localizedErrorMessage: i.failReason
|
|
453
457
|
}, e.onPasteError(this.viewModel.lastPasteError);
|
|
454
458
|
return;
|
|
@@ -627,7 +631,7 @@ let _ = class extends v {
|
|
|
627
631
|
if (i.applySet && (t = i.applySet), !i.success) {
|
|
628
632
|
this.viewModel.lastPasteError = {
|
|
629
633
|
errorCode: i.failReason,
|
|
630
|
-
errorMessage:
|
|
634
|
+
errorMessage: ne[i.failReason],
|
|
631
635
|
localizedErrorMessage: i.failReason
|
|
632
636
|
}, e.onPasteError(this.viewModel.lastPasteError);
|
|
633
637
|
return;
|
|
@@ -773,7 +777,7 @@ let P = class extends v {
|
|
|
773
777
|
const e = await this.prepareCopy("paste");
|
|
774
778
|
if (!e || e.items.length === 0)
|
|
775
779
|
throw new Error("arcgis-paste: No items to paste");
|
|
776
|
-
return e.items.length > this.viewModel.maximumFeatureCount || !await
|
|
780
|
+
return e.items.length > this.viewModel.maximumFeatureCount || !await se(
|
|
777
781
|
e,
|
|
778
782
|
this.viewModel.view,
|
|
779
783
|
this.viewModel.formViewModelMap,
|
|
@@ -964,12 +968,12 @@ var Ye = Object.defineProperty, et = Object.getOwnPropertyDescriptor, c = (e, t,
|
|
|
964
968
|
return a && s && Ye(t, i, s), s;
|
|
965
969
|
};
|
|
966
970
|
function te(e) {
|
|
967
|
-
return !
|
|
971
|
+
return !ie(e) || e.type === "feature";
|
|
968
972
|
}
|
|
969
973
|
let n = class extends U {
|
|
970
974
|
//#region Lifecycle
|
|
971
975
|
constructor(e) {
|
|
972
|
-
super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount =
|
|
976
|
+
super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
|
|
973
977
|
canCreate: (t) => t ? !!t.effectiveCapabilities?.operations.supportsAdd : !1,
|
|
974
978
|
canUpdate: (t) => {
|
|
975
979
|
if (!t)
|
|
@@ -1067,7 +1071,7 @@ let n = class extends U {
|
|
|
1067
1071
|
return;
|
|
1068
1072
|
const t = new B({
|
|
1069
1073
|
geometry: e.graphic.geometry,
|
|
1070
|
-
symbol:
|
|
1074
|
+
symbol: be(e.graphic.geometry.type)
|
|
1071
1075
|
});
|
|
1072
1076
|
this.view.graphics.add(t), this._hoverHighlightHandle = {
|
|
1073
1077
|
remove: () => {
|
|
@@ -1126,7 +1130,7 @@ let n = class extends U {
|
|
|
1126
1130
|
return;
|
|
1127
1131
|
}
|
|
1128
1132
|
if (this.showClipboardItems && this.view) {
|
|
1129
|
-
this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new
|
|
1133
|
+
this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new we(), this.view.map?.layers.add(this.clipboardGraphicsLayer));
|
|
1130
1134
|
const e = this.clipboard.items;
|
|
1131
1135
|
this.clipboardGraphicsLayer.removeAll();
|
|
1132
1136
|
let t = -1;
|
|
@@ -1138,7 +1142,7 @@ let n = class extends U {
|
|
|
1138
1142
|
attributes: {
|
|
1139
1143
|
clipboardIdx: t
|
|
1140
1144
|
},
|
|
1141
|
-
symbol:
|
|
1145
|
+
symbol: ye(i.graphic.geometry.type)
|
|
1142
1146
|
});
|
|
1143
1147
|
this.clipboardGraphicsLayer.add(a);
|
|
1144
1148
|
}
|
|
@@ -1154,7 +1158,7 @@ let n = class extends U {
|
|
|
1154
1158
|
this.clipboardGraphicsLayer && (this.clipboardGraphicsLayer.visible = !e), this.clipboardMover && (this.clipboardMover.suspended = e);
|
|
1155
1159
|
}
|
|
1156
1160
|
get clipboard() {
|
|
1157
|
-
return
|
|
1161
|
+
return fe();
|
|
1158
1162
|
}
|
|
1159
1163
|
get clipboardFeatures() {
|
|
1160
1164
|
return this.clipboard.items.filter((e) => e.type === "feature");
|
|
@@ -1532,10 +1536,10 @@ S([
|
|
|
1532
1536
|
M = S([
|
|
1533
1537
|
C("components.paste.ClipboardMove")
|
|
1534
1538
|
], M);
|
|
1535
|
-
const at =
|
|
1536
|
-
class st extends
|
|
1539
|
+
const at = ve(n);
|
|
1540
|
+
class st extends he {
|
|
1537
1541
|
constructor() {
|
|
1538
|
-
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages =
|
|
1542
|
+
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
|
|
1539
1543
|
}
|
|
1540
1544
|
static {
|
|
1541
1545
|
this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0 };
|
|
@@ -1754,13 +1758,13 @@ class st extends pe {
|
|
|
1754
1758
|
}
|
|
1755
1759
|
}}>${this.viewModel.alwaysShowFeatureForm ? this._messages.next : (this.viewModel.clipboardFeatures.length ?? 0) > 1 && this.activeCommand !== "paste-merge" ? b(this._messages.pasteMany ?? "", { num: this.viewModel.clipboardFeatures.length }) : this._messages.paste}</calcite-button></div></div>`}${this.viewModel.hasTooManyPasteCreateFeatures ? d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.tooManyCreateFeatures ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice></div>` : null}<slot name=gallery-page-message></slot><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? d`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand === "paste-merge" && this.viewModel.hasClipboardItemMatchingTemplate ? d`<calcite-link slot=link @click=${() => {
|
|
1756
1760
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1757
|
-
}} title=${this._messages.seeMergeOptions ??
|
|
1761
|
+
}} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
|
|
1758
1762
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1759
|
-
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single
|
|
1763
|
+
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .disabledItemFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single @arcgisPropertyChange=${(i) => {
|
|
1760
1764
|
this._checkAndUpdateInitialPasteTemplate();
|
|
1761
1765
|
}} @arcgisSelect=${(i) => {
|
|
1762
1766
|
this.viewModel.pasteTemplate = i.detail.item;
|
|
1763
|
-
}} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
|
|
1767
|
+
}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
|
|
1764
1768
|
i.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.viewModel.activeFlowPage = "commands-page");
|
|
1765
1769
|
}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);
|
|
1766
1770
|
}
|
|
@@ -1797,7 +1801,7 @@ class st extends pe {
|
|
|
1797
1801
|
this.viewModel.resetHome(), this.closed = !0, this.arcgisClose.emit();
|
|
1798
1802
|
}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating || this.viewModel.bauFormUpdating || this.viewModel.bauHasTooManyFeatures || this.viewModel.bauHasTooManyComplexFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton ? "full" : "half"} @click=${async () => {
|
|
1799
1803
|
try {
|
|
1800
|
-
if (await
|
|
1804
|
+
if (await ae(() => !this.viewModel.bauFormUpdating), !this.viewModel.bauFormValid) {
|
|
1801
1805
|
this._bauForm.value?.goToFirstError();
|
|
1802
1806
|
return;
|
|
1803
1807
|
}
|
|
@@ -1830,7 +1834,7 @@ class st extends pe {
|
|
|
1830
1834
|
this.viewModel.previousActiveFeature();
|
|
1831
1835
|
}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next ?? ""} .disabled=${!o || a || !i} @click=${() => {
|
|
1832
1836
|
this.viewModel.nextActiveFeature();
|
|
1833
|
-
}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${
|
|
1837
|
+
}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${me(this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures ? "hidden" : void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${(p) => {
|
|
1834
1838
|
this._updateBauViewModelFields(p.target);
|
|
1835
1839
|
}} @arcgisValueChange=${(p) => {
|
|
1836
1840
|
let u = 0;
|
|
@@ -1899,7 +1903,7 @@ class st extends pe {
|
|
|
1899
1903
|
return this.activeFlowPage === "clipboard-empty-page" ? d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage === "clipboard-empty-page")}</calcite-flow>` : this.activeFlowPage === "no-command-page" ? d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage === "no-command-page")}</calcite-flow>` : d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage && this._renderPasteCommands(this.activeFlowPage === "commands-page") || ""}${this._renderFlowPasteAs(this.activeFlowPage === "gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage === "merge-page")}${this._renderFlowPasteForm(this.activeFlowPage === "form-page")}${this._renderClipboard(this.activeFlowPage === "clipboard")}</calcite-flow>`;
|
|
1900
1904
|
}
|
|
1901
1905
|
}
|
|
1902
|
-
|
|
1906
|
+
de("arcgis-paste", st);
|
|
1903
1907
|
export {
|
|
1904
1908
|
st as ArcgisPaste
|
|
1905
1909
|
};
|