@arcgis/map-components 5.2.0-next.5 → 5.2.0-next.6
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/5DNVHLO6.js +2 -0
- package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
- package/dist/cdn/{AOC4VUP6.js → 6OOQ7GIC.js} +1 -1
- package/dist/cdn/ABPHGXQN.js +2 -0
- package/dist/cdn/CZXCSL3K.js +2 -0
- package/dist/cdn/L34RL7Y3.js +2 -0
- package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-daylight/customElement.js +34 -27
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
- package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +16 -16
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-version-management/customElement.js +21 -20
- package/dist/components/arcgis-version-management/index.js +1 -0
- 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 +14 -0
- package/dist/loader.js +2 -0
- package/dist/types/lumina.d.ts +14 -0
- package/dist/types/preact.d.ts +16 -0
- package/dist/types/react.d.ts +18 -0
- package/dist/types/stencil.d.ts +14 -0
- package/package.json +5 -5
- package/dist/cdn/IBTOXDST.js +0 -2
- package/dist/cdn/YJCBT5VK.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ import type { ArcgisFeature } from "./components/arcgis-feature/customElement.js
|
|
|
47
47
|
import type { ArcgisFeatureForm } from "./components/arcgis-feature-form/customElement.js";
|
|
48
48
|
import type { ArcgisFeatureNext } from "./components/arcgis-feature-next/customElement.js";
|
|
49
49
|
import type { ArcgisFeatureTable } from "./components/arcgis-feature-table/customElement.js";
|
|
50
|
+
import type { ArcgisFeatureTemplates } from "./components/arcgis-feature-templates/customElement.js";
|
|
51
|
+
import type { ArcgisTemplateImage } from "./components/arcgis-template-image/customElement.js";
|
|
50
52
|
import type { ArcgisFeatureTemplatesLegacy } from "./components/arcgis-feature-templates-legacy/customElement.js";
|
|
51
53
|
import type { ArcgisFeatures } from "./components/arcgis-features/customElement.js";
|
|
52
54
|
import type { ArcgisFeaturesNext } from "./components/arcgis-features-next/customElement.js";
|
|
@@ -246,6 +248,11 @@ export interface ArcgisFeatureTableCustomEvent<T> extends CustomEvent<T> {
|
|
|
246
248
|
target: ArcgisFeatureTable;
|
|
247
249
|
currentTarget: ArcgisFeatureTable;
|
|
248
250
|
}
|
|
251
|
+
export interface ArcgisFeatureTemplatesCustomEvent<T> extends CustomEvent<T> {
|
|
252
|
+
detail: T;
|
|
253
|
+
target: ArcgisFeatureTemplates;
|
|
254
|
+
currentTarget: ArcgisFeatureTemplates;
|
|
255
|
+
}
|
|
249
256
|
export interface ArcgisFeatureTemplatesLegacyCustomEvent<T> extends CustomEvent<T> {
|
|
250
257
|
detail: T;
|
|
251
258
|
target: ArcgisFeatureTemplatesLegacy;
|
|
@@ -648,6 +655,8 @@ declare global {
|
|
|
648
655
|
"arcgis-feature-form": ArcgisFeatureForm;
|
|
649
656
|
"arcgis-feature-next": ArcgisFeatureNext;
|
|
650
657
|
"arcgis-feature-table": ArcgisFeatureTable;
|
|
658
|
+
"arcgis-feature-templates": ArcgisFeatureTemplates;
|
|
659
|
+
"arcgis-template-image": ArcgisTemplateImage;
|
|
651
660
|
"arcgis-feature-templates-legacy": ArcgisFeatureTemplatesLegacy;
|
|
652
661
|
"arcgis-features": ArcgisFeatures;
|
|
653
662
|
"arcgis-features-next": ArcgisFeaturesNext;
|
|
@@ -801,6 +810,11 @@ declare global {
|
|
|
801
810
|
type HTMLArcgisFeatureTableElementEventMap = ArcgisFeatureTable["@eventTypes"];
|
|
802
811
|
type HTMLArcgisFeatureTableElement = ArcgisFeatureTable;
|
|
803
812
|
|
|
813
|
+
type HTMLArcgisFeatureTemplatesElementEventMap = ArcgisFeatureTemplates["@eventTypes"];
|
|
814
|
+
type HTMLArcgisFeatureTemplatesElement = ArcgisFeatureTemplates;
|
|
815
|
+
|
|
816
|
+
type HTMLArcgisTemplateImageElement = ArcgisTemplateImage;
|
|
817
|
+
|
|
804
818
|
type HTMLArcgisFeatureTemplatesLegacyElementEventMap = ArcgisFeatureTemplatesLegacy["@eventTypes"];
|
|
805
819
|
type HTMLArcgisFeatureTemplatesLegacyElement = ArcgisFeatureTemplatesLegacy;
|
|
806
820
|
|
package/dist/loader.js
CHANGED
|
@@ -42,6 +42,8 @@ const s = t(e, {
|
|
|
42
42
|
"arcgis-feature-next": [() => import("./components/arcgis-feature-next/customElement.js"), "autoDestroyDisabled,chartAnimationDisabled,defaultPopupTemplateEnabled,flowItems:,flowType,graphic:,heading:,headingLevel,hideAttachmentsContent,hideContent,hideCustomContent,hideExpressionContent,hideFieldsContent,hideHeading,hideLastEditedInfo,hideMediaContent,hideTextContent,icon,isFeatureFromTable:,label,location:,map:,messageOverrides:,messages:,referenceElement,showRelationshipContent,showUtilityNetworkContent,spatialReference:,state:,timeZone,view:,viewModel:;destroy,updateGeometry;nextMedia,previousMedia,setActiveMedia"],
|
|
43
43
|
"arcgis-feature-relationship": [() => import("./components/arcgis-feature-relationship/customElement.js"), "activeCategory:,allItemsDescription:,autoDestroyDisabled,description,displayCount,featurePage,featuresPerPage,flowItems:,flowType,graphic:,heading,headingLevel,hideDescription,hideHeading,label,layer:,map:,messages:,orderByFields:,relationshipId,showAllEnabled,spatialReference:,timeZone,useFeatureNextFlowItem,values:,view:;destroy"],
|
|
44
44
|
"arcgis-feature-table": [() => import("./components/arcgis-feature-table/customElement.js"), "actionColumn:,actionColumnConfig:,activeFilters:,activeSortOrders:,allColumns:,allRelatedTablesVisible:,allVisibleColumns:,attachmentsColumns:,attachmentsEnabled,attachmentsViewOptions:,attributeTableTemplate:,autoDestroyDisabled,autoRefreshDisabled,autoSaveDisabled,canAddRelatedFeature:,closed,collapsed,columnPerformanceModeDisabled,columnReorderingDisabled,columns:,definitionExpression,description,disabled,editingEnabled,effectiveSize:,fieldColumns:,filterByLayerScaleRange,filterBySelectionEnabled,filterByViewExtent,filterGeometry:,groupColumns:,hasContingentValues:,hasInvalidPendingEdits:,hasPendingEdits:,hiddenFields:,hideColumnDescriptions,hideColumnMenuItemsSortAscending,hideColumnMenuItemsSortDescending,hideColumnMenus,hideColumnVisibilityMenu,hideColumnVisibilityMenuItemsFilter,hideColumnVisibilityMenuItemsHeader,hideColumnVisibilityMenuItemsToggleAll,hideHeader,hideLayerDropdownIcons,hideMenu,hideMenuItemsClearSelection,hideMenuItemsDeleteSelection,hideMenuItemsExportSelectionToCsv,hideMenuItemsRefreshData,hideMenuItemsSelectedRecordsShowAllToggle,hideMenuItemsSelectedRecordsShowSelectedToggle,hideMenuItemsToggleColumns,hideMenuItemsZoomToSelection,hideProgress,hideSelectionColumn,hideTooltips,highlightDisabled,highlightIds:,icon,initialSize,isQueryingOrSyncing:,isSyncingAttachments:,label,layer:,layerId,layerItemId,layers:,layerUrl,layerView:,mapLayerId,maxSize,menuConfig:,multipleSelectionDisabled,multipleSortEnabled,multipleSortPriority,navigationScale,noDataMessage,objectIds:,outFields:,pageCount:,pageIndex,pageSize,paginationEnabled,referenceElement,relatedRecordsEnabled,relatedTable:,relatedTables:,relationship:,relationshipColumns:,returnGeometryEnabled,returnMEnabled,returnZEnabled,rowHighlightIds:,selectionManager:,showClose,showCollapse,showLayerDropdown,size:,state:,supportsAddAttachments:,supportsAttachments:,supportsDeleteAttachments:,supportsResizeAttachments:,supportsUpdateAttachments:,syncTemplateOnChangesDisabled,syncViewSelection,tableController:,tableDisabled,tableParent:,tableTemplate:,tableTitle,timeExtent:,timeZone,view:,visibleColumns:;deleteSelection,destroy,discardPendingEdits,exportSelectionToCSV,findColumn,getFeatureStoreItemByObjectId,goToPage,hideColumn,nextPage,previousPage,refresh,refreshCellContent,savePendingEdits,scrollToBottom,scrollToIndex,scrollToLeft,scrollToRow,scrollToTop,showAllColumns,showColumn,sortColumn,toggleColumnVisibility,zoomToSelection;addPendingEdits"],
|
|
45
|
+
"arcgis-feature-templates": [() => import("./components/arcgis-feature-templates/customElement.js"), "_messages:,applicationDisabledFunction:,applicationFilterFunction:,applicationTemplates:,autoDestroyDisabled,disabled,disableTemplatesMode,display,effectiveTemplates:,excludeTables,favorites:,favoritesEnabled,favoritesFilterText,filterText,groupBy,groupByFunction:,hideTemplateDescription,hideTemplatesMode,layers:,recentFilterText,recentlyUsed:,recentlyUsedEnabled,referenceElement,restoreFavorites:,restoreRecentlyUsed:,sectionSortBy,sectionSortByFunction:,selectedTemplate:,selectedTemplateId,sharedTemplatesDisabled,showCollapseButton,showFilter,templateSortBy,templateSortByFunction:,updating:,view:;destroy"],
|
|
46
|
+
"arcgis-template-image": [() => import("./components/arcgis-template-image/customElement.js"), "template:"],
|
|
45
47
|
"arcgis-feature-templates-legacy": [() => import("./components/arcgis-feature-templates-legacy/customElement.js"), "autoDestroyDisabled,disabledItemFunction:,enableListScroll,filterFunction:,filterText,groupBy,headingLevel,hideFilter,icon,items:,label,layers:,referenceElement,selectedItem:,selectionMode,state:,view:;destroy;select"],
|
|
46
48
|
"arcgis-feature-utility-network-association-list": [() => import("./components/arcgis-feature-utility-network-association-list/customElement.js"), "associatedFeatureCount:,associationViewModels:,autoDestroyDisabled,currentFeaturePage,description,displayCount,endIndex:,featuresPerPage,flowItems:,flowType,heading,map:,maxFeatureCount,messages:,parentFeatureViewModel:,referenceElement,selectedLayer:,showAllEnabled,spatialReference:,state,timeZone,tooltipReferenceMap:,useFeatureNextFlowItem,view:;destroy"],
|
|
47
49
|
"arcgis-feature-utility-network-associations": [() => import("./components/arcgis-feature-utility-network-associations/customElement.js"), "associationTypes:,autoDestroyDisabled,description,flowItems:,flowType,graphic:,heading,headingLevel,layer:,map:,messages:,parentFeatureViewModel:,referenceElement,source,spatialReference:,timeZone,useFeatureNextFlowItem,view:;destroy"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import type { ArcgisFeature } from "../components/arcgis-feature/customElement.j
|
|
|
22
22
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
23
23
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
24
24
|
import type { ArcgisFeatureTable } from "../components/arcgis-feature-table/customElement.js";
|
|
25
|
+
import type { ArcgisFeatureTemplates } from "../components/arcgis-feature-templates/customElement.js";
|
|
26
|
+
import type { ArcgisTemplateImage } from "../components/arcgis-template-image/customElement.js";
|
|
25
27
|
import type { ArcgisFeatureTemplatesLegacy } from "../components/arcgis-feature-templates-legacy/customElement.js";
|
|
26
28
|
import type { ArcgisFeatures } from "../components/arcgis-features/customElement.js";
|
|
27
29
|
import type { ArcgisFeaturesNext } from "../components/arcgis-features-next/customElement.js";
|
|
@@ -274,6 +276,16 @@ interface LuminaArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "act
|
|
|
274
276
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
275
277
|
}
|
|
276
278
|
|
|
279
|
+
interface LuminaArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, h.JSX.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
280
|
+
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
281
|
+
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
282
|
+
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
|
283
|
+
onarcgisTemplatesChanged?: EventHandler<ArcgisFeatureTemplates["arcgisTemplatesChanged"]>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface LuminaArcgisTemplateImage extends Partial<Pick<ArcgisTemplateImage, "template">>, h.JSX.HTMLAttributes<ArcgisTemplateImage> {
|
|
287
|
+
}
|
|
288
|
+
|
|
277
289
|
interface LuminaArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureTemplatesLegacy, "autoDestroyDisabled" | "disabledItemFunction" | "enableListScroll" | "filterFunction" | "filterText" | "groupBy" | "headingLevel" | "hideFilter" | "label" | "layers" | "referenceElement" | "selectionMode" | "view">>, ArcgisFeatureTemplatesLegacySetterTypes, h.JSX.HTMLAttributes<ArcgisFeatureTemplatesLegacy> {
|
|
278
290
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisPropertyChange"]>;
|
|
279
291
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisReady"]>;
|
|
@@ -843,6 +855,8 @@ declare module "@arcgis/lumina" {
|
|
|
843
855
|
"arcgis-feature-form": LuminaArcgisFeatureForm;
|
|
844
856
|
"arcgis-feature-next": LuminaArcgisFeatureNext;
|
|
845
857
|
"arcgis-feature-table": LuminaArcgisFeatureTable;
|
|
858
|
+
"arcgis-feature-templates": LuminaArcgisFeatureTemplates;
|
|
859
|
+
"arcgis-template-image": LuminaArcgisTemplateImage;
|
|
846
860
|
"arcgis-feature-templates-legacy": LuminaArcgisFeatureTemplatesLegacy;
|
|
847
861
|
"arcgis-features": LuminaArcgisFeatures;
|
|
848
862
|
"arcgis-features-next": LuminaArcgisFeaturesNext;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import type { ArcgisFeature } from "../components/arcgis-feature/customElement.j
|
|
|
22
22
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
23
23
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
24
24
|
import type { ArcgisFeatureTable } from "../components/arcgis-feature-table/customElement.js";
|
|
25
|
+
import type { ArcgisFeatureTemplates } from "../components/arcgis-feature-templates/customElement.js";
|
|
26
|
+
import type { ArcgisTemplateImage } from "../components/arcgis-template-image/customElement.js";
|
|
25
27
|
import type { ArcgisFeatureTemplatesLegacy } from "../components/arcgis-feature-templates-legacy/customElement.js";
|
|
26
28
|
import type { ArcgisFeatures } from "../components/arcgis-features/customElement.js";
|
|
27
29
|
import type { ArcgisFeaturesNext } from "../components/arcgis-features-next/customElement.js";
|
|
@@ -275,6 +277,16 @@ interface PreactArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "act
|
|
|
275
277
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
276
278
|
}
|
|
277
279
|
|
|
280
|
+
interface PreactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLAttributes<ArcgisFeatureTemplates> {
|
|
281
|
+
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
282
|
+
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
283
|
+
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
|
284
|
+
onarcgisTemplatesChanged?: EventHandler<ArcgisFeatureTemplates["arcgisTemplatesChanged"]>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface PreactArcgisTemplateImage extends Partial<Pick<ArcgisTemplateImage, "template">>, HTMLAttributes<ArcgisTemplateImage> {
|
|
288
|
+
}
|
|
289
|
+
|
|
278
290
|
interface PreactArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureTemplatesLegacy, "autoDestroyDisabled" | "disabledItemFunction" | "enableListScroll" | "filterFunction" | "filterText" | "groupBy" | "headingLevel" | "hideFilter" | "label" | "layers" | "referenceElement" | "selectionMode" | "view">>, ArcgisFeatureTemplatesLegacySetterTypes, HTMLAttributes<ArcgisFeatureTemplatesLegacy> {
|
|
279
291
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisPropertyChange"]>;
|
|
280
292
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisReady"]>;
|
|
@@ -844,6 +856,8 @@ declare module 'preact' {
|
|
|
844
856
|
"arcgis-feature-form": PreactArcgisFeatureForm;
|
|
845
857
|
"arcgis-feature-next": PreactArcgisFeatureNext;
|
|
846
858
|
"arcgis-feature-table": PreactArcgisFeatureTable;
|
|
859
|
+
"arcgis-feature-templates": PreactArcgisFeatureTemplates;
|
|
860
|
+
"arcgis-template-image": PreactArcgisTemplateImage;
|
|
847
861
|
"arcgis-feature-templates-legacy": PreactArcgisFeatureTemplatesLegacy;
|
|
848
862
|
"arcgis-features": PreactArcgisFeatures;
|
|
849
863
|
"arcgis-features-next": PreactArcgisFeaturesNext;
|
|
@@ -952,6 +966,8 @@ declare module 'preact' {
|
|
|
952
966
|
"arcgis-feature-form": PreactArcgisFeatureForm;
|
|
953
967
|
"arcgis-feature-next": PreactArcgisFeatureNext;
|
|
954
968
|
"arcgis-feature-table": PreactArcgisFeatureTable;
|
|
969
|
+
"arcgis-feature-templates": PreactArcgisFeatureTemplates;
|
|
970
|
+
"arcgis-template-image": PreactArcgisTemplateImage;
|
|
955
971
|
"arcgis-feature-templates-legacy": PreactArcgisFeatureTemplatesLegacy;
|
|
956
972
|
"arcgis-features": PreactArcgisFeatures;
|
|
957
973
|
"arcgis-features-next": PreactArcgisFeaturesNext;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import type { ArcgisFeature } from "../components/arcgis-feature/customElement.j
|
|
|
22
22
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
23
23
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
24
24
|
import type { ArcgisFeatureTable } from "../components/arcgis-feature-table/customElement.js";
|
|
25
|
+
import type { ArcgisFeatureTemplates } from "../components/arcgis-feature-templates/customElement.js";
|
|
26
|
+
import type { ArcgisTemplateImage } from "../components/arcgis-template-image/customElement.js";
|
|
25
27
|
import type { ArcgisFeatureTemplatesLegacy } from "../components/arcgis-feature-templates-legacy/customElement.js";
|
|
26
28
|
import type { ArcgisFeatures } from "../components/arcgis-features/customElement.js";
|
|
27
29
|
import type { ArcgisFeaturesNext } from "../components/arcgis-features-next/customElement.js";
|
|
@@ -275,6 +277,16 @@ interface ReactArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "acti
|
|
|
275
277
|
onarcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
276
278
|
}
|
|
277
279
|
|
|
280
|
+
interface ReactArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, HTMLProps<ArcgisFeatureTemplates> {
|
|
281
|
+
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
282
|
+
onarcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
283
|
+
onarcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
|
284
|
+
onarcgisTemplatesChanged?: EventHandler<ArcgisFeatureTemplates["arcgisTemplatesChanged"]>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface ReactArcgisTemplateImage extends Partial<Pick<ArcgisTemplateImage, "template">>, HTMLProps<ArcgisTemplateImage> {
|
|
288
|
+
}
|
|
289
|
+
|
|
278
290
|
interface ReactArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureTemplatesLegacy, "autoDestroyDisabled" | "disabledItemFunction" | "enableListScroll" | "filterFunction" | "filterText" | "groupBy" | "headingLevel" | "hideFilter" | "label" | "layers" | "referenceElement" | "selectionMode" | "view">>, ArcgisFeatureTemplatesLegacySetterTypes, HTMLProps<ArcgisFeatureTemplatesLegacy> {
|
|
279
291
|
onarcgisPropertyChange?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisPropertyChange"]>;
|
|
280
292
|
onarcgisReady?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisReady"]>;
|
|
@@ -844,6 +856,8 @@ declare module "react" {
|
|
|
844
856
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
845
857
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
|
846
858
|
"arcgis-feature-table": ReactArcgisFeatureTable;
|
|
859
|
+
"arcgis-feature-templates": ReactArcgisFeatureTemplates;
|
|
860
|
+
"arcgis-template-image": ReactArcgisTemplateImage;
|
|
847
861
|
"arcgis-feature-templates-legacy": ReactArcgisFeatureTemplatesLegacy;
|
|
848
862
|
"arcgis-features": ReactArcgisFeatures;
|
|
849
863
|
"arcgis-features-next": ReactArcgisFeaturesNext;
|
|
@@ -954,6 +968,8 @@ declare module "react/jsx-runtime" {
|
|
|
954
968
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
955
969
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
|
956
970
|
"arcgis-feature-table": ReactArcgisFeatureTable;
|
|
971
|
+
"arcgis-feature-templates": ReactArcgisFeatureTemplates;
|
|
972
|
+
"arcgis-template-image": ReactArcgisTemplateImage;
|
|
957
973
|
"arcgis-feature-templates-legacy": ReactArcgisFeatureTemplatesLegacy;
|
|
958
974
|
"arcgis-features": ReactArcgisFeatures;
|
|
959
975
|
"arcgis-features-next": ReactArcgisFeaturesNext;
|
|
@@ -1064,6 +1080,8 @@ declare module "react/jsx-dev-runtime" {
|
|
|
1064
1080
|
"arcgis-feature-form": ReactArcgisFeatureForm;
|
|
1065
1081
|
"arcgis-feature-next": ReactArcgisFeatureNext;
|
|
1066
1082
|
"arcgis-feature-table": ReactArcgisFeatureTable;
|
|
1083
|
+
"arcgis-feature-templates": ReactArcgisFeatureTemplates;
|
|
1084
|
+
"arcgis-template-image": ReactArcgisTemplateImage;
|
|
1067
1085
|
"arcgis-feature-templates-legacy": ReactArcgisFeatureTemplatesLegacy;
|
|
1068
1086
|
"arcgis-features": ReactArcgisFeatures;
|
|
1069
1087
|
"arcgis-features-next": ReactArcgisFeaturesNext;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import type { ArcgisFeature } from "../components/arcgis-feature/customElement.j
|
|
|
22
22
|
import type { ArcgisFeatureForm } from "../components/arcgis-feature-form/customElement.js";
|
|
23
23
|
import type { ArcgisFeatureNext } from "../components/arcgis-feature-next/customElement.js";
|
|
24
24
|
import type { ArcgisFeatureTable } from "../components/arcgis-feature-table/customElement.js";
|
|
25
|
+
import type { ArcgisFeatureTemplates } from "../components/arcgis-feature-templates/customElement.js";
|
|
26
|
+
import type { ArcgisTemplateImage } from "../components/arcgis-template-image/customElement.js";
|
|
25
27
|
import type { ArcgisFeatureTemplatesLegacy } from "../components/arcgis-feature-templates-legacy/customElement.js";
|
|
26
28
|
import type { ArcgisFeatures } from "../components/arcgis-features/customElement.js";
|
|
27
29
|
import type { ArcgisFeaturesNext } from "../components/arcgis-features-next/customElement.js";
|
|
@@ -275,6 +277,16 @@ interface StencilArcgisFeatureTable extends Partial<Pick<ArcgisFeatureTable, "ac
|
|
|
275
277
|
onArcgisSelectionChange?: EventHandler<ArcgisFeatureTable["arcgisSelectionChange"]>;
|
|
276
278
|
}
|
|
277
279
|
|
|
280
|
+
interface StencilArcgisFeatureTemplates extends Partial<Pick<ArcgisFeatureTemplates, "applicationDisabledFunction" | "applicationFilterFunction" | "applicationTemplates" | "autoDestroyDisabled" | "disabled" | "disableTemplatesMode" | "display" | "excludeTables" | "favoritesEnabled" | "favoritesFilterText" | "filterText" | "groupBy" | "groupByFunction" | "hideTemplateDescription" | "hideTemplatesMode" | "layers" | "recentFilterText" | "recentlyUsedEnabled" | "referenceElement" | "restoreFavorites" | "restoreRecentlyUsed" | "sectionSortBy" | "sectionSortByFunction" | "selectedTemplateId" | "sharedTemplatesDisabled" | "showCollapseButton" | "showFilter" | "templateSortBy" | "templateSortByFunction" | "view">>, StencilJsx.HTMLAttributes<ArcgisFeatureTemplates> {
|
|
281
|
+
onArcgisPropertyChange?: EventHandler<ArcgisFeatureTemplates["arcgisPropertyChange"]>;
|
|
282
|
+
onArcgisReady?: EventHandler<ArcgisFeatureTemplates["arcgisReady"]>;
|
|
283
|
+
onArcgisSelectTemplate?: EventHandler<ArcgisFeatureTemplates["arcgisSelectTemplate"]>;
|
|
284
|
+
onArcgisTemplatesChanged?: EventHandler<ArcgisFeatureTemplates["arcgisTemplatesChanged"]>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface StencilArcgisTemplateImage extends Partial<Pick<ArcgisTemplateImage, "template">>, StencilJsx.HTMLAttributes<ArcgisTemplateImage> {
|
|
288
|
+
}
|
|
289
|
+
|
|
278
290
|
interface StencilArcgisFeatureTemplatesLegacy extends Partial<Pick<ArcgisFeatureTemplatesLegacy, "autoDestroyDisabled" | "disabledItemFunction" | "enableListScroll" | "filterFunction" | "filterText" | "groupBy" | "headingLevel" | "hideFilter" | "label" | "layers" | "referenceElement" | "selectionMode" | "view">>, ArcgisFeatureTemplatesLegacySetterTypes, StencilJsx.HTMLAttributes<ArcgisFeatureTemplatesLegacy> {
|
|
279
291
|
onArcgisPropertyChange?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisPropertyChange"]>;
|
|
280
292
|
onArcgisReady?: EventHandler<ArcgisFeatureTemplatesLegacy["arcgisReady"]>;
|
|
@@ -842,6 +854,8 @@ interface ExposedElements {
|
|
|
842
854
|
"arcgis-feature-form": StencilArcgisFeatureForm;
|
|
843
855
|
"arcgis-feature-next": StencilArcgisFeatureNext;
|
|
844
856
|
"arcgis-feature-table": StencilArcgisFeatureTable;
|
|
857
|
+
"arcgis-feature-templates": StencilArcgisFeatureTemplates;
|
|
858
|
+
"arcgis-template-image": StencilArcgisTemplateImage;
|
|
845
859
|
"arcgis-feature-templates-legacy": StencilArcgisFeatureTemplatesLegacy;
|
|
846
860
|
"arcgis-features": StencilArcgisFeatures;
|
|
847
861
|
"arcgis-features-next": StencilArcgisFeaturesNext;
|
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.6",
|
|
4
4
|
"description": "ArcGIS Map Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"lit": "^3.3.0",
|
|
47
47
|
"lodash-es": "^4.18.1",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
|
-
"@arcgis/common-components": "5.2.0-next.
|
|
50
|
-
"@arcgis/
|
|
51
|
-
"@arcgis/
|
|
49
|
+
"@arcgis/common-components": "5.2.0-next.6",
|
|
50
|
+
"@arcgis/lumina": "5.2.0-next.6",
|
|
51
|
+
"@arcgis/toolkit": "5.2.0-next.6"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@arcgis/core": "^5.1.0-next",
|
|
55
|
-
"@esri/calcite-components": "^5.1.
|
|
55
|
+
"@esri/calcite-components": "^5.1.1-next.3"
|
|
56
56
|
},
|
|
57
57
|
"css.customData": [
|
|
58
58
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/IBTOXDST.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"./AC4VLUR7.js";import{a as b}from"./SWOFXLPC.js";import d from"./UNGXK2Y7.js";import c from"./M3U7I4H6.js";import"./UC4ZZXFO.js";import"./JK33HXYG.js";import a from"./5J4YSRUG.js";import"./GFALET66.js";import{M as y,N as S,O as L,U as _,a as I,b as g,g as V,q as E,x as f}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{once:M,watch:$},A,,,,C])=>{var U=I`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;min-height:var(--arcgis-internal-panel-height-md, 420px);height:100%}calcite-notice{margin:var(--calcite-spacing-md)}`,T=C(A),P="map-components:version-management",u=class extends L{constructor(){super(...arguments),this.flowElement=y(),this.messages=b({blocking:!0}),this.viewModel=T(this),this._isInitialVersionInvalid=new Map,this._initialVersionInfos=[],this._showInvalidFeatureServiceNotice=!1,this.allowEditingDisabled=!1,this.autoDestroyDisabled=!1,this.closable=!1,this.pageSize=5,this.state=this.viewModel.state,this.versioningStates=this.viewModel.versioningStates,this.view=this.viewModel.view,this.arcgisReady=f(),this.arcgisVersioningStateChanged=f()}static{this.properties={versionList:16,_showInvalidFeatureServiceNotice:16,allowEditingDisabled:5,autoDestroyDisabled:5,closable:7,initialVersionInfos:0,icon:1,label:3,messageOverrides:0,mode:1,pageSize:9,referenceElement:1,state:32,versioningStates:0,view:0}}static{this.styles=U}get initialVersionInfos(){return this._initialVersionInfos}set initialVersionInfos(e){this._initialVersionInfos=e.map(i=>({...i,url:this._removeTrailingSlash(i.url)}))}async destroy(){await this.manager.destroy()}async load(){M(()=>this.viewModel.state==="ready").then(()=>{this.initialVersionInfos.forEach(e=>{try{this._changeToInitialVersion(e)}catch(i){E(this)(i)}})}),this.manager.onLifecycle(()=>[$(()=>this.viewModel.state,e=>{let{flowElement:{value:i},versionList:r}=this,t=i?.getElementsByTagName("arcgis-version-management-version-properties")[0];if(e==="disabled"&&i){t&&this._removeVersionPropertiesFlowItem(i),r&&this._removeVersionListFlowItem(i);return}r&&(r.versionListElementProps={...r.versionListElementProps,executionError:this.viewModel.executionError},r.versionListElementProps={...r.versionListElementProps,state:e}),t&&(t.versionPropertiesElementProps={...t.versionPropertiesElementProps,state:e})})])}disconnectedCallback(){super.disconnectedCallback(),this.versionPropertiesContainer?.remove()}_removeTrailingSlash(e){return e.replace(/\/+$/u,"")}_createVersionPropertiesFlowItem(e,i){let{closable:r,viewModel:t,viewModel:{state:n}}=this,o={closable:r,currentUser:t.userLookup.get(e),isVersionAdministrator:t.versionAdministratorLookup.get(e),serviceUrl:e,state:n,strings:this.messages,versionInfo:i};this.versionPropertiesContainer=document.createElement("div");let s=V(g`<arcgis-version-management-version-properties .versionPropertiesElementProps=${o} selected show-back-button></arcgis-version-management-version-properties>`,this.versionPropertiesContainer),a=Array.from(s.parentNode.childNodes).find(c=>c.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES");return this.listenOn(a,"arcgisFlowItemBack",()=>{this._removeVersionPropertiesFlowItem(this.flowElement.value)}),this.listenOn(a,"calciteFlowItemBack",c=>{c.preventDefault(),this._removeVersionPropertiesFlowItem(this.flowElement.value),this.versionList&&(this.versionList.selected=!0)}),this.listenOn(a,"calciteFlowItemClose",this._handleFlowItemClose),this.listenOn(a,"arcgisCreateVersion",this._handleCreateVersion),this.listenOn(a,"arcgisAlterVersion",this._handleAlterVersion),a}_getLoadError(e){let{messages:i}=this;switch(e){case"no-feature-services":return i.loadErrors.noFeatureServices;case"no-view-property":return i.loadErrors.noViewProperty;default:return e}}async _handleAlterVersion(e){let{flowElement:{value:i},viewModel:r}=this,{alterVersionParameters:t}=e.detail;await r.alterVersion(t).then(async n=>{n&&this.arcgisVersioningStateChanged.emit({type:"version-changed",versionIdentifier:t.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)}),await this._refreshVersionList(t.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_handleCreateVersion(e){let{flowElement:{value:i},viewModel:r}=this,{createVersionParameters:t,switchToVersion:n}=e.detail;r.createVersion(t).then(async o=>{o&&this.arcgisVersioningStateChanged.emit({type:"version-created",versionIdentifier:o.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)}),n&&await this.viewModel.changeVersion(t.featureServerUrl,o.versionIdentifier.name,o.versionIdentifier.guid).then(s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:o.versionIdentifier,versioningState:r.versioningStateLookup.get(t.featureServerUrl)})}),await this._refreshVersionList(t.featureServerUrl)}).finally(()=>{i&&this._removeVersionPropertiesFlowItem(i)})}_changeToInitialVersion(e){let{_isInitialVersionInvalid:i,viewModel:r}=this,{url:t,name:n}=e,o=r.versioningStateLookup.get(t);if(!o)throw this._showInvalidFeatureServiceNotice=!0,new Error(`${P} - no versioning state found for feature service ${t}`);let s=o?.versionInfos.find(h=>h.versionIdentifier.name===n);if(!s)throw i.set(t,!0),new Error(`${P} - version ${n} not found in the versioning state for feature service ${t}`);let a=s.versionIdentifier,c=o?.currentVersionInfo?.versionIdentifier;a.guid!==c?.guid&&r.changeVersion(t,a.name,a.guid)}_handleFlowItemClose(){let e=document.querySelector("arcgis-version-management");e.parentElement?.removeChild(e)}async _handleNewVersionAction(e){let i=this._createVersionPropertiesFlowItem(e.detail.serviceUrl,void 0);this.flowElement.value?.appendChild(i),this.versionList&&(this.versionList.selected=!1)}async _handleManageVersionAction(e){let{actionType:i,serviceUrl:r,versionInfo:t}=e.detail,{viewModel:n,flowElement:o}=this;switch(i){case"changeVersion":{n.changeVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid).then(s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-switched",versionIdentifier:t.versionIdentifier,versioningState:n.versioningStateLookup.get(r)});let{versionList:a}=this;a&&(a.versionListElementProps={...a.versionListElementProps,currentVersionIdentifier:n.versioningStateLookup.get(r).currentVersionInfo.versionIdentifier})});break}case"deleteVersion":{n.deleteVersion(r,t.versionIdentifier.name,t.versionIdentifier.guid).then(async s=>{s&&this.arcgisVersioningStateChanged.emit({type:"version-deleted",versionIdentifier:t.versionIdentifier,versioningState:n.versioningStateLookup.get(r)}),await this._refreshVersionList(r)});break}case"editVersion":{let s=this._createVersionPropertiesFlowItem(r,t);o.value?.appendChild(s),this.versionList&&(this.versionList.selected=!1);break}}}async _refreshVersionList(e){let{flowElement:{value:i},versionList:r,viewModel:t}=this;if(i){let n=await t.getVersionInfos(e),o=i.getElementsByTagName("arcgis-version-management-service-item");for(let s of o)s.serviceItemElementProps.serviceUrl===e&&(s.serviceItemElementProps={...s.serviceItemElementProps,versionInfos:n});r&&(r.versionListElementProps={...r.versionListElementProps,currentVersionIdentifier:t.versioningStateLookup.get(e).currentVersionInfo.versionIdentifier,versionInfos:n})}}_removeVersionListFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"&&(e.removeChild(i),this.versionList=void 0),i.nodeName.toUpperCase()==="CALCITE-FLOW-ITEM"&&(i.hidden=!1)}_removeVersionPropertiesFlowItem(e){for(let i of e.childNodes)i.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-PROPERTIES"&&e.removeChild(i)}render(){let{allowEditingDisabled:e,closable:i,flowElement:{value:r},initialVersionInfos:t,_isInitialVersionInvalid:n,label:o,messages:s,mode:a,pageSize:c,versionList:h,viewModel:v,viewModel:{loadError:w,state:d}}=this,N=Array.from(v.serviceNameLookup,([l,m])=>({url:l,name:m})),k=d!=="disabled"?N.map(l=>{let m={allowEditing:!e,closable:i,currentUser:v.userLookup.get(l.url),currentVersionIdentifier:v.versioningStateLookup.get(l.url).currentVersionInfo.versionIdentifier,executionError:void 0,flowElement:r,heading:o,initialVersionInfos:t,isInitialVersionInvalid:n,isVersionAdministrator:v.versionAdministratorLookup.get(l.url),isVersioningApiAvailable:(v.serverVersionLookup.get(l.url)??0)>=11.2,mode:a,pageSize:c,serviceName:l.name,state:d,serviceUrl:l.url,strings:s,versionInfos:v.versioningStateLookup.get(l.url)?.versionInfos??[]};return g`<arcgis-version-management-service-item .serviceItemElementProps=${m} @arcgisFlowItemBack=${()=>{r&&(this._removeVersionListFlowItem(r),this.versionList=void 0)}} @arcgisFlowItemClose=${()=>this._handleFlowItemClose()} @arcgisGetVersions=${async p=>{await this._refreshVersionList(p.detail.serviceUrl)}} @arcgisManageVersion=${this._handleManageVersionAction} @arcgisNewVersion=${this._handleNewVersionAction} @arcgisCreateVersionList=${p=>this.versionList=p.detail}></arcgis-version-management-service-item>`}):void 0,F=d==="disabled"&&w!=null?g`<calcite-notice kind=warning open scale=s slot=footer width=full><div slot=message>${this._getLoadError(w)}</div></calcite-notice>`:void 0,x=this._showInvalidFeatureServiceNotice?g`<calcite-notice closable kind=warning open scale=s slot=content-top width=full icon @calciteNoticeClose=${()=>this._showInvalidFeatureServiceNotice=!1}><div slot=title>${s.headers.invalidInitialFeatureService}</div><div slot=message>${s.loadErrors.invalidInitialFeatureService}</div></calcite-notice>`:void 0;return g`<div class="root"><calcite-flow custom-item-selectors="arcgis-version-management-version-list, arcgis-version-management-version-properties" ${S(this.flowElement)}><calcite-flow-item .closable=${this.closable} .heading=${o??void 0} @calciteFlowItemClose=${()=>this._handleFlowItemClose()} .selected=${!h}>${x}<calcite-panel .loading=${d==="loading"||d==="executing"}>${k}${F}</calcite-panel></calcite-flow-item></calcite-flow></div>`}};_("arcgis-version-management",u);return u},"core/reactiveUtils","versionManagement/VersionManager",a,c,d,e)
|
package/dist/cdn/YJCBT5VK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as w}from"./7EDIRSB6.js";import{a as $}from"./SWOFXLPC.js";import b from"./M3U7I4H6.js";import{h as L}from"./UC4ZZXFO.js";import"./JK33HXYG.js";import a from"./5J4YSRUG.js";import"./GFALET66.js";import{M as _,N as f,O as g,Q as u,R as M,U as v,V as y,a as x,b as n,x as S}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:T},P,,{a:b}])=>{var o=new Set(["ar-iq","ar-kw","bg-bg","cs-cz","da-dk","da-gl","de-at","de-ch","de-de","de-li","el-gr","en-ae","en-au","en-ca","en-eg","en-gb","en-hk","en-id","en-ie","en-il","en-in","en-iq","en-ke","en-lu","en-mo","en-my","en-nz","en-rw","en-sg","en-us","en-vi","en-wo","en-za","es-ar","es-bo","es-cl","es-co","es-cr","es-es","es-gt","es-mx","es-ni","es-pe","es-pr","es-sv","es-ve","et-ee","fi-fi","fr-ci","fr-fr","fr-ma","fr-mg","fr-ml","fr-tn","is-is","it-it","ja-jp","ko-kr","lt-lt","lv-lv","nl-be","nl-nl","nl-sr","nn-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sv-se","th-th","zh-cn","zh-tw"]),R=x`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:5px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`,l=[{id:"world",scale:147914382,minScale:147914382,maxScale:1e8},{id:"continent",scale:5e7,minScale:99999999,maxScale:35e6},{id:"countriesBig",scale:25e6,minScale:34999999,maxScale:15e6},{id:"countriesSmall",scale:12e6,minScale:14999999,maxScale:7e6},{id:"statesProvinces",scale:6e6,minScale:6999999,maxScale:4e6},{id:"stateProvince",scale:3e6,minScale:3999999,maxScale:2e6},{id:"counties",scale:15e5,minScale:1999999,maxScale:1e6},{id:"county",scale:75e4,minScale:999999,maxScale:5e5},{id:"metropolitanArea",scale:32e4,minScale:499999,maxScale:25e4},{id:"cities",scale:16e4,minScale:249999,maxScale:12e4},{id:"city",scale:8e4,minScale:119999,maxScale:6e4},{id:"town",scale:4e4,minScale:59999,maxScale:3e4},{id:"neighborhood",scale:2e4,minScale:29999,maxScale:15e3},{id:"streets",scale:1e4,minScale:14999,maxScale:7500},{id:"street",scale:5e3,minScale:7499,maxScale:4e3},{id:"buildings",scale:2500,minScale:3999,maxScale:2e3},{id:"building",scale:1250,minScale:1999,maxScale:801},{id:"smallBuilding",scale:800,minScale:800,maxScale:401},{id:"rooms",scale:400,minScale:400,maxScale:101},{id:"room",scale:100,minScale:100,maxScale:0}],p=class extends g{constructor(){super(...arguments),this.messages=$(),this._sliderRef=_(),this._activeMenu=null,this._customScaleSelected=null,this._portalRegion=null,this._layerMaxScaleLimit=l[l.length-1].maxScale,this._layerMinScaleLimit=l[0].minScale,this.autoDestroyDisabled=!1,this.disabled=!1,this.hidePreview=!1,this.hideMaxScaleMenu=!1,this.hideMinScaleMenu=!1,this.icon="actual-size",this.maxScale=0,this.maxScaleLimit=l[l.length-1].maxScale,this.minScale=0,this.minScaleLimit=l[0].minScale,this.mode="range",this.showWorldValue=!1,this.view=b(this),this.arcgisChange=S(),this.arcgisInput=S(),this.arcgisPropertyChange=L()("state","minScale","maxScale"),this.arcgisReady=S()}static{this.properties={_activeMenu:16,_customScaleSelected:16,_portalRegion:16,_layerMaxScaleLimit:16,_layerMinScaleLimit:16,autoDestroyDisabled:5,disabled:7,hidePreview:5,hideMaxScaleMenu:5,hideMinScaleMenu:5,icon:1,label:1,layer:0,maxScale:9,maxScaleLimit:9,minScale:9,minScaleLimit:9,mode:1,referenceElement:1,region:1,showWorldValue:5,state:32,view:0}}static{this.styles=R}get state(){let{view:e,layer:a}=this;return!e&&!a||!e&&a?.loadStatus==="loaded"||!a&&e?.ready||e?.ready&&a?.loadStatus==="loaded"?"ready":"disabled"}async destroy(){await this.manager.destroy()}willUpdate(e){if((e.has("maxScaleLimit")||e.has("minScaleLimit"))&&(this.minScaleLimit===0&&(this.minScaleLimit=this._layerMinScaleLimit),this.maxScaleLimit===0&&(this.maxScaleLimit=this._layerMaxScaleLimit),this.minScaleLimit=Math.min(this.minScaleLimit,this._layerMinScaleLimit),this.maxScaleLimit=Math.max(this.maxScaleLimit,this._layerMaxScaleLimit),this.minScale!==0&&(this.minScale=Math.min(this.minScale,this.minScaleLimit)),this.maxScale!==0&&(this.maxScale=Math.max(this.maxScale,this.maxScaleLimit)),this._syncLayerScale()),e.has("maxScale")||e.has("minScale")){if(this.minScale!==0){let a=this._clampScale("min",this.minScale);this.minScale=a===this.minScaleLimit?0:a}if(this.maxScale!==0){let a=this._clampScale("max",this.maxScale);this.maxScale=a===this.maxScaleLimit?0:a}}e.has("layer")&&this.layer&&this.layer.load().catch(()=>{}),e.has("mode")&&(this.mode==="max-scale-only"?this.minScale=0:this.mode==="min-scale-only"&&(this.maxScale=0),e.get("mode")!==void 0&&this._syncLayerScale())}loaded(){P.getDefault().load().then(e=>{let a=e.user?.culture??e.culture;a&&(this._portalRegion=a.split("-")[1]?.toLowerCase()??null)}).catch(()=>{}),this.manager.onLifecycle(()=>[T(()=>this.view?.scale,()=>this.requestUpdate(),{initial:!0}),T(()=>({loaded:this.layer?.loadStatus==="loaded",ready:this.view?.ready}),({loaded:e,ready:a})=>{if(!e||!a||!this.layer)return;let i=this.layer.type==="wcs"||this.layer.type==="imagery-tile"&&this.layer.raster?.tileType==="Raster"?null:"tileInfo"in this.layer?this.layer.tileInfo?.lods:null;if(i)this._layerMinScaleLimit=i[0].scale===0?l[0].minScale:Math.min(l[0].minScale,i[0].scale),!("resampling"in this.layer)||this.layer.resampling||(this._layerMaxScaleLimit=i[i.length-1].scale);else{let s=this.layer&&"maxScaleRange"in this.layer?this.layer.maxScaleRange:null,c=0,m=0;s&&(c=s.minScale,m=s.maxScale),m!==0&&(this._layerMaxScaleLimit=m),c!==0&&(this._layerMinScaleLimit=c)}this.minScaleLimit=Math.min(this.minScaleLimit,this._layerMinScaleLimit),this.maxScaleLimit=Math.max(this.maxScaleLimit,this._layerMaxScaleLimit);let t=this.layer;t&&"minScale"in t&&"maxScale"in t&&(t.minScale!==0&&this.minScale===0&&(this.minScale=Math.min(t.minScale,this.minScaleLimit)),t.maxScale!==0&&this.maxScale===0&&(this.maxScale=Math.max(t.maxScale,this.maxScaleLimit)))},{initial:!0})])}get _effectiveMinScale(){return this.minScale===0?this.minScaleLimit:this.minScale}get _effectiveMaxScale(){return this.maxScale===0?this.maxScaleLimit:this.maxScale}_clampScale(e,a){return e==="min"?Math.min(Math.max(a,this._effectiveMaxScale+1),this.minScaleLimit):Math.max(Math.min(a,this._effectiveMinScale-1),this.maxScaleLimit)}_getDropdownLabel(e){let a=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,i=Math.floor(this._mapScaleToSlider(a)),t=this.messages.scaleRangeLabels;return t?t[l[i].id]:""}_getSpriteSheetFile(){let e=this.messages._lang.toLowerCase();if(o.has(e))return e;if(this.region){let i=`${this.messages._t9nLocale}-${this.region.toLowerCase()}`;if(o.has(i))return i}if(this._portalRegion){let i=`${this.messages._t9nLocale}-${this._portalRegion}`;if(o.has(i))return i}let a=`${this.messages._t9nLocale}-${this.messages._t9nLocale}`;if(o.has(a))return a;for(let i of o)if(i.startsWith(`${this.messages._t9nLocale}-`))return i;return"en-wo"}_handleCustomScaleInput(e,a){let i=Number.parseFloat(a);this._setScale(e,i)}_handleSliderThumbDrag(){let e=this._sliderRef.value;if(e){if(this.mode==="max-scale-only"){let a=Math.max(this._mapSliderToScale(e.values[0]),this.maxScaleLimit);this.maxScale=a===this.maxScaleLimit?0:a}else if(this.mode==="min-scale-only"){let a=Math.min(this._mapSliderToScale(e.values[0]),this.minScaleLimit);this.minScale=a===this.minScaleLimit?0:a}else{let a=Math.min(this._mapSliderToScale(e.values[0]),this.minScaleLimit),i=Math.max(this._mapSliderToScale(e.values[1]),this.maxScaleLimit);this.minScale=a===this.minScaleLimit?0:a,this.maxScale=i===this.maxScaleLimit?0:i}this._syncLayerScale()}}_mapScaleToSlider(e){let a=Math.min(l[0].minScale,Math.max(l[l.length-1].maxScale,e)),i=l.findIndex(m=>a>=m.maxScale&&a<=m.minScale),t=l[i],s=i,c=i+.9999;return t?s+(a-t.minScale)*(c-s)/(t.maxScale-t.minScale):0}_mapSliderToScale(e){let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),{maxScale:i,minScale:t}=l[a],s=a,c=s+.9999;return t+(e-s)*(i-t)/(c-s)}_setScale(e,a){e==="min"?this.minScale=a===0?0:this._clampScale("min",a):this.maxScale=a===0?0:this._clampScale("max",a),this._syncLayerScale(),this._activeMenu=null}_syncLayerScale(){this.layer&&"minScale"in this.layer&&"maxScale"in this.layer&&(this.layer.minScale=this.mode==="max-scale-only"?0:this._effectiveMinScale,this.layer.maxScale=this.mode==="min-scale-only"?0:this._effectiveMaxScale)}_renderScalePreviewPopover(){let e=this._renderScalePreview();return this.hidePreview||!e?null:n`<div slot=popover>${e}</div>`}render(){return n`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode==="max-scale-only"?"start":this.mode==="min-scale-only"?"end":void 0} .fullRangeMin=${this._mapScaleToSlider(l[0].minScale)} .fullRangeMax=${this._mapScaleToSlider(l[l.length-1].maxScale)} .max=${this._mapScaleToSlider(this.maxScaleLimit)} .min=${this._mapScaleToSlider(this.minScaleLimit)} .labelFormatter=${(e,a,i)=>i(Math.round(this._mapSliderToScale(e)))} .values=${this.mode==="max-scale-only"?[this._mapScaleToSlider(this._effectiveMaxScale)]:this.mode==="min-scale-only"?[this._mapScaleToSlider(this._effectiveMinScale)]:[this._mapScaleToSlider(this._effectiveMinScale),this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${f(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale!=null&&this._renderCurrentScaleIndicator(this.view.scale)||""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode!=="max-scale-only"&&!this.hideMinScaleMenu?[this._renderScaleMenuButtons("min"),this._renderScaleMenuPopover("min")]:n`<div></div>`}${this.mode!=="min-scale-only"&&!this.hideMaxScaleMenu&&[this._renderScaleMenuButtons("max"),this._renderScaleMenuPopover("max")]||""}</div></div>`}_renderCurrentScaleIndicator(e){let a=this._sliderRef.value,i=a?.fullRangeMax??this._mapScaleToSlider(l[l.length-1].maxScale),t=a?.fullRangeMin??this._mapScaleToSlider(l[0].minScale),s=i-t,c=Math.min(100,Math.max(0,(this._mapScaleToSlider(e)-t)/s*100));return w("scale-indicator",n`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({position:"absolute",left:`${c}%`})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`)}_renderCustomScaleValue(e,a){let i=Math.round(a).toString();return n`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected===e} @calciteListItemSelect=${t=>{let s=t.target.querySelector("calcite-input-number");this._handleCustomScaleInput(e,s?.value??""),this._customScaleSelected=e}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length-1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${i} @click=${t=>t.stopPropagation()} @keydown=${t=>{t.key==="Enter"&&(this._handleCustomScaleInput(e,t.target.value),this._customScaleSelected=e,t.stopPropagation())}}></calcite-input-number></calcite-list-item>`}_renderScaleMenuButtons(e){return n`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu===e?"outline":"transparent"}>${this._getDropdownLabel(e)}</calcite-button>`}_renderScaleMenuPopover(e){return n`<calcite-popover auto-close .label=${`${e==="min"?"Min":"Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e==="max"?"bottom-end":"bottom-start"} .open=${this._activeMenu===e} scale=s @calcitePopoverOpen=${()=>this._activeMenu=e} @calcitePopoverClose=${()=>{this._activeMenu===e&&(this._activeMenu=null)}}>${this._renderScaleMenu(e)}</calcite-popover>`}_renderScaleMenu(e){let a=Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)),i=Math.floor(this._mapScaleToSlider(this._effectiveMinScale)),t=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,s=this.messages.featuredScaleLabels;if(!s)return;let c=Math.floor(this._mapScaleToSlider(this.maxScaleLimit)),m=Math.floor(this._mapScaleToSlider(this.minScaleLimit)),d=l.filter((r,h)=>e==="min"?h<a&&h>=m:h>i&&h<=c).map(r=>this._renderScaleMenuItem({scaleLabel:s[r.id],scaleValue:r.scale,isSelected:t===r.scale,valueVisible:r.id!=="world"||this.showWorldValue,type:e}));return n`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale!=null&&this._renderCustomScaleValue(e,t)||""}${this.view?.scale!=null?this._renderScaleMenuItem({scaleValue:this.view.scale,scaleLabel:s.current,isSelected:t===this.view.scale,valueVisible:!0,type:e}):null}${d}</calcite-list>`}_renderScaleMenuItem(e){let{scaleValue:a,scaleLabel:i,isSelected:t,valueVisible:s}=e,c=a===l[0].scale?` ${this.messages.aboveSuffix}`:a===l[l.length-1].scale?` ${this.messages.belowSuffix}`:"";return n`<calcite-list-item .label=${i} .selected=${t&&this._customScaleSelected!==e.type} .description=${s?`1:${Math.round(a).toLocaleString(this.messages._t9nLocale)}${c}`:void 0} @calciteListItemSelect=${()=>{this._setScale(e.type,a),this._customScaleSelected=null}}></calcite-list-item>`}_renderScalePreview(){let e=this._sliderRef.value?.activeValue;if(typeof e!="number")return null;let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),i=5,t=128,s=t*(a%i),c=t*Math.floor(a/i),m=`-${s}px -${c}px`,d=this._getSpriteSheetFile();return n`<div class="preview-container"><img src=${y(`./assets/slider-scale-range/images/${d}.avif`)??M} style=${u({display:"block",height:`${t}px`,width:`${t}px`,objectPosition:m,objectFit:"none"})}></div>`}};v("arcgis-slider-scale-range",p);return p},"core/reactiveUtils","portal/Portal",a,b)
|