@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.
Files changed (112) hide show
  1. package/dist/cdn/{32HC6PWY.js → 2EOQ5G2R.js} +1 -1
  2. package/dist/cdn/{Z5YGVWFI.js → 3AZCF2P5.js} +1 -1
  3. package/dist/cdn/{QEPCYJLX.js → 52XUYHPM.js} +1 -1
  4. package/dist/cdn/{WTL3FIGS.js → 55JA345T.js} +1 -1
  5. package/dist/cdn/{KUHPQGH3.js → 5T3MHTWU.js} +1 -1
  6. package/dist/cdn/5UUUR4LF.js +2 -0
  7. package/dist/cdn/ABPHGXQN.js +2 -0
  8. package/dist/cdn/{PNBNM2CX.js → BJF74GDX.js} +1 -1
  9. package/dist/cdn/CZXCSL3K.js +2 -0
  10. package/dist/cdn/{L4EHCDIJ.js → DITXUZMH.js} +1 -1
  11. package/dist/cdn/FGSOMLKL.js +2 -0
  12. package/dist/cdn/L34RL7Y3.js +2 -0
  13. package/dist/cdn/LM56QFP5.js +2 -0
  14. package/dist/cdn/{7DIC4O5E.js → NOHLNRB4.js} +1 -1
  15. package/dist/cdn/{MF5STJJO.js → RJM52R4G.js} +1 -1
  16. package/dist/cdn/W42XLSER.js +2 -0
  17. package/dist/cdn/WMH7TCIP.js +2 -0
  18. package/dist/cdn/{VNYFKVJ2.js → WQDUJLSY.js} +1 -1
  19. package/dist/cdn/{4XVCI45D.js → XF5VBSRX.js} +1 -1
  20. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  21. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  22. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  23. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  24. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  25. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  26. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  27. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  28. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  29. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  30. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  31. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  32. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  33. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  34. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  51. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  52. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  53. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  54. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  55. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  56. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  57. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  58. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  59. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  60. package/dist/cdn/index.js +1 -1
  61. package/dist/cdn/main.css +1 -1
  62. package/dist/chunks/time-utils.js +14 -14
  63. package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
  64. package/dist/components/arcgis-daylight/customElement.js +242 -203
  65. package/dist/components/arcgis-elevation-profile/customElement.d.ts +14 -0
  66. package/dist/components/arcgis-elevation-profile/customElement.js +77 -75
  67. package/dist/components/arcgis-feature-table/customElement.d.ts +1 -0
  68. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  69. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  70. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  71. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  72. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  73. package/dist/components/arcgis-feature-templates/index.js +13 -0
  74. package/dist/components/arcgis-features-next/customElement.d.ts +7 -1
  75. package/dist/components/arcgis-layer-list/customElement.d.ts +3 -0
  76. package/dist/components/arcgis-layer-list-next/customElement.d.ts +319 -32
  77. package/dist/components/arcgis-layer-list-next/customElement.js +5 -1
  78. package/dist/components/arcgis-legend/customElement.js +6 -6
  79. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  80. package/dist/components/arcgis-legend-classic-view/customElement.js +16 -16
  81. package/dist/components/arcgis-map/customElement.d.ts +47 -4
  82. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  83. package/dist/components/arcgis-paste/customElement.js +27 -38
  84. package/dist/components/arcgis-paste/index.js +1 -1
  85. package/dist/components/arcgis-popup/customElement.d.ts +7 -1
  86. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +1 -1
  87. package/dist/components/arcgis-slider-scale-range/customElement.js +65 -31
  88. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  89. package/dist/components/arcgis-template-image/customElement.js +119 -0
  90. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  91. package/dist/components/arcgis-template-image/index.js +1 -0
  92. package/dist/components/arcgis-version-management/customElement.d.ts +9 -1
  93. package/dist/components/arcgis-version-management/customElement.js +21 -20
  94. package/dist/components/arcgis-version-management/index.js +1 -0
  95. package/dist/components/arcgis-weather/customElement.js +96 -94
  96. package/dist/docs/api.json +1 -1
  97. package/dist/docs/docs.json +1 -1
  98. package/dist/docs/vscode.html-custom-data.json +1 -1
  99. package/dist/docs/web-types.json +1 -1
  100. package/dist/index.d.ts +14 -0
  101. package/dist/loader.js +3 -1
  102. package/dist/types/lumina.d.ts +15 -1
  103. package/dist/types/preact.d.ts +17 -1
  104. package/dist/types/react.d.ts +19 -1
  105. package/dist/types/stencil.d.ts +15 -1
  106. package/package.json +7 -7
  107. package/dist/cdn/AOC4VUP6.js +0 -2
  108. package/dist/cdn/IBTOXDST.js +0 -2
  109. package/dist/cdn/JFVZHHIX.js +0 -2
  110. package/dist/cdn/MHRXFE7S.js +0 -2
  111. package/dist/cdn/RAQVHNVI.js +0 -2
  112. 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
+ };