@openremote/or-map 1.11.0-snapshot.20251103144513 → 1.11.0

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.
@@ -0,0 +1,240 @@
1
+
2
+ import type { Util, LngLatLike, LngLat, *, IControl, OrMapLoadedEvent, OrMapClickedEvent, OrMapLongPressEvent, OrMapGeocoderChangeEvent, CenterControl, CoordinatesControl, geoJsonPointInputTemplateProvider, OrMap } from "./lib/index.d.ts";
3
+ import type { OrMapAssetCardLoadAssetEvent, DefaultConfig, OrMapAssetCard } from "./lib/or-map-asset-card.d.ts";
4
+
5
+ /**
6
+ * This type can be used to create scoped tags for your components.
7
+ *
8
+ * Usage:
9
+ *
10
+ * ```ts
11
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
12
+ *
13
+ * declare module "my-library" {
14
+ * namespace JSX {
15
+ * interface IntrinsicElements
16
+ * extends ScopedElements<'test-', ''> {}
17
+ * }
18
+ * }
19
+ * ```
20
+ *
21
+ * @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
22
+ */
23
+ export type ScopedElements<
24
+ Prefix extends string = "",
25
+ Suffix extends string = ""
26
+ > = {
27
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
28
+ };
29
+
30
+ type BaseProps<T extends HTMLElement> = {
31
+
32
+ /** Content added between the opening and closing tags of the element */
33
+ children?: any;
34
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
35
+ class?: string;
36
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
37
+ className?: string;
38
+ /** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
39
+ classList?: Record<string, boolean | undefined>;
40
+ /** Specifies the text direction of the element. */
41
+ dir?: "ltr" | "rtl";
42
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
43
+ exportparts?: string;
44
+ /** For <label> and <output>, lets you associate the label with some control. */
45
+ htmlFor?: string;
46
+ /** Specifies whether the element should be hidden. */
47
+ hidden?: boolean | string;
48
+ /** A unique identifier for the element. */
49
+ id?: string;
50
+ /** Keys tell React which array item each component corresponds to */
51
+ key?: string | number;
52
+ /** Specifies the language of the element. */
53
+ lang?: string;
54
+ /** 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. */
55
+ part?: string;
56
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
57
+ ref?: T | ((e: T) => void);
58
+ /** Adds a reference for a custom element slot */
59
+ slot?: string;
60
+ /** Prop for setting inline styles */
61
+ style?: Record<string, string | number>;
62
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
63
+ tabIndex?: number;
64
+ /** Specifies the tooltip text for the element. */
65
+ title?: string;
66
+ /** Passing 'no' excludes the element content from being translated. */
67
+ translate?: "yes" | "no";
68
+ /** The popover global attribute is used to designate an element as a popover element. */
69
+ popover?: "auto" | "hint" | "manual";
70
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
71
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
72
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
73
+ popovertargetaction?: "show" | "hide" | "toggle";
74
+
75
+ } ;
76
+
77
+ type BaseEvents = {
78
+
79
+
80
+ };
81
+
82
+
83
+
84
+ export type OrMapProps = {
85
+ /** */
86
+ "type"?: OrMap['type'];
87
+ /** */
88
+ "center"?: OrMap['center'];
89
+ /** */
90
+ "zoom"?: OrMap['zoom'];
91
+ /** */
92
+ "showGeoCodingControl"?: OrMap['showGeoCodingControl'];
93
+ /** */
94
+ "showBoundaryBoxControl"?: OrMap['showBoundaryBoxControl'];
95
+ /** */
96
+ "useZoomControl"?: OrMap['useZoomControl'];
97
+ /** */
98
+ "geoJson"?: OrMap['geoJson'];
99
+ /** */
100
+ "showGeoJson"?: OrMap['showGeoJson'];
101
+ /** */
102
+ "boundary"?: OrMap['boundary'];
103
+ /** */
104
+ "controls"?: OrMap['controls'];
105
+
106
+
107
+ }
108
+
109
+
110
+ export type OrMapAssetCardProps = {
111
+ /** */
112
+ "assetId"?: OrMapAssetCard['assetId'];
113
+ /** */
114
+ "asset"?: OrMapAssetCard['asset'];
115
+ /** */
116
+ "config"?: OrMapAssetCard['config'];
117
+ /** */
118
+ "markerconfig"?: OrMapAssetCard['markerconfig'];
119
+ /** */
120
+ "useAssetColor"?: OrMapAssetCard['useAssetColor'];
121
+
122
+ /** */
123
+ "onassetId"?: (e: CustomEvent<OrMapAssetCardLoadAssetEvent>) => void;
124
+ }
125
+
126
+ export type CustomElements = {
127
+
128
+
129
+ /**
130
+ *
131
+ *
132
+ * ## Attributes & Properties
133
+ *
134
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
135
+ *
136
+ * - `type`: undefined
137
+ * - `center`: undefined
138
+ * - `zoom`: undefined
139
+ * - `showGeoCodingControl`: undefined
140
+ * - `showBoundaryBoxControl`: undefined
141
+ * - `useZoomControl`: undefined
142
+ * - `geoJson`: undefined
143
+ * - `showGeoJson`: undefined
144
+ * - `boundary`: undefined
145
+ * - `controls`: undefined (property only)
146
+ * - `markers`: undefined (property only) (readonly)
147
+ *
148
+ * ## Methods
149
+ *
150
+ * Methods that can be called to access component functionality.
151
+ *
152
+ * - `refresh() => void`: undefined
153
+ * - `loadMap() => void`: undefined
154
+ * - `resize() => void`: undefined
155
+ * - `flyTo(coordinates?: LngLatLike, zoom?: number) => void`: undefined
156
+ */
157
+ "or-map": Partial<OrMapProps & BaseProps<OrMap> & BaseEvents>;
158
+
159
+
160
+ /**
161
+ *
162
+ *
163
+ * ## Attributes & Properties
164
+ *
165
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
166
+ *
167
+ * - `assetId`: undefined
168
+ * - `asset`: undefined
169
+ * - `config`: undefined
170
+ * - `markerconfig`: undefined
171
+ * - `useAssetColor`: undefined
172
+ *
173
+ * ## Events
174
+ *
175
+ * Events that will be emitted by the component.
176
+ *
177
+ * - `assetId`: undefined
178
+ *
179
+ * ## Methods
180
+ *
181
+ * Methods that can be called to access component functionality.
182
+ *
183
+ * - `_onEvent(event: SharedEvent) => void`: undefined
184
+ */
185
+ "or-map-asset-card": Partial<OrMapAssetCardProps & BaseProps<OrMapAssetCard> & BaseEvents>;
186
+ }
187
+
188
+ export type CustomCssProperties = {
189
+
190
+ }
191
+
192
+
193
+ declare module 'react' {
194
+ namespace JSX {
195
+ interface IntrinsicElements extends CustomElements {}
196
+ }
197
+ export interface CSSProperties extends CustomCssProperties {}
198
+ }
199
+
200
+ declare module 'preact' {
201
+ namespace JSX {
202
+ interface IntrinsicElements extends CustomElements {}
203
+ }
204
+ export interface CSSProperties extends CustomCssProperties {}
205
+ }
206
+
207
+ declare module '@builder.io/qwik' {
208
+ namespace JSX {
209
+ interface IntrinsicElements extends CustomElements {}
210
+ }
211
+ export interface CSSProperties extends CustomCssProperties {}
212
+ }
213
+
214
+ declare module '@stencil/core' {
215
+ namespace JSX {
216
+ interface IntrinsicElements extends CustomElements {}
217
+ }
218
+ export interface CSSProperties extends CustomCssProperties {}
219
+ }
220
+
221
+ declare module 'hono/jsx' {
222
+ namespace JSX {
223
+ interface IntrinsicElements extends CustomElements {}
224
+ }
225
+ export interface CSSProperties extends CustomCssProperties {}
226
+ }
227
+
228
+ declare module 'react-native' {
229
+ namespace JSX {
230
+ interface IntrinsicElements extends CustomElements {}
231
+ }
232
+ export interface CSSProperties extends CustomCssProperties {}
233
+ }
234
+
235
+ declare global {
236
+ namespace JSX {
237
+ interface IntrinsicElements extends CustomElements {}
238
+ }
239
+ export interface CSSProperties extends CustomCssProperties {}
240
+ }
@@ -460,17 +460,26 @@
460
460
  {
461
461
  "kind": "method",
462
462
  "name": "refresh",
463
- "privacy": "public"
463
+ "privacy": "public",
464
+ "type": {
465
+ "text": "refresh() => void"
466
+ }
464
467
  },
