@arcgis/map-components 5.2.0-next.5 → 5.2.0-next.7
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/{32HC6PWY.js → 2EOQ5G2R.js} +1 -1
- package/dist/cdn/{Z5YGVWFI.js → 3AZCF2P5.js} +1 -1
- package/dist/cdn/{QEPCYJLX.js → 52XUYHPM.js} +1 -1
- package/dist/cdn/{WTL3FIGS.js → 55JA345T.js} +1 -1
- package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
- package/dist/cdn/5UUUR4LF.js +2 -0
- package/dist/cdn/ABPHGXQN.js +2 -0
- package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
- package/dist/cdn/CZXCSL3K.js +2 -0
- package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
- package/dist/cdn/FGSOMLKL.js +2 -0
- package/dist/cdn/L34RL7Y3.js +2 -0
- package/dist/cdn/LM56QFP5.js +2 -0
- package/dist/cdn/{7DIC4O5E.js → NOHLNRB4.js} +1 -1
- package/dist/cdn/{MF5STJJO.js → RJM52R4G.js} +1 -1
- package/dist/cdn/W42XLSER.js +2 -0
- package/dist/cdn/WMH7TCIP.js +2 -0
- package/dist/cdn/{VNYFKVJ2.js → WQDUJLSY.js} +1 -1
- 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/chunks/time-utils.js +14 -14
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-daylight/customElement.js +242 -203
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +14 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +77 -75
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- 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-features-next/customElement.d.ts +7 -1
- 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-legend/customElement.js +6 -6
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
- package/dist/components/arcgis-map/customElement.d.ts +47 -4
- 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-popup/customElement.d.ts +7 -1
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +65 -31
- 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.d.ts +9 -1
- package/dist/components/arcgis-version-management/customElement.js +21 -20
- package/dist/components/arcgis-version-management/index.js +1 -0
- package/dist/components/arcgis-weather/customElement.js +96 -94
- 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 +3 -1
- package/dist/types/lumina.d.ts +15 -1
- package/dist/types/preact.d.ts +17 -1
- package/dist/types/react.d.ts +19 -1
- package/dist/types/stencil.d.ts +15 -1
- package/package.json +7 -7
- package/dist/cdn/AOC4VUP6.js +0 -2
- package/dist/cdn/IBTOXDST.js +0 -2
- package/dist/cdn/JFVZHHIX.js +0 -2
- package/dist/cdn/MHRXFE7S.js +0 -2
- package/dist/cdn/RAQVHNVI.js +0 -2
- package/dist/cdn/YJCBT5VK.js +0 -2
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
4
|
+
import type TemplateItem from "./TemplateItem.js";
|
|
5
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
6
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
|
+
import type { ArcgisReferenceElement } from "../types.js";
|
|
8
|
+
import type { LayerWithFeatureTemplatesUnion } from "@arcgis/core/layers/types.js";
|
|
9
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The FeatureTemplates component is part of an editing workflow. Its main purpose is to display [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) templates from one or more feature layers.
|
|
13
|
+
*
|
|
14
|
+
* @since 5.1
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export abstract class ArcgisFeatureTemplates extends LitElement {
|
|
18
|
+
/** @internal */
|
|
19
|
+
protected _messages: Partial<{
|
|
20
|
+
componentLabel: string;
|
|
21
|
+
templates: string;
|
|
22
|
+
recent: string;
|
|
23
|
+
favorites: string;
|
|
24
|
+
updating: string;
|
|
25
|
+
point: string;
|
|
26
|
+
multipoint: string;
|
|
27
|
+
polyline: string;
|
|
28
|
+
polygon: string;
|
|
29
|
+
extent: string;
|
|
30
|
+
mesh: string;
|
|
31
|
+
noneSpecified: string;
|
|
32
|
+
removeFavorite: string;
|
|
33
|
+
removeRecent: string;
|
|
34
|
+
addFavorite: string;
|
|
35
|
+
noFavorites: string;
|
|
36
|
+
noTemplates: string;
|
|
37
|
+
noRecent: string;
|
|
38
|
+
noMatchingTemplates: string;
|
|
39
|
+
}> & T9nMeta<{
|
|
40
|
+
componentLabel: string;
|
|
41
|
+
templates: string;
|
|
42
|
+
recent: string;
|
|
43
|
+
favorites: string;
|
|
44
|
+
updating: string;
|
|
45
|
+
point: string;
|
|
46
|
+
multipoint: string;
|
|
47
|
+
polyline: string;
|
|
48
|
+
polygon: string;
|
|
49
|
+
extent: string;
|
|
50
|
+
mesh: string;
|
|
51
|
+
noneSpecified: string;
|
|
52
|
+
removeFavorite: string;
|
|
53
|
+
removeRecent: string;
|
|
54
|
+
addFavorite: string;
|
|
55
|
+
noFavorites: string;
|
|
56
|
+
noTemplates: string;
|
|
57
|
+
noRecent: string;
|
|
58
|
+
noMatchingTemplates: string;
|
|
59
|
+
}>;
|
|
60
|
+
/** Provide a function to dynamically enable or disable templates in the component. */
|
|
61
|
+
accessor applicationDisabledFunction: ((template: TemplateItem) => boolean) | undefined;
|
|
62
|
+
/** Provide a function to dynamically hide/remove templates from the component. */
|
|
63
|
+
accessor applicationFilterFunction: ((template: TemplateItem) => boolean) | undefined;
|
|
64
|
+
/** Provide a list of sections and templates. If not supplied, the component will load the templates from the layers in the view. */
|
|
65
|
+
accessor applicationTemplates: Array<ITemplateSection> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* If true, the component will not be destroyed automatically when it is
|
|
68
|
+
* disconnected from the document. This is useful when you want to move the
|
|
69
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
70
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-templates/#destroy) method when you are done to
|
|
71
|
+
* prevent memory leaks.
|
|
72
|
+
*
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
accessor autoDestroyDisabled: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* When true, the component is visually withdrawn and cannot receive user interaction.
|
|
78
|
+
*
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
accessor disabled: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Decide if templates should be disabled when the layer is not visible, or not visible at the current scale.
|
|
84
|
+
*
|
|
85
|
+
* @default "never"
|
|
86
|
+
*/
|
|
87
|
+
accessor disableTemplatesMode: "never" | "scale" | "visible";
|
|
88
|
+
/**
|
|
89
|
+
* Determine if templates should be shown grouped, or in a single flat list
|
|
90
|
+
*
|
|
91
|
+
* @default "grouped"
|
|
92
|
+
*/
|
|
93
|
+
accessor display: "flat" | "grouped";
|
|
94
|
+
/** The list of templates in the component */
|
|
95
|
+
get effectiveTemplates(): Array<ITemplateSection>;
|
|
96
|
+
/**
|
|
97
|
+
* Determines if feature templates for tables should be shown
|
|
98
|
+
*
|
|
99
|
+
* @default false
|
|
100
|
+
*/
|
|
101
|
+
accessor excludeTables: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* The list of templates in the component
|
|
104
|
+
*
|
|
105
|
+
* @interface
|
|
106
|
+
*/
|
|
107
|
+
get favorites(): Set<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Include a favorites used tab
|
|
110
|
+
*
|
|
111
|
+
* @default false
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
accessor favoritesEnabled: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The text the user has entered to filter the list on the favorites tab
|
|
117
|
+
*
|
|
118
|
+
* @default ""
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
accessor favoritesFilterText: string;
|
|
122
|
+
/**
|
|
123
|
+
* The text the user has entered to filter the list
|
|
124
|
+
*
|
|
125
|
+
* @default ""
|
|
126
|
+
*/
|
|
127
|
+
accessor filterText: string;
|
|
128
|
+
/**
|
|
129
|
+
* When templates are grouped, determine the group by policy. Note: if the component has been supplied with applicationTemplates, the templates will keep the supplied groupings.
|
|
130
|
+
*
|
|
131
|
+
* @default "layer"
|
|
132
|
+
*/
|
|
133
|
+
accessor groupBy: "geometry" | "layer";
|
|
134
|
+
/** If a group by function is supplied, then the templates will be grouped by this function. */
|
|
135
|
+
accessor groupByFunction: ((template: TemplateItem) => string) | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Determine if the template description should be displayed
|
|
138
|
+
*
|
|
139
|
+
* @default false
|
|
140
|
+
*/
|
|
141
|
+
accessor hideTemplateDescription: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Decide if templates should be hidden when the layer is not visible, or not visible at the current scale.
|
|
144
|
+
*
|
|
145
|
+
* @default "never"
|
|
146
|
+
*/
|
|
147
|
+
accessor hideTemplatesMode: "never" | "scale" | "visible";
|
|
148
|
+
/** List of layers for which to show Templates. If not provided, the layers will be derived from the View. */
|
|
149
|
+
accessor layers: (LayerWithFeatureTemplatesUnion | SubtypeGroupLayer)[] | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* The text the user has entered to filter the list on the recent tab
|
|
152
|
+
*
|
|
153
|
+
* @default ""
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
accessor recentFilterText: string;
|
|
157
|
+
/**
|
|
158
|
+
* The list of recently used template ids.
|
|
159
|
+
*
|
|
160
|
+
* @interface
|
|
161
|
+
*/
|
|
162
|
+
get recentlyUsed(): Array<string>;
|
|
163
|
+
/**
|
|
164
|
+
* Include a recently used tab
|
|
165
|
+
*
|
|
166
|
+
* @default false
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
accessor recentlyUsedEnabled: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
|
|
172
|
+
*
|
|
173
|
+
* @see [Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)
|
|
174
|
+
*/
|
|
175
|
+
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Function which restores the list of favorites from a previous session
|
|
178
|
+
*
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
accessor restoreFavorites: (() => Promise<Array<string>>) | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* Function which restores the list of recently used templates from a previous session
|
|
184
|
+
*
|
|
185
|
+
* @internal
|
|
186
|
+
*/
|
|
187
|
+
accessor restoreRecentlyUsed: (() => Promise<Array<string>>) | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* When templates are grouped, determine how the groups are sorted. If the component has been supplied with a sectionSortByFunction then this will be used instead.
|
|
190
|
+
*
|
|
191
|
+
* @default "system"
|
|
192
|
+
*/
|
|
193
|
+
accessor sectionSortBy: "alphabetical" | "system";
|
|
194
|
+
/** If provided, this function can be used to re-order the sections. */
|
|
195
|
+
accessor sectionSortByFunction: ((sections: ITemplateSection[]) => ITemplateSection[]) | undefined;
|
|
196
|
+
/** Currently selected template */
|
|
197
|
+
get selectedTemplate(): TemplateItem | undefined;
|
|
198
|
+
/** Currently selected template id */
|
|
199
|
+
accessor selectedTemplateId: string | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Fetch shared templates, if the layer's in the view have shared Templates.
|
|
202
|
+
*
|
|
203
|
+
* @default false
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
accessor sharedTemplatesDisabled: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Indicates whether to display the collapse button.
|
|
209
|
+
*
|
|
210
|
+
* @default false
|
|
211
|
+
* @since 5.1
|
|
212
|
+
*/
|
|
213
|
+
accessor showCollapseButton: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Indicates whether to show the templates filter
|
|
216
|
+
*
|
|
217
|
+
* @default false
|
|
218
|
+
* @since 5.1
|
|
219
|
+
*/
|
|
220
|
+
accessor showFilter: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Determines how templates are ordered. This will either be in alphabetical order
|
|
223
|
+
* or the order they are defined in the layer schema.
|
|
224
|
+
*
|
|
225
|
+
* @default "alphabetical"
|
|
226
|
+
*/
|
|
227
|
+
accessor templateSortBy: "alphabetical" | "system";
|
|
228
|
+
/** If provided, this function can be used to re-order the templates. */
|
|
229
|
+
accessor templateSortByFunction: ((templates: TemplateItem[]) => TemplateItem[]) | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Determine if the templates list is updating.
|
|
232
|
+
*
|
|
233
|
+
* @default false
|
|
234
|
+
*/
|
|
235
|
+
get updating(): boolean;
|
|
236
|
+
/**
|
|
237
|
+
* The view associated with the component.
|
|
238
|
+
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-feature-templates component will be associated with a map or scene component rather than using the `view` property.
|
|
239
|
+
*/
|
|
240
|
+
accessor view: MapView | SceneView | undefined;
|
|
241
|
+
/** Permanently destroy the component */
|
|
242
|
+
destroy(): Promise<void>;
|
|
243
|
+
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
244
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "effectiveTemplates" | "filterText" | "recentlyUsed" | "favorites"; }>;
|
|
245
|
+
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
246
|
+
readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
247
|
+
/** The user has selected a template */
|
|
248
|
+
readonly arcgisSelectTemplate: import("@arcgis/lumina").TargetedEvent<this, { template: TemplateItem; }>;
|
|
249
|
+
/** The source of templates has changed. */
|
|
250
|
+
readonly arcgisTemplatesChanged: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
251
|
+
readonly "@eventTypes": {
|
|
252
|
+
arcgisPropertyChange: ArcgisFeatureTemplates["arcgisPropertyChange"]["detail"];
|
|
253
|
+
arcgisReady: ArcgisFeatureTemplates["arcgisReady"]["detail"];
|
|
254
|
+
arcgisSelectTemplate: ArcgisFeatureTemplates["arcgisSelectTemplate"]["detail"];
|
|
255
|
+
arcgisTemplatesChanged: ArcgisFeatureTemplates["arcgisTemplatesChanged"]["detail"];
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Template section
|
|
261
|
+
*
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
export type ITemplateSection = {
|
|
265
|
+
/** Name of the section */
|
|
266
|
+
sectionName: string;
|
|
267
|
+
/**
|
|
268
|
+
* Whether to translate the section name
|
|
269
|
+
*
|
|
270
|
+
* @internal
|
|
271
|
+
*/
|
|
272
|
+
autoTranslate?: boolean;
|
|
273
|
+
/** List of Template items in the section */
|
|
274
|
+
templates: TemplateItem[];
|
|
275
|
+
};
|