@openremote/or-map 1.24.0-snapshot.20260521161756 → 1.24.1

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.
@@ -1,6 +1,21 @@
1
-
2
- import type { Util, LngLatLike, LngLat, *, IControl, OrMapLoadedEvent, OrMapClickedEvent, OrMapLongPressEvent, OrMapGeocoderChangeEvent, OrMapMarkersChangedEvent, geoJsonPointInputTemplateProvider, OrMap } from "./lib/index.d.ts";
3
- import type { OrMapAssetCardLoadAssetEvent, DefaultConfig, OrMapAssetCard } from "./lib/or-map-asset-card.d.ts";
1
+ import type {
2
+ Util,
3
+ LngLatLike,
4
+ LngLat,
5
+ IControl,
6
+ OrMapLoadedEvent,
7
+ OrMapClickedEvent,
8
+ OrMapLongPressEvent,
9
+ OrMapGeocoderChangeEvent,
10
+ OrMapMarkersChangedEvent,
11
+ geoJsonPointInputTemplateProvider,
12
+ OrMap,
13
+ } from "./lib/index.d.ts";
14
+ import type {
15
+ OrMapAssetCardLoadAssetEvent,
16
+ DefaultConfig,
17
+ OrMapAssetCard,
18
+ } from "./lib/or-map-asset-card.d.ts";
4
19
  import type { OrMapLegendEvent, OrMapLegend } from "./lib/or-map-legend.d.ts";
5
20
 
6
21
  /**
@@ -29,7 +44,6 @@ export type ScopedElements<
29
44
  };
30
45
 
31
46
  type BaseProps<T extends HTMLElement> = {
32
-
33
47
  /** Content added between the opening and closing tags of the element */
34
48
  children?: any;
35
49
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -52,6 +66,8 @@ type BaseProps<T extends HTMLElement> = {
52
66
  key?: string | number;
53
67
  /** Specifies the language of the element. */
54
68
  lang?: string;
69
+ /** Defines the element's semantic role for accessibility APIs. */
70
+ role?: string;
55
71
  /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
56
72
  part?: string;
57
73
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -72,198 +88,343 @@ type BaseProps<T extends HTMLElement> = {
72
88
  popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
73
89
  /** Specifies the action to be performed on a popover element being controlled by a control element. */
74
90
  popovertargetaction?: "show" | "hide" | "toggle";
75
-
76
- } ;
77
-
78
- type BaseEvents = {
79
-
80
-
81
91
  };
82
92
 
83
-
93
+ type BaseEvents = {};
84
94
 
85
95
  export type OrMapProps = {
86
96
  /** */
87
- "cluster"?: OrMap['cluster'];
97
+ cluster?: OrMap["cluster"];
88
98
  /** */
89
- "center"?: OrMap['center'];
99
+ center?: OrMap["center"];
90
100
  /** */
91
- "zoom"?: OrMap['zoom'];
101
+ zoom?: OrMap["zoom"];
92
102
  /** */
93
- "showGeoCodingControl"?: OrMap['showGeoCodingControl'];
103
+ showGeoCodingControl?: OrMap["showGeoCodingControl"];
94
104
  /** */
95
- "showBoundaryBoxControl"?: OrMap['showBoundaryBoxControl'];
105
+ showBoundaryBoxControl?: OrMap["showBoundaryBoxControl"];
96
106
  /** */
97
- "useZoomControl"?: OrMap['useZoomControl'];
107
+ useZoomControl?: OrMap["useZoomControl"];
98
108
  /** */
99
- "geoJson"?: OrMap['geoJson'];
109
+ geoJson?: OrMap["geoJson"];
100
110
  /** */
101
- "showGeoJson"?: OrMap['showGeoJson'];
111
+ showGeoJson?: OrMap["showGeoJson"];
102
112
  /** */
103
- "boundary"?: OrMap['boundary'];
113
+ boundary?: OrMap["boundary"];
104
114
  /** */
105
- "controls"?: OrMap['controls'];
106
-
115
+ controls?: OrMap["controls"];
116
+ };
107
117
 
108
- }
118
+ export type OrMapSolidJsProps = {
119
+ /** */
120
+ "prop:cluster"?: OrMap["cluster"];
121
+ /** */
122
+ "prop:center"?: OrMap["center"];
123
+ /** */
124
+ "prop:zoom"?: OrMap["zoom"];
125
+ /** */
126
+ "prop:showGeoCodingControl"?: OrMap["showGeoCodingControl"];
127
+ /** */
128
+ "prop:showBoundaryBoxControl"?: OrMap["showBoundaryBoxControl"];
129
+ /** */
130
+ "prop:useZoomControl"?: OrMap["useZoomControl"];
131
+ /** */
132
+ "prop:geoJson"?: OrMap["geoJson"];
133
+ /** */
134
+ "prop:showGeoJson"?: OrMap["showGeoJson"];
135
+ /** */
136
+ "prop:boundary"?: OrMap["boundary"];
137
+ /** */
138
+ "prop:controls"?: OrMap["controls"];
109
139
 
140
+ /** Set the innerHTML of the element */
141
+ innerHTML?: string;
142
+ /** Set the textContent of the element */
143
+ textContent?: string | number;
144
+ };
110
145
 
