@arcgis/map-components 5.2.0-next.120 → 5.2.0-next.121
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/{YZUEPMQZ.js → 24SNB22W.js} +1 -1
- package/dist/cdn/33C5FBRZ.js +2 -0
- package/dist/cdn/{POEFPML6.js → 55AZTWOF.js} +1 -1
- package/dist/cdn/{2DDAZ3QO.js → 56PUZWIU.js} +1 -1
- package/dist/cdn/{23KFFLAG.js → 5E2DZJWK.js} +1 -1
- package/dist/cdn/{U35IJFNU.js → 6VR7MKOM.js} +1 -1
- package/dist/cdn/6XJFRQ75.js +2 -0
- package/dist/cdn/{UJVNCEXT.js → 7KWX2CED.js} +1 -1
- package/dist/cdn/7WBDTHNZ.js +2 -0
- package/dist/cdn/{RRC7AD75.js → ALEBI75Z.js} +1 -1
- package/dist/cdn/BAV6JF4F.js +2 -0
- package/dist/cdn/{HNMWTX7W.js → BEZWJEYM.js} +1 -1
- package/dist/cdn/{KKDZFKGV.js → BFVEHL3M.js} +1 -1
- package/dist/cdn/{LCNYVSCF.js → BTQUD5J4.js} +1 -1
- package/dist/cdn/DAPKG4DY.js +2 -0
- package/dist/cdn/DOR5MVML.js +2 -0
- package/dist/cdn/{GN4BH6SY.js → EMJLCAFX.js} +1 -1
- package/dist/cdn/{F5EC22X4.js → ESISPXFF.js} +1 -1
- package/dist/cdn/{2L6YCWXJ.js → EUV2XFUO.js} +1 -1
- package/dist/cdn/{LBVSFCZG.js → FR7ARNMJ.js} +1 -1
- package/dist/cdn/GC4D3K6B.js +2 -0
- package/dist/cdn/{BFGF2JTH.js → GLOUXFQV.js} +1 -1
- package/dist/cdn/GYTTYWIC.js +2 -0
- package/dist/cdn/{W5O3OCTG.js → H5FV4C72.js} +1 -1
- package/dist/cdn/{JKZMOIRA.js → HGCKG3CA.js} +1 -1
- package/dist/cdn/{P2X5UYZB.js → I2IBXGQM.js} +1 -1
- package/dist/cdn/{CWQN57H6.js → IZ7UWAQP.js} +1 -1
- package/dist/cdn/{Z3JADSL3.js → J4TWDZII.js} +1 -1
- package/dist/cdn/{CST7D7GR.js → JGHPNDIO.js} +1 -1
- package/dist/cdn/{OMZESNEM.js → JOOXDIS7.js} +1 -1
- package/dist/cdn/{KGBACXRG.js → JRFQGFRL.js} +1 -1
- package/dist/cdn/{ZSQCIUGN.js → KIHX5LRN.js} +1 -1
- package/dist/cdn/{FAN45DMA.js → LM6RYRCS.js} +1 -1
- package/dist/cdn/{REDWVTQJ.js → LP2PF2VT.js} +1 -1
- package/dist/cdn/{4IB44LRA.js → LWW6FUI2.js} +1 -1
- package/dist/cdn/{LH33ZRF7.js → MFBQRTJ3.js} +1 -1
- package/dist/cdn/{5RBUI62E.js → MLJ5RYY3.js} +1 -1
- package/dist/cdn/{WWGWIJMC.js → NZSCPBS7.js} +1 -1
- package/dist/cdn/{PQTX5YLB.js → OKW62U6T.js} +1 -1
- package/dist/cdn/{3OQZ3SMG.js → OPLR5W7O.js} +1 -1
- package/dist/cdn/{JD46SR26.js → Q6LQ5BUX.js} +1 -1
- package/dist/cdn/{HGYJFGKA.js → QGFWUN5S.js} +1 -1
- package/dist/cdn/{X7KSMNND.js → QIEX43LK.js} +1 -1
- package/dist/cdn/{B6JX5OWP.js → QNHJY7QE.js} +1 -1
- package/dist/cdn/RVJTWRVG.js +2 -0
- package/dist/cdn/{2KN3VFRG.js → TH6TT77M.js} +1 -1
- package/dist/cdn/TIDNGXMD.js +2 -0
- package/dist/cdn/{6XZKWBWD.js → TVZZB4KV.js} +1 -1
- package/dist/cdn/{XO3NPMHQ.js → UA5FRNJG.js} +1 -1
- package/dist/cdn/{SEMVPT7E.js → UJUD6U2G.js} +1 -1
- package/dist/cdn/{MZZGKPLV.js → UXUG6DBJ.js} +1 -1
- package/dist/cdn/{TL7OKFLN.js → V7BQUMJL.js} +1 -1
- package/dist/cdn/{TNY5ERJS.js → VSJ3MYSY.js} +1 -1
- package/dist/cdn/{IR2RGKT4.js → WC2DVIUW.js} +1 -1
- package/dist/cdn/{Q6MJXAPZ.js → WNLOSRMS.js} +1 -1
- package/dist/cdn/{6SKPV2U5.js → XGZ36AOT.js} +1 -1
- package/dist/cdn/{NEQHSO5U.js → XP4IZ2KQ.js} +1 -1
- package/dist/cdn/{D3F6S7NU.js → XQKZNHH7.js} +1 -1
- package/dist/cdn/{3VGRIUOZ.js → Y3Y3AB5L.js} +1 -1
- package/dist/cdn/{CONE7FEI.js → YG4HDEP3.js} +1 -1
- package/dist/cdn/Z44GSKHZ.js +2 -0
- package/dist/cdn/{EZVWEV6T.js → ZSVZL6PT.js} +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/async-utils.js +3 -3
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +81 -0
- package/dist/components/arcgis-attachment-validation-view/customElement.js +109 -0
- package/dist/components/arcgis-attachment-validation-view/index.d.ts +1 -0
- package/dist/components/arcgis-attachment-validation-view/index.js +2 -0
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -9
- package/dist/components/arcgis-basemap-gallery/customElement.js +39 -28
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +30 -30
- package/dist/components/arcgis-editor/customElement.d.ts +10 -2
- package/dist/components/arcgis-editor/customElement.js +2 -2
- package/dist/components/arcgis-expand/customElement.js +27 -21
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +23 -0
- package/dist/components/arcgis-exploratory-analysis/customElement.js +50 -50
- package/dist/components/arcgis-feature-attachments/customElement.js +17 -17
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +48 -0
- package/dist/components/arcgis-legend/customElement.d.ts +5 -6
- package/dist/components/arcgis-legend/customElement.js +5 -5
- package/dist/components/arcgis-link-chart/customElement.js +5 -2
- package/dist/components/arcgis-map/customElement.js +9 -6
- package/dist/components/arcgis-presentation/customElement.js +62 -62
- package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +9 -6
- package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +84 -0
- package/dist/components/arcgis-sketch/configuration.d.ts +33 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -2
- package/dist/components/arcgis-sketch/customElement.js +25 -21
- 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/index.d.ts +4 -0
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -1
- package/dist/types/preact.d.ts +7 -1
- package/dist/types/react.d.ts +8 -1
- package/dist/types/stencil.d.ts +6 -1
- package/package.json +7 -7
- package/dist/cdn/2OGEVHBC.js +0 -2
- package/dist/cdn/5PNAHYUT.js +0 -2
- package/dist/cdn/7AKMHKTT.js +0 -2
- package/dist/cdn/DDSMWDPS.js +0 -2
- package/dist/cdn/DOHO6T7Z.js +0 -2
- package/dist/cdn/IDE4IFH7.js +0 -2
- package/dist/cdn/IJTCIWOA.js +0 -2
- package/dist/cdn/IXVJQIMH.js +0 -2
- package/dist/cdn/KWJAKUM4.js +0 -2
- package/dist/cdn/WU7R423Z.js +0 -2
- /package/dist/cdn/{5DV4N5DK.js → OYD6YL32.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ import type { ArcgisExpand } from "./components/arcgis-expand/customElement.js";
|
|
|
49
49
|
import type { ArcgisExploratoryAnalysis } from "./components/arcgis-exploratory-analysis/customElement.js";
|
|
50
50
|
import type { ArcgisFeature } from "./components/arcgis-feature/customElement.js";
|
|
51
51
|
import type { ArcgisFeatureForm } from "./components/arcgis-feature-form/customElement.js";
|
|
52
|
+
import type { ArcgisAttachmentValidationView } from "./components/arcgis-attachment-validation-view/customElement.js";
|
|
52
53
|
import type { ArcgisFilePicker } from "./components/arcgis-file-picker/customElement.js";
|
|
53
54
|
import type { ArcgisFeatureFormFieldNumber } from "./components/arcgis-feature-form-field-number/customElement.js";
|
|
54
55
|
import type { ArcgisFeatureNext } from "./components/arcgis-feature-next/customElement.js";
|
|
@@ -709,6 +710,7 @@ declare global {
|
|
|
709
710
|
"arcgis-exploratory-analysis": ArcgisExploratoryAnalysis;
|
|
710
711
|
"arcgis-feature": ArcgisFeature;
|
|
711
712
|
"arcgis-feature-form": ArcgisFeatureForm;
|
|
713
|
+
"arcgis-attachment-validation-view": ArcgisAttachmentValidationView;
|
|
712
714
|
"arcgis-file-picker": ArcgisFilePicker;
|
|
713
715
|
"arcgis-feature-form-field-number": ArcgisFeatureFormFieldNumber;
|
|
714
716
|
"arcgis-feature-next": ArcgisFeatureNext;
|
|
@@ -880,6 +882,8 @@ declare global {
|
|
|
880
882
|
type HTMLArcgisFeatureFormElementEventMap = ArcgisFeatureForm["@eventTypes"];
|
|
881
883
|
type HTMLArcgisFeatureFormElement = ArcgisFeatureForm;
|
|
882
884
|
|
|
885
|
+
type HTMLArcgisAttachmentValidationViewElement = ArcgisAttachmentValidationView;
|
|
886
|
+
|
|
883
887
|
type HTMLArcgisFilePickerElementEventMap = ArcgisFilePicker["@eventTypes"];
|
|
884
888
|
type HTMLArcgisFilePickerElement = ArcgisFilePicker;
|
|
885
889
|
|
package/dist/loader.js
CHANGED
|
@@ -34,7 +34,7 @@ const s = t(e, {
|
|
|
34
34
|
"arcgis-elevation-profile-settings": [() => import("./components/arcgis-elevation-profile-settings/customElement.js"), "hasCustomEndContent,hasCustomStartContent,hideDistanceDisplayUnitSelect,hideElevationDisplayUnitSelect,hideUniformChartScalingToggle,messageOverrides:,messages:,uniformChartScaling,unitOptionsDistance:,unitOptionsElevation:,viewModel:;destroy"],
|
|
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
|
-
"arcgis-exploratory-analysis": [() => import("./components/arcgis-exploratory-analysis/customElement.js"), "_messages:,activeAnalysis,autoDestroyDisabled,autoStartDisabled,closed,messageOverrides:,showCloseButton,showCollapseButton,showHeading;destroy"],
|
|
37
|
+
"arcgis-exploratory-analysis": [() => import("./components/arcgis-exploratory-analysis/customElement.js"), "_messages:,activeAnalysis,autoDestroyDisabled,autoStartDisabled,closed,icon,messageOverrides:,preserveAnalysisOnChange,showCloseButton,showCollapseButton,showHeading;destroy"],
|
|
38
38
|
"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"],
|
|
39
39
|
"arcgis-feature-attachments": [() => import("./components/arcgis-feature-attachments/customElement.js"), "attachmentKeywords:,attachmentTypes:,description,displayType,empty,graphic:,heading,headingLevel,hidePreviewImageAttachmentName,messages:,orderByFields:"],
|
|
40
40
|
"arcgis-feature-content": [() => import("./components/arcgis-feature-content/customElement.js"), "creator,destroyer:,graphic:"],
|
|
@@ -42,6 +42,7 @@ const s = t(e, {
|
|
|
42
42
|
"arcgis-feature-expression": [() => import("./components/arcgis-feature-expression/customElement.js"), "expressionInfo:,expressionInfos:,fieldInfoMap:,graphic:,headingLevel,interceptor:,layer:,location:,map:,messages:,spatialReference:,values:,view:"],
|
|
43
43
|
"arcgis-feature-fields": [() => import("./components/arcgis-feature-fields/customElement.js"), "description,expressionInfos:,fieldInfos:,graphic:,heading,headingLevel,isContentFieldInfos,layer:,messages:,values:"],
|
|
44
44
|
"arcgis-feature-form": [() => import("./components/arcgis-feature-form/customElement.js"), "autoDestroyDisabled,disabled,editType,feature:,formTemplate:,groupDisplay,headingLevel,hideReadOnlyNotice,icon,label,layer:,map:,referenceElement,state:,timeZone,view:;destroy,getValues,submit"],
|
|
45
|
+
"arcgis-attachment-validation-view": [() => import("./components/arcgis-attachment-validation-view/customElement.js"), "_messages:,includeCountCriteria,input:,messageOverrides:"],
|
|
45
46
|
"arcgis-file-picker": [() => import("./components/arcgis-file-picker/customElement.js"), "_messages:,accept:,disabled,fileTypeCategories:,heading,icon,messageOverrides:,multipleEnabled;open"],
|
|
46
47
|
"arcgis-feature-form-field": [() => import("./components/arcgis-feature-form-field/customElement.js"), "_messages:,disabled,input:,messageOverrides:,readOnly,valueChangeCallback:;setFocus"],
|
|
47
48
|
"arcgis-feature-form-field-number": [() => import("./components/arcgis-feature-form-field-number/customElement.js"), "_messages:,disabled,input:,messageOverrides:,readOnly,valueChangeCallback:;setFocus"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type { ArcgisExpand } from "../components/arcgis-expand/customElement.js"
|
|
|
24
24
|
import type { ArcgisExploratoryAnalysis } from "../components/arcgis-exploratory-analysis/customElement.js";
|
|
25
25
|
import type { ArcgisFeature } from "../components/arcgis-feature/customElement.js";
|
|
26
26
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
27
|
+
import type { ArcgisAttachmentValidationView } from "../components/arcgis-attachment-validation-view/customElement.js";
|
|
27
28
|
import type { ArcgisFilePicker } from "../components/arcgis-file-picker/customElement.js";
|
|
28
29
|
import type { ArcgisFeatureFormFieldNumber } from "../components/arcgis-feature-form-field-number/customElement.js";
|
|
29
30
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
@@ -286,7 +287,7 @@ interface LuminaArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" |
|
|
|
286
287
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
interface LuminaArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "messageOverrides" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, h.JSX.HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
290
|
+
interface LuminaArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "icon" | "messageOverrides" | "preserveAnalysisOnChange" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, h.JSX.HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
290
291
|
onarcgisClose?: EventHandler<ArcgisExploratoryAnalysis["arcgisClose"]>;
|
|
291
292
|
onarcgisPropertyChange?: EventHandler<ArcgisExploratoryAnalysis["arcgisPropertyChange"]>;
|
|
292
293
|
onarcgisReady?: EventHandler<ArcgisExploratoryAnalysis["arcgisReady"]>;
|
|
@@ -304,6 +305,9 @@ interface LuminaArcgisFeatureForm extends Partial<Pick<ArcgisFeatureForm, "autoD
|
|
|
304
305
|
onarcgisValueChange?: EventHandler<ArcgisFeatureForm["arcgisValueChange"]>;
|
|
305
306
|
}
|
|
306
307
|
|
|
308
|
+
interface LuminaArcgisAttachmentValidationView extends Partial<Pick<ArcgisAttachmentValidationView, "includeCountCriteria" | "input" | "messageOverrides">>, h.JSX.HTMLAttributes<ArcgisAttachmentValidationView> {
|
|
309
|
+
}
|
|
310
|
+
|
|
307
311
|
interface LuminaArcgisFilePicker extends Partial<Pick<ArcgisFilePicker, "disabled" | "fileTypeCategories" | "heading" | "icon" | "messageOverrides" | "multipleEnabled">>, h.JSX.HTMLAttributes<ArcgisFilePicker> {
|
|
308
312
|
onarcgisFilesSelect?: EventHandler<ArcgisFilePicker["arcgisFilesSelect"]>;
|
|
309
313
|
}
|
|
@@ -944,6 +948,7 @@ declare module "@arcgis/lumina" {
|
|
|
944
948
|
"arcgis-exploratory-analysis": LuminaArcgisExploratoryAnalysis;
|
|
945
949
|
"arcgis-feature": LuminaArcgisFeature;
|
|
946
950
|
"arcgis-feature-form": LuminaArcgisFeatureForm;
|
|
951
|
+
"arcgis-attachment-validation-view": LuminaArcgisAttachmentValidationView;
|
|
947
952
|
"arcgis-file-picker": LuminaArcgisFilePicker;
|
|
948
953
|
"arcgis-feature-form-field-number": LuminaArcgisFeatureFormFieldNumber;
|
|
949
954
|
"arcgis-feature-next": LuminaArcgisFeatureNext;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type { ArcgisExpand } from "../components/arcgis-expand/customElement.js"
|
|
|
24
24
|
import type { ArcgisExploratoryAnalysis } from "../components/arcgis-exploratory-analysis/customElement.js";
|
|
25
25
|
import type { ArcgisFeature } from "../components/arcgis-feature/customElement.js";
|
|
26
26
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
27
|
+
import type { ArcgisAttachmentValidationView } from "../components/arcgis-attachment-validation-view/customElement.js";
|
|
27
28
|
import type { ArcgisFilePicker } from "../components/arcgis-file-picker/customElement.js";
|
|
28
29
|
import type { ArcgisFeatureFormFieldNumber } from "../components/arcgis-feature-form-field-number/customElement.js";
|
|
29
30
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
@@ -287,7 +288,7 @@ interface PreactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" |
|
|
|
287
288
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
interface PreactArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "messageOverrides" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
291
|
+
interface PreactArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "icon" | "messageOverrides" | "preserveAnalysisOnChange" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
291
292
|
onarcgisClose?: EventHandler<ArcgisExploratoryAnalysis["arcgisClose"]>;
|
|
292
293
|
onarcgisPropertyChange?: EventHandler<ArcgisExploratoryAnalysis["arcgisPropertyChange"]>;
|
|
293
294
|
onarcgisReady?: EventHandler<ArcgisExploratoryAnalysis["arcgisReady"]>;
|
|
@@ -305,6 +306,9 @@ interface PreactArcgisFeatureForm extends Partial<Pick<ArcgisFeatureForm, "autoD
|
|
|
305
306
|
onarcgisValueChange?: EventHandler<ArcgisFeatureForm["arcgisValueChange"]>;
|
|
306
307
|
}
|
|
307
308
|
|
|
309
|
+
interface PreactArcgisAttachmentValidationView extends Partial<Pick<ArcgisAttachmentValidationView, "includeCountCriteria" | "input" | "messageOverrides">>, HTMLAttributes<ArcgisAttachmentValidationView> {
|
|
310
|
+
}
|
|
311
|
+
|
|
308
312
|
interface PreactArcgisFilePicker extends Partial<Pick<ArcgisFilePicker, "disabled" | "fileTypeCategories" | "heading" | "icon" | "messageOverrides" | "multipleEnabled">>, HTMLAttributes<ArcgisFilePicker> {
|
|
309
313
|
onarcgisFilesSelect?: EventHandler<ArcgisFilePicker["arcgisFilesSelect"]>;
|
|
310
314
|
}
|
|
@@ -945,6 +949,7 @@ declare module 'preact' {
|
|
|
945
949
|
"arcgis-exploratory-analysis": PreactArcgisExploratoryAnalysis;
|
|
946
950
|
"arcgis-feature": PreactArcgisFeature;
|
|
947
951
|
"arcgis-feature-form": PreactArcgisFeatureForm;
|
|
952
|
+
"arcgis-attachment-validation-view": PreactArcgisAttachmentValidationView;
|
|
948
953
|
"arcgis-file-picker": PreactArcgisFilePicker;
|
|
949
954
|
"arcgis-feature-form-field-number": PreactArcgisFeatureFormFieldNumber;
|
|
950
955
|
"arcgis-feature-next": PreactArcgisFeatureNext;
|
|
@@ -1067,6 +1072,7 @@ declare module 'preact' {
|
|
|
1067
1072
|
"arcgis-exploratory-analysis": PreactArcgisExploratoryAnalysis;
|
|
1068
1073
|
"arcgis-feature": PreactArcgisFeature;
|
|
1069
1074
|
"arcgis-feature-form": PreactArcgisFeatureForm;
|
|
1075
|
+
"arcgis-attachment-validation-view": PreactArcgisAttachmentValidationView;
|
|
1070
1076
|
"arcgis-file-picker": PreactArcgisFilePicker;
|
|
1071
1077
|
"arcgis-feature-form-field-number": PreactArcgisFeatureFormFieldNumber;
|
|
1072
1078
|
"arcgis-feature-next": PreactArcgisFeatureNext;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type { ArcgisExpand } from "../components/arcgis-expand/customElement.js"
|
|
|
24
24
|
import type { ArcgisExploratoryAnalysis } from "../components/arcgis-exploratory-analysis/customElement.js";
|
|
25
25
|
import type { ArcgisFeature } from "../components/arcgis-feature/customElement.js";
|
|
26
26
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
27
|
+
import type { ArcgisAttachmentValidationView } from "../components/arcgis-attachment-validation-view/customElement.js";
|
|
27
28
|
import type { ArcgisFilePicker } from "../components/arcgis-file-picker/customElement.js";
|
|
28
29
|
import type { ArcgisFeatureFormFieldNumber } from "../components/arcgis-feature-form-field-number/customElement.js";
|
|
29
30
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
@@ -287,7 +288,7 @@ interface ReactArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse" |
|
|
|
287
288
|
onarcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
interface ReactArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "messageOverrides" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, HTMLProps<ArcgisExploratoryAnalysis> {
|
|
291
|
+
interface ReactArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "icon" | "messageOverrides" | "preserveAnalysisOnChange" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, HTMLProps<ArcgisExploratoryAnalysis> {
|
|
291
292
|
onarcgisClose?: EventHandler<ArcgisExploratoryAnalysis["arcgisClose"]>;
|
|
292
293
|
onarcgisPropertyChange?: EventHandler<ArcgisExploratoryAnalysis["arcgisPropertyChange"]>;
|
|
293
294
|
onarcgisReady?: EventHandler<ArcgisExploratoryAnalysis["arcgisReady"]>;
|
|
@@ -305,6 +306,9 @@ interface ReactArcgisFeatureForm extends Partial<Pick<ArcgisFeatureForm, "autoDe
|
|
|
305
306
|
onarcgisValueChange?: EventHandler<ArcgisFeatureForm["arcgisValueChange"]>;
|
|
306
307
|
}
|
|
307
308
|
|
|
309
|
+
interface ReactArcgisAttachmentValidationView extends Partial<Pick<ArcgisAttachmentValidationView, "includeCountCriteria" | "input" | "messageOverrides">>, HTMLProps<ArcgisAttachmentValidationView> {
|
|
310
|
+
}
|
|
311
|
+
|
|
308
312
|
interface ReactArcgisFilePicker extends Partial<Pick<ArcgisFilePicker, "disabled" | "fileTypeCategories" | "heading" | "icon" | "messageOverrides" | "multipleEnabled">>, HTMLProps<ArcgisFilePicker> {
|
|
309
313
|
onarcgisFilesSelect?: EventHandler<ArcgisFilePicker["arcgisFilesSelect"]>;
|
|
310
314
|
}
|
|
@@ -945,6 +949,7 @@ declare module "react" {
|
|
|
945
949
|
"arcgis-exploratory-analysis": ReactArcgisExploratoryAnalysis;
|
|
946
950
|
"arcgis-feature": ReactArcgisFeature;
|
|
947
951
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
952
|
+
"arcgis-attachment-validation-view": ReactArcgisAttachmentValidationView;
|
|
948
953
|
"arcgis-file-picker": ReactArcgisFilePicker;
|
|
949
954
|
"arcgis-feature-form-field-number": ReactArcgisFeatureFormFieldNumber;
|
|
950
955
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
|
@@ -1069,6 +1074,7 @@ declare module "react/jsx-runtime" {
|
|
|
1069
1074
|
"arcgis-exploratory-analysis": ReactArcgisExploratoryAnalysis;
|
|
1070
1075
|
"arcgis-feature": ReactArcgisFeature;
|
|
1071
1076
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
1077
|
+
"arcgis-attachment-validation-view": ReactArcgisAttachmentValidationView;
|
|
1072
1078
|
"arcgis-file-picker": ReactArcgisFilePicker;
|
|
1073
1079
|
"arcgis-feature-form-field-number": ReactArcgisFeatureFormFieldNumber;
|
|
1074
1080
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
|
@@ -1193,6 +1199,7 @@ declare module "react/jsx-dev-runtime" {
|
|
|
1193
1199
|
"arcgis-exploratory-analysis": ReactArcgisExploratoryAnalysis;
|
|
1194
1200
|
"arcgis-feature": ReactArcgisFeature;
|
|
1195
1201
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
1202
|
+
"arcgis-attachment-validation-view": ReactArcgisAttachmentValidationView;
|
|
1196
1203
|
"arcgis-file-picker": ReactArcgisFilePicker;
|
|
1197
1204
|
"arcgis-feature-form-field-number": ReactArcgisFeatureFormFieldNumber;
|
|
1198
1205
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type { ArcgisExpand } from "../components/arcgis-expand/customElement.js"
|
|
|
24
24
|
import type { ArcgisExploratoryAnalysis } from "../components/arcgis-exploratory-analysis/customElement.js";
|
|
25
25
|
import type { ArcgisFeature } from "../components/arcgis-feature/customElement.js";
|
|
26
26
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
27
|
+
import type { ArcgisAttachmentValidationView } from "../components/arcgis-attachment-validation-view/customElement.js";
|
|
27
28
|
import type { ArcgisFilePicker } from "../components/arcgis-file-picker/customElement.js";
|
|
28
29
|
import type { ArcgisFeatureFormFieldNumber } from "../components/arcgis-feature-form-field-number/customElement.js";
|
|
29
30
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
@@ -287,7 +288,7 @@ interface StencilArcgisExpand extends Partial<Pick<ArcgisExpand, "autoCollapse"
|
|
|
287
288
|
onArcgisReady?: EventHandler<ArcgisExpand["arcgisReady"]>;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
interface StencilArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "messageOverrides" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, StencilJsx.HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
291
|
+
interface StencilArcgisExploratoryAnalysis extends Partial<Pick<ArcgisExploratoryAnalysis, "autoDestroyDisabled" | "autoStartDisabled" | "closed" | "icon" | "messageOverrides" | "preserveAnalysisOnChange" | "showCloseButton" | "showCollapseButton" | "showHeading">>, ArcgisExploratoryAnalysisSetterTypes, StencilJsx.HTMLAttributes<ArcgisExploratoryAnalysis> {
|
|
291
292
|
onArcgisClose?: EventHandler<ArcgisExploratoryAnalysis["arcgisClose"]>;
|
|
292
293
|
onArcgisPropertyChange?: EventHandler<ArcgisExploratoryAnalysis["arcgisPropertyChange"]>;
|
|
293
294
|
onArcgisReady?: EventHandler<ArcgisExploratoryAnalysis["arcgisReady"]>;
|
|
@@ -305,6 +306,9 @@ interface StencilArcgisFeatureForm extends Partial<Pick<ArcgisFeatureForm, "auto
|
|
|
305
306
|
onArcgisValueChange?: EventHandler<ArcgisFeatureForm["arcgisValueChange"]>;
|
|
306
307
|
}
|
|
307
308
|
|
|
309
|
+
interface StencilArcgisAttachmentValidationView extends Partial<Pick<ArcgisAttachmentValidationView, "includeCountCriteria" | "input" | "messageOverrides">>, StencilJsx.HTMLAttributes<ArcgisAttachmentValidationView> {
|
|
310
|
+
}
|
|
311
|
+
|
|
308
312
|
interface StencilArcgisFilePicker extends Partial<Pick<ArcgisFilePicker, "disabled" | "fileTypeCategories" | "heading" | "icon" | "messageOverrides" | "multipleEnabled">>, StencilJsx.HTMLAttributes<ArcgisFilePicker> {
|
|
309
313
|
onArcgisFilesSelect?: EventHandler<ArcgisFilePicker["arcgisFilesSelect"]>;
|
|
310
314
|
}
|
|
@@ -943,6 +947,7 @@ interface ExposedElements {
|
|
|
943
947
|
"arcgis-exploratory-analysis": StencilArcgisExploratoryAnalysis;
|
|
944
948
|
"arcgis-feature": StencilArcgisFeature;
|
|
945
949
|
"arcgis-feature-form": StencilArcgisFeatureForm;
|
|
950
|
+
"arcgis-attachment-validation-view": StencilArcgisAttachmentValidationView;
|
|
946
951
|
"arcgis-file-picker": StencilArcgisFilePicker;
|
|
947
952
|
"arcgis-feature-form-field-number": StencilArcgisFeatureFormFieldNumber;
|
|
948
953
|
"arcgis-feature-next": StencilArcgisFeatureNext;
|
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.121",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@amcharts/amcharts5": "~5.20.7",
|
|
46
|
-
"@arcgis/common-components": "5.2.0-next.
|
|
47
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
48
|
-
"@arcgis/lumina-toolkit": "5.2.0-next.
|
|
49
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
46
|
+
"@arcgis/common-components": "5.2.0-next.121",
|
|
47
|
+
"@arcgis/lumina": "5.2.0-next.121",
|
|
48
|
+
"@arcgis/lumina-toolkit": "5.2.0-next.121",
|
|
49
|
+
"@arcgis/toolkit": "5.2.0-next.121",
|
|
50
50
|
"es-toolkit": "^1.52.0",
|
|
51
51
|
"lit": "^3.3.0",
|
|
52
52
|
"tslib": "^2.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@arcgis/core": "5.2.0-next.
|
|
56
|
-
"@esri/calcite-components": "^5.2.0-next.
|
|
55
|
+
"@arcgis/core": "5.2.0-next.121",
|
|
56
|
+
"@esri/calcite-components": "^5.2.0-next.80"
|
|
57
57
|
},
|
|
58
58
|
"css.customData": [
|
|
59
59
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/2OGEVHBC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as h}from"./JD74LG7K.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import{b as g}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as d,Q as o,S as i,V as f,W as u,a as m,b as a}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:y},{i:b}])=>{function A(t){return t.portalItem?.type==="Web Scene"||t.referenceLayers.some(e=>e.type==="scene")}function C(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="beta")||!!t?.portalItem?.categories?.includes("/Categories/Status/Beta")}function S(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="preview")||!!t?.portalItem?.categories?.includes("/Categories/Status/Preview")}var Y=m`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-background);flex-direction:row;width:100%;transition:background-color .25s ease-in-out,border-color .25s ease-in-out;animation:.5s ease-in-out esri-fade-in;display:flex;position:relative}.item:hover{background-color:var(--calcite-color-foreground-3);border-color:var(--calcite-color-background-inverse)}.item:hover .item-title{color:var(--calcite-color-text-1)}.item:focus{outline:none}.is-error{opacity:var(--calcite-opacity-light);background-color:var(--calcite-color-transparent)!important;border-color:var(--calcite-color-transparent)!important;cursor:auto}.item-thumbnail{aspect-ratio:1.5;border-inline-end:1px solid var(--calcite-color-border-1);flex-shrink:0;width:120px;min-width:120px;transition:background-color .25s ease-in-out,border-color .25s ease-in-out}.item-title{color:var(--calcite-color-text-3);justify-content:flex-start;align-items:center;width:100%;height:100%;font-size:var(--calcite-font-size-sm);transition:color .25s ease-in-out,font-weight .25s ease-in-out;display:flex}.item-title span{text-align:start;text-overflow:ellipsis;word-wrap:break-word;word-break:break-word;hyphens:auto;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;width:100%;display:-webkit-box;overflow:hidden}.is-selected,.is-selected:hover,.is-selected:focus{cursor:auto;background-color:color-mix(in srgb,var(--calcite-color-brand-underline),70% transparent);border-color:var(--calcite-color-status-info)!important}.is-selected .item-title,.item.is-selected:hover .item-title,.item.is-selected:focus .item-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.item-content{flex-direction:column;gap:var(--calcite-spacing-md);min-width:0;padding-block:var(--calcite-spacing-base);padding-inline:var(--calcite-spacing-md);display:flex}.item-tags{flex-direction:row;gap:var(--calcite-spacing-base);display:flex}.item-tags calcite-chip{--calcite-font-size--2: var(--calcite-font-size--3);cursor:inherit}@supports (object-fit: cover){.item-thumbnail{object-fit:cover}}@container (width>=200px) and (width <= 300px){.item{align-items:center}.item:not(.is-selected,:hover){border-color:var(--calcite-color-transparent)}}@container (width>=200px) and (width <= 278px){.item-thumbnail{aspect-ratio:1;width:80px;min-width:80px;object-position:left}}@container (width<200px) or (width>=350px){.item{text-align:center;flex-flow:column wrap}.item:not(.is-selected,:hover){border-color:var(--calcite-color-border-1)}.item-thumbnail{border-block-end:1px solid var(--calcite-color-border-1);border-inline-end:none;width:100%;min-width:0;height:auto}.item-content{height:32px;padding-block:var(--calcite-spacing-xxs);padding-inline:var(--calcite-spacing-xs);position:relative}.item-tags{position:absolute;inset-block-end:45px;inset-inline-end:5px}}`,s=class extends d{constructor(){super(...arguments),this._itemState="loading",this._isActive=!1}static{this.properties={_itemState:16,_isActive:16,disabled:5,item:0,itemIndex:9,viewModel:0,messages:0}}static{this.styles=Y}loaded(){this.manager.onLifecycle(()=>[y(()=>this.item.state,e=>{this._itemState=e},{sync:!0}),y(()=>this.viewModel.activeBasemap,e=>{this._isActive=this.item.basemap.id===e?.id,this._isActive&&(b(this)?.focus(),this.el.scrollIntoView({block:"nearest"}))},{initial:!0,sync:!0})])}render(){let{item:e,itemIndex:n,viewModel:v,messages:x}=this;if(!e.basemap)return null;let w=e.basemap.thumbnailUrl||u("./assets/basemap-gallery/images/basemap-toggle-64.svg"),c=e.basemap.title,k=e.basemap.portalItem?.snippet,$=e.error?.message||k||c,{state:I,activeBasemapIndex:l}=this.viewModel,_=this.disabled||I==="disabled",r=l===n,B=r||l===-1&&n===0?0:-1,z={"is-selected":r,"is-error":e.state==="error"},p=`basemapgallery-item-${e.uid}`;return a`<div .ariaChecked=${r} .ariaDisabled=${_} aria-labelledby=${p??i} class=${o(g("item",z))} role=radio tabindex=${B??i} title=${$??i} @click=${()=>{e.state==="ready"&&(v.activeBasemap=e.basemap)}}><img alt class="item-thumbnail" src=${w??i}><div class="item-content"><div class="item-title"><span id=${p??i}>${c}</span></div>${A(e.basemap)?L(e.basemap,x):null}</div>${e.state!=="loading"?null:a`<calcite-scrim><span aria-hidden=true class=${o(h.loaderAnimation)} role=presentation></span></calcite-scrim>`}</div>`}};function L(t,e){return a`<div class="item-tags">${M(e)}${C(t)?j(e):null}${S(t)?D(e):null}</div>`}function M(t){return a`<calcite-chip scale=s .label=${t.tag3D}>${t.tag3D}</calcite-chip>`}function j(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagBeta}>${t.tagBeta}</calcite-chip>`}function D(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagPreview}>${t.tagPreview}</calcite-chip>`}f("arcgis-basemap-gallery-item",s);return s},"core/reactiveUtils",b)
|
package/dist/cdn/5PNAHYUT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./JD562WMM.js";import c from"./C2HB2U6P.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import{b}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as k,Q as $,R as w,S as l,V as _,a as A,b as a,n as x}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([z,P,C,L,{watch:S},,{d:f}])=>{function I(i){let t=i.toLowerCase();return t==="image/bmp"||t==="image/emf"||t==="image/exif"||t==="image/gif"||t==="image/x-icon"||t==="image/jpeg"||t==="image/png"||t==="image/tiff"||t==="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=A`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-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%}`,E=C.ofType(z),v=class extends k{constructor(){super(...arguments),this._attachmentLayer=null,this._supportsImageOrientation=window?.CSS?.supports("image-orientation","from-image"),this.hideSection=!1,this._attachmentInfos=new E,this.headingLevel=2,this.hidePreviewImageAttachmentName=!1,this.empty=!1}static{this.properties={effectiveDisplayType:16,getAttachmentsPromise:16,hideSection:16,_attachmentInfos:16,_hasContent:16,supportsResizeAttachments:16,attachmentKeywords:0,attachmentTypes:0,description:1,displayType:1,graphic:0,heading:1,messages:0,orderByFields:0,headingLevel:9,hidePreviewImageAttachmentName:5,empty:39}}static{this.styles=j}get _supportsTypeWildcard(){let{graphic:t}=this;if(!t)return!1;let e=f(t);return e?.loaded&&"capabilities"in e&&e.capabilities&&"attachment"in e.capabilities&&e.capabilities.attachment&&"supportsResize"in e.capabilities.attachment&&e.capabilities.attachment.supportsTypeWildcard||!1}get effectiveDisplayType(){let{displayType:t}=this;return!t||t==="auto"?this.supportsResizeAttachments?"preview":"list":t}get _hasContent(){return this._attachmentInfos.length>0||this.getAttachmentsPromise!=null}get supportsResizeAttachments(){let{graphic:t}=this;if(!t)return!1;let e=f(t);return e?.loaded&&"capabilities"in e&&e.capabilities&&"attachment"in e.capabilities&&e.capabilities.attachment&&"supportsResize"in e.capabilities.attachment&&e.capabilities.attachment.supportsResize||!1}loaded(){this.manager.onLifecycle(()=>[S(()=>this.graphic,()=>this.graphicChanged(),{initial:!0})])}async getAttachments(){let{_attachmentLayer:t,_attachmentInfos:e,orderByFields:n,attachmentTypes:c,attachmentKeywords:o,_supportsTypeWildcard:m}=this;if(!t||typeof t.queryAttachments!="function")throw new L("invalid-layer","getAttachments(): A valid layer is required.");let p=this.graphic?.getObjectId();if(typeof p!="number")throw new L("invalid-object-id","getAttachments(): Numeric object id is required");let u=n?.map(s=>`${s.field} ${s.order==="descending"?"DESC":"ASC"}`),r=new P({objectIds:[p],returnMetadata:!0,orderByFields:u,attachmentTypes:m?c?.filter(Boolean).map(s=>`${s}/*`):void 0,keywords:o}),h=[],d=t.queryAttachments(r).then(s=>s[p]||h).catch(()=>h);this.getAttachmentsPromise=d,this._setEmpty(!1);let g=await d;e.destroyAll(),g.length&&e.addMany(g),this.getAttachmentsPromise=null,this._setEmpty(!this._hasContent)}_setEmpty(t){x(()=>this.empty=t)}setAttachmentLayer(){let{graphic:t}=this,e=f(t);this._attachmentLayer=e?e.type==="scene"&&e.associatedLayer!=null?e.associatedLayer:e:null}graphicChanged(){if(!this.graphic){this._attachmentInfos.destroyAll(),this.getAttachmentsPromise=null,this._setEmpty(!0);return}this.setAttachmentLayer(),this.getAttachments().catch(()=>{this._attachmentInfos.destroyAll(),this.getAttachmentsPromise=null,this._setEmpty(!0)})}getCSSTransform(t){let{orientationInfo:e}=t;return!this._supportsImageOrientation&&e?[e.rotation?`rotate(${e.rotation}deg)`:"",e.mirrored?"scaleX(-1)":""].join(" "):""}render(){return this.empty?null:a`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`}renderAttachmentsList(t){return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel??""} interaction-mode=static selection-mode=none>${t.toArray().filter(Boolean).map(e=>this.renderAttachmentListItem(e))}</calcite-list>`}renderAttachmentsPreview(t){return a`<calcite-card-group .label=${this.messages?.componentLabel??""}>${this.getAttachmentsPromise?a`<calcite-card loading></calcite-card>`:t.toArray().filter(Boolean).map(e=>this.renderAttachmentPreviewItem(e))}</calcite-card-group>`}renderAttachmentsCarousel(t){let e=t.toArray().filter(Boolean);return a`<calcite-carousel .paginationDisabled=${e.length<2} .label=${this.messages?.componentLabel??""} pagination-position=top>${this.getAttachmentsPromise?a`<calcite-carousel-item .label=${this.messages?.componentLabel??""}><calcite-card loading></calcite-card></calcite-carousel-item>`:e.map(n=>a`<calcite-carousel-item .label=${n.name||this.messages?.noTitle||""}>${this.renderAttachmentPreviewItem(n,!0)}</calcite-carousel-item>`)}</calcite-carousel>`}renderAttachments(){let{effectiveDisplayType:t,_attachmentInfos:e}=this;return t==="carousel"?this.renderAttachmentsCarousel(e):t==="preview"?this.renderAttachmentsPreview(e):this.renderAttachmentsList(e)}renderAttachmentListItem(t){let{supportsResizeAttachments:e}=this,{contentType:n,name:c,url:o,size:m}=t,p=64,u=c||this.messages?.noTitle,r=T(n),h=this.getCSSTransform(t),d=h?{transform:h,"image-orientation":"none"}:{},g=e&&I(n),s=a`<a class=${$(b("item-link","item-link--list",{"item-link--list-icon":!g}))} slot=content-start href=${o??void 0??l} rel=noreferrer target=_blank>${g?a`<img alt=${c??l} src=${`${o}${o?.includes("?")?"&":"?"}w=${p}&s=${m}`} style=${w(d)} title=${c??l}>`:a`<calcite-icon .icon=${r}></calcite-icon>`}</a>`,y=a`<calcite-link slot=content .href=${o??void 0} rel=noreferrer target=_blank>${u}</calcite-link>`;return a`<calcite-list-item .label=${u}>${s}${y}</calcite-list-item>`}renderAttachmentPreviewItem(t,e=!1){let{supportsResizeAttachments:n}=this,{contentType:c,name:o,url:m,size:p}=t,u=225,r=o||this.messages?.noTitle,h=T(c),d=this.getCSSTransform(t),g=d?{transform:d,"image-orientation":"none"}:{},s=n&&I(c),y=a`<a class=${$(b("item-link","item-link--preview"))} slot=thumbnail href=${m??void 0??l} rel=noreferrer target=_blank aria-label=${r??l} title=${r??l}>${s?a`<img alt=${r??l} src=${`${m}${m?.includes("?")?"&":"?"}w=${u}&s=${p}`} style=${w(g)}>`:a`<calcite-icon scale=l .icon=${h}></calcite-icon>`}</a>`;return a`<calcite-card .label=${r}>${y}${(e||this.hidePreviewImageAttachmentName)&&s?null:a`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`}};_("arcgis-feature-attachments",v);return v},"rest/query/support/AttachmentInfo","rest/support/AttachmentQuery","core/Collection","core/Error","core/reactiveUtils",c,d)
|
package/dist/cdn/7AKMHKTT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./5IQQ6P2J.js";import{a as _}from"./TBSKBHHL.js";import{a as c}from"./TN5C3MSL.js";import{a as V}from"./I7GS3EKH.js";import e from"./4SLCQ6RS.js";import d from"./4FBTH6YD.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{M as n,N as o,O as l,Q as h,V as p,b as a,w as r}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([M,{watch:s},R,I,k,{c:u,d:g,e:d,f:y,g:f,h:b},{c:w,e:v},t,{a:C,b:E,c:P,d:A}])=>{var L=w(k,{}),x=w(I,{}),m=class extends l{constructor(){super(),this._attributionMode=null,this._containerRef=n(),this._mapRef=n(),this._uiController=new C(this),this._cameraProperties={},this.arcgisLoadError=P(this),this.arcgisViewReadyError=A(this),this._map=L(this),this.view=x(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),E(this),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[V,_]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(i){this._attributionMode=i,i!=="auto"&&(this.view.attributionMode=i)}get camera(){return this.view.camera}set camera(i){u(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new R(e):void 0}set cameraPosition(i){let e=b(this.view.camera?.position,i);e&&this._mutateCamera(D=>{D.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){if(d(i,this._center))return;this._center=y(i);let e=f(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(i,e){return this.view.fetchPopupFeatures(i,e)}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new M;i(e),this.camera=e}renderMain(){return a`<div class=${h(c.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(c.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",m);return m},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",b,d,e,f)
|
package/dist/cdn/DDSMWDPS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as ee}from"./TN5C3MSL.js";import{a as Z}from"./IZ46HAUJ.js";import{a as f}from"./POKO37D3.js";import g from"./CONE7FEI.js";import"./VJVKFKSG.js";import e from"./ILBDNJQP.js";import{a as X}from"./5JADSW57.js";import d from"./4SLCQ6RS.js";import c from"./4FBTH6YD.js";import b from"./KORK4WZ7.js";import{d as j,h as J}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{C as F,D as U,L as H,M as S,N as E,O as z,P as q,S as k,V as N,a as K,b as u,e as P,w as W}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:ge},ue,me,{watch:m,on:ve,whenOnce:ye},Ce,{getOrCreateMapValue:oe,createReactiveMap:be},fe,{property:h,subclass:Te},{ignoreAbortErrors:C},we,Se,,,,y,Y,{f:Q}])=>{var T=q({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/common-components/",hydratedAttribute:"hydrated"}),{customElement:Ie,getAssetPath:de,setAssetPath:pe}=T;T.t=void 0;T.o=void 0;T.c=void 0;T.r=void 0;var v={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};var Ee=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],_e=new Set(Ee);function te(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Me=K`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,Pe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},ke={selectionTools:{defaultPriority:v.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:v.High,groupKind:"actions"},createTools:{defaultPriority:v.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:v.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:v.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:v.Default,groupKind:"actions"}},Ae=500,Oe=1e3;function Le({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Ae,!0):p(t==null?0:Oe-(Date.now()-t),!1)},{sync:!0});return Z(()=>{d.remove(),s()})}var Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?$e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ge(e,t,s),s},a=class extends fe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new we,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Se({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Le({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ve(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Pe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ye(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)oe(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"freehand",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([Te("components.sketch.SketchComponentViewModel")],a);var A=class extends H{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==F.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return P}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),P}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||Q(()=>t(e),{timeout:16})})}},ie=U(A),Re=Y(i=>new Ce({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new me({text:"hello world"}),useLegacyCreateTools:!1})),O=class extends z{constructor(){super(),this.#t=new a,this.#o=S(),this.#s=S(),this._defaultGraphicsLayer=null,this._messages=X(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=be(),this.viewModel=Re(this),this.view=this.viewModel.view,this.activeTool=this.#t.activeTool,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=y(()=>this.viewModel,"create"),this.arcgisDelete=y(()=>this.viewModel,"delete"),this.arcgisDuplicate=y(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=J()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=W(),this.arcgisRedo=y(()=>this.viewModel,"redo"),this.arcgisUndo=y(()=>this.viewModel,"undo"),this.arcgisUpdate=y(()=>this.viewModel,"update"),j(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Me}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(_e.has(e)?e:ee.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new ue({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,view:p,viewModel:d}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${s} .directionMode=${d.valueOptions.directionMode} .labelsEnabled=${d.labelOptions.enabled} .tooltipsEnabled=${d.tooltipOptions.enabled} @arcgisPropertyChange=${l=>{l.stopPropagation();let{labelsEnabled:g,tooltipsEnabled:n,directionMode:w}=l.currentTarget,b=this.viewModel;switch(l.detail.name){case"labelsEnabled":b.labelOptions.enabled=g;break;case"directionMode":b.valueOptions.directionMode=w;break;case"tooltipsEnabled":b.tooltipOptions.enabled=n;break}}}></arcgis-sketch-tooltip-controls>${o?void 0:u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${p} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${d.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${l=>l.stopPropagation()}></arcgis-snapping-controls>`}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=ke[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=te(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:w,loading:b,tooltipKey:se,iconFlipRTL:L,onClick:G,refKey:$,textEnabled:R,renderAsAction:ne}){let{_messages:x,_refMap:le,layout:V}=this,_=te(n,x),M=_===void 0?n:w?ge(_,w):_,I=x?.[se]??M,D=$?oe(le,$,S):this.#s,B={afterCreate:t,afterRemoved:o,afterUpdate:s};return ne?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${L} id=${l??k} .kind=${g} .loading=${b} .labelText=${V==="horizontal"?M:""} .textEnabled=${R} .tooltipText=${V==="horizontal"&&R?"":I} @arcgisToolbarItemSelected=${G} ${ie(B)} ${E(D)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??k} .iconFlipRtl=${L} .labelText=${M} .tooltipText=${I} @arcgisItemSelected=${G} ${ie(B)} ${E(D)}></arcgis-toolbar-item>`}};N("arcgis-sketch",O);return O},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
package/dist/cdn/DOHO6T7Z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as L}from"./5L5UYV3H.js";import{c as S}from"./TN5C3MSL.js";import f from"./CONE7FEI.js";import"./VJVKFKSG.js";import e from"./ILBDNJQP.js";import{a as z}from"./5JADSW57.js";import d from"./4FBTH6YD.js";import c from"./KORK4WZ7.js";import{a as B,f as O}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as E,S as b,V as R,a as F,b as u,w as v,y as x}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:c,subclass:H},j,_,{ignoreAbortErrors:V},{watch:g,on:M,whenOnce:I},W,U,K,Q,q,J,X,Y,{fetchPopupFeaturesFromGraphics:T},,,,G])=>{var Z=F`:host{width:100%;height:100%;padding:var(--calcite-space-none);margin:var(--calcite-space-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset;--arcgis-presentation-slide-list-z-index: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{position:absolute;display:flex;width:100%;height:100%;justify-content:flex-end;padding-top:var(--calcite-space-lg);padding-inline-start:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-space-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation-container{display:flex;flex-direction:column;margin-inline-start:var(--calcite-space-lg);margin-block:auto calc(var(--calcite-space-lg) + var(--arcgis-internal-attribution-space-top));width:fit-content;height:100%}.navigation{width:fit-content;display:flex;align-items:center;background-color:var(--calcite-color-surface-2);box-shadow:var(--arcgis-internal-box-shadow);pointer-events:auto}.navigation-slide-list-container{position:relative;height:100%;min-height:0;margin-block-start:var(--calcite-space-lg)}.slide-list-action-container{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-space-base);font-size:var(--calcite-font-size-md)}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums;min-width:var(--calcite-spacing-md);text-align:center}.legend-container{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:fit-content;max-height:calc(100vh - 136px);overflow:hidden auto}.legend{background-color:var(--calcite-color-surface-2)}`,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,d=(i,e,t,s)=>{for(var n=s>1?void 0:s?te(e,t):e,a=i.length-1,r;a>=0;a--)(r=i[a])&&(n=(s?r(e,t,n):r(n))||n);return s&&n&&ee(e,t,n),n},l=class extends j{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),a=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(a,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(g(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(g(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new _}get slides(){return this.view?.map?.presentation?.slides??new _}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this.applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(i){if(!this.view?.analyses?.length)return;let e=this.view.analyses.find(s=>s.type==="slice"&&s.origin?.type==="web-scene");if(!e)return;let t=await this.view.whenAnalysisView(e);t&&(t.interactive=i)}getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async applySlide(i,e,t){if(this.view){let s=t?{signal:t?.signal}:{};await V(i.applyTo(this.view,{...s,animate:!e}))}}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this.getSlideBySlideId(i):void 0;e&&await this.applySlide(e)}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(M(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new _(i.added)),this._unsubscribeToSlideEvents(new _(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideCancel?.(i)}};d([c()],l.prototype,"_slideId",2);d([c()],l.prototype,"view",2);d([c()],l.prototype,"slideId",1);d([c()],l.prototype,"transitionActive",2);d([c()],l.prototype,"showLegend",2);d([c()],l.prototype,"keyboardNavigationEnabled",2);d([c()],l.prototype,"visibleSlides",1);d([c()],l.prototype,"slides",1);d([c()],l.prototype,"lastSlideSelected",1);d([c()],l.prototype,"firstSlideSelected",1);d([c()],l.prototype,"slideSelected",1);d([c()],l.prototype,"hasOnlyOneSlide",1);d([c()],l.prototype,"onApplySlideStart",2);d([c()],l.prototype,"onApplySlideComplete",2);d([c()],l.prototype,"onApplySlideCancel",2);d([c()],l.prototype,"getSlideIndexBySlideId",1);l=d([H("components.presentation.PresentationViewModel")],l);var $=class extends x{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;I(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(e){(!this.component.slidePopupDisabled||e)&&this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:a,sublayer:r}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!a)return{success:!1,features:s};let p=r??a;if(!p||!this._layerTypeSupportsCapturePopup(p))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,a,r,p),s&&this._featureHasBeenFilledWithAttributes(s)){let o=s[0];return this._setFallbackPopupTemplate(o,r,a),this._setFallbackGeometry(o,t?.location),{success:!0,features:s,popupInfo:t}}return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,a=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:a}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,a){let r=t.features?.getItemAt(t.selectedFeatureIndex);if(r?.id==null)return await Promise.resolve([]);let p=await e.whenLayerView(s);await I(()=>!p.updating);let o=this._tryGetBuildingComponentSublayerView(s,n,p)??p;await I(()=>!o.updating);let h=this._createFeatureGraphic(s,n,a,r.id),y=await T(o,[h]);return this._featureHasBeenFilledWithAttributes(y)||(await I(()=>!e.updating),y=await T(o,[h])),y}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(a=>a.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let a=this._getGlobalIdFieldNameFromLayer(s),r=n.type==="global-id"&&a?a:s.objectIdField,p=this._getGraphicOrigin(e,t),o=new W({attributes:{},layer:e,origin:p});return o.attributes[r]=n.value,o}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new Y(e);case"geojson":return new Q(e);case"scene":return new q(e);case"wfs":return new J(e);case"building-scene":return t?new X(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof U}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ie=i=>new $(i),m=Object.freeze({width:0,height:0}),w=new WeakMap,f=()=>({topCenter:{...m},topLeft:{...m},topRight:{...m},bottomCenter:{...m},bottomLeft:{...m},bottomRight:{...m}}),D=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),N=i=>{let e=w.get(i);return e||(e={observedGroups:new Map,observedSizes:f(),subscribers:new Set},w.set(i,e)),e},se=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,a=i?.bottomLeft.value,r=i?.bottomRight.value;return e&&t&&s&&n&&a&&r?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:a,bottomRight:r}:null},ne=(i,e)=>S.every(t=>i.get(t)===e[t]),ae=i=>{let e=D(i.observedSizes);i.subscribers.forEach(t=>t(e))},re=(i,e)=>{let t=w.get(i);if(!t)return;let s=!1;e.forEach(n=>{let a=S.find(y=>t.observedGroups.get(y)===n.target);if(!a)return;let{width:r,height:p}=n.contentRect,o={width:r,height:p},h=t.observedSizes[a];h.width===o.width&&h.height===o.height||(t.observedSizes[a]=o,s=!0)}),s&&ae(t)},A=(i,e)=>{let t=N(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{re(i,n)}));let s=se(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ne(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),S.forEach(n=>{let a=s[n];t.observedGroups.set(n,a),t.resizeObserver?.observe(a)}))},le=(i,e)=>{let t=N(i);return t.subscribers.add(e),e(D(t.observedSizes)),()=>{let s=w.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),w.delete(i)))}},P=class extends x{#e;#t;#i;constructor(e){super(e),this.exports=f()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#t=void 0,this.#e=void 0,this.exports=f()}hostLifecycle(){return[g(()=>this.#s(),e=>{if(this.#t!==e){if(this.#i?.(),this.#i=void 0,this.#t=e,this.#e=e?.slotGroupRefs,!e){this.exports=f();return}this.#i=le(e,t=>{this.#n(t)||(this.exports=t)}),A(e,this.#e)}},{sync:!0,initial:!0}),g(()=>this.#s()?.slotGroupRefs,e=>{this.#e=e,this.#t&&e&&A(this.#t,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#t||!this.#e||A(this.#t,this.#e)}#n(e){let t=this.exports??f();return S.every(s=>{let n=t[s],a=e[s];return n.width===a.width&&n.height===a.height})}},oe=B(P),de=G(l),C=class extends E{constructor(){super(...arguments),this._messages=z(),this._direction=O(),this.#e=de(this),this.#i=e=>{this.#e.captureArrowKeysForNavigation(e,this._direction)},this.#s=ie(this),this.#a=null,this.#l=e=>{this.#s.closePopup(),this.arcgisSlideApplyStart.emit({slide:e})},this.#o=e=>{this.#s.openPopup(e),this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyComplete.emit({slide:e})},this.#d=e=>{this.sliceAnalysisInteractive&&this.#e.setSliceAnalysisInteractive(!0),this.arcgisSlideApplyCancel.emit({slide:e})},this.#c=e=>{let t=e.detail?.selectedSlide;if(!t)return;this.#n?.abort();let s=new AbortController;this.#n=s;let n=Date.now(),a=this.#a!==null&&n-this.#a<300;if(this.#a=n,this.#e.applySlide(t,a,s),a){this._showSlideList=!1;return}setTimeout(()=>{s.signal.aborted||(this._showSlideList=!1,this.#e.applySlide(t,!1,s))},300)},this.#r=()=>{this._showSlideList=!1},this._showSlideList=!1,this.autoDestroyDisabled=!1,this.view=this.#e.view,this.visualScale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=!1,this.sliceAnalysisInteractive=!1,this.navigationHidden=!1,this.arcgisPopupFeatureNotFound=v(),this.arcgisPopupFeaturesRetrieved=v(),this.arcgisReady=v(),this.arcgisSlideApplyCancel=v(),this.arcgisSlideApplyComplete=v(),this.arcgisSlideApplyStart=v()}static{this.properties={_slotSizesController:16,_showSlideList:16,slideId:1,autoDestroyDisabled:5,view:0,visualScale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5,navigationHidden:5}}static{this.styles=Z}#e;#t;#i;#s;#n;#a;#l;#o;#d;#c;#r;#h;#p;get slideId(){return this.#e.slideId}set slideId(e){this.#e.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.#e.onApplySlideStart=this.#l,this.#e.onApplySlideComplete=this.#o,this.#e.onApplySlideCancel=this.#d,this.#m();let e=this;this.manager.onLifecycle(()=>[g(()=>this.slidePopupDisabled,t=>{if(this.slideId&&!t){let s=this.#e.getSlideBySlideId(this.slideId);s&&this.#s?.openPopup(s)}else t&&this.#s?.closePopup(!0)}),g(()=>this.sliceAnalysisInteractive,t=>{this.#e.setSliceAnalysisInteractive(t)},{initial:!0}),g(()=>e.referenceElement,t=>{this.#u(t)&&(this._slotSizesController=oe(this),this.#p=this.#g())},{once:!0,initial:!0}),{remove:()=>{document.removeEventListener("keydown",this.#i),this.#h?.removeEventListener("arcgisSlideListClose",this.#r),this.#t?.remove(),this.#p?.remove(),this.#n?.abort()}}])}#u(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}#g(){return g(()=>this._slotSizesController,e=>this.#v(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}#v(e,t,s,n){let a=this._direction==="ltr"?e?.width??0:t?.width??0,r=this._direction==="ltr"?t?.width??0:e?.width??0,p=Math.max(e?.height??0,t?.height??0),o=Math.max(s?.height??0,n?.height??0);a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-space-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-space-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=a<=Math.max(p,o)&&r<=Math.max(p,o);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${p}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${o}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${a}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${r}px`:"0")}#m(){this.#t=g(()=>this.keyboardNavigationEnabled,e=>{document.removeEventListener("keydown",this.#i),e&&document.addEventListener("keydown",this.#i)},{initial:!0})}render(){if(this.#e?.visibleSlides?.length===0)return u`<div></div>`;let e=this.#e.visibleSlides.find(a=>a.id===this.slideId),t=this.#y(),s=this.#S(e),n=this.#f();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}#y(){if(this.navigationHidden)return null;let e=this.#e.lastSlideSelected&&!this.#e.hasOnlyOneSlide,t=this.#w();return u`<div class="navigation-container"><div class="navigation-slide-list-container">${t}</div><div class="navigation"><div class="slide-list-action-container" id=${L}><calcite-action-bar expand-disabled layout=horizontal .scale=${this.visualScale==="l"?"m":"s"}><calcite-action .text=${this._messages.slideList??""} selection-appearance=highlight icon=list .scale=${this.visualScale==="l"?"m":"s"} .label=${this._messages.slideList} title=${this._messages.slideList??b} .active=${this._showSlideList} @click=${()=>this._showSlideList=!this._showSlideList}></calcite-action></calcite-action-bar><calcite-tooltip .referenceElement=${L} placement=bottom><span>${this._messages.slideList}</span></calcite-tooltip></div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .disabled=${this.#e.firstSlideSelected||!this.#e.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??b} @click=${()=>this.#e.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this.#b()}</div><calcite-button appearance=transparent icon-start=${e?"reset":"chevron-right"} icon-flip-rtl=start kind=neutral .scale=${this.visualScale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??b} @click=${()=>this.#e.navigateInPresentation(1)}></calcite-button></div></div>`}#b(){let e=this.#e.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.#e.visibleSlides.length.toString());return this.#e.slideSelected?u`<p role=banner aria-label=${t??b} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div>/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.#e.visibleSlides?.length} ${this._messages?.slides}</p>`}#S(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.#e.transitionActive}></arcgis-presentation-captions>`}#f(){return this.slideLegendDisabled||!this.#e.showLegend?null:u`<calcite-panel data-testid=presentation-legend class="legend-container" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.#e.showLegend=!1}><arcgis-legend class="legend" .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`}#w(){return this._showSlideList?u`<arcgis-presentation-slide-list .slides=${this.#e.visibleSlides} .slideId=${this.#e.slideId} .label=${this._messages.slideList} .visualScale=${this.visualScale} @arcgisSlideListItemSelected=${this.#c} @arcgisSlideListOutsideClick=${this.#r}></arcgis-presentation-slide-list>`:null}};R("arcgis-presentation",C);return C},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,c,d,e,f)
|
package/dist/cdn/IDE4IFH7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as k,d as z}from"./7N4V2IN6.js";import{a as y}from"./OCZ5FM6Y.js";import l from"./ILBDNJQP.js";import{a as b}from"./5JADSW57.js";import{a as s}from"./JD74LG7K.js";import j from"./4FBTH6YD.js";import i from"./KORK4WZ7.js";import{f as v,h as _}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import e from"./GNASFNLA.js";import"./QUZTFUWM.js";import{b as w}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as h,Q as c,R as f,S as d,V as u,a as g,b as a,w as m}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{when:R},D,,,,x])=>{var C=g`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,Y=x(D),l={small:200,default:280,wide:435},p=class extends h{constructor(){super(...arguments),this.messages=b({}),this.viewModel=Y(this),this._direction=v(),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=_()("activeBasemap","state"),this.arcgisReady=m()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=C}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[R(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let e=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),i=this.el;return i&&e.observe(i),{remove(){e?.disconnect()}}})()])}_getRoundRobinIndex(e,i){return(e+i)%i}_handleKeyDown(e){let{key:i}=e;if(!k(i))return;e.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,o=z(i,this._direction)?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),n=t.at(o);n?.state==="ready"&&(this.viewModel.activeBasemap=n.basemap)}render(){let e=this.source.state==="loading",i=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":e,[s.disabled]:i},o=this._width;r["layout-grid"]=o>=l.wide||o<=l.small,r["narrow-items"]=o<l.default;let n=e?a`<div class="loader"></div>`:null,M=e?null:t.length>0?a`<div aria-disabled=${this.disabled??d} aria-label=${this.label??d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map(($,B)=>a`<arcgis-basemap-gallery-item .disabled=${i} .item=${$} .itemIndex=${B} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:a`<div class=${c(s.empty)}>${y({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return a`<div class=${c(w("root",s.widget,s.panel,r))} style=${f({"--esri-basemap-gallery-small":`${l.small}px`})}>${[n,M]}</div>`}};u("arcgis-basemap-gallery",p);return p},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",e,i,j,l)
|
package/dist/cdn/IJTCIWOA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as d}from"./VJVKFKSG.js";import{a as b}from"./5JADSW57.js";import{h as p}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import{c as y}from"./XURWCCLX.js";import{O as g,S as r,V as v,a as u,b as o,w as h}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:A}])=>{var f=u`:host{min-width:var(--arcgis-internal-panel-width, 300px)}calcite-action-bar{width:100%}.selection-notice-container{padding:var(--calcite-spacing-md)}.selection-notice-list{margin-block:0;padding-inline-start:var(--calcite-spacing-lg)}.measurement-content{--arcgis-internal-padding: var(--calcite-space-md) var(--calcite-space-none);margin-block-end:var(--calcite-space-none)}.measurement-content,slot::slotted(*){width:100%}.footer{display:grid;grid-template-columns:1fr 2fr;gap:var(--calcite-spacing-md);width:100%}`,_=["arcgis-area-measurement-2d","arcgis-area-measurement-3d","arcgis-direct-line-measurement-3d","arcgis-distance-measurement-2d","arcgis-elevation-profile","arcgis-volume-measurement"],$=_.join(","),m=class extends g{constructor(){super(),this._messages=b({blocking:!0}),this.#e=!1,this.#t=new WeakMap,this._activeAnalysisHasInput=!1,this._measurements=[],this.autoDestroyDisabled=!1,this.autoStartDisabled=!1,this.closed=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showHeading=!1,this.arcgisClose=h(),this.arcgisPropertyChange=p()("activeAnalysis"),this.arcgisReady=h(),this.listen("arcgisPropertyChange",this.#h.bind(this)),this.listen("arcgisReady",this.#h.bind(this))}static{this.properties={_activeAnalysisHasInput:16,_activeAnalysisState:16,_measurements:16,activeAnalysis:1,autoDestroyDisabled:5,autoStartDisabled:5,closed:5,messageOverrides:0,showCloseButton:5,showCollapseButton:5,showHeading:5}}static{this.styles=f}#a;#e;#t;#s;#n;#i;get activeAnalysis(){return this.#a}set activeAnalysis(s){this.#s=typeof s=="string"?s:void 0,this.#l(typeof s=="string"?this._measurements.find(i=>i.localName===s):s??void 0)}async destroy(){await this.manager.destroy()}load(){this.manager.onLifecycle(()=>(this.#c(),()=>{this.#i=d(this.#i),this.#n=void 0}))}async#o(){await this.activeAnalysis?.clear()}#m(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}async#u({target:s}){let i=Number(s.selectedActions.at(0)?.dataset.measurementIndex),e=this._measurements[i];if(e){if(this.#r(e),this.autoStartDisabled||e.interactionDisabled)return;await e.start()}else await this.#o(),this.#r(void 0)}#h(){this._activeAnalysisState=this.activeAnalysis?this.activeAnalysis.state??"disabled":void 0,this.#c(),this.#d(),this.requestUpdate()}#g({currentTarget:s}){let i=y(s,$),e=this._measurements.filter(t=>!i.includes(t));for(let t of e){let n=this.#t.get(t);t.hidden=n?.hidden??!1,t.hideStartButton=n?.hideStartButton??!1,"hideClearButton"in t&&(t.hideClearButton=n?.hideClearButton??!1),"hideHeader"in t&&(t.hideHeader=n?.hideHeader??!1),this.#t.delete(t)}for(let t of i)this.#t.has(t)||(this.#t.set(t,{hidden:t.hidden,hideClearButton:"hideClearButton"in t?t.hideClearButton:void 0,hideStartButton:t.hideStartButton,hideHeader:"hideHeader"in t?t.hideHeader:void 0}),t.componentOnReady().then(()=>{this.isConnected&&t.isConnected&&this._measurements.includes(t)&&this.requestUpdate()})),t.hideStartButton=!0,"hideClearButton"in t&&(t.hideClearButton=!0),"hideHeader"in t&&(t.hideHeader=!0);this._measurements=i;let l;this.#s&&(l=i.find(t=>t.localName===this.#s));let c;!this.#s&&i.length===1&&(c=i[0]);let a;this.#s?a=l:this.#e&&i.length>1?a=void 0:this.activeAnalysis&&i.includes(this.activeAnalysis)?a=this.activeAnalysis:a=c,this.#l(a),this.#e=!!c}#r(s){this.#s=void 0,this.#e=!1,this.#l(s)}#l(s){let i=this.#a;this.#a=s,this.requestUpdate("activeAnalysis",i),this.#v()}#v(){this._activeAnalysisState=this.activeAnalysis?this.activeAnalysis.state??"disabled":void 0,this.#c(),this.#d()}#d(){for(let s of this._measurements)s.hidden=s!==this.activeAnalysis||(this.#t.get(s)?.hidden??!1)||s===this.activeAnalysis&&this._activeAnalysisState==="ready"}async#y(){await this.activeAnalysis?.start()}#c(){let s=this.activeAnalysis?.analysis;if(!(s===this.#n&&(s==null||this.#i))){if(this.#i=d(this.#i),this.#n=s,!s){this._activeAnalysisHasInput=!1;return}this.#i=A(()=>s.valid,i=>this._activeAnalysisHasInput=i,{initial:!0,sync:!0})}}render(){let{showCloseButton:s,showCollapseButton:i,showHeading:e}=this,l=this._activeAnalysisState==="disabled",c=this._measurements.length>1,a=this.activeAnalysis?.label||this._messages.componentLabel;return o`<calcite-panel .closed=${this.closed} .heading=${e?this._messages.componentLabel:void 0} .collapsible=${i} .closable=${s} @calcitePanelClose=${this.#m}><div .hidden=${!c}><calcite-action-bar expand-toggle-disabled layout=horizontal><calcite-action-group .label=${this._messages.toolbarLabel} @calciteActionGroupChange=${this.#u} selection-mode=single>${this._measurements.map((t,n)=>o`<calcite-action .active=${t===this.activeAnalysis} data-measurement-index=${n??r} .icon=${t.icon} .label=${t.label} .text=${t.label??""} title=${t.label??r}></calcite-action>`)}</calcite-action-group></calcite-action-bar></div><div class="measurement-container" .hidden=${!this.activeAnalysis||l}><calcite-block class="measurement-content" .expanded=${this.isConnected&&!!this.activeAnalysis&&!l} .heading=${a}><slot @slotchange=${this.#g}></slot></calcite-block></div>${this.activeAnalysis?o`<div class="footer" slot=footer><calcite-button appearance=transparent .disabled=${!this._activeAnalysisHasInput} kind=danger @click=${this.#o} width=full>${this._messages.clear}</calcite-button><calcite-button .disabled=${this.activeAnalysis.interactionDisabled||this._activeAnalysisState!=="ready"&&!this._activeAnalysisHasInput} @click=${this.#y} width=full>${this.activeAnalysis?.matches("arcgis-elevation-profile")?this._messages.newProfile:this._messages.newMeasurement}</calcite-button></div>`:null}</calcite-panel>`}};v("arcgis-exploratory-analysis",m);return m},"core/reactiveUtils")
|
package/dist/cdn/IXVJQIMH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import h from"./5IQQ6P2J.js";import{a as M}from"./TBSKBHHL.js";import{a as g}from"./TN5C3MSL.js";import{a as L}from"./I7GS3EKH.js";import e from"./CONE7FEI.js";import"./VJVKFKSG.js";import d from"./4SLCQ6RS.js";import b from"./4FBTH6YD.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{M as w,N as v,O as _,Q as m,V as f,b as p,w as c}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:n},Q,x,{fetchKnowledgeGraph:z},Z,{isAbortError:P},F,{d:V,e:I,f:A,g:E},{c:d,e:C},i,{b:u},{a:k,b:D,c:R,d:U}])=>{var G=d(x,{}),O=d(Q,{}),y=class extends _{constructor(){super(),this._attributionMode=null,this._containerRef=w(),this._mapRef=w(),this._uiController=new k(this),this._activeLoadAbortController=null,this.arcgisLoadError=R(this),this.arcgisViewReadyError=U(this),this._map=G(this),this._baseCypherQuery="",this._serviceUrl="",this._propItemId="",this.view=O(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.graphics=this.view.graphics,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.arcgisViewAnalysisViewCreate=i(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=i(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=i(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=c(),this.arcgisViewClick=i(()=>this.view,"click"),this.arcgisViewDoubleClick=i(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=i(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=i(()=>this.view,"drag"),this.arcgisViewHold=i(()=>this.view,"hold"),this.arcgisViewImmediateClick=i(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=i(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=i(()=>this.view,"key-down"),this.arcgisViewKeyUp=i(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=i(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=i(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=i(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=i(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=i(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=i(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=i(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=i(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=i(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=c(),this.arcgisViewVerticalTwoFingerDrag=i(()=>this.view,"vertical-two-finger-drag"),D(this),this.view.ui={components:[]}}static{this.properties={_map:16,_baseCypherQuery:16,_serviceUrl:16,_propItemId:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,focusAreas:0,graphics:0,hideAttribution:5,highlights:0,interacting:32,itemId:3,baseCypherQuery:3,serviceUrl:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,selectionManager:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,zoom:9,loadErrorSources:0}}static{this.styles=[L,M]}get aria(){return this.view?.aria}set aria(e){this.view&&(this.view.aria=e)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(e){this._attributionMode=e,e!=="auto"&&(this.view.attributionMode=e)}get center(){return this.view.center}set center(e){if(I(e,this._center))return;this._center=A(e);let t=E(e,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(e){this.extent?.equals(e)||(this.view.extent=e)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(e){this.map&&(this.map.focusAreas=e)}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(e){this.view.attributionVisible=!e}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(e){this._propItemId=e}get baseCypherQuery(){return this._baseCypherQuery}set baseCypherQuery(e){this._baseCypherQuery=e}get serviceUrl(){return this._serviceUrl}set serviceUrl(e){this._serviceUrl=e}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(e){this.view.scale=e}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(e){V(this.viewpoint,e)&&(this.view.viewpoint=e)}get zoom(){return this.view.zoom}set zoom(e){this.view.zoom=e}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(e,t){return this.view.fetchPopupFeatures(e,t)}async goTo(e,t){return await this.view.goTo(e,t)}async openPopup(e){this._uiController.openPopup(e)}toMap(e){return this.view.toMap(e)}toScreen(e,t){return this.view.toScreen(e,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(e,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>e?.()).catch(t)}async whenAnalysisView(e){return await this.view.whenAnalysisView(e)}async whenLayerView(e){return await this.view.whenLayerView(e)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}willUpdate(e){let t=()=>{this._activeLoadAbortController?.abort();let a=new AbortController;return this._activeLoadAbortController=a,a};if(e.has("_propItemId")||e.has("_serviceUrl")||e.has("_baseCypherQuery")){if(e.has("_propItemId")&&this._propItemId||e.has("_propItemId")&&!this._serviceUrl)t(),s.reCreateAccessor(this._map,this),s.setPortalItem(this._map,this._propItemId),s.setMap(this.view,this._map);else if(!this._propItemId)if(this._serviceUrl&&!this._baseCypherQuery){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{let h=new s.WebLinkChart,o=new s.LinkChartLayer({url:l.url});o.load({signal:a?.signal});try{u(a.signal),h.add(o),this._setLinkChartAndZoom(h)}catch(b){if(!P(b))throw b}})}else if(this._baseCypherQuery&&this._serviceUrl){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{s.WebLinkChart.fromCypherQuery(l,new Z({openCypherQuery:this._baseCypherQuery}),void 0,{signal:a?.signal}).then(async h=>{try{u(a.signal),this._setLinkChartAndZoom(h)}catch(o){if(!P(o))throw o}})})}else!this._serviceUrl&&e.has("_serviceUrl")&&(t(),s.setMap(this.view,null))}}loaded(){let e=this;e.el.childElem=this._mapRef.value,this.view.container??=e.el.childElem,s.setLocalPublicMap(this,this._map),this.manager.onLifecycle(()=>[n(()=>this.map,t=>{t&&s.setLocalPrivateMap(this,t)},{initial:!0,sync:!0}),n(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),n(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),n(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}_setLinkChartAndZoom(e){s.reCreateAccessor(this._map,this),s.setLocalPrivateMap(this,e),s.setMap(this.view,e),this._map&&this.view.when(()=>{e.diagramNodesExtent&&this.view.goTo(e.diagramNodesExtent)})}renderMain(){return p`<div class=${m(g.base)} ${v(this._mapRef)}></div>`}render(){return p`${this.renderMain()}<section class=${m(g.containerUI)} ${v(this._containerRef)}>${this._uiController.render()}</section>`}},s={fetchKnowledgeGraph:async r=>await z(r),WebLinkChart:x,LinkChartLayer:F,setMap:(r,e)=>{r.map=e},setLocalPrivateMap:(r,e)=>{r._map=e},setLocalPublicMap:(r,e)=>{r.map||=e},setPortalItem(r,e){r.portalItem={id:e}},reCreateAccessor:C};f("arcgis-link-chart",y);return{ArcgisLinkChart:y,exportsForTests:s}},"core/reactiveUtils","views/LinkChartView","WebLinkChart","rest/knowledgeGraphService","rest/knowledgeGraph/GraphQueryStreaming","core/promiseUtils","layers/LinkChartLayer",a,b,d,e,h)
|
package/dist/cdn/KWJAKUM4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import i from"./ILBDNJQP.js";import{a as _}from"./5JADSW57.js";import{a as k}from"./JD74LG7K.js";import e from"./4FBTH6YD.js";import c from"./KORK4WZ7.js";import{h as y}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import{b as u}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{M as d,N as g,O as w,Q as h,S as b,V as f,a as v,b as s,w as x}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:I,when:D,watch:H},P,{property:p,subclass:M},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,c=(a,e,t,i)=>{for(var n=i>1?void 0:i?L(e,t):e,o=a.length-1,l;o>=0;o--)(l=a[o])&&(n=(i?l(e,t,n):l(n))||n);return i&&n&&O(e,t,n),n},C=new EventTarget;function S(a,e,t){let i=!1,n=H(a,(o,l)=>{i||e(o,l)},t);return{remove(){n.remove()},pause(){i=!0},resume(){i=!1}}}var r=class extends P{constructor(a){super(a),this._viewpointHandle=null,this.addHandles(I(()=>C,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(a){this._set("autoCollapse",a),this._watchViewpoint()}set expanded(a){this._set("expanded",a),this.group&&a&&C.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(a)}get state(){return this.view?.ready?"ready":"disabled"}set view(a){this._get("view")!==a&&(this._set("view",a),a&&D(()=>a.ready,()=>{this.view===a&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(a){this._viewpointHandle&&(a?D(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let a="viewpoint";this.removeHandles(a),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let i=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(i,a),this._viewpointHandle=i}_collapse(){this.expanded=!1}};c([p({value:!1})],r.prototype,"autoCollapse",1);c([p({value:!1})],r.prototype,"expanded",1);c([p()],r.prototype,"group",2);c([p({readOnly:!0})],r.prototype,"state",1);c([p({value:null})],r.prototype,"view",1);r=c([M("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none;--arcgis-internal-expand-action-background-color: var( --calcite-action-background-color, var(--calcite-color-foreground-1) );--arcgis-internal-expand-action-background-color-hover: var( --calcite-action-background-color-hover, var(--calcite-color-foreground-2) );--arcgis-internal-expand-action-background-color-press: var( --calcite-action-background-color-press, var(--calcite-color-foreground-3) )}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;--calcite-action-corner-radius: 0}.action{--calcite-action-background-color: var(--arcgis-internal-expand-action-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-expand-action-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-expand-action-background-color-press);cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,E="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=y()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:i,expandTooltip:n}=this;return(e?i||t.collapse:n||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??E}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,expanded:i,label:n,topLayerDisabled:o}=this;return s`<div class=${h(u("root",k.widget))}>${this._renderToggle()}${e?s`<calcite-sheet class="sheet" height=l .label=${n??""} .topLayerDisabled=${o} @keydown=${this._handleKeyDown} .open=${i} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!i} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?s`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${n??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${i} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${o} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?s`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:i,collapseIcon:n}=this,o=e?n:i;return s`<calcite-action class=${h(u("action","icon",{"icon-flip":o===E||o===T}))} @click=${this.toggle} .text=${t} title=${t??b} .icon=${o} .scale=${this.visualScale} ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return s`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return s`<div class="content-container"><slot></slot></div>`}};f("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
|