@arcgis/map-components 5.2.0-next.32 → 5.2.0-next.34
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/{PXZ7GYGB.js → 2FBLF35H.js} +1 -1
- package/dist/cdn/{I5MVHBKV.js → 2GQUMXRP.js} +1 -1
- package/dist/cdn/{VLXRN5II.js → 2TWSQAFW.js} +1 -1
- package/dist/cdn/{KIQMUMR7.js → 32VPFWAU.js} +1 -1
- package/dist/cdn/{UMJTWBQ3.js → 3TV4AW2U.js} +1 -1
- package/dist/cdn/{TMOESX4H.js → 3XN5WC3E.js} +1 -1
- package/dist/cdn/{6EKV3B5S.js → 43E5Q7SX.js} +1 -1
- package/dist/cdn/{N3JXA7DZ.js → 4CIY4MDE.js} +1 -1
- package/dist/cdn/{RKXL42SK.js → 4LXXTKLF.js} +1 -1
- package/dist/cdn/4PLVKLIO.js +2 -0
- package/dist/cdn/{4NMNJIYV.js → 4RYRGSLZ.js} +1 -1
- package/dist/cdn/{YUV3XEWE.js → 5EO47VPH.js} +1 -1
- package/dist/cdn/{TSL4BZHI.js → 6NVBAMUC.js} +1 -1
- package/dist/cdn/6Z4HUEBW.js +2 -0
- package/dist/cdn/{NAWH5P73.js → 737FF4ZH.js} +1 -1
- package/dist/cdn/{OPP5DWFT.js → 7DJQ6AV3.js} +1 -1
- package/dist/cdn/{EVYO2SIO.js → 7EYV5QCR.js} +1 -1
- package/dist/cdn/7GTMLYFP.js +2 -0
- package/dist/cdn/{TCYTMU4A.js → 7NXADBPZ.js} +1 -1
- package/dist/cdn/{DUDVPO32.js → 7SS6YS6U.js} +1 -1
- package/dist/cdn/{ENSUS3VL.js → ACB6VKEU.js} +1 -1
- package/dist/cdn/{R72MT5TQ.js → ACGQG2T3.js} +1 -1
- package/dist/cdn/AGNHPUGM.js +2 -0
- package/dist/cdn/{UQIJOVPD.js → BABV4Q67.js} +1 -1
- package/dist/cdn/{ESTUA4YE.js → BB2OVX6Z.js} +1 -1
- package/dist/cdn/BD27PEC7.js +2 -0
- package/dist/cdn/{IZVYML7I.js → BJHI57US.js} +1 -1
- package/dist/cdn/{NVKY5H7W.js → BMEV46IM.js} +1 -1
- package/dist/cdn/{R5NVFWFA.js → BPXDBUNH.js} +1 -1
- package/dist/cdn/{7MKSGCWC.js → BYIKUU2V.js} +1 -1
- package/dist/cdn/{AW7PMR3D.js → CDY4M34V.js} +1 -1
- package/dist/cdn/{KZBBEVWQ.js → CML7DSDS.js} +1 -1
- package/dist/cdn/{MMNJNQ3Q.js → CMXX5I5Y.js} +1 -1
- package/dist/cdn/{TCKCE5NB.js → CUWHMMMX.js} +1 -1
- package/dist/cdn/{3XWUH3TJ.js → CW3A3NSF.js} +1 -1
- package/dist/cdn/{VLJKBHDD.js → CWXLMMIV.js} +1 -1
- package/dist/cdn/{ZBWHLMXA.js → CZE4HGAH.js} +1 -1
- package/dist/cdn/{3TFVMVSU.js → D5OF45DN.js} +1 -1
- package/dist/cdn/{NANWWHJ6.js → D5YLOINY.js} +1 -1
- package/dist/cdn/{EFYUNXBG.js → DAPA72LS.js} +1 -1
- package/dist/cdn/{CCFKZSFO.js → DGHNWABD.js} +1 -1
- package/dist/cdn/{43OLIA7Q.js → DGIBWHDZ.js} +1 -1
- package/dist/cdn/{GLNO2ZMW.js → DI6UP5OE.js} +1 -1
- package/dist/cdn/{JCHYVWCR.js → EE2CA7CT.js} +1 -1
- package/dist/cdn/{54WXILYF.js → EOK45N5T.js} +1 -1
- package/dist/cdn/{ATLWKCAP.js → ESA5KBF2.js} +1 -1
- package/dist/cdn/{SHJGMBBY.js → EV4FZDIH.js} +1 -1
- package/dist/cdn/EXQF6CLS.js +2 -0
- package/dist/cdn/{435CL2BU.js → FC3W4JBU.js} +1 -1
- package/dist/cdn/{A2Q7UAOI.js → FJI7SX3Z.js} +1 -1
- package/dist/cdn/{6HJM34BD.js → FK5W4CAM.js} +1 -1
- package/dist/cdn/{YMCZRMWW.js → FPWQJH6Z.js} +1 -1
- package/dist/cdn/{YMHPA3VC.js → FW6YER2T.js} +1 -1
- package/dist/cdn/{45OF43WO.js → FWRGAMLD.js} +1 -1
- package/dist/cdn/FWVU47N3.js +2 -0
- package/dist/cdn/{7XUCMK3B.js → FZD4BWTZ.js} +1 -1
- package/dist/cdn/{NLQ5PJXM.js → G62ON2MX.js} +1 -1
- package/dist/cdn/{GPVFCWMU.js → GSI2ZI7D.js} +1 -1
- package/dist/cdn/{3XUZ45XB.js → HB3P56AO.js} +1 -1
- package/dist/cdn/HF7TEJAO.js +2 -0
- package/dist/cdn/HL32BXZ6.js +2 -0
- package/dist/cdn/{IKBRNNUA.js → HLW5IWNW.js} +1 -1
- package/dist/cdn/{6S7LUYCJ.js → HSVIFDP7.js} +1 -1
- package/dist/cdn/{KPOSO4HB.js → I5OLG552.js} +1 -1
- package/dist/cdn/{2SEZT4WZ.js → I75L57XX.js} +1 -1
- package/dist/cdn/{TCFK2EXM.js → IAQVHCU7.js} +1 -1
- package/dist/cdn/{SSVJJAR5.js → IIFKJ5KI.js} +1 -1
- package/dist/cdn/{K3BJFKYY.js → IJM4ETBT.js} +1 -1
- package/dist/cdn/ISUTHAE7.js +2 -0
- package/dist/cdn/{6IEKX6LJ.js → J5WF4RA3.js} +1 -1
- package/dist/cdn/{V2FVPSX3.js → JAPZRY7D.js} +1 -1
- package/dist/cdn/{V7MKCC7O.js → JC5VO2H6.js} +1 -1
- package/dist/cdn/JK5WW4LS.js +2 -0
- package/dist/cdn/{6JMYHTFN.js → JRGDCJFD.js} +1 -1
- package/dist/cdn/{NCHQCPM6.js → K3PRLBKN.js} +1 -1
- package/dist/cdn/{LA3UYF7I.js → K3RZVWUG.js} +1 -1
- package/dist/cdn/KI2RJGYP.js +2 -0
- package/dist/cdn/KN4B6FCH.js +2 -0
- package/dist/cdn/{4LB5GOV2.js → KS54PV2C.js} +1 -1
- package/dist/cdn/KY3F7CGM.js +2 -0
- package/dist/cdn/{3YDQP3TL.js → KYIGNAWR.js} +1 -1
- package/dist/cdn/{HIHYNNEU.js → LWFBZABK.js} +1 -1
- package/dist/cdn/{7GXEJLOM.js → LWUHDIX7.js} +1 -1
- package/dist/cdn/{PKS3JYAN.js → M7QNKIPS.js} +1 -1
- package/dist/cdn/{S7HZFJQZ.js → MHFQFV3U.js} +1 -1
- package/dist/cdn/MS7AHPCF.js +2 -0
- package/dist/cdn/{NC472JXT.js → MVGWB3RU.js} +1 -1
- package/dist/cdn/{BCXPJXAK.js → NRSO2H4L.js} +1 -1
- package/dist/cdn/{45O57WR4.js → O2ETKQ5D.js} +1 -1
- package/dist/cdn/{DBF4LUEJ.js → O5TYAJJC.js} +1 -1
- package/dist/cdn/{7PTCONZB.js → OES2XNU6.js} +1 -1
- package/dist/cdn/{LKR52VUM.js → OJZS7SEO.js} +1 -1
- package/dist/cdn/{EK7GAWIV.js → OPXW6KNI.js} +1 -1
- package/dist/cdn/{2NYG7G7M.js → P5CMHBXY.js} +1 -1
- package/dist/cdn/P6RTW6EN.js +2 -0
- package/dist/cdn/{NRYA6EOZ.js → PIBSUNDA.js} +1 -1
- package/dist/cdn/{YUCJQ6XI.js → Q3W5PUKE.js} +1 -1
- package/dist/cdn/{CX5LLKOW.js → QEKL2JAR.js} +1 -1
- package/dist/cdn/{VSXLCBBA.js → QHA2WGXH.js} +1 -1
- package/dist/cdn/{BXLXZYRC.js → R76WDXDY.js} +1 -1
- package/dist/cdn/{EL6TAK3S.js → RIFV5I7U.js} +1 -1
- package/dist/cdn/{GRUB3M36.js → RUFWW2L5.js} +1 -1
- package/dist/cdn/{TDEIRM7H.js → RY6OC64Z.js} +1 -1
- package/dist/cdn/{3MDY3AXY.js → S3Q7DCIL.js} +1 -1
- package/dist/cdn/{BPQPJXPT.js → SDWAS6TI.js} +1 -1
- package/dist/cdn/{GJIDZ4M6.js → T2U3NVKA.js} +1 -1
- package/dist/cdn/{XOTOMH2G.js → TCOOCOVG.js} +1 -1
- package/dist/cdn/{3IVI7KSX.js → TJFVBTGT.js} +1 -1
- package/dist/cdn/{SGY36MUJ.js → TJL2GS3I.js} +1 -1
- package/dist/cdn/{TCS6CS2V.js → TPL6IAKN.js} +1 -1
- package/dist/cdn/{KG2IHV32.js → TWF5DLV4.js} +1 -1
- package/dist/cdn/{7KPJBKO6.js → UCRELG4W.js} +1 -1
- package/dist/cdn/{O7SRECHG.js → URUIZIXD.js} +1 -1
- package/dist/cdn/{42N4OII5.js → UYO3EHF5.js} +1 -1
- package/dist/cdn/{B7P66JTS.js → VDRSNCLD.js} +1 -1
- package/dist/cdn/{TA7JY4OV.js → VPMDOL5A.js} +1 -1
- package/dist/cdn/{3JEAUEUY.js → VZP4JMWS.js} +1 -1
- package/dist/cdn/{A5W6D3EH.js → WIGC724I.js} +1 -1
- package/dist/cdn/{4ICKT52U.js → WVH3PWDM.js} +1 -1
- package/dist/cdn/X32UMW74.js +2 -0
- package/dist/cdn/{B2ZGMSHQ.js → X34ZFQYZ.js} +1 -1
- package/dist/cdn/{BRDTU3O6.js → XC3A635J.js} +1 -1
- package/dist/cdn/{6O7GP3C3.js → XDK4EBMF.js} +1 -1
- package/dist/cdn/{EK44YZYH.js → XHS7LMVO.js} +1 -1
- package/dist/cdn/{CTUD7CTJ.js → XJ45UBQS.js} +1 -1
- package/dist/cdn/{DBJFHC3S.js → XR4WLNHC.js} +1 -1
- package/dist/cdn/{FCRUDE4P.js → XRRV7RO4.js} +1 -1
- package/dist/cdn/{SFP62RAJ.js → XVEDSEO5.js} +1 -1
- package/dist/cdn/{AU7UZMXF.js → Y4BLBOOK.js} +1 -1
- package/dist/cdn/{YNIECEKR.js → Y6YN2NUF.js} +1 -1
- package/dist/cdn/{3PM2WTS4.js → YMGM7P5W.js} +1 -1
- package/dist/cdn/{MPYM4XNR.js → YQHCTUQF.js} +1 -1
- package/dist/cdn/{EEF3VY5V.js → YVZBBDWC.js} +1 -1
- package/dist/cdn/{MECGUFOT.js → ZVK4FCTD.js} +1 -1
- package/dist/cdn/{Z2HJETJA.js → ZVZAGAA3.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +215 -210
- package/dist/components/arcgis-editor/customElement.d.ts +20 -0
- package/dist/components/arcgis-editor/customElement.js +6 -6
- package/dist/components/arcgis-feature-attachments/customElement.js +32 -32
- package/dist/components/arcgis-feature-expression/customElement.js +55 -52
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -0
- package/dist/components/arcgis-feature-templates/customElement.js +3 -3
- package/dist/components/arcgis-legend/customElement.d.ts +1 -1
- package/dist/components/arcgis-legend/customElement.js +34 -33
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +234 -227
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +33 -31
- package/dist/components/arcgis-print-layout-panel/customElement.js +19 -16
- package/dist/components/arcgis-print-main-panel/customElement.js +28 -21
- package/dist/components/arcgis-print-template-select/customElement.js +24 -21
- package/dist/components/arcgis-print-template-selector/customElement.js +19 -19
- 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 +3 -3
- 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 +4 -4
- package/dist/cdn/3ACWQZMG.js +0 -2
- package/dist/cdn/3UEX6WWW.js +0 -2
- package/dist/cdn/AEBJAVUX.js +0 -2
- package/dist/cdn/EI7NXMGF.js +0 -2
- package/dist/cdn/ITCLBS5H.js +0 -2
- package/dist/cdn/JSQZYDU6.js +0 -2
- package/dist/cdn/K5M3ZRVS.js +0 -2
- package/dist/cdn/MTYQJ4TB.js +0 -2
- package/dist/cdn/NYS47GN2.js +0 -2
- package/dist/cdn/PLLSFCLD.js +0 -2
- package/dist/cdn/Q2XRS2MQ.js +0 -2
- package/dist/cdn/TZAGBPDN.js +0 -2
- package/dist/cdn/TZHGOM2Y.js +0 -2
- package/dist/cdn/UFGA4NGM.js +0 -2
- package/dist/cdn/VJ2SMYNX.js +0 -2
- package/dist/cdn/VRWFW2LF.js +0 -2
- package/dist/cdn/VYBNGAPG.js +0 -2
- package/dist/cdn/YOXKII2K.js +0 -2
- package/dist/cdn/assets/home/t9n/messages.home.json +0 -1
- package/dist/cdn/assets/slider-scale-range/t9n/messages.ScaleRangeSlider.json +0 -1
- package/dist/cdn/assets/swipe/t9n/messages.swipe.json +0 -1
- package/dist/chunks/useHandles.js +0 -207
package/dist/loader.js
CHANGED
|
@@ -27,7 +27,7 @@ const s = t(e, {
|
|
|
27
27
|
"arcgis-directions": [() => import("./components/arcgis-directions/customElement.js"), "apiKey,autoDestroyDisabled,autoSolveOnEditActive,goToOverride:,headingLevel,hideLayerDetails,hidePrintButton,hideSaveAsButton,hideSaveButton,icon,label,lastRoute:,layer:,mapLayerId,maxStops,referenceElement,routeLayerItemId,searchProperties:,state:,unit,useDefaultRouteLayer,view:;destroy,getDirections,save,saveAs,startEditing,stopEditing,zoomToRoute"],
|
|
28
28
|
"arcgis-direct-line-measurement-3d": [() => import("./components/arcgis-direct-line-measurement-3d/customElement.js"), "analysis:,autoDestroyDisabled,hideStartButton,hideUnitSelect,hideVisualization,icon,label,messages:,referenceElement,state:,unit,unitOptions:,view:;clear,destroy,start"],
|
|
29
29
|
"arcgis-distance-measurement-2d": [() => import("./components/arcgis-distance-measurement-2d/customElement.js"), "analysis:,autoDestroyDisabled,hideStartButton,hideUnitSelect,hideVisualization,icon,label,messages:,referenceElement,snappingOptions:,state:,unit,unitOptions:,view:;clear,destroy,start"],
|
|
30
|
-
"arcgis-editor": [() => import("./components/arcgis-editor/customElement.js"), "activeWorkflow:,autoDestroyDisabled,headingLevel,hideCreateFeaturesSection,hideEditFeaturesSection,hideLabelsToggle,hideMergeButton,hideSettingsMenu,hideSketch,hideSnappingControlsElementsEnabledToggle,hideSnappingControlsElementsFeatureEnabledToggle,hideSnappingControlsElementsGridControls,hideSnappingControlsElementsGridControlsElementsColorSelection,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle,hideSnappingControlsElementsGridControlsElementsLineIntervalInput,hideSnappingControlsElementsGridControlsElementsNumericInputs,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning,hideSnappingControlsElementsGridControlsElementsPlacementButtons,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle,hideSnappingControlsElementsGridEnabledToggle,hideSnappingControlsElementsLayerList,hideSnappingControlsElementsSelfEnabledToggle,hideSplitButton,hideTooltipsToggle,hideUndoRedoButtons,hideZoomToButton,icon,label,labelOptions:,layerInfos:,referenceElement,selectionManager:,showSnappingControlsElementsHeader,snappingOptions:,state:,supportingWidgetDefaults:,syncViewSelection,tooltipOptions:,useLegacyCreateTools,view:;cancelWorkflow,deleteFeatureFromWorkflow,destroy,startCreateFeaturesWorkflowAtFeatureCreation,startCreateFeaturesWorkflowAtFeatureTypeSelection,startMergeFeaturesWorkflow,startSplitFeatureWorkflow,startUpdateFeaturesWorkflow,startUpdateWorkflowAtFeatureEdit,startUpdateWorkflowAtFeatureSelection,startUpdateWorkflowAtMultipleFeatureSelection;cancelSelectionTool"],
|
|
30
|
+
"arcgis-editor": [() => import("./components/arcgis-editor/customElement.js"), "activeWorkflow:,autoDestroyDisabled,effectiveSelectionManager:,headingLevel,hideCreateFeaturesSection,hideEditFeaturesSection,hideLabelsToggle,hideMergeButton,hideSelectionToolbar,hideSettingsMenu,hideSketch,hideSnappingControlsElementsEnabledToggle,hideSnappingControlsElementsFeatureEnabledToggle,hideSnappingControlsElementsGridControls,hideSnappingControlsElementsGridControlsElementsColorSelection,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle,hideSnappingControlsElementsGridControlsElementsLineIntervalInput,hideSnappingControlsElementsGridControlsElementsNumericInputs,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning,hideSnappingControlsElementsGridControlsElementsPlacementButtons,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle,hideSnappingControlsElementsGridEnabledToggle,hideSnappingControlsElementsLayerList,hideSnappingControlsElementsSelfEnabledToggle,hideSplitButton,hideTooltipsToggle,hideUndoRedoButtons,hideZoomToButton,icon,label,labelOptions:,layerInfos:,referenceElement,selectionManager:,showSnappingControlsElementsHeader,snappingOptions:,state:,supportingWidgetDefaults:,syncViewSelection,tooltipOptions:,useLegacyCreateTools,view:;cancelWorkflow,deleteFeatureFromWorkflow,destroy,startCreateFeaturesWorkflowAtFeatureCreation,startCreateFeaturesWorkflowAtFeatureTypeSelection,startMergeFeaturesWorkflow,startSplitFeatureWorkflow,startUpdateFeaturesWorkflow,startUpdateWorkflowAtFeatureEdit,startUpdateWorkflowAtFeatureSelection,startUpdateWorkflowAtMultipleFeatureSelection;cancelSelectionTool"],
|
|
31
31
|
"arcgis-elevation-profile": [() => import("./components/arcgis-elevation-profile/customElement.js"), "_messages:,analysis:,autoDestroyDisabled,distanceUnit,distanceUnitOptions:,effectiveDisplayUnits:,elevationInfo:,elevationUnit,elevationUnitOptions:,feature:,geometry:,hideChart,hideChartAxisLabels,hideChartGridLines,hideClearButton,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideLegend,hideSelectButton,hideSettingsButton,hideStartButton,hideUniformChartScalingToggle,hideVisualization,highlightDisabled,icon,indicatorRelativePosition:,label,messageOverrides:,profiles:,progress:,referenceElement,state:,uniformChartScaling,view:;clear,destroy,select,start,stop"],
|
|
32
32
|
"arcgis-elevation-profile-legend": [() => import("./components/arcgis-elevation-profile-legend/customElement.js"), "effectiveDisplayUnits:,featureSelected,messages:,profiles:,results:;destroy"],
|
|
33
33
|
"arcgis-elevation-profile-legend-item": [() => import("./components/arcgis-elevation-profile-legend-item/customElement.js"), "effectiveDisplayUnits:,expanded,featureSelected,hideCheckbox,messages:,result:;destroy"],
|
|
@@ -35,7 +35,7 @@ const s = t(e, {
|
|
|
35
35
|
"arcgis-elevation-profile-statistics": [() => import("./components/arcgis-elevation-profile-statistics/customElement.js"), "effectiveDisplayUnits:,messages:,result:;destroy"],
|
|
36
36
|
"arcgis-expand": [() => import("./components/arcgis-expand/customElement.js"), "autoCollapse,autoDestroyDisabled,closeOnEscDisabled,collapseIcon,collapseTooltip,content,expanded,expandIcon,expandTooltip,focusTrapDisabled,group,icon,iconNumber,label,messageOverrides:,messages:,mode,placement,referenceElement,state:,topLayerDisabled,view:,visualScale;collapse,destroy,expand"],
|
|
37
37
|
"arcgis-feature": [() => import("./components/arcgis-feature/customElement.js"), "autoDestroyDisabled,chartAnimationDisabled,defaultPopupTemplateEnabled,flowItems:,flowType,graphic:,heading:,headingLevel,hideAttachmentsContent,hideContent,hideCustomContent,hideExpressionContent,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideTextContent,icon,isFeatureFromTable:,label,location:,map:,messageOverrides:,messages:,referenceElement,showRelationshipContent,showUtilityNetworkContent,spatialReference:,state:,timeZone,view:,viewModel:;destroy,nextMedia,previousMedia,setActiveMedia,updateGeometry"],
|
|
38
|
-
"arcgis-feature-attachments": [() => import("./components/arcgis-feature-attachments/customElement.js"), "attachmentKeywords:,attachmentTypes:,description,displayType,graphic:,heading,headingLevel,messages:,orderByFields:"],
|
|
38
|
+
"arcgis-feature-attachments": [() => import("./components/arcgis-feature-attachments/customElement.js"), "attachmentKeywords:,attachmentTypes:,description,displayType,graphic:,heading,headingLevel,hidePreviewImageAttachmentName,messages:,orderByFields:"],
|
|
39
39
|
"arcgis-feature-content": [() => import("./components/arcgis-feature-content/customElement.js"), "creator,destroyer:,graphic:"],
|
|
40
40
|
"arcgis-feature-element-info": [() => import("./components/arcgis-feature-element-info/customElement.js"), "description,heading,headingLevel"],
|
|
41
41
|
"arcgis-feature-expression": [() => import("./components/arcgis-feature-expression/customElement.js"), "expressionInfo:,fieldInfoMap:,graphic:,headingLevel,interceptor:,location:,map:,messages:,spatialReference:,values:,view:"],
|
|
@@ -45,7 +45,7 @@ const s = t(e, {
|
|
|
45
45
|
"arcgis-feature-next": [() => import("./components/arcgis-feature-next/customElement.js"), "autoDestroyDisabled,chartAnimationDisabled,defaultPopupTemplateEnabled,flowItems:,flowType,graphic:,heading:,headingLevel,hideAttachmentsContent,hideContent,hideCustomContent,hideExpressionContent,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideTextContent,icon,isFeatureFromTable:,label,location:,map:,messageOverrides:,messages:,referenceElement,showRelationshipContent,showUtilityNetworkContent,spatialReference:,state:,timeZone,view:,viewModel:;destroy,updateGeometry;nextMedia,previousMedia,setActiveMedia"],
|
|
46
46
|
"arcgis-feature-relationship": [() => import("./components/arcgis-feature-relationship/customElement.js"), "activeCategory:,allItemsDescription:,autoDestroyDisabled,description,displayCount,featurePage,featuresPerPage,flowItems:,flowType,graphic:,heading,headingLevel,hideDescription,hideHeading,label,layer:,map:,messages:,orderByFields:,relationshipId,showAllEnabled,spatialReference:,timeZone,useFeatureNextFlowItem,values:,view:;destroy"],
|
|
47
47
|
"arcgis-feature-table": [() => import("./components/arcgis-feature-table/customElement.js"), "actionColumn:,actionColumnConfig:,activeFilters:,activeSortOrders:,allColumns:,allRelatedTablesVisible:,allVisibleColumns:,attachmentsColumns:,attachmentsEnabled,attachmentsViewOptions:,attributeTableTemplate:,autoDestroyDisabled,autoRefreshDisabled,autoSaveDisabled,canAddRelatedFeature:,closed,collapsed,columnPerformanceModeDisabled,columnReorderingDisabled,columns:,definitionExpression,description,disabled,editingEnabled,effectiveSize:,fieldColumns:,filterByLayerScaleRange,filterBySelectionEnabled,filterByViewExtent,filterGeometry:,groupColumns:,hasContingentValues:,hasInvalidPendingEdits:,hasPendingEdits:,hiddenFields:,hideColumnDescriptions,hideColumnMenuItemsSortAscending,hideColumnMenuItemsSortDescending,hideColumnMenus,hideColumnVisibilityMenu,hideColumnVisibilityMenuItemsFilter,hideColumnVisibilityMenuItemsHeader,hideColumnVisibilityMenuItemsToggleAll,hideHeader,hideLayerDropdownIcons,hideMenu,hideMenuItemsClearSelection,hideMenuItemsDeleteSelection,hideMenuItemsExportSelectionToCsv,hideMenuItemsRefreshData,hideMenuItemsSelectedRecordsShowAllToggle,hideMenuItemsSelectedRecordsShowSelectedToggle,hideMenuItemsToggleColumns,hideMenuItemsZoomToSelection,hideProgress,hideSelectionColumn,hideTooltips,highlightDisabled,highlightIds:,icon,initialSize,isQueryingOrSyncing:,isSyncingAttachments:,label,layer:,layerId,layerItemId,layers:,layerUrl,layerView:,mapLayerId,maxSize,menuConfig:,multipleSelectionDisabled,multipleSortEnabled,multipleSortPriority,navigationScale,noDataMessage,objectIds:,outFields:,pageCount:,pageIndex,pageSize,paginationEnabled,referenceElement,relatedRecordsEnabled,relatedTable:,relatedTables:,relationship:,relationshipColumns:,returnGeometryEnabled,returnMEnabled,returnZEnabled,rowHighlightIds:,selectionManager:,showClose,showCollapse,showLayerDropdown,size:,state:,supportsAddAttachments:,supportsAttachments:,supportsDeleteAttachments:,supportsResizeAttachments:,supportsUpdateAttachments:,syncTemplateOnChangesDisabled,syncViewSelection,tableController:,tableDisabled,tableParent:,tableTemplate:,tableTitle,timeExtent:,timeZone,view:,visibleColumns:;deleteSelection,destroy,discardPendingEdits,exportSelectionToCSV,findColumn,getFeatureStoreItemByObjectId,goToPage,hideColumn,nextPage,previousPage,refresh,refreshCellContent,savePendingEdits,scrollToBottom,scrollToIndex,scrollToLeft,scrollToRow,scrollToTop,showAllColumns,showColumn,sortColumn,toggleColumnVisibility,zoomToSelection;addPendingEdits"],
|
|
48
|
-
"arcgis-feature-templates": [() => import("./components/arcgis-feature-templates/customElement.js"), "_messages:,applicationDisabledFunction:,applicationFilterFunction:,applicationTemplates:,autoDestroyDisabled,disabled,disableTemplatesMode,display,effectiveTemplates:,excludeTables,favorites:,favoritesEnabled,favoritesFilterText,filterText,groupBy,groupByFunction:,hideTemplateDescription,hideTemplatesMode,layers:,recentFilterText,recentlyUsed:,recentlyUsedEnabled,referenceElement,restoreFavorites:,restoreRecentlyUsed:,sectionSortBy,sectionSortByFunction:,selectedTemplate:,selectedTemplateId,sharedTemplatesDisabled,showCollapseButton,showFilter,templateSortBy,templateSortByFunction:,updating:,view:;destroy"],
|
|
48
|
+
"arcgis-feature-templates": [() => import("./components/arcgis-feature-templates/customElement.js"), "_messages:,applicationDisabledFunction:,applicationFilterFunction:,applicationTemplates:,autoDestroyDisabled,disabled,disableTemplatesMode,display,effectiveTemplates:,excludeTables,favorites:,favoritesEnabled,favoritesFilterText,filterText,groupBy,groupByFunction:,hideTemplateDescription,hideTemplatesMode,layers:,minRequiredFilterCount,recentFilterText,recentlyUsed:,recentlyUsedEnabled,referenceElement,restoreFavorites:,restoreRecentlyUsed:,sectionSortBy,sectionSortByFunction:,selectedTemplate:,selectedTemplateId,sharedTemplatesDisabled,showCollapseButton,showFilter,templateSortBy,templateSortByFunction:,updating:,view:;destroy"],
|
|
49
49
|
"arcgis-template-image": [() => import("./components/arcgis-template-image/customElement.js"), "template:"],
|
|
50
50
|
"arcgis-feature-templates-legacy": [() => import("./components/arcgis-feature-templates-legacy/customElement.js"), "autoDestroyDisabled,disabledItemFunction:,enableListScroll,filterFunction:,filterText,groupBy,headingLevel,hideFilter,icon,items:,label,layers:,referenceElement,selectedItem:,selectionMode,state:,view:;destroy;select"],
|
|
51
51
|
"arcgis-feature-utility-network-association-list": [() => import("./components/arcgis-feature-utility-network-association-list/customElement.js"), "associatedFeatureCount:,associationViewModels:,autoDestroyDisabled,currentFeaturePage,description,displayCount,endIndex:,featuresPerPage,flowItems:,flowType,heading,map:,maxFeatureCount,messages:,parentFeatureViewModel:,referenceElement,selectedLayer:,showAllEnabled,spatialReference:,state,timeZone,tooltipReferenceMap:,useFeatureNextFlowItem,view:;destroy"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -254,7 +254,7 @@ interface LuminaArcgisDistanceMeasurement2d extends Partial<Pick<ArcgisDistanceM
|
|
|
254
254
|
onarcgisReady?: EventHandler<ArcgisDistanceMeasurement2d["arcgisReady"]>;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
interface LuminaArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, h.JSX.HTMLAttributes<ArcgisEditor> {
|
|
257
|
+
interface LuminaArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSelectionToolbar" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, h.JSX.HTMLAttributes<ArcgisEditor> {
|
|
258
258
|
onarcgisPropertyChange?: EventHandler<ArcgisEditor["arcgisPropertyChange"]>;
|
|
259
259
|
onarcgisReady?: EventHandler<ArcgisEditor["arcgisReady"]>;
|
|
260
260
|
onarcgisSketchCreate?: EventHandler<ArcgisEditor["arcgisSketchCreate"]>;
|
|
@@ -300,7 +300,7 @@ interface LuminaArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "act
|
|
|
300
300
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
interface LuminaArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, h.JSX.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
303
|
+
interface LuminaArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "minRequiredFilterCount" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, h.JSX.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
304
304
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
305
305
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
306
306
|
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ interface PreactArcgisDistanceMeasurement2d extends Partial<Pick<ArcgisDistanceM
|
|
|
255
255
|
onarcgisReady?: EventHandler<ArcgisDistanceMeasurement2d["arcgisReady"]>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
interface PreactArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, HTMLAttributes<ArcgisEditor> {
|
|
258
|
+
interface PreactArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSelectionToolbar" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, HTMLAttributes<ArcgisEditor> {
|
|
259
259
|
onarcgisPropertyChange?: EventHandler<ArcgisEditor["arcgisPropertyChange"]>;
|
|
260
260
|
onarcgisReady?: EventHandler<ArcgisEditor["arcgisReady"]>;
|
|
261
261
|
onarcgisSketchCreate?: EventHandler<ArcgisEditor["arcgisSketchCreate"]>;
|
|
@@ -301,7 +301,7 @@ interface PreactArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "act
|
|
|
301
301
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
interface PreactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLAttributes<ArcgisFeatureTemplates> {
|
|
304
|
+
interface PreactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "minRequiredFilterCount" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLAttributes<ArcgisFeatureTemplates> {
|
|
305
305
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
306
306
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
307
307
|
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ interface ReactArcgisDistanceMeasurement2d extends Partial<Pick<ArcgisDistanceMe
|
|
|
255
255
|
onarcgisReady?: EventHandler<ArcgisDistanceMeasurement2d["arcgisReady"]>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
interface ReactArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, HTMLProps<ArcgisEditor> {
|
|
258
|
+
interface ReactArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSelectionToolbar" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, HTMLProps<ArcgisEditor> {
|
|
259
259
|
onarcgisPropertyChange?: EventHandler<ArcgisEditor["arcgisPropertyChange"]>;
|
|
260
260
|
onarcgisReady?: EventHandler<ArcgisEditor["arcgisReady"]>;
|
|
261
261
|
onarcgisSketchCreate?: EventHandler<ArcgisEditor["arcgisSketchCreate"]>;
|
|
@@ -301,7 +301,7 @@ interface ReactArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "acti
|
|
|
301
301
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
interface ReactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLProps<ArcgisFeatureTemplates> {
|
|
304
|
+
interface ReactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "minRequiredFilterCount" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLProps<ArcgisFeatureTemplates> {
|
|
305
305
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
306
306
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
307
307
|
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ interface StencilArcgisDistanceMeasurement2d extends Partial<Pick<ArcgisDistance
|
|
|
255
255
|
onArcgisReady?: EventHandler<ArcgisDistanceMeasurement2d["arcgisReady"]>;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
interface StencilArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, StencilJsx.HTMLAttributes<ArcgisEditor> {
|
|
258
|
+
interface StencilArcgisEditor extends Partial<Pick<ArcgisEditor, "autoDestroyDisabled" | "headingLevel" | "hideCreateFeaturesSection" | "hideEditFeaturesSection" | "hideLabelsToggle" | "hideMergeButton" | "hideSelectionToolbar" | "hideSettingsMenu" | "hideSketch" | "hideSnappingControlsElementsEnabledToggle" | "hideSnappingControlsElementsFeatureEnabledToggle" | "hideSnappingControlsElementsGridControls" | "hideSnappingControlsElementsGridControlsElementsColorSelection" | "hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle" | "hideSnappingControlsElementsGridControlsElementsLineIntervalInput" | "hideSnappingControlsElementsGridControlsElementsNumericInputs" | "hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning" | "hideSnappingControlsElementsGridControlsElementsPlacementButtons" | "hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle" | "hideSnappingControlsElementsGridEnabledToggle" | "hideSnappingControlsElementsLayerList" | "hideSnappingControlsElementsSelfEnabledToggle" | "hideSplitButton" | "hideTooltipsToggle" | "hideUndoRedoButtons" | "hideZoomToButton" | "label" | "labelOptions" | "layerInfos" | "referenceElement" | "selectionManager" | "showSnappingControlsElementsHeader" | "snappingOptions" | "supportingWidgetDefaults" | "syncViewSelection" | "tooltipOptions" | "useLegacyCreateTools" | "view">>, ArcgisEditorSetterTypes, StencilJsx.HTMLAttributes<ArcgisEditor> {
|
|
259
259
|
onArcgisPropertyChange?: EventHandler<ArcgisEditor["arcgisPropertyChange"]>;
|
|
260
260
|
onArcgisReady?: EventHandler<ArcgisEditor["arcgisReady"]>;
|
|
261
261
|
onArcgisSketchCreate?: EventHandler<ArcgisEditor["arcgisSketchCreate"]>;
|
|
@@ -301,7 +301,7 @@ interface StencilArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "ac
|
|
|
301
301
|
onArcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
interface StencilArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, StencilJsx.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
304
|
+
interface StencilArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "minRequiredFilterCount" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, StencilJsx.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
305
305
|
onArcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
306
306
|
onArcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
307
307
|
onArcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/map-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.34",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"lit": "^3.3.0",
|
|
47
47
|
"lodash-es": "^4.18.1",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
|
-
"@arcgis/
|
|
50
|
-
"@arcgis/common-components": "5.2.0-next.
|
|
51
|
-
"@arcgis/
|
|
49
|
+
"@arcgis/toolkit": "5.2.0-next.34",
|
|
50
|
+
"@arcgis/common-components": "5.2.0-next.34",
|
|
51
|
+
"@arcgis/lumina": "5.2.0-next.34"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcgis/core": "^5.2.0-next",
|
package/dist/cdn/3ACWQZMG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./MOJH7XEP.js";import{a as h}from"./UFGA4NGM.js";import"./VJ2SMYNX.js";import"./IDZCPNFC.js";import"./DU6OKLV4.js";import{O as d,R as m,U as p,a as r,b as l}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},{a:u,b:g,c:v,d:f,f:c}])=>{var y=r`:host{overflow-y:hidden;display:flex;flex:1 0}.template-select-flow-item-container{display:flex;flex-direction:column;justify-content:space-between;overflow-y:hidden;flex-grow:1}.template-select-flow-item-container .template-select-flow-item-content{display:flex;flex-direction:column;overflow-y:auto;flex:1 0}.template-select-flow-item-container .template-select-flow-item-content .template-select-flow-item-list-heading{display:flex;gap:var(--calcite-spacing-xs);align-items:center;justify-content:space-between;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);background-color:var(--calcite-color-foreground-2);border-bottom:1px solid var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-semibold)}.template-button-container{padding:var(--calcite-spacing-md)}.template-done-button{width:100%}`,n=class extends d{constructor(){super(...arguments),this._handles=h("disconnect")}static{this.properties={_selectedTemplate:16,excludeOrganizationTemplates:5,viewModel:0,messages:0,hideTemplateSelector:0}}static{this.styles=y}loaded(){this.manager.onLifecycle(()=>[w(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(w(()=>this._selectedTemplate?.state,()=>this.requestUpdate(),{initial:!0}),"template-handle")},{initial:!0})])}_getPortalTemplates(){return this.viewModel.includeDefaultTemplates&&!this.excludeOrganizationTemplates?this.viewModel.defaultTemplates.toArray().filter(({layout:e,layoutItem:i})=>!c(e)&&!!i?.id):[]}_getDefaultTemplates(){return this.viewModel.includeDefaultTemplates?this.viewModel.defaultTemplates.toArray().filter(({layout:e,layoutItem:i})=>!c(e)&&!i?.id):[]}_getPrintServiceTemplates(){return!this.viewModel.includeDefaultTemplates||!this._getDefaultTemplates().length?this.viewModel.printServiceTemplates.toArray().filter(({layout:e})=>!c(e)):[]}render(){let{messages:e}=this,i=u.test(this.viewModel.portal?.url),t=this.viewModel.browseTemplates.toArray(),a=this._getPortalTemplates(),s=this._getDefaultTemplates(),o=this._getPrintServiceTemplates(),T=t.length+a.length+s.length+o.length>15;return l`<div class="template-select-flow-item-container"><div class="template-select-flow-item-content"><slot></slot><calcite-list .filterEnabled=${T} .filterProps=${["label"]} .label=${e.templateList} selection-mode=single-persist @calciteListChange=${({currentTarget:$})=>this.viewModel.applyTemplate($.selectedItems[0]?.value)}>${t.length?l`<div><div class="template-select-flow-item-list-heading">${e.myTemplates}${i?l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>`:null}</div>${this._renderLayoutTemplates(t,!0)}</div>`:null}${a.length?l`<div><div class="template-select-flow-item-list-heading">${e.organizationTemplates}${i?l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>`:null}</div>${this._renderLayoutTemplates(a)}</div>`:null}${t.length||a.length?s.length?l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(s)}</div>`:null:this._renderLayoutTemplates(s)}${t.length||a.length?o.length?l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(o)}</div>`:null:this._renderLayoutTemplates(o)}</calcite-list></div><div class="template-button-container"><calcite-button class="template-done-button" @click=${this.hideTemplateSelector}>Done</calcite-button></div></div>`}_renderLayoutTemplates(e,i=!1){return e.map(t=>l`<calcite-list-item .description=${g(t)} .label=${v(t,this.messages)} .selected=${t.id===this.viewModel.templateOptions.id} title=${t.description??""??m} .value=${t}><calcite-icon .icon=${(t.layout?f(t.layout):null)||"custom-print"} slot=content-start></calcite-icon>${t.state==="loading"?l`<calcite-loader inline label=loading scale=s slot=content-end></calcite-loader>`:null}${t?.state==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=content-end></calcite-icon>`:null}${i?l`<calcite-action icon=trash @click=${()=>this.viewModel.removePortalTemplate(t)} slot=actions-end text=delete></calcite-action>`:null}</calcite-list-item>`)}};p("arcgis-print-template-selector",n);return n},"core/reactiveUtils",a)
|
package/dist/cdn/3UEX6WWW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as u}from"./UFGA4NGM.js";import i from"./6IEKX6LJ.js";import{a as f}from"./KPOSO4HB.js";import{a as o}from"./JD74LG7K.js";import e from"./R5NVFWFA.js";import b from"./GPVFCWMU.js";import{h as p}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import{d as h}from"./DU6OKLV4.js";import{O as d,P as c,U as g,a as n,b as t,x as l}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:a,watch:_},w,,,,v])=>{var y=n`.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{--arcgis-internal-legend-heading-margin: 0 0 .5rem;--arcgis-internal-legend-layer-padding: var( --arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg) );--arcgis-internal-legend-layer-gap: var(--calcite-spacing-xxl);--arcgis-internal-legend-layer-element-gap: var(--calcite-spacing-md);overflow:auto;width:var(--arcgis-internal-legend-width, 300px)}.root{overflow-y:var(--arcgis-internal-panel-overflow, auto)}:host([card-style-layout="side-by-side"]){--arcgis-internal-legend-width: auto}`,b=v(w),s=class extends d{constructor(){super(...arguments),this.messages=f({}),this.final=u("destroy"),this.viewModel=b(this),this._isCardStyle=!1,this.view=this.viewModel.view,this.icon="legend",this.activeLayerInfos=this.viewModel.activeLayerInfos,this.basemapLegendVisible=this.viewModel.basemapLegendVisible,this.headingLevel=3,this.hideLayersNotInCurrentView=this.viewModel.hideLayersNotInCurrentView,this.respectLayerDefinitionExpression=this.viewModel.respectLayerDefinitionExpression,this.layerInfos=this.viewModel.layerInfos,this.loading=this.viewModel.loading,this.legendStyle="classic",this.autoDestroyDisabled=!1,this.label=this.messages?.componentLabel,this.state=this.viewModel.state,this.arcgisPropertyChange=p()("state"),this.arcgisReady=l()}static{this.properties={_isCardStyle:16,view:0,referenceElement:1,icon:1,activeLayerInfos:0,basemapLegendVisible:5,headingLevel:9,hideLayersNotInCurrentView:5,respectLayerDefinitionExpression:5,ignoreLayerVisibility:5,layerInfos:0,loading:39,cardStyleLayout:1,legendStyle:1,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=y}get ignoreLayerVisibility(){return!this.viewModel.respectLayerVisibility}set ignoreLayerVisibility(e){this.viewModel.respectLayerVisibility=!e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[a(()=>this.el.view,"resize",()=>this.requestUpdate()),a(()=>this.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this.activeLayerInfos)),_(()=>[this.cardStyleLayout,this.legendStyle,typeof this.legendStyle=="object"?this.legendStyle.type:void 0,typeof this.legendStyle=="object"?this.legendStyle.layout:void 0],()=>{let e=this.legendStyle,i=typeof e=="object"?e:{type:e};this._isCardStyle=i.type==="card",this._isCardStyle?(this.cardStyleLayout=this.cardStyleLayout||i.layout||"auto",this.cardStyleLayout==="auto"&&this.el.closest("arcgis-expand")&&(this.cardStyleLayout="stack"),this.setAttribute("card-style-layout",this.cardStyleLayout)):this.removeAttribute("card-style-layout")},{initial:!0})])}_refreshActiveLayerInfos(e){e.forEach(i=>{this.final.removeHandles(`version_${i.layer.uid}`),this._renderOnActiveLayerInfoChange(i)}),this.requestUpdate()}render(){return t`<div class=${c(h("root",o.widget,{[o.panel]:!this._isCardStyle}))}>${this._isCardStyle&&this.view?t`<arcgis-legend-card-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages} .layout=${this.cardStyleLayout} .view=${this.view}></arcgis-legend-card-view>`:t`<arcgis-legend-classic-view .activeLayerInfos=${this.activeLayerInfos} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-legend-classic-view>`}</div>`}_renderOnActiveLayerInfoChange(e){let i=_(()=>e.version,()=>this.requestUpdate());this.final.addHandles(i,`version_${e.layer.uid}`);let m=a(()=>e.children,"change",()=>e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r)));this.final.addHandles(m,`version_${e.layer.uid}`),e.children.forEach(r=>this._renderOnActiveLayerInfoChange(r))}};g("arcgis-legend",s);return s},"core/reactiveUtils","widgets/Legend/LegendViewModel",a,b,e,i)
|
package/dist/cdn/AEBJAVUX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as v}from"./POZ7OKIJ.js";import c from"./QFH7PJYV.js";import b from"./MZWO5JYA.js";import a from"./DUWXDGIW.js";import{a as d}from"./VJVKFKSG.js";import{O as x,U as k,a as T,b as o}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w,when:I},L,A,E,{compileExpression:J},{b:m,e:f},,{p:y}])=>{var b=T`.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`,$=1,g=class extends x{constructor(){super(...arguments),this._compileThrottled=v(this._startCompile,$),this._evaluateThrottled=v(this._startEvaluate,$),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=b}loaded(){this.manager.onLifecycle(()=>[w(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),I(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,s=t?.dependencies,{view:e}=this;return[t,this.spatialReference,this.map,e,s?.has("view-scale")&&e&&"scale"in e?e.scale:null,s?.has("view-time-extent")?e?.timeExtent?.start:null,s?.has("view-time-extent")?e?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=d(this._evaluateTask),this._compileTask=d(this._compileTask),this._compileTask=f(async t=>{let{expressionInfo:s,graphic:e}=this,i=s?.expression;if(!i||!e)return null;let a=await J({expression:i,graphic:e});return m(t),a})}_startEvaluate(t){this._evaluateTask=d(this._evaluateTask),this._evaluateTask=f(async s=>{let{graphic:e}=this;if(!t||!e)return null;let{interceptor:i,spatialReference:a,map:r,location:c,view:l}=this,h=await t.evaluate({graphic:e,interceptor:i,location:c,map:r,options:{signal:s},spatialReference:a,view:l});m(s);let _=h&&"castAsJsonAsync"in h&&typeof h.castAsJsonAsync=="function"?h:null;if(!_)return null;let p=await _.castAsJsonAsync(s);m(s);let u=p?.type,n=u==="media"?L.fromJSON(p):u==="text"?E.fromJSON(p):u==="fields"?A.fromJSON(p):null;return!n||n.type==="media"&&!n.mediaInfos||n.type==="fields"&&!n.fieldInfos||n.type==="text"&&!n.text?null:n})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return o`<div class="root">${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:s}=this,e=this._evaluateTask?.value,i=e?.type,a={...t,...e?.attributes};if(!i)return null;if(i==="text"){let r=y({values:a,fieldInfoMap:s??new Map,globalValues:a,layer:void 0,text:e.text});return o`<arcgis-feature-content .creator=${r} .graphic=${this.graphic}></arcgis-feature-content>`}else if(i==="media"){let{title:r,description:c,mediaInfos:l}=e;return l?.length?o`<arcgis-feature-media .heading=${r??""} .values=${a} .formattedValues=${a} .description=${c??""} .mediaInfos=${l} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`:null}else if(i==="fields"){let{title:r,description:c,fieldInfos:l}=e;return l?.length?o`<arcgis-feature-fields .fieldInfos=${l} .heading=${r??""} .values=${a} .description=${c??""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`:null}return null}_renderLoading(){return o`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`}};k("arcgis-feature-expression",g);return g},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b,c)
|
package/dist/cdn/EI7NXMGF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./KPOSO4HB.js";import{a as v}from"./JD74LG7K.js";import c from"./GPVFCWMU.js";import{h}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import b from"./HKTQWWXP.js";import{d,f}from"./DU6OKLV4.js";import{O as i,P as a,R as u,U as m,a as n,b as r,x as o}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:p}])=>{var E=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}`;function x(l){return l.includes("#")||l.includes(".")||l.includes("[")?l:`#${l}`}var c=class extends i{constructor(){super(),this.messages=g(),this.view=p(this),this.visualScale="m",this.arcgisPropertyChange=h()("state"),this.arcgisReady=o(),this.listenOn(document,"fullscreenchange",()=>this.fullscreenElement=document.fullscreenElement)}static{this.properties={fullscreenElement:16,view:0,element:1,label:1,messageOverrides:0,referenceElement:1,visualScale:1,state:35}}static{this.styles=E}get fullscreenTitle(){let e=this.state;return e==="active"?this.messages.exit:e==="ready"?this.messages.enter:""}#e;get element(){return this.#e}set element(e){if(typeof e=="string"){let t=x(e),s=f(this.el,t);this.#e=s||void 0}else this.#e=e}get state(){if(!document.fullscreenEnabled)return"unsupported";let e=this._getElement();return e?this.fullscreenElement===e?"active":"ready":"disabled"}connectedCallback(){super.connectedCallback(),this.fullscreenElement=document.fullscreenElement}_getElement(){let e=this.view?.container,t=e?.getRootNode(),s=t instanceof ShadowRoot?t.host:null;return this.element??e?.parentElement??s??null}_toggle(){document.fullscreenElement?document.exitFullscreen():this._getElement()?.requestFullscreen()}render(){let{fullscreenTitle:e,state:t}=this,s=t==="unsupported",b=t==="ready"||t==="disabled"||t==="unsupported"?"zoom-out-fixed":"zoom-in-fixed";return r`<div class=${a(d("root",v.arcgisButton))}>${!s&&r`<calcite-button .disabled=${t==="disabled"} .iconStart=${b} kind=neutral .label=${e} @click=${this._toggle} .scale=${this.visualScale} title=${e??u}></calcite-button>`||""}</div>`}};m("arcgis-fullscreen",c);return c},b,c)
|
package/dist/cdn/ITCLBS5H.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import j from"./AW7PMR3D.js";import i from"./CEUIFOR6.js";import{a as b}from"./SBUR54TP.js";import h from"./MZWO5JYA.js";import g from"./6IEKX6LJ.js";import{a as re}from"./KPOSO4HB.js";import f from"./NCHQCPM6.js";import e from"./R5NVFWFA.js";import c from"./GPVFCWMU.js";import{h as se}from"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import"./DU6OKLV4.js";import{M as V,N as D,O as ee,P as te,Q as N,R as ie,U as ae,a as Y,b as d,c as R,x as E}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:r,subclass:C},Z,B,{getApplicationClipboard:Me},Ce,j,{getFullTemplate:ce,isSharedTemplate:de,getCreationAttributes:Fe,isSharedTemplateOrMetadata:me},{createApplySetModifyItem:W,createApplySet:J,createFeatureStateProvider:Q,createApplySetAddItem:q,writeApplySetToService:_e},{whenOnce:ue,watch:X},{getRendererFields:pe,getFeatureEditFields:xe},Pe,{substitute:y},{createGraphicsMover:$e},,,,,oe,{g:U},{a:le,b:ne}])=>{var Ae=Y`.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%}`;async function Ee(e,t={}){if(e?.type==="subtype-group"){if(!e.subtypeField)return[];let i=t[e.subtypeField];if(!be(i))return[];let a=e.findSublayerForSubtypeCode(i);return a?a.renderer&&a.fieldsIndex?await pe(a.renderer,e.fieldsIndex):[]:[]}return e?e.renderer&&e.fieldsIndex?await pe(e.renderer,e.fieldsIndex):[]:[]}function Ie(e,t,i,a,s,o){let l={...a},h=ke(o),p=Se(o),m="";(o.type==="subtype-group"||o.type==="subtype-sublayer")&&(m=o.subtypeField??"");let v=o.objectIdField??"";return e.forEach(u=>{if(u.name!==v&&!h.includes(u.name)&&!p.includes(u.name)&&!s.includes(u.name)&&u.type!=="global-id"&&(m===""||m!==u.name)){let w=He(u,t);w.match&&w.targetField&&(l[w.targetField?.name]=i[u.name])}}),l}function ke(e){return e&&"relationships"in e?(e.relationships??[]).filter(t=>t.role==="origin").map(t=>t.keyField):[]}function Se(e){return e?.type==="subtype-sublayer"&&(e=e.parent),e?xe(e):[]}function Te(e,t){if(e.type===t.type)return t.type==="string"?e.length<=t.length:!0;switch(e.type){case"small-integer":return["integer","big-integer"].includes(t.type);case"integer":return t.type==="big-integer";case"single":return t.type==="double";default:return!1}}function He(e,t){let i={match:!1,sourceField:null,targetField:null};for(let a of t)if(Te(e,a)){let s=e.name.replace(/\s/gu,"").toLowerCase();if(a.name.replace(/\s/gu,"").toLowerCase()===s)return i.match=!0,i.sourceField=e,i.targetField=a,i}return i}async function ge(e,t,i,a){let s=!0,o={hasAsyncArcadeExpressions:!1},l=e.items.filter(h=>h.type==="add");for(let h of l){let p=h.graphic.clone(),m=Oe(h.graphic,h.layer);if(!m){s=!1;continue}let v=!await Ge(t,h.graphic,m,i,o);if(o.hasAsyncArcadeExpressions&&l.length>a)return!1;let u=W({graphic:h.graphic,layer:h.layer,originalGraphic:p});if(e.push(u),!v)return!1}return s}function Oe(e,t){return t.type==="feature"||t.type==="subtype-sublayer"?t:t.findSublayerForFeature(e)||null}async function Ge(e,t,i,a,s){let o=i.formTemplate,l=i.fields.filter(w=>{let z=t.attributes[w.name],fe=z===null||z===""||z===void 0;return w.editable&&!w.nullable&&fe});if(!o)return l.length!==0;let h=new Set;we(o.elements??[],h);let p=new Set;if(ve(o.elements??[],p),h.size===0&&p.size===0)return l.length>0;let m=t.clone();m.layer=i,delete m.attributes[i.objectIdField],a.has(i)||a.set(i,new Pe({map:e.map,editType:"INSERT"}));let v=a.get(i);if(v.features=new j([m]),await ue(()=>(v.status==="loaded"||v.status==="failed")&&!v.updating),v.hasAsyncArcadeExpressions&&(s.hasAsyncArcadeExpressions=!0),v.status==="failed")return!0;let u=v.getValues(m)??{};if(i.objectIdField&&u[i.objectIdField]!==void 0){let{[i.objectIdField]:w,...z}=u;u=z}return Object.keys(u).forEach(w=>{i.fieldsIndex.has(w)&&(t.attributes[w]=ze(u[w],w,i.fieldsIndex))}),v.invalidFeatures.length>0}function ve(e,t){for(let i of e)i.type==="group"?ve(i.elements,t):i.type==="field"&&i.valueExpression&&t.add(i.fieldName)}function we(e,t){for(let i of e)i.type==="group"?we(i.elements,t):i.type==="field"&&i.requiredExpression&&t.add(i.fieldName)}function be(e){return typeof e=="number"}function Le(e){return typeof e=="number"&&window.isFinite(e)&&Math.floor(e)===e}function ze(e,t,i){if(e==null)return null;switch(i.get(t).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return Le(e)?e:window.parseInt(e);case"single":case"double":return be(e)?e:window.parseFloat(e);case"global-id":case"guid":return e===""?null:e;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return e===""?null:e;case"string":return e===""?null:e}return e}function Ve(e){return e&&"layer"in e?e.layer:void 0}function I(e){if(!e)return null;let t=Ve(e.origin)??e.layer??e?.sourceLayer??null;if(t&&t.type==="subtype-sublayer")return t.parent;switch(t?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return t;default:return null}}var De=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,A=(e,t,i,a)=>{for(var s=a>1?void 0:a?Be(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&De(t,i,s),s},ye={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"},g=class extends Z{constructor(e){super(e)}get mustShowOnCommandPage(){return!0}get icon(){}get id(){return""}label(e,t){return""}description(e,t){return""}get commandEnabled(){return!1}commandDisabledReason(e,t){return""}get immediate(){return!1}async initiate(e,t){}async execute(){throw new Error("arcgis-paste: Paste command does not support execute")}async runPasteCommand(e,t,i){try{this.viewModel.applying=!0;let a=await this.prepareCopy(t);if(!a||a.items.length===0){this.viewModel.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},e.onPasteError(this.viewModel.lastPasteError);return}let s=a.items.length>this.viewModel.maximumFeatureCount||this.viewModel.alwaysShowFeatureForm||i?.showFeatureForm===!0||!await ge(a,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms);if(this.viewModel.alwaysShowFeatureForm||s||i?.showFeatureForm===!0)this.viewModel.bauActiveFeatureIndex=0,this.viewModel.bauApplySet=a,this.viewModel.activeCommand=t,this.viewModel.bauOriginalGraphics=a.items.map(o=>o.type==="add"?{layer:o.layer,graphic:o.graphic}:null).filter(o=>o!==null),this.viewModel.bauFeatures=new j,this.viewModel.activeFlowPage="form-page",await new Promise(o=>{setTimeout(o,100)}),this.viewModel.bauFeatures=new j(this.viewModel.bauOriginalGraphics.map(o=>(o.graphic.layer=o.layer,o.graphic))),this.viewModel.updateIndividualMultiFeatureFormHighlight();else try{let o=await e.onApply({command:"paste",applySet:a});if(o.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(o,e.onPasteError)}catch(o){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:o.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{a?.featureState?.clearAll()}}finally{this.viewModel.applying=!1}}async prepareCopy(e){let 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=J();if(a.featureState=Q(this.viewModel.view),e==="paste-merge"){let s=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!s)return null;let o=de(this.viewModel.pasteTemplate.template)?s.layer:this.viewModel.pasteTemplate.layer,l=await this.createMergedClipboardGeom(),h=await this.constructFeatureAttributesCopy(s,o,i),p=new B({geometry:l,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}else if(e==="paste")for(let s of this.viewModel.clipboardFeatures){let o=s.graphic.clone();this.removeGraphicIdentifierFields(o,s.layer),a.push(q({graphic:o,layer:s.layer}))}else if(e==="paste-as"){let s=this.viewModel.pasteTemplate?.template?await ce(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!s)return null;let o=de(s)?s.layer:this.viewModel.pasteTemplate.layer;for(let l of this.viewModel.clipboardFeatures){let h=await this.constructFeatureAttributesCopy(s,o,t?l:null),p=new B({geometry:l.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}}return a}async constructFeatureAttributesCopy(e,t,i){let a=Fe(e,{});if(i){let s=i.layer?.fields;if(s){let o=t.fields,l=i.graphic.attributes??{},h=await Ee(t,a);a=Ie(s,o,l,a,h,t)}}return a}async createMergedClipboardGeom(){let e=this.viewModel.clipboardFeatures.map(t=>t.graphic?.geometry).filter(t=>t!=null).toArray();return e.length===0?null:e.length===1?e[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(e)??null}removeGraphicIdentifierFields(e,t){t.objectIdField&&delete e.attributes[t.objectIdField],t.globalIdField&&delete e.attributes[t.globalIdField]}};A([r()],g.prototype,"viewModel",2);A([r()],g.prototype,"mustShowOnCommandPage",1);A([r()],g.prototype,"icon",1);A([r()],g.prototype,"id",1);A([r()],g.prototype,"commandEnabled",1);A([r()],g.prototype,"commandDisabledReason",1);A([r()],g.prototype,"immediate",1);g=A([C("components.paste.commands.PasteCommand")],g);var je=Object.defineProperty,We=Object.getOwnPropertyDescriptor,T=(e,t,i,a)=>{for(var s=a>1?void 0:a?We(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&je(t,i,s),s},F=class extends g{get id(){return"paste-append"}get icon(){return"reshape-add-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareAppend();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-append",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}async execute(){let e=await this.prepareAppend();if(!e.success)throw new Error(`arcgis-paste: Paste append failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async prepareAppend(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry,s=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry??null;if(!h)continue;if(a===null){a=l?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=t.execute(a,h);i.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}description(e,t){return e.pasteAppendDesc}label(e,t){return e.pasteAppendTitle}};T([r()],F.prototype,"id",1);T([r()],F.prototype,"icon",1);T([r()],F.prototype,"immediate",1);T([r()],F.prototype,"mustShowOnCommandPage",1);T([r()],F.prototype,"commandEnabled",1);F=T([C("components.paste.commands.PasteAppendCommand")],F);var Re=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,H=(e,t,i,a)=>{for(var s=a>1?void 0:a?Ne(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Re(t,i,s),s},_=class extends g{get id(){return"paste-subtract"}get icon(){return"reshape-subtract-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&(this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type||this.viewModel.clipboard.singleGeometryType==="polygon")}async prepareSubtract(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:e};let[t,i]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:e};let s=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry;if(!h)continue;let p=t.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:e};i.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:e};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}async execute(){let e=await this.prepareSubtract();if(!e.success)throw new Error(`arcgis-paste: Paste subtract failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareSubtract();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:ye[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-subtract",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}description(e,t){return e.pasteSubtractDesc}label(e,t){return e.pasteSubtractTitle}};H([r()],_.prototype,"id",1);H([r()],_.prototype,"icon",1);H([r()],_.prototype,"immediate",1);H([r()],_.prototype,"mustShowOnCommandPage",1);H([r()],_.prototype,"commandEnabled",1);_=H([C("components.paste.commands.PasteSubtractCommand")],_);var Ue=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,O=(e,t,i,a)=>{for(var s=a>1?void 0:a?qe(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Ue(t,i,s),s},x=class extends g{get id(){return"paste-as"}get icon(){return"templates"}get immediate(){return!1}get mustShowOnCommandPage(){return!1}get commandEnabled(){return(this.viewModel.clipboardFeatures.length===1||this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled)&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-as"}description(e,t){return e.pasteAsDesc}label(e,t){return e.pasteAsTitle}};O([r()],x.prototype,"id",1);O([r()],x.prototype,"icon",1);O([r()],x.prototype,"immediate",1);O([r()],x.prototype,"mustShowOnCommandPage",1);O([r()],x.prototype,"commandEnabled",1);x=O([C("components.paste.commands.PasteAsCommand")],x);var Xe=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,G=(e,t,i,a)=>{for(var s=a>1?void 0:a?Ke(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Xe(t,i,s),s},P=class extends g{get id(){return"paste"}get icon(){return"duplicate"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){let e=this.viewModel.clipboardFeatures.length===1,t=this.viewModel.clipboardFeatures.length>0&&this.viewModel.clipboardItemLayers.length===1&&this.viewModel.pasteWithMultipleFeaturesEnabled,i=this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled&&this.viewModel.pasteWithMultipleLayersEnabled;return this.viewModel.clipboardFeatures.length>0&&this.viewModel.canCreateOnAllLayers&&(e||t||i)}async initiate(e,t){await this.runPasteCommand(e,"paste",t)}async execute(){let e=await this.prepareCopy("paste");if(!e||e.items.length===0)throw new Error("arcgis-paste: No items to paste");return e.items.length>this.viewModel.maximumFeatureCount||!await ge(e,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms)?{success:!1,userInputRequired:!0}:{success:!0,userInputRequired:!1,applySet:e}}description(e,t){return e.pasteDesc}label(e,t){return e.pasteTitle}};G([r()],P.prototype,"id",1);G([r()],P.prototype,"icon",1);G([r()],P.prototype,"immediate",1);G([r()],P.prototype,"mustShowOnCommandPage",1);G([r()],P.prototype,"commandEnabled",1);P=G([C("components.paste.commands.PasteSetCommand")],P);var Ze=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,L=(e,t,i,a)=>{for(var s=a>1?void 0:a?Je(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Ze(t,i,s),s},$=class extends g{get id(){return"paste-merge"}get icon(){return"merge"}get immediate(){return!1}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>1&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-merge";for(let t=0;t<this.viewModel.clipboard.items.length;t++)if(this.viewModel.clipboard.items.getItemAt(t).type==="feature"){this.viewModel.selectedClipboardItemIndex=t;break}}description(e,t){return e.pasteMergeDesc}label(e,t){return e.pasteMergeTitle}};L([r()],$.prototype,"id",1);L([r()],$.prototype,"icon",1);L([r()],$.prototype,"immediate",1);L([r()],$.prototype,"mustShowOnCommandPage",1);L([r()],$.prototype,"commandEnabled",1);$=L([C("components.paste.commands.PasteMergeCommand")],$);var Qe=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,k=(e,t,i,a)=>{for(var s=a>1?void 0:a?Ye(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Qe(t,i,s),s},f=class extends g{constructor(e){super(e)}get id(){return this.customCommand.id}get icon(){return this.customCommand.icon}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.customCommand.commandEnabled(this.viewModel.clipboard,this.viewModel.selectedFeature)}async initiate(e){try{this.viewModel.applying=!0;let t=await e.onApply({command:this.id});if(t.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(t,e.onPasteError)}catch(t){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1}}description(e,t){return this.customCommand.description(e,t)}label(e,t){return this.customCommand.label(e,t)}};k([r()],f.prototype,"customCommand",2);k([r()],f.prototype,"id",1);k([r()],f.prototype,"icon",1);k([r()],f.prototype,"immediate",1);k([r()],f.prototype,"mustShowOnCommandPage",1);k([r()],f.prototype,"commandEnabled",1);f=k([C("components.paste.commands.PasteCustomCommand")],f);var et=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,c=(e,t,i,a)=>{for(var s=a>1?void 0:a?tt(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&et(t,i,s),s};function he(e){return!me(e)||e.type==="feature"}var n=class extends Z{constructor(e){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=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.disableTemplatesMode="never",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={canCreate:t=>t?!!t.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:t=>{if(!t)return!1;let i=t.effectiveCapabilities,a=!!i?.operations.supportsUpdate,s=!!i?.editing.supportsGeometryUpdate&&a;return!t.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get hasTooManyPasteCreateFeatures(){return this.clipboardFeatures.length>this.maximumFeatureCount&&["paste","paste-as"].includes(this.activeCommand??"")}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return I(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get pasteTemplateIsValid(){return this.pasteTemplate?this.pasteTemplate.layer?!!this.workingLayers.includes(this.pasteTemplate.layer.type==="subtype-sublayer"?this.pasteTemplate.layer.parent:this.pasteTemplate.layer):!1:!0}get clipboardAndTemplateSupportAttributes(){if(this.clipboardFeatures.length===0||!this.pasteTemplate?.layer)return!1;let e=this.pasteTemplate.template;if(!he(e))return!1;for(let t of this.clipboardFeatures){let i=t.layer;if(!i)return!1;let a=i.type==="subtype-sublayer"?i.parent:i;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,o=e.prototype?.[s];if(o==null||o!==t.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let e=this.pasteTemplate?.layer;if(!e||this.clipboardFeatures.length===0)return!1;let t=this.pasteTemplate.template;if(!he(t))return!1;for(let i of this.clipboardFeatures){let a=i.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(e===a){if(s.type==="subtype-group"){let o=s.fieldsIndex.get(s.subtypeField).name,l=t.prototype?.[o];if(l==null||l!==i.graphic.attributes[o])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(e){e==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:e!=="clipboard"&&(this.beforeClipboard=void 0),e==="form-page"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:e!=="form-page"&&(this.beforeForm=void 0),this._activeFlowPage=e,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(e,t){if(!t)return;let i=e.graphic.clone();for(let s of Object.keys(t))i.attributes[s]=t[s];let a=W({graphic:i,originalGraphic:e.graphic.clone(),layer:e.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(e){if(this.clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new B({geometry:e.graphic.geometry,symbol:ne(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(t)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="form-page"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let e=U(this.view,this.bauActiveLayer);if(!e)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:e.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(e,t){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let i=this.view?U(this.view,e.layer):void 0;i&&(this.bauHighlight=i.highlight(e,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new Ce({listMode:"hide"}),this.view.map?.layers.add(this.clipboardGraphicsLayer));let e=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let t=-1;for(let i of e){if(t++,i.type!=="feature"||!i.graphic.geometry)continue;let a=new B({geometry:i.graphic.geometry.clone(),attributes:{clipboardIdx:t},symbol:le(i.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let e=this.activeFlowPage==="form-page";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!e),this.clipboardMover&&(this.clipboardMover.suspended=e)}get clipboard(){return Me()}get clipboardFeatures(){return this.clipboard.items.filter(e=>e.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.lastPasteError=void 0}resetHome(){let e=this.activeFlowPage;this.hasPasteCommandsPage?(e="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(e="clipboard-empty-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(e="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(e="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(e="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=e,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=e:(this.activeFlowPage=e,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(e=>e.type==="feature"||e.type==="subtype-group").filter(e=>{let t=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(t="multipoint"),!(e.geometryType!==t||!this.layerPermissionsCheck.canCreate(e))})}get clipboardItemLayers(){let e=new Set;for(let t of this.clipboard.items)t.layer&&e.add(t.layer.type==="subtype-sublayer"?t.layer.parent:t.layer);return[...e]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let e of this.clipboardItemLayers)if(!e||!this.layerPermissionsCheck.canCreate(e))return!1;return!0}get availableCommands(){let e=new Set(this.supportedCommands);return this.allCommands.filter(t=>e.has(t.id))}get allCommands(){let e=[];e.push(...[P,x,$,F,_].map(t=>new t({viewModel:this})));for(let t of this.customPasteCommands)e.push(new f({viewModel:this,customCommand:t}));return e}get pasteCommandsState(){return this.allCommands.map(e=>({id:e.id,disabled:!e.commandEnabled,available:this.supportedCommands.includes(e.id)}))}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[]}getPasteCommandById(e){return this.allCommands.find(t=>t.id===e)}async runPasteFormCommand(e){try{this.applying=!0;let t=this.bauApplySet,i=await e.onApply({command:this.activeCommand,applySet:t});if(i.success){this.resetHome(),this.closeOnApply&&e.closeAfterApply();return}this.handleApplyError(i,e.onPasteError)}catch(t){this.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}handleApplyError(e,t){e.success||e.errorCode!=="cancelled"&&(this.lastPasteError={errorCode:e.errorCode??"unexpectedError",errorMessage:e.errorMessage??"",localizedErrorMessage:e.errorMessage?void 0:"unexpectedError"},t(this.lastPasteError))}async writeChanges(e){return await _e(e,this.view)}};c([r()],n.prototype,"customPasteCommands",2);c([r()],n.prototype,"bauInvalidFeatures",2);c([r()],n.prototype,"bauFormValid",2);c([r()],n.prototype,"bauFormUpdating",2);c([r()],n.prototype,"bauActiveFeatureIndex",2);c([r()],n.prototype,"bauHasTooManyFeatures",2);c([r()],n.prototype,"bauHasTooManyComplexFeatures",2);c([r()],n.prototype,"bauActiveGraphic",1);c([r()],n.prototype,"hasTooManyPasteCreateFeatures",1);c([r()],n.prototype,"bauActiveLayer",1);c([r()],n.prototype,"bauFeatures",2);c([r()],n.prototype,"bauApplySet",2);c([r()],n.prototype,"bauOriginalGraphics",2);c([r()],n.prototype,"formViewModelMap",2);c([r()],n.prototype,"bauHighlight",2);c([r()],n.prototype,"bauIndividualHighlight",2);c([r()],n.prototype,"view",2);c([r()],n.prototype,"supportedCommands",2);c([r()],n.prototype,"selectedFeature",2);c([r()],n.prototype,"pasteWithMultipleLayersEnabled",2);c([r()],n.prototype,"pasteWithMultipleFeaturesEnabled",2);c([r()],n.prototype,"alwaysShowFeatureForm",2);c([r()],n.prototype,"pasteTemplate",2);c([r()],n.prototype,"pasteTemplateIsValid",1);c([r()],n.prototype,"selectedClipboardItemIndex",2);c([r()],n.prototype,"clipboardAndTemplateSupportAttributes",1);c([r()],n.prototype,"hasClipboardItemMatchingTemplate",1);c([r()],n.prototype,"pasteWithAttributes",2);c([r()],n.prototype,"closeOnApply",2);c([r()],n.prototype,"currentPasteOperation",2);c([r()],n.prototype,"disableTemplatesMode",2);c([r()],n.prototype,"activeFlowPage",1);c([r()],n.prototype,"_activeFlowPage",2);c([r()],n.prototype,"beforeClipboard",2);c([r()],n.prototype,"beforeForm",2);c([r()],n.prototype,"showClipboardItems",2);c([r()],n.prototype,"updating",1);c([r()],n.prototype,"hideTooltips",2);c([r()],n.prototype,"hideFooter",2);c([r()],n.prototype,"hideFooterCancelButton",2);c([r()],n.prototype,"hideHeaderCloseButton",2);c([r()],n.prototype,"hideViewClipboard",2);c([r()],n.prototype,"hideErrorNotice",2);c([r()],n.prototype,"clipboardGraphicsLayer",2);c([r()],n.prototype,"clipboardMover",2);c([r()],n.prototype,"highlightGroup",2);c([r()],n.prototype,"clipboard",1);c([r()],n.prototype,"clipboardFeatures",1);c([r()],n.prototype,"hasPasteCommandsPage",1);c([r()],n.prototype,"activeCommand",2);c([r()],n.prototype,"maximumFeatureCount",2);c([r()],n.prototype,"maximumFeatureCountWithComplexForms",2);c([r()],n.prototype,"workingLayers",1);c([r()],n.prototype,"layerPermissionsCheck",2);c([r()],n.prototype,"clipboardItemLayers",1);c([r()],n.prototype,"canCreateOnAllLayers",1);c([r()],n.prototype,"applying",2);c([r()],n.prototype,"lastPasteError",2);c([r()],n.prototype,"availableCommands",1);c([r()],n.prototype,"allCommands",1);c([r()],n.prototype,"pasteCommandsState",1);n=c([C("components.paste.PasteViewModel")],n);var it=Object.defineProperty,at=Object.getOwnPropertyDescriptor,S=(e,t,i,a)=>{for(var s=a>1?void 0:a?at(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&it(t,i,s),s},M=class extends Z{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=$e({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let e of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(e.attributes.clipboardIdx).graphic.geometry=e.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(e){e!==this._suspended&&(e?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=e)}_destroyMover(){this._mover?.destroy(),this._mover=null}};S([r()],M.prototype,"view",2);S([r()],M.prototype,"continuous",2);S([r()],M.prototype,"clipboard",2);S([r()],M.prototype,"graphicsLayer",2);S([r()],M.prototype,"suspended",1);S([r()],M.prototype,"_suspended",2);M=S([C("components.paste.ClipboardMove")],M);var st=oe(n),K=class extends ee{constructor(){super(),this._featureFormElement=V(),this._floatingChoiceContainer=V(),this._bauForm=V(),this._templateGallery=V(),this._messages=re(),this.viewModel=st(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=E(),this.arcgisApplyPasteError=E(),this.arcgisBeforeClipboardMove=E(),this.arcgisClipboardMoveStateChanged=E(),this.arcgisClose=E(),this.arcgisPropertyChange=se()("pasteCommandsState","activeFlowPage"),this.arcgisReady=E(),this.listenOn(window,"click",this._handleClickAway),this.listenOn(window,"keydown",this._handleKeyDown)}static{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}}static{this.styles=Ae}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(t){if(!Array.isArray(t)){this.viewModel.supportedCommands=t.split(",");return}this.viewModel.supportedCommands=t.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async executePasteCommand(t,i){let a=this.viewModel.getPasteCommandById(t);if(!a)throw new Error("arcgis-paste: Paste command not found");if(!a.commandEnabled)throw new Error("arcgis-paste: Paste command is not enabled");if(!i?.silent){if(!this.availableCommands.includes(a))throw new Error("arcgis-paste: Paste command is not available");return this.viewModel.resetHome(),await this._runPasteCommand(a,i),{userInputRequired:!1,success:!0}}return await a.execute()}async registerPasteCommand(t){this.viewModel.customPasteCommands.add(t)}async reset(){this.viewModel.activeFlowPage==="clipboard"&&(this.viewModel.activeFlowPage=this.viewModel.beforeClipboard),this.viewModel.resetHome()}async showClipboardItems(t){this.viewModel.showClipboardItems=t,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(t){if(!this.viewModel.showClipboardItems)throw new Error("arcgis-paste: Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new M({view:this.view,continuous:t,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:i=>{i==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:i})}}),this.viewModel.clipboardMover.start())}async writeChanges(t){return await this.viewModel.writeChanges(t)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0),this._checkAndUpdateInitialPasteTemplate()}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="form-page"&&this.viewModel.resetHome()}),X(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),X(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),X(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(t){this.viewModel.bauActiveFeatureIndex=t.activeFeatureIndex,this.viewModel.bauInvalidFeatures=t.invalidFeatures,this.viewModel.bauFormValid=t.valid,this.viewModel.bauFormUpdating=t.updating,this.viewModel.bauHasTooManyComplexFeatures=t.hasTooManyComplexFeatures,this.viewModel.bauHasTooManyFeatures=t.hasTooManyFeatures}_copyAcrossValidMultiFormFieldValues(){try{if(this._bauForm.value?.status!=="loaded")return;let t=this._bauForm.value,i=0;for(let a of this.viewModel.bauFeatures?.toArray()??[]){let s=this.viewModel.bauOriginalGraphics[i];this.viewModel.formFeatureValuesChanged(s,t.getValues(a)),i++}}catch{}}_handleClickAway(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}_handleKeyDown(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}async _runPasteCommand(t,i){try{this.viewModel.lastPasteError=void 0,await t.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:a=>{this.arcgisApplyPasteError.emit({command:t.id,errorMessage:a.errorMessage,errorCode:a.errorCode})},onApply:async a=>{try{await this.beforeApply?.();let s={...a};return this.arcgisApplyPasteCommand.emit(s).defaultPrevented?{success:!1,errorCode:"cancelled"}:s.completionCallback?await s.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}},i)}catch{}}_checkAndUpdateInitialPasteTemplate(){requestAnimationFrame(()=>{if(!this._templateGallery.value||this.viewModel.activeFlowPage!=="gallery-page")return;let t=this._templateGallery.value;if(this.viewModel.pasteTemplateIsValid||(this.viewModel.pasteTemplate=void 0),this.viewModel.pasteTemplate!==void 0){t.selectedTemplateId!==this.viewModel.pasteTemplate.id&&(t.selectedTemplateId=this.viewModel.pasteTemplate.id);return}if(t.effectiveTemplates?.length===0)return;let i=t.effectiveTemplates?.[0].templates[0];i&&(this.viewModel.pasteTemplate=i,t.selectedTemplateId=i.id)})}_renderFlowCommandStart(t){return t?d`<slot name=home-header-actions-start slot=header-actions-start></slot>`:null}_renderCloseCommand(t){return d`${this.hideHeaderCloseButton?null:d`<calcite-action slot=header-actions-end icon=x .text=${this._messages.close??""} @click=${()=>{this.reset(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}${t?d`<slot name=header-actions-end slot=header-actions-end></slot>`:null}`}_renderClipboardCommand(t){return d`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} .text=${this._messages.clipboardTooltip??""} .id=${`arcgis-clipboard-show-${t}`} .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}>${this.hideTooltips?null:d`<calcite-tooltip .referenceElement=${`arcgis-clipboard-show-${t}`} placement=bottom><span>${this._messages.clipboardTooltip}</span></calcite-tooltip>`}</calcite-action>`}_renderNoClipboardData(t){return b("no-data",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault()}}>${this._renderClipboardCommand("no-data")}${this._renderCloseCommand(t)}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(t){let i=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(i=a.commandDisabledReason(this._messages,this._messages._lang),i||(i=this._messages.noPasteCommandsAvailable)),b("no-command",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand("no-command")}${this._renderCloseCommand(t)}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${i}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(t){return d`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${t} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${i=>{this.viewModel.pasteWithAttributes=i.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(t){return t?b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("paste-as")}${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate||this.viewModel.hasTooManyPasteCreateFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.getPasteCommandById(this.viewModel.activeCommand).runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:i=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:i.errorMessage,errorCode:i.errorCode})},onApply:async i=>{try{await this.beforeApply?.();let a={...i};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1,errorCode:"cancelled"}:a.completionCallback?await a.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(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>${y(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=${()=>{this.viewModel.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??ie}>${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=${()=>{this.viewModel.activeFlowPage="merge-page"}}><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 .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${i=>!!(i.template&&me(i.template)&&i.template.type!=="feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${()=>{this._checkAndUpdateInitialPasteTemplate()}} @arcgisSelectTemplate=${i=>{this.viewModel.pasteTemplate=i.detail.template}} .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>${y(this._messages.noMatchingEditableLayers??"",{num:this.maximumFeatureCount})}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`)}_renderFlowPasteMerge(t){if(!t)return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let i=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand("merge")}${this._renderCloseCommand(t)}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>d`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?d`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?d`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class="merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?d`<div></div>`:d`<div class="merge-feature-form"><arcgis-feature-form heading-level=5 .feature=${i.graphic} .formTemplate=${i.layer.formTemplate?i.layer.formTemplate:null} .layer=${i.layer} ${D(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(t){if(!t)return b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let i=(this.viewModel.bauFeatures?.length??0)>1&&!this.viewModel.bauHasTooManyFeatures&&!this.viewModel.bauHasTooManyComplexFeatures,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,o=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,l=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${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()=>{try{if(await ue(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this._copyAcrossValidMultiFormFieldValues(),this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let m={...p};return this.arcgisApplyPasteCommand.emit(m).defaultPrevented?{success:!1,errorCode:"cancelled"}:m.completionCallback?await m.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>`}${i?d`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${l}${h?d`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!i} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!o||a||!i} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}`:""}<div class=${te(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=>{this._updateBauViewModelFields(p.target),p.detail.name==="status"&&p.target.status==="loaded"&&this._copyAcrossValidMultiFormFieldValues()}} @arcgisValueChange=${p=>{let m=0;for(let v of this.viewModel.bauFeatures?.toArray()??[]){let u=this.viewModel.bauOriginalGraphics[m];this.viewModel.formFeatureValuesChanged(u,p.target.getValues(v)),m++}}} ${D(this._bauForm)}></arcgis-multi-feature-form></div>${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${this.viewModel.bauHasTooManyFeatures?y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount}):y(this._messages.tooManyCreateComplexFeatures??"",{num:this.maximumFeatureCountWithComplexForms})}</div></calcite-notice></div>`:null}</calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return d`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?d`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:I(this.viewModel.bauActiveGraphic)?.isTable?d`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:d`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?d`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:d`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(t){if(!this._showFloatingChoice||!t)return d`<div></div>`;let i=!1;this.viewModel.bauInvalidFeatures.length>0&&(i=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return d`<div class="choose-feature" slot=action-bar ${D(this._floatingChoiceContainer)}><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,o)=>d`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${l=>{this.viewModel.highlightMultiFeatureFormFeature(s,o)}} @pointerleave=${l=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===o} @calciteListItemSelect=${l=>{let h=window.parseInt(l.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${o}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${I(s)?.isTable?d`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:d`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&i?d`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(t){return t?b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand(t)}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement} .hideTooltips=${this.hideTooltips}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(t){if(!t)return b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);let i=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("commands")}${this._renderCloseCommand(t)}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${i}></calcite-list-item></calcite-list><slot name=commands-page-message></slot><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>d`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{await this._runPasteCommand(a)}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":d`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:d`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?d`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){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>`}};ae("arcgis-paste",K);return K},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","layers/support/fieldUtils","widgets/BatchAttributeForm/BatchAttributeFormViewModel","intl","applications/Components/editUtils",a,c,e,f,g,h,i,j)
|
package/dist/cdn/JSQZYDU6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as Y}from"./4RGFCQOB.js";import{e as q,f as k,g as S,h as F,i as le,j as g}from"./VEZP32RO.js";import{a as U}from"./IZ46HAUJ.js";import{a as G}from"./7MWEEVVD.js";import{a as D}from"./POKO37D3.js";import c from"./DUWXDGIW.js";import"./VJVKFKSG.js";import"./QAU5TWTZ.js";import{a as ae}from"./KPOSO4HB.js";import"./JD74LG7K.js";import b from"./GPVFCWMU.js";import"./VJ2SMYNX.js";import"./IDZCPNFC.js";import a from"./HKTQWWXP.js";import"./DU6OKLV4.js";import{M as j,N as R,O as ie,Q as B,R as O,U as te,a as ee,b as m,x as I}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:De,when:Se,whenOnce:Te},_e,ke,$e,{createTrackingTarget:Ce,runTracked:ce,signal:Pe},,{a:oe},{f:re,g:se,h:ne}])=>{function fe(r,e){return(r%e+e)%e}var J=class{#e;#t;#r=Ce(()=>{this.#i()});constructor(e){this.#t=e;let i;ce(this.#r,()=>{i=e()}),this.#e=Pe(i)}#i(){let e=this.#e.value;ce(this.#r,()=>{this.#e.value=this.#t(e)})}mutate(e){this.#e.value=e}get value(){return this.#e.value}};function Z(r){return new J(r)}var A=Math.PI,u=Math.sin,$=Math.cos,ze=Math.asin,Oe=Math.acos,w=A/180,be=1e3*60*60*24,ve=2440588,we=2451545;function Ue(r){return r.valueOf()/be-.5+ve}function M(r){return new Date((r+.5-ve)*be)}function Me(r){return Ue(r)-we}var de=w*23.4397;function Ee(r,e){return ze(u(e)*$(de)+$(e)*u(de)*u(r))}function Le(r){return w*(357.5291+.98560028*r)}function Ae(r){return w*(1.9148*u(r)+.02*u(2*r)+3e-4*u(3*r))}function Ne(r,e){var i=w*102.9372;return r+e+i+A}var T={};T.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var V=[[-.83,"sunrise","sunset"]],xe=9e-4;function He(r,e){return Math.round(r-xe-e/(2*A))}function he(r,e,i){return xe+(r+e)/(2*A)+i}function ge(r,e,i){return we+r+.0053*u(e)-.0069*u(2*i)}function Ie(r,e,i){return Oe((u(r)-u(e)*u(i))/($(e)*$(i)))}T.getTimes=function(r,e,i){var t=w*-i,s=w*e,n=Me(r),a=He(n,t),c=he(0,t,a),o=Le(c),d=Ae(o),l=Ne(o,d),h=Ee(l,0),p=ge(c,o,l);function x(H){var z=Ie(H,s,h),ye=he(z,t,a);return ge(ye,o,l)}function y(H){var z=(u(H)-u(s)*u(h))/($(s)*$(h));return z<-1?T.PolarException.MIDNIGHT_SUN:z>1?T.PolarException.POLAR_NIGHT:T.PolarException.NORMAL}var f={solarNoon:M(p),nadir:M(p-.5),polarException:T.PolarException.NORMAL},v,_,P,N,Q;for(v=0,_=V.length;v<_;v+=1)P=V[v],N=x(P[0]*w),Q=p-(N-p),f[P[1]]=M(Q),f[P[2]]=M(N);return f.polarException=y(V[0][0]*w),f};var je={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},K=["spring","summer","fall","winter"];function C(r,e,i){let t=X(e,i),{dayOfMonth:s,month:n}=je[t],a=new Date(r.getTime());return a.setMonth(n,s),a}function Re(r,e){let i=Be(r);return X(i,e)}function Be(r){let e=r.getTime(),i=C(r,"spring","northern").getTime(),t=C(r,"summer","northern").getTime(),s=C(r,"fall","northern").getTime(),n=C(r,"winter","northern").getTime();return e>=i&&e<t?"spring":e>=t&&e<s?"summer":e>=s&&e<n?"fall":"winter"}function X(r,e){return e==="northern"?r:Ge(r)}function ue(r){return r>=0?"northern":"southern"}function Ge(r){let e=K.indexOf(r);return K[(e+2)%4]}var Ye=1440,qe=864e5;function Fe(r,e,i,t){let s=T.getTimes(r,e,i),n=s.sunrise,a=s.sunset,c=k(r,t),o=k(n,t),d=k(a,t);if(c.getUTCDate()!==o.getUTCDate()||c.getUTCDate()!==d.getUTCDate()){let l=c.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+l),a.setUTCDate(a.getUTCDate()+l)}return{sunrise:n,sunset:a}}var Ze=100,Ve=1e3,b=12e5,E=72e5;function pe(r,e){return fe(r+e,24)}function Je({mode:r,lighting:e,getPlaySpeed:i,onProgress:t,beforeProgress:s}){let n=-1;function a(c=Date.now()){let o=e.date,d=Date.now()-(c??0);if(r==="day"){c=Date.now();let l=i()/Ze*d;if(l>0){let h=new Date(o.getTime()+l),p=e.displayUTCOffset??0,x=pe(h.getUTCHours(),p),y=pe(o.getUTCHours(),p);x<y&&(h=new Date(o.getTime()+l-qe));let f=e.clone();s?.(),e.date=h,t?.(f,e)}}else if(d>Ve){c=Date.now();let l=(o.getUTCMonth()+1)%12,h=new Date(o.getTime());h.setUTCMonth(l);let p=e.clone();s?.(),e.date=h,t?.(p,e)}n=requestAnimationFrame(()=>a(c))}return a(),U(()=>cancelAnimationFrame(n))}var L=b/4;function Ke(r,e,i,t){let{day:s,night:n=s,twilight:a=s}=t,c=s*L,o=n*L,d=a*L;if(r==null||e==null||Number.isNaN(r.getTime())&&Number.isNaN(e.getTime()))return c;let l=i.getTime(),h=r.getTime(),p=e.getTime(),x=h-E/2,y=h+E/2,f=p-E/3*2,v=p+E/3,_=c;return l>=x&&l<=y?l-x<=b?_=o-(l-x)/b*(o-d):y-l<=b/2?_=c-(y-l)/b*2*(c-d):_=d:l>=f&&l<=v?l-f<=b/2?_=c-(l-f)/b*2*(c-d):v-l<=b?_=o-(v-l)/b*(o-d):_=d:(l<h||l>p)&&(_=o),_}var We=ee`.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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,Xe={day:1,night:6,twilight:2/3},W=class extends ie{constructor(){super(...arguments),this.messages=ae({blocking:!0}),this.#t="none",this.#r=null,this.#l=j(),this.#g=j(),this.#u=200,this.#p=200,this.#c=!1,this.#a={},this._offset=Z(e=>{let i=this._lighting,t=g(i)?i.displayUTCOffset:void 0;return this.#i?e:t??e}),this._timesliderPosition=Z(e=>{let i=this._lighting;if(!g(i))return e;let t=i.displayUTCOffset??this.utcOffset??0,s=i.date;if(this.#i)return e;if(q(s)){let{minutesSinceMidnight:n}=S(s,t);return n}return e}),this._localDate=Z(e=>{let i=le(this._view,this.utcOffset);return this.#i?e:i??e}),this.view=oe(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=I(),this.arcgisUserDateTimeChange=I(),this.#o=!1}static{this.properties={localDateAsString:32,view:0,_playingState:16,_sunlightingDisabled:16,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,_directShadowsDisabled:16,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=We}get _view(){return this.view?.type==="3d"?this.view:void 0}#e;#t;#r;#i;#l;#g;#u;#p;#c;#s(e,i){return this.#o||this.#c?!1:(this.#a[e]=i,!0)}#m(){let{utcOffset:e,timeSliderPosition:i,localDate:t,directShadowsDisabled:s,sunlightingDisabled:n}=this.#a;if(this.#c=!0,e!=null)if(i==null&&t==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#h(e,a)):this._offset.mutate(e)}else this.utcOffset=e;i!=null&&(this.timeSliderPosition=i),t&&(this.localDate=t),s!=null&&(this._directShadowsDisabled=s),n!=null&&(this._sunlightingDisabled=n),this.#a={},this.#c=!1}#d(){if(this.requestUpdate(),this.#i)return;let e=se(()=>{if(g(this._lighting)){let i=this.utcOffset??0,t=this.timeSliderPosition??0,s=this.localDate;this._lighting.date=F(s,t,i),this._lighting.displayUTCOffset=i}this.#i?.remove()},{timeout:this.#u});this.#i=U(()=>{ne(e),this.#i=void 0})}#_(e){let i=this.utcOffset??e.displayUTCOffset??0,{minutesSinceMidnight:t,localDate:s}=S(e.date,i),n=this.timeSliderPosition??t,a=this.localDateAsString??s;this.#i?.remove(),e.date=F(a,n,i),e.displayUTCOffset=i}#f({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.date}${Qe({disabled:i,scale:e,date:this.localDateAsString,onDateChange:s=>{let n=s.currentTarget.value,a=Array.isArray(n)?n[0]:n;this._stopPlaying(),this.localDate=a,this._emitUserDateTimeChangeEvent()}})}</calcite-label>${D({hidden:this.hidePlayButtons,children:me({playing:this.yearPlaying,disabled:i,label:t.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#b({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.season}${ei({scale:e,selectedSeason:this.currentSeason,disabled:i,messages:t,onSeasonChange:s=>{this._stopPlaying(),this.currentSeason=s.currentTarget.value}})}</calcite-label>`}#a;get#v(){return this.#g?.value?.startTime}get localDateAsString(){return this._localDate.value??void 0}get _playingState(){return this.#t}set _playingState(e){this.#t=e,this.#n?.remove(),e==="none"?this.#e?.remove():(this._play(e),this._emitUserDateTimeChangeEvent())}get _lighting(){return this._view?.environment?.lighting}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#s("sunlightingDisabled",e);let i=this._view?.environment;if(i==null)return;let t=i.lighting,s=this.#r;this.#r=t;let n={directShadowsEnabled:t.directShadowsEnabled,glow:t.glow};g(t)&&(n.cameraTrackingEnabled=t.cameraTrackingEnabled);let a=e?"virtual":"sun",c;s?.type===a?c=s:c=e?new $e:new ke({date:k(k(this.localDate,this.timeSliderPosition??0,"minutes"),this.utcOffset??0),displayUTCOffset:this.utcOffset}),c.set(n),i.lighting=c,e||(this._stopPlaying(),this.#l.value&&(this.#l.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,i=ue(e);return Re(this.localDate,i)}set currentSeason(e){this._stopPlaying();let i=this._view?.camera?.position?.latitude??0,t=ue(i),s=X(e,t);this.localDate=C(this.localDate,s,"northern"),this._emitUserDateTimeChangeEvent()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#s("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get utcOffset(){return this._offset.value}set utcOffset(e){this._offset.mutate(e),!this.#s("utcOffset",e)&&this.#d()}get timeSliderPosition(){return this._timesliderPosition.value}set timeSliderPosition(e){this._timesliderPosition.mutate(fe(e??0,Ye)),!this.#s("timeSliderPosition",e)&&this.#d()}get localDate(){return this._localDate.value!=null?new Date(this._localDate.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this._localDate.mutate(e),this.#s("localDate",e))return;this.#d();return}let i=new Date(e);if(q(i)){i.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate());let t=i.toISOString().slice(0,10);if(this._localDate.mutate(t),this.#s("localDate",t))return;this.#d()}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.manager.onLifecycle(()=>[De(()=>{let e=this._view?.camera?.position;return e?Y(e):void 0},(e,i)=>{this.#w(e,i)},{sync:!0,initial:!0}),Se(()=>!g(this._lighting),()=>{this._stopPlaying()}),_e.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#e?.remove(),this.#i?.remove(),this.#n?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#o&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let i=this.utcOffset??0,{minutesSinceMidnight:t,localDate:s}=S(this._lighting.date,i);this._timesliderPosition.mutate(t),this._localDate.mutate(s)}}#o;async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await re(Te(()=>this._view?.ready,{signal:e.signal}).then(()=>{let i=this._lighting,t=this._view?.camera?.position;if(this.#a.utcOffset==null&&g(i)&&i.displayUTCOffset==null&&t){let n=Y(t);this.#h(n,i)}this.#o=!0,this.#m();let s=this._playingState;s!=="none"&&this.#e==null&&this._play(s)}))}#w(e,i){let t=this._lighting;if(!(!this.#o||!g(t)||!t.cameraTrackingEnabled||e==null)){if(i==null&&t.displayUTCOffset==null){this.#h(e,t);return}t.displayUTCOffset!=null&&(t.displayUTCOffset=e),this.#h(e,t)}}#h(e,i){i.displayUTCOffset=e,this._offset.mutate(e);let{minutesSinceMidnight:t,localDate:s}=S(i.date,e);this._timesliderPosition.mutate(t),this._localDate.mutate(s),this.requestUpdate()}_emitUserDateTimeChangeEvent(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}_stopPlaying(){this._playingState="none"}#n;#x(e){if(this.#n)return;let i=setTimeout(()=>{let t=e.displayUTCOffset??0,s=e.date,{minutesSinceMidnight:n}=S(s,t);this._timesliderPosition.mutate(n),this.#n?.remove()},this.#p);this.#n=U(()=>{clearTimeout(i),this.#n=void 0;let t=this._lighting;if(g(t)){let s=t.displayUTCOffset??0,n=t.date,{minutesSinceMidnight:a}=S(n,s);this._timesliderPosition.mutate(a)}})}_play(e){this.#e?.remove();let i=this._view;if(i==null||this._sunlightingDisabled)return;let t=i.environment.lighting;if(!g(t))return;this.#_(t);let s=0;this.#e=Je({mode:e,lighting:t,beforeProgress:()=>{s=this.#v??0},onProgress:(n,a)=>{this._timesliderPosition.mutate(s),this.#x(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let c=n.camera.position.latitude??0,o=n.camera.position.longitude??0,{sunrise:d,sunset:l}=Fe(a.date,c,o,a.displayUTCOffset??0);return Ke(d,l,a.date,Xe)*this.playSpeedMultiplier}else return L*this.playSpeedMultiplier}})}render(){let{messages:e,dateOrSeason:i}=this,t=this._sunlightingDisabled,s="m";if(this._view?.type!=="3d")return G({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,c=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return G({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`${a?void 0:m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${B({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${s}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${c} style=${B({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this._stopPlaying(),this._emitUserDateTimeChangeEvent(),this.timeSliderPosition=o.startTime}} ${R(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({hidden:this.hidePlayButtons,children:me({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this._stopPlaying():this._playingState="day"},scale:s})})}${D({hidden:this.hideTimezone,children:m`<calcite-label .scale=${s} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${s} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this._stopPlaying()}} ${R(this.#l)}></calcite-input-time-zone></calcite-label><span></span>`})}${D({hidden:this.hideDatePicker,children:i==="date"?this.#f({scale:s,disabled:t}):this.#b({scale:s,disabled:t})})}</div>${D({hidden:this.hideSunLightingToggle,children:ii({scale:s,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${D({hidden:this.hideShadowsToggle,children:ti({scale:s,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function me({disabled:r,playing:e,onClick:i,label:t,scale:s="m"}){return m`<calcite-button appearance=solid .scale=${s} .disabled=${r} .iconStart=${e?"pause-f":"play-f"} .label=${t} @click=${i} round title=${t??O} type=button></calcite-button>`}function Qe({disabled:r,date:e,onDateChange:i,scale:t}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${t} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`}function ei({messages:r,disabled:e,scale:i,selectedSeason:t,onSeasonChange:s}){return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${i} .value=${t} @calciteSelectChange=${n=>{s(n)}}>${K.map(n=>m`<calcite-option .selected=${t===n} .value=${n}>${r[n]}</calcite-option>`)}</calcite-select>`}function ii({messages:r,sunlightingEnabled:e,onSunLightingToggle:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .scale=${t} .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`}function ti({messages:r,shadowEnabled:e,onShadowCheckboxChange:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`}te("arcgis-daylight",W);return W},"core/reactiveUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
|
package/dist/cdn/K5M3ZRVS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./QFH7PJYV.js";import b from"./MZWO5JYA.js";import{d as $}from"./DU6OKLV4.js";import{O as A,P as y,Q as w,R as d,U as x,a as v,b as a}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([_,I,S,k,{watch:P},,{d:u}])=>{function L(i){let e=i.toLowerCase();return e==="image/bmp"||e==="image/emf"||e==="image/exif"||e==="image/gif"||e==="image/x-icon"||e==="image/jpeg"||e==="image/png"||e==="image/tiff"||e==="image/x-wmf"}function T(i){return i?i==="text/plain"?"file-text":i==="application/pdf"?"file-pdf":i==="text/csv"?"file-csv":i==="application/gpx+xml"?"file-gpx":i==="application/x-dwf"?"file-cad":i==="application/postscript"||i==="application/json"||i==="text/xml"||i==="model/vrml"?"file-code":i==="application/x-zip-compressed"||i==="application/x-7z-compressed"||i==="application/x-gzip"||i==="application/x-tar"||i==="application/x-gtar"||i==="application/x-bzip2"||i==="application/gzip"||i==="application/x-compress"||i==="application/x-apple-diskimage"||i==="application/x-rar-compressed"||i==="application/zip"?"file-zip":i.includes("image/")?"file-image":i.includes("audio/")?"file-sound":i.includes("video/")?"file-video":i.includes("msexcel")||i.includes("ms-excel")||i.includes("spreadsheetml")?"file-excel":i.includes("msword")||i.includes("ms-word")||i.includes("wordprocessingml")?"file-word":i.includes("powerpoint")||i.includes("presentationml")?"file-report":"file":"file"}var j=v`.item-link{display:flex;flex-grow:1}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`,C=S.ofType(_),b=class extends A{constructor(){super(...arguments),this._attachmentInfos=new C,this._attachmentLayer=null,this._supportsImageOrientation=window?.CSS?.supports("image-orientation","from-image"),this.getAttachmentsPromise=null,this.hideSection=!1,this.headingLevel=2}static{this.properties={effectiveDisplayType:16,getAttachmentsPromise:16,hideSection:16,supportsResizeAttachments:16,attachmentKeywords:0,attachmentTypes:0,description:1,displayType:1,graphic:0,heading:1,messages:0,orderByFields:0,headingLevel:9}}static{this.styles=j}get _supportsTypeWildcard(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsTypeWildcard||!1}get effectiveDisplayType(){let{displayType:e}=this;return!e||e==="auto"?this.supportsResizeAttachments?"preview":"list":e}get supportsResizeAttachments(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsResize||!1}loaded(){this.manager.onLifecycle(()=>[P(()=>this.graphic,()=>this.graphicChanged(),{initial:!0})])}async getAttachments(){let{_attachmentLayer:e,_attachmentInfos:t,orderByFields:o,attachmentTypes:n,attachmentKeywords:s,_supportsTypeWildcard:g}=this;if(!e||typeof e.queryAttachments!="function")throw new k("invalid-layer","getAttachments(): A valid layer is required.");let l=this.graphic?.getObjectId();if(typeof l!="number")throw new k("invalid-object-id","getAttachments(): Numeric object id is required");let m=o?.map(c=>`${c.field} ${c.order==="descending"?"DESC":"ASC"}`),f=new I({objectIds:[l],returnMetadata:!0,orderByFields:m,attachmentTypes:g?n?.filter(Boolean).map(c=>`${c}/*`):void 0,keywords:s}),r=[],h=e.queryAttachments(f).then(c=>c[l]||r).catch(()=>r);this.getAttachmentsPromise=h;let p=await h;t.destroyAll(),p.length&&t.addMany(p),this.getAttachmentsPromise=null}setAttachmentLayer(){let{graphic:e}=this,t=u(e);this._attachmentLayer=t?t.type==="scene"&&t.associatedLayer!=null?t.associatedLayer:t:null}graphicChanged(){this.graphic&&(this.setAttachmentLayer(),this.getAttachments().catch(()=>this._attachmentInfos.destroyAll()))}getCSSTransform(e){let{orientationInfo:t}=e;return!this._supportsImageOrientation&&t?[t.rotation?`rotate(${t.rotation}deg)`:"",t.mirrored?"scaleX(-1)":""].join(" "):""}render(){return a`<div class="root" .hidden=${!(this.getAttachmentsPromise||this._attachmentInfos.length>0)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`}renderAttachmentsList(e){return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel??""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map(t=>this.renderAttachmentListItem(t))}</calcite-list>`}renderAttachmentsPreview(e){return a`<calcite-card-group .label=${this.messages?.componentLabel??""}>${this.getAttachmentsPromise?a`<calcite-card loading></calcite-card>`:e.toArray().filter(Boolean).map(t=>this.renderAttachmentPreviewItem(t))}</calcite-card-group>`}renderAttachments(){let{effectiveDisplayType:e,_attachmentInfos:t}=this;return e==="preview"?this.renderAttachmentsPreview(t):this.renderAttachmentsList(t)}renderAttachmentListItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=64,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=t&&L(o),c=a`<a class=${y($("item-link","item-link--list",{"item-link--list-icon":!p}))} slot=content-start href=${s??void 0??d} rel=noreferrer target=_blank>${p?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`,z=a`<calcite-link slot=content .href=${s??void 0} rel=noreferrer target=_blank>${m}</calcite-link>`;return a`<calcite-list-item .label=${m}>${c}${z}</calcite-list-item>`}renderAttachmentPreviewItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=225,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=a`<a class=${y($("item-link","item-link--preview"))} slot=thumbnail href=${s??void 0??d} rel=noreferrer target=_blank>${t&&L(o)?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;return a`<calcite-card .label=${m}>${p}<span class="item-description" slot=description>${m}</span></calcite-card>`}};x("arcgis-feature-attachments",b);return b},"rest/query/support/AttachmentInfo","rest/support/AttachmentQuery","core/Collection","core/Error","core/reactiveUtils",b,c)
|
package/dist/cdn/MTYQJ4TB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./UFGA4NGM.js";import"./VJ2SMYNX.js";import"./IDZCPNFC.js";import"./DU6OKLV4.js";import{O as a,U as l,a as s,b as e}from"./KLXEJCTT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:r}])=>{var d=s`:host{display:flex;flex-direction:column;height:100%}.layout-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex-grow:1;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--calcite-spacing-sm)}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}`,i=class extends a{constructor(){super(...arguments),this._handles=o("disconnect"),this.hideAdvancedOptions=!1,this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTemplate:16,_showSelectedTemplateTitleText:16,hideAdvancedOptions:5,autoPopulateAuthor:5,viewModel:0,messages:0,showTemplateSelector:0,selectExportsTab:0,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=d}loaded(){this.manager.onLifecycle(()=>[r(()=>this.viewModel.templateOptions.id,t=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=t?this.viewModel.getLayoutTemplateById(t)??void 0:void 0,this._handles.addHandles(r(()=>this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText,()=>{this._showSelectedTemplateTitleText=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText??!0},{initial:!0}),"template-handle")},{initial:!0})])}render(){return e`<section class="layout-section" tabindex=-1><div class="panel-container">${this._renderTitleInput()}${this._renderTemplateSelect()}${this._renderFileFormatSection()}${this._renderAdvancedSection()}</div>${this._renderExportButton()}</section>`}_renderTitleInput(){if(!this._showSelectedTemplateTitleText)return null;let{title:t,titlePlaceHolder:n}=this.messages;return e`<calcite-label>${t}<calcite-input .placeholder=${n} .value=${this.viewModel.templateOptions.title??""} @calciteInputInput=${c=>{this.viewModel.templateOptions.title=c.currentTarget.value}}></calcite-input></calcite-label>`}_renderTemplateSelect(){return e`<div><calcite-label>${this.messages.template}<arcgis-print-template-select .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this.showTemplateSelector}></arcgis-print-template-select></calcite-label><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderFileFormatSection(){return e`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderAdvancedSection(){return this.hideAdvancedOptions?null:e`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" collapsible .disabled=${!this._selectedTemplate} .heading=${this.messages.advancedOptions}><arcgis-print-layout-advanced-options .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-layout-advanced-options></calcite-block>`}_renderExportButton(){return e`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.title??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};l("arcgis-print-layout-panel",i);return i},"core/reactiveUtils")
|