111
146
  export type OrMapAssetCardProps = {
112
147
  /** */
113
- "assetId"?: OrMapAssetCard['assetId'];
148
+ assetId?: OrMapAssetCard["assetId"];
114
149
  /** */
115
- "asset"?: OrMapAssetCard['asset'];
150
+ asset?: OrMapAssetCard["asset"];
116
151
  /** */
117
- "config"?: OrMapAssetCard['config'];
152
+ config?: OrMapAssetCard["config"];
118
153
  /** */
119
- "markerconfig"?: OrMapAssetCard['markerconfig'];
154
+ markerconfig?: OrMapAssetCard["markerconfig"];
120
155
  /** */
121
- "useAssetColor"?: OrMapAssetCard['useAssetColor'];
156
+ useAssetColor?: OrMapAssetCard["useAssetColor"];
122
157
 
123
158
  /** */
124
- "onassetId"?: (e: CustomEvent<OrMapAssetCardLoadAssetEvent>) => void;
125
- }
159
+ onassetId?: (e: OrMapAssetCardLoadAssetEvent) => void;
160
+ };
126
161
 
162
+ export type OrMapAssetCardSolidJsProps = {
163
+ /** */
164
+ "prop:assetId"?: OrMapAssetCard["assetId"];
165
+ /** */
166
+ "prop:asset"?: OrMapAssetCard["asset"];
167
+ /** */
168
+ "prop:config"?: OrMapAssetCard["config"];
169
+ /** */
170
+ "prop:markerconfig"?: OrMapAssetCard["markerconfig"];
171
+ /** */
172
+ "prop:useAssetColor"?: OrMapAssetCard["useAssetColor"];
173
+ /** */
174
+ "on:assetId"?: (e: OrMapAssetCardLoadAssetEvent) => void;
175
+
176
+ /** Set the innerHTML of the element */
177
+ innerHTML?: string;
178
+ /** Set the textContent of the element */
179
+ textContent?: string | number;
180
+ };
127
181
 
128
182
  export type OrMapLegendProps = {
129
183
  /** */
130
- "assetTypes"?: OrMapLegend['assetTypes'];
184
+ assetTypes?: OrMapLegend["assetTypes"];
131
185
  /** */
132
- "excludedTypes"?: OrMapLegend['excludedTypes'];
186
+ excludedTypes?: OrMapLegend["excludedTypes"];
187
+ };
133
188
 
