@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.
- package/custom-elements-jsx.d.ts +280 -119
- package/dist/umd/index.orbundle.js +133 -133
- package/dist/umd/index.orbundle.js.map +1 -1
- package/package.json +7 -6
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
97
|
+
cluster?: OrMap["cluster"];
|
|
88
98
|
/** */
|
|
89
|
-
|
|
99
|
+
center?: OrMap["center"];
|
|
90
100
|
/** */
|
|
91
|
-
|
|
101
|
+
zoom?: OrMap["zoom"];
|
|
92
102
|
/** */
|
|
93
|
-
|
|
103
|
+
showGeoCodingControl?: OrMap["showGeoCodingControl"];
|
|
94
104
|
/** */
|
|
95
|
-
|
|
105
|
+
showBoundaryBoxControl?: OrMap["showBoundaryBoxControl"];
|
|
96
106
|
/** */
|
|
97
|
-
|
|
107
|
+
useZoomControl?: OrMap["useZoomControl"];
|
|
98
108
|
/** */
|
|
99
|
-
|
|
109
|
+
geoJson?: OrMap["geoJson"];
|
|
100
110
|
/** */
|
|
101
|
-
|
|
111
|
+
showGeoJson?: OrMap["showGeoJson"];
|
|
102
112
|
/** */
|
|
103
|
-
|
|
113
|
+
boundary?: OrMap["boundary"];
|
|
104
114
|
/** */
|
|
105
|
-
|
|
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
|
-
|
|
148
|
+
assetId?: OrMapAssetCard["assetId"];
|
|
114
149
|
/** */
|
|
115
|
-
|
|
150
|
+
asset?: OrMapAssetCard["asset"];
|
|
116
151
|
/** */
|
|
117
|
-
|
|
152
|
+
config?: OrMapAssetCard["config"];
|
|
118
153
|
/** */
|
|
119
|
-
|
|
154
|
+
markerconfig?: OrMapAssetCard["markerconfig"];
|
|
120
155
|
/** */
|
|
121
|
-
|
|
156
|
+
useAssetColor?: OrMapAssetCard["useAssetColor"];
|
|
122
157
|
|
|
123
158
|
/** */
|
|
124
|
-
|
|
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
|
-
|
|
184
|
+
assetTypes?: OrMapLegend["assetTypes"];
|
|
131
185
|
/** */
|
|
132
|
-
|
|
186
|
+
excludedTypes?: OrMapLegend["excludedTypes"];
|
|
187
|
+
};
|
|
133
188
|
|
|
189
|
+
export type OrMapLegendSolidJsProps = {
|
|
134
190
|
/** */
|
|
135
|
-
"
|
|
136
|
-
|
|
191
|
+
"prop:assetTypes"?: OrMapLegend["assetTypes"];
|
|
192
|
+
/** */
|
|
193
|
+
"prop:excludedTypes"?: OrMapLegend["excludedTypes"];
|
|
137
194
|
|
|
138
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
425
|
+
declare module "solid-js" {
|
|
265
426
|
namespace JSX {
|
|
266
|
-
interface IntrinsicElements extends
|
|
427
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
267
428
|
}
|
|
268
429
|
export interface CSSProperties extends CustomCssProperties {}
|
|
269
430
|
}
|