@arcgis/map-components 5.2.0-next.90 → 5.2.0-next.91
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/2AKHVAG7.js +2 -0
- package/dist/cdn/2GM4O42V.js +2 -0
- package/dist/cdn/{2LDYIMCE.js → 2U6EB7BN.js} +1 -1
- package/dist/cdn/{HOUQ3XZ3.js → 34CXVCB3.js} +1 -1
- package/dist/cdn/{NWLNFKT6.js → 3TRAIJXM.js} +1 -1
- package/dist/cdn/{YLXNHUYF.js → 3VFBYBX4.js} +1 -1
- package/dist/cdn/{JGMSDKM3.js → 43XQKUF6.js} +1 -1
- package/dist/cdn/{AYRZUPV2.js → 5IXZDVTF.js} +1 -1
- package/dist/cdn/{RTUHTKTO.js → 5OQPTYP5.js} +1 -1
- package/dist/cdn/{SOOJLVZP.js → 73N362E5.js} +1 -1
- package/dist/cdn/{CEY5WBEU.js → 7BOYQGKF.js} +1 -1
- package/dist/cdn/{67ZLFQ5D.js → A5ZHWVI3.js} +1 -1
- package/dist/cdn/{HRX3VZC6.js → AF65YZXZ.js} +1 -1
- package/dist/cdn/{M7ARKSCG.js → AL52T6VH.js} +1 -1
- package/dist/cdn/{C32RBBXZ.js → B23TN7FG.js} +1 -1
- package/dist/cdn/{S474C2LJ.js → B2FQHBTX.js} +1 -1
- package/dist/cdn/{HXOGSZ3H.js → BSLVN2NW.js} +1 -1
- package/dist/cdn/{3RKXZISX.js → BXDUMWWE.js} +1 -1
- package/dist/cdn/{SD5FKQFO.js → CH6EWFKV.js} +1 -1
- package/dist/cdn/{ZFLMRC4G.js → CQ7HNSA2.js} +1 -1
- package/dist/cdn/{JK4KRK6P.js → CYWMBY4Y.js} +1 -1
- package/dist/cdn/{2VSQARQL.js → DDGANMOY.js} +1 -1
- package/dist/cdn/{BPB6FTQK.js → DMFYRFSD.js} +1 -1
- package/dist/cdn/{PUNT3Q36.js → EEVHASMU.js} +1 -1
- package/dist/cdn/{M6FA6DZH.js → EVKOQOVV.js} +1 -1
- package/dist/cdn/{II5MODDO.js → FR3EHEIV.js} +1 -1
- package/dist/cdn/{MJRXLGST.js → GC65JYR2.js} +1 -1
- package/dist/cdn/{IBOB5TYX.js → H32EDCZG.js} +1 -1
- package/dist/cdn/{5EOKOS52.js → H4FPSA53.js} +1 -1
- package/dist/cdn/{O6F37YLT.js → HAUHWMHN.js} +1 -1
- package/dist/cdn/{6HSLIZLD.js → I22IJPSN.js} +1 -1
- package/dist/cdn/{WQQVESNN.js → I5DFLVVJ.js} +1 -1
- package/dist/cdn/IGFJHWQN.js +2 -0
- package/dist/cdn/{L66K2IBM.js → IORWRMMG.js} +1 -1
- package/dist/cdn/{3VZGQUZE.js → IXS5O6G4.js} +1 -1
- package/dist/cdn/{MZ2KYVWD.js → J3743ZYD.js} +1 -1
- package/dist/cdn/{JTBVK3AS.js → JFHEHJOQ.js} +1 -1
- package/dist/cdn/{AACTDN7T.js → KGXZG3YI.js} +1 -1
- package/dist/cdn/{LKAMRNMI.js → KX3XJGXZ.js} +1 -1
- package/dist/cdn/{VRRD4HXH.js → LBYKVAQ2.js} +1 -1
- package/dist/cdn/MAPYP35W.js +2 -0
- package/dist/cdn/{CFANWKE6.js → NMQLILVV.js} +1 -1
- package/dist/cdn/{UBD7D3LO.js → NO6MFBNV.js} +1 -1
- package/dist/cdn/{B3W2SZIJ.js → NP5NJFWN.js} +1 -1
- package/dist/cdn/{FQTVI2JC.js → NQ5OGG4I.js} +1 -1
- package/dist/cdn/NUPOLDDX.js +2 -0
- package/dist/cdn/{4SV6HHMC.js → O7RSAJOS.js} +1 -1
- package/dist/cdn/{WE2GHP5E.js → Q6TYHAOA.js} +1 -1
- package/dist/cdn/{D325DZEQ.js → QVM6UFNB.js} +1 -1
- package/dist/cdn/{BBFLUSKF.js → QX7CIDD3.js} +1 -1
- package/dist/cdn/{OEGPO4V4.js → R6ZUE6GP.js} +1 -1
- package/dist/cdn/RJSJ53UD.js +2 -0
- package/dist/cdn/{OWT2YYBJ.js → RJZ424ZP.js} +1 -1
- package/dist/cdn/{CS5IVOG4.js → TTDOV3LD.js} +1 -1
- package/dist/cdn/{K43HEYQI.js → U2ZQWROE.js} +1 -1
- package/dist/cdn/UVD3M6B5.js +2 -0
- package/dist/cdn/VIHVSV4P.js +2 -0
- package/dist/cdn/{CJLQURQH.js → VLKHH2Y6.js} +1 -1
- package/dist/cdn/VNX2AHM5.js +2 -0
- package/dist/cdn/{5KXZQI7G.js → VY2FRIAX.js} +1 -1
- package/dist/cdn/{PPTHUNKC.js → W2HQAUUA.js} +1 -1
- package/dist/cdn/WTTWWX57.js +2 -0
- package/dist/cdn/{KEE5SJGE.js → ZTRUEI25.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +45 -45
- package/dist/chunks/async-utils.js +18 -14
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/time-utils.js +2 -2
- package/dist/components/arcgis-building-phase-picker/customElement.js +13 -13
- package/dist/components/arcgis-color-select/customElement.js +6 -6
- package/dist/components/arcgis-coordinate-conversion/customElement.js +18 -17
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +11 -10
- package/dist/components/arcgis-daylight/customElement.d.ts +7 -0
- package/dist/components/arcgis-daylight/customElement.js +135 -135
- package/dist/components/arcgis-feature/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +24 -24
- package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +42 -41
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +15 -14
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +32 -31
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +9 -8
- package/dist/components/arcgis-link-chart/customElement.d.ts +19 -7
- package/dist/components/arcgis-link-chart/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +19 -7
- package/dist/components/arcgis-map/customElement.js +3 -3
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +72 -72
- package/dist/components/arcgis-paste/customElement.d.ts +23 -3
- package/dist/components/arcgis-paste/customElement.js +102 -101
- package/dist/components/arcgis-presentation/customElement.js +43 -40
- package/dist/components/arcgis-scene/customElement.d.ts +42 -7
- package/dist/components/arcgis-scene/customElement.js +5 -5
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +8 -3
- package/dist/components/arcgis-time-bar/customElement.d.ts +14 -5
- package/dist/components/arcgis-time-bar/customElement.js +29 -29
- package/dist/components/arcgis-time-bar/types.d.ts +3 -1
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +3 -3
- package/dist/components/arcgis-video/customElement.d.ts +19 -7
- package/dist/components/arcgis-volume-measurement/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FTL6T53.js +0 -2
- package/dist/cdn/2XHGISYY.js +0 -2
- package/dist/cdn/4CJBWGTY.js +0 -2
- package/dist/cdn/5GIJFUEJ.js +0 -2
- package/dist/cdn/HASESZDN.js +0 -2
- package/dist/cdn/LMBTPOT3.js +0 -2
- package/dist/cdn/OU7XFISZ.js +0 -2
- package/dist/cdn/UU4FSZYG.js +0 -2
- package/dist/cdn/YVZI2KY2.js +0 -2
- package/dist/cdn/Z3XLCKLP.js +0 -2
|
@@ -1,59 +1,60 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as pe } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as he, 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 ue, createEvent as T, safeStyleMap as Z, nothing as me, safeClassMap as ge } from "@arcgis/lumina";
|
|
6
|
+
import { u as ve } from "../../chunks/useT9n.js";
|
|
7
|
+
import { m as fe } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { property as o, 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 we } from "@arcgis/core/applications/Components/clipboard.js";
|
|
12
|
+
import be from "@arcgis/core/layers/GraphicsLayer.js";
|
|
13
|
+
import { g as ye, a as Me } from "../../chunks/clipoardSymbolHelper.js";
|
|
14
14
|
import j from "@arcgis/core/core/Collection.js";
|
|
15
|
-
import { getFullTemplate as J, isSharedTemplate as Q, getCreationAttributes as
|
|
16
|
-
import { createApplySetModifyItem as W, createApplySet as q, createFeatureStateProvider as K, createApplySetAddItem as R, writeApplySetToService as
|
|
15
|
+
import { getFullTemplate as J, isSharedTemplate as Q, getCreationAttributes as Ce, isSharedTemplateOrMetadata as ie } from "@arcgis/core/applications/Components/templateUtils.js";
|
|
16
|
+
import { createApplySetModifyItem as W, createApplySet as q, createFeatureStateProvider as K, createApplySetAddItem as R, writeApplySetToService as Fe } from "@arcgis/core/applications/Components/applySetUtils.js";
|
|
17
17
|
import { whenOnce as ae, watch as N } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
|
-
import { getRendererFields as Y, getFeatureEditFields as
|
|
19
|
-
import
|
|
20
|
-
import { c as
|
|
18
|
+
import { getRendererFields as Y, getFeatureEditFields as _e } from "@arcgis/core/layers/support/fieldUtils.js";
|
|
19
|
+
import xe from "@arcgis/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js";
|
|
20
|
+
import { c as Pe, f as ee } from "../../chunks/layer-utils.js";
|
|
21
|
+
import { g as se } from "../../chunks/async-utils.js";
|
|
21
22
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
22
|
-
import { usePropertyChange as
|
|
23
|
+
import { usePropertyChange as $e } from "@arcgis/lumina/controllers";
|
|
23
24
|
import { createRef as V, ref as D } from "lit/directives/ref.js";
|
|
24
|
-
import { createGraphicsMover as
|
|
25
|
-
const
|
|
26
|
-
async function
|
|
25
|
+
import { createGraphicsMover as Ae } from "@arcgis/core/applications/Components/editUtils.js";
|
|
26
|
+
const Ee = he`.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
|
+
async function Ie(e, t = {}) {
|
|
27
28
|
if (e?.type === "subtype-group") {
|
|
28
29
|
if (!e.subtypeField)
|
|
29
30
|
return [];
|
|
30
31
|
const a = t[e.subtypeField];
|
|
31
|
-
if (!
|
|
32
|
+
if (!ne(a))
|
|
32
33
|
return [];
|
|
33
34
|
const s = e.findSublayerForSubtypeCode(a);
|
|
34
35
|
return s ? s.renderer && s.fieldsIndex ? await Y(s.renderer, e.fieldsIndex) : [] : [];
|
|
35
36
|
}
|
|
36
37
|
return e ? e.renderer && e.fieldsIndex ? await Y(e.renderer, e.fieldsIndex) : [] : [];
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
const l = { ...a }, h =
|
|
39
|
+
function Se(e, t, i, a, s, r) {
|
|
40
|
+
const l = { ...a }, h = Te(r), p = Ge(r);
|
|
40
41
|
let u = "";
|
|
41
42
|
(r.type === "subtype-group" || r.type === "subtype-sublayer") && (u = r.subtypeField ?? "");
|
|
42
43
|
const g = r.objectIdField ?? "";
|
|
43
44
|
return e.forEach((m) => {
|
|
44
45
|
if (m.name !== g && !h.includes(m.name) && !p.includes(m.name) && !s.includes(m.name) && m.type !== "global-id" && (u === "" || u !== m.name)) {
|
|
45
|
-
const f =
|
|
46
|
+
const f = ke(m, t);
|
|
46
47
|
f.match && f.targetField && (l[f.targetField?.name] = i[m.name]);
|
|
47
48
|
}
|
|
48
49
|
}), l;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function Te(e) {
|
|
51
52
|
return e && "relationships" in e ? (e.relationships ?? []).filter((i) => i.role === "origin").map((i) => i.keyField) : [];
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
return e?.type === "subtype-sublayer" && (e = e.parent), e ?
|
|
54
|
+
function Ge(e) {
|
|
55
|
+
return e?.type === "subtype-sublayer" && (e = e.parent), e ? _e(e) : [];
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function Oe(e, t) {
|
|
57
58
|
if (e.type === t.type)
|
|
58
59
|
return t.type === "string" ? e.length <= t.length : !0;
|
|
59
60
|
switch (e.type) {
|
|
@@ -67,26 +68,26 @@ function Ge(e, t) {
|
|
|
67
68
|
return !1;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function ke(e, t) {
|
|
71
72
|
const i = { match: !1, sourceField: null, targetField: null };
|
|
72
73
|
for (const a of t)
|
|
73
|
-
if (
|
|
74
|
+
if (Oe(e, a)) {
|
|
74
75
|
const s = e.name.replace(/\s/gu, "").toLowerCase();
|
|
75
76
|
if (a.name.replace(/\s/gu, "").toLowerCase() === s)
|
|
76
77
|
return i.match = !0, i.sourceField = e, i.targetField = a, i;
|
|
77
78
|
}
|
|
78
79
|
return i;
|
|
79
80
|
}
|
|
80
|
-
async function
|
|
81
|
+
async function re(e, t, i, a) {
|
|
81
82
|
let s = !0;
|
|
82
83
|
const r = { hasAsyncArcadeExpressions: !1 }, l = e.items.filter((h) => h.type === "add");
|
|
83
84
|
for (const h of l) {
|
|
84
|
-
const p = h.graphic.clone(), u =
|
|
85
|
+
const p = h.graphic.clone(), u = He(h.graphic, h.layer);
|
|
85
86
|
if (!u) {
|
|
86
87
|
s = !1;
|
|
87
88
|
continue;
|
|
88
89
|
}
|
|
89
|
-
const g = !await
|
|
90
|
+
const g = !await Le(
|
|
90
91
|
t,
|
|
91
92
|
h.graphic,
|
|
92
93
|
u,
|
|
@@ -105,28 +106,28 @@ async function se(e, t, i, a) {
|
|
|
105
106
|
}
|
|
106
107
|
return s;
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function He(e, t) {
|
|
109
110
|
if (t.type === "feature" || t.type === "subtype-sublayer")
|
|
110
111
|
return t;
|
|
111
112
|
const i = t.findSublayerForFeature(e);
|
|
112
113
|
return i || null;
|
|
113
114
|
}
|
|
114
|
-
async function
|
|
115
|
+
async function Le(e, t, i, a, s) {
|
|
115
116
|
const r = i.formTemplate, l = i.fields.filter((f) => {
|
|
116
|
-
const z = t.attributes[f.name],
|
|
117
|
-
return f.editable && !f.nullable &&
|
|
117
|
+
const z = t.attributes[f.name], de = z === null || z === "" || z === void 0;
|
|
118
|
+
return f.editable && !f.nullable && de;
|
|
118
119
|
});
|
|
119
120
|
if (!r)
|
|
120
121
|
return l.length !== 0;
|
|
121
122
|
const h = /* @__PURE__ */ new Set();
|
|
122
|
-
|
|
123
|
+
le(r.elements ?? [], h);
|
|
123
124
|
const p = /* @__PURE__ */ new Set();
|
|
124
|
-
if (
|
|
125
|
+
if (oe(r.elements ?? [], p), h.size === 0 && p.size === 0)
|
|
125
126
|
return l.length > 0;
|
|
126
127
|
const u = t.clone();
|
|
127
128
|
u.layer = i, delete u.attributes[i.objectIdField], a.has(i) || a.set(
|
|
128
129
|
i,
|
|
129
|
-
new
|
|
130
|
+
new xe({
|
|
130
131
|
map: e.map,
|
|
131
132
|
editType: "INSERT"
|
|
132
133
|
})
|
|
@@ -142,28 +143,28 @@ async function He(e, t, i, a, s) {
|
|
|
142
143
|
m = z;
|
|
143
144
|
}
|
|
144
145
|
return Object.keys(m).forEach((f) => {
|
|
145
|
-
i.fieldsIndex.has(f) && (t.attributes[f] =
|
|
146
|
+
i.fieldsIndex.has(f) && (t.attributes[f] = Ve(
|
|
146
147
|
m[f],
|
|
147
148
|
f,
|
|
148
149
|
i.fieldsIndex
|
|
149
150
|
));
|
|
150
151
|
}), g.invalidFeatures.length > 0;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
+
function oe(e, t) {
|
|
153
154
|
for (const i of e)
|
|
154
|
-
i.type === "group" ?
|
|
155
|
+
i.type === "group" ? oe(i.elements, t) : i.type === "field" && i.valueExpression && t.add(i.fieldName);
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function le(e, t) {
|
|
157
158
|
for (const i of e)
|
|
158
|
-
i.type === "group" ?
|
|
159
|
+
i.type === "group" ? le(i.elements, t) : i.type === "field" && i.requiredExpression && t.add(i.fieldName);
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
+
function ne(e) {
|
|
161
162
|
return typeof e == "number";
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
+
function ze(e) {
|
|
164
165
|
return typeof e == "number" && window.isFinite(e) && Math.floor(e) === e;
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function Ve(e, t, i) {
|
|
167
168
|
if (e === null || e === void 0)
|
|
168
169
|
return null;
|
|
169
170
|
switch (i.get(t).type) {
|
|
@@ -172,10 +173,10 @@ function ze(e, t, i) {
|
|
|
172
173
|
case "oid":
|
|
173
174
|
case "integer":
|
|
174
175
|
case "small-integer":
|
|
175
|
-
return
|
|
176
|
+
return ze(e) ? e : window.parseInt(e);
|
|
176
177
|
case "single":
|
|
177
178
|
case "double":
|
|
178
|
-
return
|
|
179
|
+
return ne(e) ? e : window.parseFloat(e);
|
|
179
180
|
case "global-id":
|
|
180
181
|
case "guid":
|
|
181
182
|
return e === "" ? null : e;
|
|
@@ -190,13 +191,13 @@ function ze(e, t, i) {
|
|
|
190
191
|
}
|
|
191
192
|
return e;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function De(e) {
|
|
194
195
|
return e && "layer" in e ? e.layer : void 0;
|
|
195
196
|
}
|
|
196
197
|
function E(e) {
|
|
197
198
|
if (!e)
|
|
198
199
|
return null;
|
|
199
|
-
const t =
|
|
200
|
+
const t = De(e.origin) ?? e.layer ?? e?.sourceLayer ?? null;
|
|
200
201
|
if (t && t.type === "subtype-sublayer")
|
|
201
202
|
return t.parent;
|
|
202
203
|
switch (t?.type) {
|
|
@@ -211,12 +212,12 @@ function E(e) {
|
|
|
211
212
|
return null;
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
|
-
var
|
|
215
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
215
|
+
var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor, A = (e, t, i, a) => {
|
|
216
|
+
for (var s = a > 1 ? void 0 : a ? je(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
216
217
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
217
|
-
return a && s &&
|
|
218
|
+
return a && s && Be(t, i, s), s;
|
|
218
219
|
};
|
|
219
|
-
const
|
|
220
|
+
const ce = {
|
|
220
221
|
noChangeError: "Operation has not made any changes",
|
|
221
222
|
noSelectedError: "Operation requires a selected feature",
|
|
222
223
|
deletesGeometryError: "Operation would result in a null geometry",
|
|
@@ -286,7 +287,7 @@ let v = class extends U {
|
|
|
286
287
|
// If too many features, dont run anything
|
|
287
288
|
a.items.length > this.viewModel.maximumFeatureCount || // If going to show feature form, then do not do all the analysis!
|
|
288
289
|
this.viewModel.alwaysShowFeatureForm || i?.showFeatureForm === !0 || // Otherwise, need to see what is mandatory or not.
|
|
289
|
-
!await
|
|
290
|
+
!await re(
|
|
290
291
|
a,
|
|
291
292
|
this.viewModel.view,
|
|
292
293
|
this.viewModel.formViewModelMap,
|
|
@@ -295,10 +296,10 @@ let v = class extends U {
|
|
|
295
296
|
);
|
|
296
297
|
if (this.viewModel.alwaysShowFeatureForm || s || i?.showFeatureForm === !0)
|
|
297
298
|
this.viewModel.bauActiveFeatureIndex = 0, this.viewModel.bauApplySet = a, this.viewModel.activeCommand = t, this.viewModel.bauOriginalGraphics = a.items.map((r) => r.type === "add" ? { layer: r.layer, graphic: r.graphic } : null).filter((r) => r !== null), this.viewModel.bauFeatures = new j(), this.viewModel.activeFlowPage = "form-page", await new Promise((r) => {
|
|
298
|
-
setTimeout(r, 100);
|
|
299
|
+
setTimeout(r, se(100));
|
|
299
300
|
}), this.viewModel.bauFeatures = new j(
|
|
300
301
|
this.viewModel.bauOriginalGraphics.map((r) => {
|
|
301
|
-
if (
|
|
302
|
+
if (Pe(r.layer)) {
|
|
302
303
|
const l = r.layer.findSublayerForFeature(r.graphic);
|
|
303
304
|
if (l)
|
|
304
305
|
return r.graphic.layer = l, r.graphic;
|
|
@@ -370,12 +371,12 @@ let v = class extends U {
|
|
|
370
371
|
return a;
|
|
371
372
|
}
|
|
372
373
|
async constructFeatureAttributesCopy(e, t, i) {
|
|
373
|
-
let a =
|
|
374
|
+
let a = Ce(e, {});
|
|
374
375
|
if (i) {
|
|
375
376
|
const s = i.layer?.fields;
|
|
376
377
|
if (s) {
|
|
377
|
-
const r = t.fields, l = i.graphic.attributes ?? {}, h = await
|
|
378
|
-
a =
|
|
378
|
+
const r = t.fields, l = i.graphic.attributes ?? {}, h = await Ie(t, a);
|
|
379
|
+
a = Se(
|
|
379
380
|
s,
|
|
380
381
|
r,
|
|
381
382
|
l,
|
|
@@ -419,10 +420,10 @@ A([
|
|
|
419
420
|
v = A([
|
|
420
421
|
C("components.paste.commands.PasteCommand")
|
|
421
422
|
], v);
|
|
422
|
-
var
|
|
423
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
423
|
+
var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, G = (e, t, i, a) => {
|
|
424
|
+
for (var s = a > 1 ? void 0 : a ? Re(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
424
425
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
425
|
-
return a && s &&
|
|
426
|
+
return a && s && We(t, i, s), s;
|
|
426
427
|
};
|
|
427
428
|
let F = class extends v {
|
|
428
429
|
get id() {
|
|
@@ -455,7 +456,7 @@ let F = class extends v {
|
|
|
455
456
|
if (i.applySet && (t = i.applySet), !i.success) {
|
|
456
457
|
this.viewModel.lastPasteError = {
|
|
457
458
|
errorCode: i.failReason,
|
|
458
|
-
errorMessage:
|
|
459
|
+
errorMessage: ce[i.failReason],
|
|
459
460
|
localizedErrorMessage: i.failReason
|
|
460
461
|
}, e.onPasteError(this.viewModel.lastPasteError);
|
|
461
462
|
return;
|
|
@@ -554,10 +555,10 @@ G([
|
|
|
554
555
|
F = G([
|
|
555
556
|
C("components.paste.commands.PasteAppendCommand")
|
|
556
557
|
], F);
|
|
557
|
-
var
|
|
558
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
558
|
+
var Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, O = (e, t, i, a) => {
|
|
559
|
+
for (var s = a > 1 ? void 0 : a ? Ue(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
559
560
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
560
|
-
return a && s &&
|
|
561
|
+
return a && s && Ne(t, i, s), s;
|
|
561
562
|
};
|
|
562
563
|
let _ = class extends v {
|
|
563
564
|
get id() {
|
|
@@ -634,7 +635,7 @@ let _ = class extends v {
|
|
|
634
635
|
if (i.applySet && (t = i.applySet), !i.success) {
|
|
635
636
|
this.viewModel.lastPasteError = {
|
|
636
637
|
errorCode: i.failReason,
|
|
637
|
-
errorMessage:
|
|
638
|
+
errorMessage: ce[i.failReason],
|
|
638
639
|
localizedErrorMessage: i.failReason
|
|
639
640
|
}, e.onPasteError(this.viewModel.lastPasteError);
|
|
640
641
|
return;
|
|
@@ -690,10 +691,10 @@ O([
|
|
|
690
691
|
_ = O([
|
|
691
692
|
C("components.paste.commands.PasteSubtractCommand")
|
|
692
693
|
], _);
|
|
693
|
-
var
|
|
694
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
694
|
+
var qe = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, k = (e, t, i, a) => {
|
|
695
|
+
for (var s = a > 1 ? void 0 : a ? Ke(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
695
696
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
696
|
-
return a && s &&
|
|
697
|
+
return a && s && qe(t, i, s), s;
|
|
697
698
|
};
|
|
698
699
|
let x = class extends v {
|
|
699
700
|
get id() {
|
|
@@ -748,10 +749,10 @@ k([
|
|
|
748
749
|
x = k([
|
|
749
750
|
C("components.paste.commands.PasteAsCommand")
|
|
750
751
|
], x);
|
|
751
|
-
var
|
|
752
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
752
|
+
var Xe = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, H = (e, t, i, a) => {
|
|
753
|
+
for (var s = a > 1 ? void 0 : a ? Ze(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
753
754
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
754
|
-
return a && s &&
|
|
755
|
+
return a && s && Xe(t, i, s), s;
|
|
755
756
|
};
|
|
756
757
|
let P = class extends v {
|
|
757
758
|
get id() {
|
|
@@ -780,7 +781,7 @@ let P = class extends v {
|
|
|
780
781
|
const e = await this.prepareCopy("paste");
|
|
781
782
|
if (!e || e.items.length === 0)
|
|
782
783
|
throw new Error("arcgis-paste: No items to paste");
|
|
783
|
-
return e.items.length > this.viewModel.maximumFeatureCount || !await
|
|
784
|
+
return e.items.length > this.viewModel.maximumFeatureCount || !await re(
|
|
784
785
|
e,
|
|
785
786
|
this.viewModel.view,
|
|
786
787
|
this.viewModel.formViewModelMap,
|
|
@@ -818,10 +819,10 @@ H([
|
|
|
818
819
|
P = H([
|
|
819
820
|
C("components.paste.commands.PasteSetCommand")
|
|
820
821
|
], P);
|
|
821
|
-
var
|
|
822
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
822
|
+
var Je = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, L = (e, t, i, a) => {
|
|
823
|
+
for (var s = a > 1 ? void 0 : a ? Qe(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
823
824
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
824
|
-
return a && s &&
|
|
825
|
+
return a && s && Je(t, i, s), s;
|
|
825
826
|
};
|
|
826
827
|
let $ = class extends v {
|
|
827
828
|
get id() {
|
|
@@ -881,10 +882,10 @@ L([
|
|
|
881
882
|
$ = L([
|
|
882
883
|
C("components.paste.commands.PasteMergeCommand")
|
|
883
884
|
], $);
|
|
884
|
-
var
|
|
885
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
885
|
+
var Ye = Object.defineProperty, et = Object.getOwnPropertyDescriptor, I = (e, t, i, a) => {
|
|
886
|
+
for (var s = a > 1 ? void 0 : a ? et(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
886
887
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
887
|
-
return a && s &&
|
|
888
|
+
return a && s && Ye(t, i, s), s;
|
|
888
889
|
};
|
|
889
890
|
let y = class extends v {
|
|
890
891
|
//#region Lifecycle
|
|
@@ -965,10 +966,10 @@ I([
|
|
|
965
966
|
y = I([
|
|
966
967
|
C("components.paste.commands.PasteCustomCommand")
|
|
967
968
|
], y);
|
|
968
|
-
var
|
|
969
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
969
|
+
var tt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, c = (e, t, i, a) => {
|
|
970
|
+
for (var s = a > 1 ? void 0 : a ? it(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
970
971
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
971
|
-
return a && s &&
|
|
972
|
+
return a && s && tt(t, i, s), s;
|
|
972
973
|
};
|
|
973
974
|
function te(e) {
|
|
974
975
|
return !ie(e) || e.type === "feature";
|
|
@@ -1074,7 +1075,7 @@ let n = class extends U {
|
|
|
1074
1075
|
return;
|
|
1075
1076
|
const t = new B({
|
|
1076
1077
|
geometry: e.graphic.geometry,
|
|
1077
|
-
symbol:
|
|
1078
|
+
symbol: ye(e.graphic.geometry.type)
|
|
1078
1079
|
});
|
|
1079
1080
|
this.view.graphics.add(t), this._hoverHighlightHandle = {
|
|
1080
1081
|
remove: () => {
|
|
@@ -1133,7 +1134,7 @@ let n = class extends U {
|
|
|
1133
1134
|
return;
|
|
1134
1135
|
}
|
|
1135
1136
|
if (this.showClipboardItems && this.view) {
|
|
1136
|
-
this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new
|
|
1137
|
+
this.clipboardGraphicsLayer || (this.clipboardGraphicsLayer = new be({
|
|
1137
1138
|
listMode: "hide"
|
|
1138
1139
|
}), this.view.map?.layers.add(this.clipboardGraphicsLayer));
|
|
1139
1140
|
const e = this.clipboard.items;
|
|
@@ -1147,7 +1148,7 @@ let n = class extends U {
|
|
|
1147
1148
|
attributes: {
|
|
1148
1149
|
clipboardIdx: t
|
|
1149
1150
|
},
|
|
1150
|
-
symbol:
|
|
1151
|
+
symbol: Me(i.graphic.geometry.type)
|
|
1151
1152
|
});
|
|
1152
1153
|
this.clipboardGraphicsLayer.add(a);
|
|
1153
1154
|
}
|
|
@@ -1163,7 +1164,7 @@ let n = class extends U {
|
|
|
1163
1164
|
this.clipboardGraphicsLayer && (this.clipboardGraphicsLayer.visible = !e), this.clipboardMover && (this.clipboardMover.suspended = e);
|
|
1164
1165
|
}
|
|
1165
1166
|
get clipboard() {
|
|
1166
|
-
return
|
|
1167
|
+
return we();
|
|
1167
1168
|
}
|
|
1168
1169
|
get clipboardFeatures() {
|
|
1169
1170
|
return this.clipboard.items.filter((e) => e.type === "feature");
|
|
@@ -1283,7 +1284,7 @@ let n = class extends U {
|
|
|
1283
1284
|
* Write changes to the feature services
|
|
1284
1285
|
*/
|
|
1285
1286
|
async writeChanges(e) {
|
|
1286
|
-
return await
|
|
1287
|
+
return await Fe(e, this.view);
|
|
1287
1288
|
}
|
|
1288
1289
|
//#endregion
|
|
1289
1290
|
};
|
|
@@ -1473,10 +1474,10 @@ c([
|
|
|
1473
1474
|
n = c([
|
|
1474
1475
|
C("components.paste.PasteViewModel")
|
|
1475
1476
|
], n);
|
|
1476
|
-
var
|
|
1477
|
-
for (var s = a > 1 ? void 0 : a ?
|
|
1477
|
+
var at = Object.defineProperty, st = Object.getOwnPropertyDescriptor, S = (e, t, i, a) => {
|
|
1478
|
+
for (var s = a > 1 ? void 0 : a ? st(t, i) : t, r = e.length - 1, l; r >= 0; r--)
|
|
1478
1479
|
(l = e[r]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
1479
|
-
return a && s &&
|
|
1480
|
+
return a && s && at(t, i, s), s;
|
|
1480
1481
|
};
|
|
1481
1482
|
let M = class extends U {
|
|
1482
1483
|
constructor() {
|
|
@@ -1486,7 +1487,7 @@ let M = class extends U {
|
|
|
1486
1487
|
this._destroyMover(), this.stateChanged?.("clipboard-contents-changed"), this.continuous && this.start();
|
|
1487
1488
|
}
|
|
1488
1489
|
start() {
|
|
1489
|
-
this._destroyMover(), this._mover =
|
|
1490
|
+
this._destroyMover(), this._mover = Ae({
|
|
1490
1491
|
view: this.view,
|
|
1491
1492
|
graphics: this.graphicsLayer.graphics.toArray(),
|
|
1492
1493
|
indicatorsEnabled: !0,
|
|
@@ -1505,7 +1506,7 @@ let M = class extends U {
|
|
|
1505
1506
|
this.clipboard.items.getItemAt(e.attributes.clipboardIdx).graphic.geometry = e.geometry;
|
|
1506
1507
|
this._destroyMover(), this.stateChanged?.("contents-moved"), this.continuous && setTimeout(() => {
|
|
1507
1508
|
this.start();
|
|
1508
|
-
}, 100);
|
|
1509
|
+
}, se(100));
|
|
1509
1510
|
}
|
|
1510
1511
|
}
|
|
1511
1512
|
});
|
|
@@ -1544,16 +1545,16 @@ S([
|
|
|
1544
1545
|
M = S([
|
|
1545
1546
|
C("components.paste.ClipboardMove")
|
|
1546
1547
|
], M);
|
|
1547
|
-
const
|
|
1548
|
-
class
|
|
1548
|
+
const rt = fe(n);
|
|
1549
|
+
class ot extends ue {
|
|
1549
1550
|
constructor() {
|
|
1550
|
-
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages =
|
|
1551
|
+
super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ve(), this.viewModel = rt(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.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = $e()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
|
|
1551
1552
|
}
|
|
1552
1553
|
static {
|
|
1553
1554
|
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, disableTemplatesMode: 1 };
|
|
1554
1555
|
}
|
|
1555
1556
|
static {
|
|
1556
|
-
this.styles =
|
|
1557
|
+
this.styles = Ee;
|
|
1557
1558
|
}
|
|
1558
1559
|
get supportedCommands() {
|
|
1559
1560
|
return this.viewModel.supportedCommands;
|
|
@@ -1768,7 +1769,7 @@ class rt extends he {
|
|
|
1768
1769
|
}
|
|
1769
1770
|
}}>${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=${() => {
|
|
1770
1771
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1771
|
-
}} title=${this._messages.seeMergeOptions ??
|
|
1772
|
+
}} title=${this._messages.seeMergeOptions ?? me}>${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=${() => {
|
|
1772
1773
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1773
1774
|
}}><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 show-filter template-sort-by=system .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
|
|
1774
1775
|
this._checkAndUpdateInitialPasteTemplate();
|
|
@@ -1844,7 +1845,7 @@ class rt extends he {
|
|
|
1844
1845
|
this.viewModel.previousActiveFeature();
|
|
1845
1846
|
}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next ?? ""} .disabled=${!r || a || !i} @click=${() => {
|
|
1846
1847
|
this.viewModel.nextActiveFeature();
|
|
1847
|
-
}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${
|
|
1848
|
+
}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}` : ""}<div class=${ge(this.viewModel.bauHasTooManyComplexFeatures || this.viewModel.bauHasTooManyFeatures ? "hidden" : void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .view=${this.view} .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) => {
|
|
1848
1849
|
this._updateBauViewModelFields(p.target), p.detail.name === "status" && p.target.status === "loaded" && this._copyAcrossValidMultiFormFieldValues();
|
|
1849
1850
|
}} @arcgisValueChange=${(p) => {
|
|
1850
1851
|
let u = 0;
|
|
@@ -1913,7 +1914,7 @@ class rt extends he {
|
|
|
1913
1914
|
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>`;
|
|
1914
1915
|
}
|
|
1915
1916
|
}
|
|
1916
|
-
|
|
1917
|
+
pe("arcgis-paste", ot);
|
|
1917
1918
|
export {
|
|
1918
|
-
|
|
1919
|
+
ot as ArcgisPaste
|
|
1919
1920
|
};
|