189
+ export type OrMapLegendSolidJsProps = {
134
190
  /** */
135
- "onundefined"?: (e: CustomEvent<OrMapLegendEvent>) => void;
136
- }
191
+ "prop:assetTypes"?: OrMapLegend["assetTypes"];
192
+ /** */
193
+ "prop:excludedTypes"?: OrMapLegend["excludedTypes"];
137
194
 
138
- export type CustomElements = {
195
+ /** Set the innerHTML of the element */
196
+ innerHTML?: string;
197
+ /** Set the textContent of the element */
198
+ textContent?: string | number;
199
+ };
139
200
 
201
+ export type CustomElements = {
202
+ /**
203
+ *
204
+ *
205
+ * ## Attributes & Properties
206
+ *
207
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
208
+ *
209
+ * - `cluster`: undefined
210
+ * - `center`: undefined
211
+ * - `zoom`: undefined
212
+ * - `showGeoCodingControl`: undefined
213
+ * - `showBoundaryBoxControl`: undefined
214
+ * - `useZoomControl`: undefined
215
+ * - `geoJson`: undefined
216
+ * - `showGeoJson`: undefined
217
+ * - `boundary`: undefined
218
+ * - `controls`: undefined (property only)
219
+ *
220
+ * ## Methods
221
+ *
222
+ * Methods that can be called to access component functionality.
223
+ *
224
+ * - `addAsset(asset: AssetWithLocation) => void`: undefined
225
+ * - `addAssets(assets: AssetWithLocation[]) => void`: undefined
226
+ * - `updateAttribute(event: AttributeEvent) => void`: undefined
227
+ * - `removeAssets(ids: string[]) => void`: undefined
228
+ * - `removeAllAssets() => void`: undefined
229
+ * - `refresh() => void`: undefined
230
+ * - `loadMap() => void`: undefined
231
+ * - `resize() => void`: undefined
232
+ * - `flyTo(coordinates?: LngLatLike, zoom?: number) => void`: undefined
233
+ * - `_removeMarker(marker: OrMapMarker) => void`: undefined
234
+ */
235
+ "or-map": Partial<OrMapProps & BaseProps<OrMap> & BaseEvents>;
140
236
 
141
237
  /**
142
- *
143
- *
144
- * ## Attributes & Properties
145
- *
146
- * Component attributes and properties that can be applied to the element or by using JavaScript.
147
- *
148
- * - `cluster`: undefined
149
- * - `center`: undefined
150
- * - `zoom`: undefined
151
- * - `showGeoCodingControl`: undefined
152
- * - `showBoundaryBoxControl`: undefined
153
- * - `useZoomControl`: undefined
154
- * - `geoJson`: undefined
155
- * - `showGeoJson`: undefined
156
- * - `boundary`: undefined
157
- * - `controls`: undefined (property only)
158
- *
159
- * ## Methods
160
- *
161
- * Methods that can be called to access component functionality.
162
- *
163
- * - `addAsset(asset: AssetWithLocation) => void`: undefined
164
- * - `addAssets(assets: AssetWithLocation[]) => void`: undefined
165
- * - `updateAttribute(event: AttributeEvent) => void`: undefined
166
- * - `removeAssets(ids: string[]) => void`: undefined
167
- * - `removeAllAssets() => void`: undefined
168
- * - `refresh() => void`: undefined
169
- * - `loadMap() => void`: undefined
170
- * - `resize() => void`: undefined
171
- * - `flyTo(coordinates?: LngLatLike, zoom?: number) => void`: undefined
172
- * - `_removeMarker(marker: OrMapMarker) => void`: undefined
173
- */
174
- "or-map": Partial<OrMapProps & BaseProps<OrMap> & BaseEvents>;
238
+ *
239
+ *
240
+ * ## Attributes & Properties
241
+ *
242
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
243
+ *
244
+ * - `assetId`: undefined
245
+ * - `asset`: undefined
246
+ * - `config`: undefined
247
+ * - `markerconfig`: undefined
248
+ * - `useAssetColor`: undefined
249
+ *
250
+ * ## Events
251
+ *
252
+ * Events that will be emitted by the component.
253
+ *
254
+ * - `assetId`: undefined
255
+ *
256
+ * ## Methods
257
+ *
258
+ * Methods that can be called to access component functionality.
259
+ *
260
+ * - `_onEvent(event: SharedEvent) => void`: undefined
261
+ */
262
+ "or-map-asset-card": Partial<
263
+ OrMapAssetCardProps & BaseProps<OrMapAssetCard> & BaseEvents
264
+ >;
175
265
 
266
+ /**
267
+ *
268
+ *
269
+ * ## Attributes & Properties
270
+ *
271
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
272
+ *
273
+ * - `assetTypes`: undefined
274
+ * - `excludedTypes`: undefined
275
+ *
276
+ * ## Events
277
+ *
278
+ * Events that will be emitted by the component.
279
+ *
280
+ * - `undefined`: undefined
281
+ */
282
+ "or-map-legend": Partial<
283
+ OrMapLegendProps & BaseProps<OrMapLegend> & BaseEvents
284
+ >;
285
+ };
176
286
 