465
468
  {
466
469
  "kind": "method",
467
470
  "name": "loadMap",
468
- "privacy": "public"
471
+ "privacy": "public",
472
+ "type": {
473
+ "text": "loadMap() => void"
474
+ }
469
475
  },
470
476
  {
471
477
  "kind": "method",
472
478
  "name": "resize",
473
- "privacy": "public"
479
+ "privacy": "public",
480
+ "type": {
481
+ "text": "resize() => void"
482
+ }
474
483
  },
475
484
  {
476
485
  "kind": "method",
@@ -491,7 +500,10 @@
491
500
  "text": "number"
492
501
  }
493
502
  }
494
- ]
503
+ ],
504
+ "type": {
505
+ "text": "flyTo(coordinates?: LngLatLike, zoom?: number) => void"
506
+ }
495
507
  },
496
508
  {
497
509
  "kind": "method",
@@ -608,7 +620,9 @@
608
620
  "package": "lit"
609
621
  },
610
622
  "tagName": "or-map",
611
- "customElement": true
623
+ "customElement": true,
624
+ "modulePath": "src/index.ts",
625
+ "definitionPath": "src/index.ts"
612
626
  }
613
627
  ],
614
628
  "exports": [
@@ -1552,7 +1566,10 @@
1552
1566
  "text": "SharedEvent"
1553
1567
  }
1554
1568
  }
1555
- ]
1569
+ ],
1570
+ "type": {
1571
+ "text": "_onEvent(event: SharedEvent) => void"
1572
+ }
1556
1573
  },
1557
1574
  {
1558
1575
  "kind": "method",
@@ -1655,7 +1672,9 @@
1655
1672
  "package": "lit"
1656
1673
  },
1657
1674
  "tagName": "or-map-asset-card",
1658
- "customElement": true
1675
+ "customElement": true,
1676
+ "modulePath": "src/or-map-asset-card.ts",
1677
+ "definitionPath": "src/or-map-asset-card.ts"
1659
1678
  }
1660
1679
  ],
1661
1680
  "exports": [