287
+ export type CustomElementsSolidJs = {
177
288
  /**
178
- *
179
- *
180
- * ## Attributes & Properties
181
- *
182
- * Component attributes and properties that can be applied to the element or by using JavaScript.
183
- *
184
- * - `assetId`: undefined
185
- * - `asset`: undefined
186
- * - `config`: undefined
187
- * - `markerconfig`: undefined
188
- * - `useAssetColor`: undefined
189
- *
190
- * ## Events
191
- *
192
- * Events that will be emitted by the component.
193
- *
194
- * - `assetId`: undefined
195
- *
196
- * ## Methods
197
- *
198
- * Methods that can be called to access component functionality.
199
- *
200
- * - `_onEvent(event: SharedEvent) => void`: undefined
201
- */
202
- "or-map-asset-card": Partial<OrMapAssetCardProps & BaseProps<OrMapAssetCard> & BaseEvents>;
289
+ *
290
+ *
291
+ * ## Attributes & Properties
292
+ *
293
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
294
+ *
295
+ * - `cluster`: undefined
296
+ * - `center`: undefined
297
+ * - `zoom`: undefined
298
+ * - `showGeoCodingControl`: undefined
299
+ * - `showBoundaryBoxControl`: undefined
300
+ * - `useZoomControl`: undefined
301
+ * - `geoJson`: undefined
302
+ * - `showGeoJson`: undefined
303
+ * - `boundary`: undefined
304
+ * - `controls`: undefined (property only)
305
+ *
306
+ * ## Methods
307
+ *
308
+ * Methods that can be called to access component functionality.
309
+ *
310
+ * - `addAsset(asset: AssetWithLocation) => void`: undefined
311
+ * - `addAssets(assets: AssetWithLocation[]) => void`: undefined
312
+ * - `updateAttribute(event: AttributeEvent) => void`: undefined
313
+ * - `removeAssets(ids: string[]) => void`: undefined
314
+ * - `removeAllAssets() => void`: undefined
315
+ * - `refresh() => void`: undefined
316
+ * - `loadMap() => void`: undefined
317
+ * - `resize() => void`: undefined
318
+ * - `flyTo(coordinates?: LngLatLike, zoom?: number) => void`: undefined
319
+ * - `_removeMarker(marker: OrMapMarker) => void`: undefined
320
+ */
321
+ "or-map": Partial<
322
+ OrMapProps & OrMapSolidJsProps & BaseProps<OrMap> & BaseEvents
323
+ >;
203
324
 
325
+ /**
326
+ *
327
+ *
328
+ * ## Attributes & Properties
329
+ *
330
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
331
+ *
332
+ * - `assetId`: undefined
333
+ * - `asset`: undefined
334
+ * - `config`: undefined
335
+ * - `markerconfig`: undefined
336
+ * - `useAssetColor`: undefined
337
+ *
338
+ * ## Events
339
+ *
340
+ * Events that will be emitted by the component.
341
+ *
342
+ * - `assetId`: undefined
343
+ *
344
+ * ## Methods
345
+ *
346
+ * Methods that can be called to access component functionality.
347
+ *
348
+ * - `_onEvent(event: SharedEvent) => void`: undefined
349
+ */
350
+ "or-map-asset-card": Partial<
351
+ OrMapAssetCardProps &
352
+ OrMapAssetCardSolidJsProps &
353
+ BaseProps<OrMapAssetCard> &
354
+ BaseEvents
355
+ >;
204
356
 
205
357
  /**
206
- *
207
- *
208
- * ## Attributes & Properties
209
- *
210
- * Component attributes and properties that can be applied to the element or by using JavaScript.
211
- *
212
- * - `assetTypes`: undefined
213
- * - `excludedTypes`: undefined
214
- *
215
- * ## Events
216
- *
217
- * Events that will be emitted by the component.
218
- *
219
- * - `undefined`: undefined
220
- */
221
- "or-map-legend": Partial<OrMapLegendProps & BaseProps<OrMapLegend> & BaseEvents>;
222
- }
358
+ *
359
+ *
360
+ * ## Attributes & Properties
361
+ *
362
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
363
+ *
364
+ * - `assetTypes`: undefined
365
+ * - `excludedTypes`: undefined
366
+ *
367
+ * ## Events
368
+ *
369
+ * Events that will be emitted by the component.
370
+ *
371
+ * - `undefined`: undefined
372
+ */
373
+ "or-map-legend": Partial<
374
+ OrMapLegendProps &
375
+ OrMapLegendSolidJsProps &
376
+ BaseProps<OrMapLegend> &
377
+ BaseEvents
378
+ >;
379
+ };
223
380
 
224
- export type CustomCssProperties = {
381
+ export type CustomCssProperties = {};
225
382
 
383
+ declare module "react" {
384
+ namespace JSX {
385
+ interface IntrinsicElements extends CustomElements {}
386
+ }
387
+ export interface CSSProperties extends CustomCssProperties {}
226
388
  }
227
389
 
228
-
229
- declare module 'react' {
390
+ declare module "preact" {
230
391
  namespace JSX {
231
392
  interface IntrinsicElements extends CustomElements {}
232
393
  }
233
394
  export interface CSSProperties extends CustomCssProperties {}
234
395
  }
235
396
 
236
- declare module 'preact' {
397
+ declare module "@builder.io/qwik" {
237
398
  namespace JSX {
238
399
  interface IntrinsicElements extends CustomElements {}
239
400
  }
240
401
  export interface CSSProperties extends CustomCssProperties {}
241
402
  }
242
403
 
243
- declare module '@builder.io/qwik' {
404
+ declare module "@stencil/core" {
244
405
  namespace JSX {
245
406
  interface IntrinsicElements extends CustomElements {}
246
407
  }
247
408
  export interface CSSProperties extends CustomCssProperties {}
248
409
  }
249
410
 
250
- declare module '@stencil/core' {
411
+ declare module "hono/jsx" {
251
412
  namespace JSX {
252
413
  interface IntrinsicElements extends CustomElements {}
253
414
  }
254
415
  export interface CSSProperties extends CustomCssProperties {}
255
416
  }
256
417
 
257
- declare module 'hono/jsx' {
418
+ declare module "react-native" {
258
419
  namespace JSX {
259
420
  interface IntrinsicElements extends CustomElements {}
260
421
  }
261
422
  export interface CSSProperties extends CustomCssProperties {}
262
423
  }
263
424
 
264
- declare module 'react-native' {
425
+ declare module "solid-js" {
265
426
  namespace JSX {
266
- interface IntrinsicElements extends CustomElements {}
427
+ interface IntrinsicElements extends CustomElementsSolidJs {}
267
428
  }
268
429
  export interface CSSProperties extends CustomCssProperties {}
269
430
  }