@openremote/or-services 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,4 +1,3 @@
1
-
2
1
  import type { OrServices } from "./lib/index.d.ts";
3
2
  import type { OrServiceTree } from "./lib/or-service-tree.d.ts";
4
3
 
@@ -28,7 +27,6 @@ export type ScopedElements<
28
27
  };
29
28
 
30
29
  type BaseProps<T extends HTMLElement> = {
31
-
32
30
  /** Content added between the opening and closing tags of the element */
33
31
  children?: any;
34
32
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -51,6 +49,8 @@ type BaseProps<T extends HTMLElement> = {
51
49
  key?: string | number;
52
50
  /** Specifies the language of the element. */
53
51
  lang?: string;
52
+ /** Defines the element's semantic role for accessibility APIs. */
53
+ role?: string;
54
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
55
  part?: string;
56
56
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -71,148 +71,240 @@ type BaseProps<T extends HTMLElement> = {
71
71
  popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
72
72
  /** Specifies the action to be performed on a popover element being controlled by a control element. */
73
73
  popovertargetaction?: "show" | "hide" | "toggle";
74
-
75
- } ;
76
-
77
- type BaseEvents = {
78
-
79
-
80
74
  };
81
75
 
82
-
76
+ type BaseEvents = {};
83
77
 
84
78
  export type OrServicesProps = {
85
79
  /** */
86
- "realmName"?: OrServices['realmName'];
80
+ realmName?: OrServices["realmName"];
87
81
  /** */
88
- "services"?: OrServices['services'];
82
+ services?: OrServices["services"];
89
83
  /** */
90
- "selectedService"?: OrServices['selectedService'];
84
+ selectedService?: OrServices["selectedService"];
91
85
  /** */
92
- "loading"?: OrServices['loading'];
93
-
86
+ loading?: OrServices["loading"];
87
+ };
94
88
 
95
- }
89
+ export type OrServicesSolidJsProps = {
90
+ /** */
91
+ "prop:realmName"?: OrServices["realmName"];
92
+ /** */
93
+ "prop:services"?: OrServices["services"];
94
+ /** */
95
+ "prop:selectedService"?: OrServices["selectedService"];
96
+ /** */
97
+ "prop:loading"?: OrServices["loading"];
96
98
 
99
+ /** Set the innerHTML of the element */
100
+ innerHTML?: string;
101
+ /** Set the textContent of the element */
102
+ textContent?: string | number;
103
+ };
97
104
 
98
105
  export type OrServiceTreeProps = {
99
106
  /** */
100
- "services"?: OrServiceTree['services'];
107
+ services?: OrServiceTree["services"];
101
108
  /** */
102
- "selectedService"?: OrServiceTree['selectedService'];
109
+ selectedService?: OrServiceTree["selectedService"];
103
110
  /** */
104
- "readonly"?: OrServiceTree['readonly'];
111
+ readonly?: OrServiceTree["readonly"];
105
112
  /** */
106
- "nodes"?: OrServiceTree['nodes'];
113
+ nodes?: OrServiceTree["nodes"];
107
114
  /** */
108
- "selection"?: OrServiceTree['selection'];
115
+ selection?: OrServiceTree["selection"];
109
116
  /** */
110
- "menuTitle"?: OrServiceTree['menuTitle'];
117
+ menuTitle?: OrServiceTree["menuTitle"];
111
118
  /** */
112
- "sortBy"?: OrServiceTree['sortBy'];
119
+ sortBy?: OrServiceTree["sortBy"];
113
120
  /** */
114
- "sortOptions"?: OrServiceTree['sortOptions'];
121
+ sortOptions?: OrServiceTree["sortOptions"];
115
122
 
116
123
  /** Triggers upon selecting a service, and dispatches the selected service. */
117
- "onor-service-selected"?: (e: CustomEvent<OrServiceSelectedEvent>) => void;
118
- }
124
+ "onor-service-selected"?: (e: OrServiceSelectedEvent) => void;
125
+ };
119
126
 
120
- export type CustomElements = {
127
+ export type OrServiceTreeSolidJsProps = {
128
+ /** */
129
+ "prop:services"?: OrServiceTree["services"];
130
+ /** */
131
+ "prop:selectedService"?: OrServiceTree["selectedService"];
132
+ /** */
133
+ "prop:readonly"?: OrServiceTree["readonly"];
134
+ /** */
135
+ "prop:nodes"?: OrServiceTree["nodes"];
136
+ /** */
137
+ "prop:selection"?: OrServiceTree["selection"];
138
+ /** */
139
+ "prop:menuTitle"?: OrServiceTree["menuTitle"];
140
+ /** */
141
+ "prop:sortBy"?: OrServiceTree["sortBy"];
142
+ /** */
143
+ "prop:sortOptions"?: OrServiceTree["sortOptions"];
144
+ /** Triggers upon selecting a service, and dispatches the selected service. */
145
+ "on:or-service-selected"?: (e: OrServiceSelectedEvent) => void;
121
146
 
147
+ /** Set the innerHTML of the element */
148
+ innerHTML?: string;
149
+ /** Set the textContent of the element */
150
+ textContent?: string | number;
151
+ };
122
152
 
153
+ export type CustomElements = {
123
154
  /**
124
- *
125
- *
126
- * ## Attributes & Properties
127
- *
128
- * Component attributes and properties that can be applied to the element or by using JavaScript.
129
- *
130
- * - `realmName`: undefined
131
- * - `services`: undefined
132
- * - `selectedService`: undefined
133
- * - `loading`: undefined
134
- *
135
- * ## Methods
136
- *
137
- * Methods that can be called to access component functionality.
138
- *
139
- * - `refreshIframe() => void`: undefined
140
- */
141
- "or-services": Partial<OrServicesProps & BaseProps<OrServices> & BaseEvents>;
142
-
155
+ *
156
+ *
157
+ * ## Attributes & Properties
158
+ *
159
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
160
+ *
161
+ * - `realmName`: undefined
162
+ * - `services`: undefined
163
+ * - `selectedService`: undefined
164
+ * - `loading`: undefined
165
+ *
166
+ * ## Methods
167
+ *
168
+ * Methods that can be called to access component functionality.
169
+ *
170
+ * - `refreshIframe() => void`: undefined
171
+ */
172
+ "or-services": Partial<OrServicesProps & BaseProps<OrServices> & BaseEvents>;
143
173
 
144
174
  /**
145
- *
146
- *
147
- * ## Attributes & Properties
148
- *
149
- * Component attributes and properties that can be applied to the element or by using JavaScript.
150
- *
151
- * - `services`: undefined
152
- * - `selectedService`: undefined
153
- * - `readonly`: undefined
154
- * - `nodes`: undefined (property only)
155
- * - `selection`: undefined (property only)
156
- * - `menuTitle`: undefined (property only)
157
- * - `sortBy`: undefined (property only)
158
- * - `sortOptions`: undefined (property only)
159
- *
160
- * ## Events
161
- *
162
- * Events that will be emitted by the component.
163
- *
164
- * - `or-service-selected`: Triggers upon selecting a service, and dispatches the selected service.
165
- */
166
- "or-service-tree": Partial<OrServiceTreeProps & BaseProps<OrServiceTree> & BaseEvents>;
167
- }
175
+ *
176
+ *
177
+ * ## Attributes & Properties
178
+ *
179
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
180
+ *
181
+ * - `services`: undefined
182
+ * - `selectedService`: undefined
183
+ * - `readonly`: undefined
184
+ * - `nodes`: undefined (property only)
185
+ * - `selection`: undefined (property only)
186
+ * - `menuTitle`: undefined (property only)
187
+ * - `sortBy`: undefined (property only)
188
+ * - `sortOptions`: undefined (property only)
189
+ *
190
+ * ## Events
191
+ *
192
+ * Events that will be emitted by the component.
193
+ *
194
+ * - `or-service-selected`: Triggers upon selecting a service, and dispatches the selected service.
195
+ */
196
+ "or-service-tree": Partial<
197
+ OrServiceTreeProps & BaseProps<OrServiceTree> & BaseEvents
198
+ >;
199
+ };
168
200
 
169
- export type CustomCssProperties = {
201
+ export type CustomElementsSolidJs = {
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
+ * - `realmName`: undefined
210
+ * - `services`: undefined
211
+ * - `selectedService`: undefined
212
+ * - `loading`: undefined
213
+ *
214
+ * ## Methods
215
+ *
216
+ * Methods that can be called to access component functionality.
217
+ *
218
+ * - `refreshIframe() => void`: undefined
219
+ */
220
+ "or-services": Partial<
221
+ OrServicesProps &
222
+ OrServicesSolidJsProps &
223
+ BaseProps<OrServices> &
224
+ BaseEvents
225
+ >;
170
226
 
171
- }
227
+ /**
228
+ *
229
+ *
230
+ * ## Attributes & Properties
231
+ *
232
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
233
+ *
234
+ * - `services`: undefined
235
+ * - `selectedService`: undefined
236
+ * - `readonly`: undefined
237
+ * - `nodes`: undefined (property only)
238
+ * - `selection`: undefined (property only)
239
+ * - `menuTitle`: undefined (property only)
240
+ * - `sortBy`: undefined (property only)
241
+ * - `sortOptions`: undefined (property only)
242
+ *
243
+ * ## Events
244
+ *
245
+ * Events that will be emitted by the component.
246
+ *
247
+ * - `or-service-selected`: Triggers upon selecting a service, and dispatches the selected service.
248
+ */
249
+ "or-service-tree": Partial<
250
+ OrServiceTreeProps &
251
+ OrServiceTreeSolidJsProps &
252
+ BaseProps<OrServiceTree> &
253
+ BaseEvents
254
+ >;
255
+ };
172
256
 
257
+ export type CustomCssProperties = {};
173
258
 
174
- declare module 'react' {
259
+ declare module "react" {
175
260
  namespace JSX {
176
261
  interface IntrinsicElements extends CustomElements {}
177
262
  }
178
263
  export interface CSSProperties extends CustomCssProperties {}
179
264
  }
180
265
 
181
- declare module 'preact' {
266
+ declare module "preact" {
182
267
  namespace JSX {
183
268
  interface IntrinsicElements extends CustomElements {}
184
269
  }
185
270
  export interface CSSProperties extends CustomCssProperties {}
186
271
  }
187
272
 
188
- declare module '@builder.io/qwik' {
273
+ declare module "@builder.io/qwik" {
189
274
  namespace JSX {
190
275
  interface IntrinsicElements extends CustomElements {}
191
276
  }
192
277
  export interface CSSProperties extends CustomCssProperties {}
193
278
  }
194
279
 
195
- declare module '@stencil/core' {
280
+ declare module "@stencil/core" {
196
281
  namespace JSX {
197
282
  interface IntrinsicElements extends CustomElements {}
198
283
  }
199
284
  export interface CSSProperties extends CustomCssProperties {}
200
285
  }
201
286
 
202
- declare module 'hono/jsx' {
287
+ declare module "hono/jsx" {
203
288
  namespace JSX {
204
289
  interface IntrinsicElements extends CustomElements {}
205
290
  }
206
291
  export interface CSSProperties extends CustomCssProperties {}
207
292
  }
208
293
 
209
- declare module 'react-native' {
294
+ declare module "react-native" {
210
295
  namespace JSX {
211
296
  interface IntrinsicElements extends CustomElements {}
212
297
  }
213
298
  export interface CSSProperties extends CustomCssProperties {}
214
299
  }
215
300
 
301
+ declare module "solid-js" {
302
+ namespace JSX {
303
+ interface IntrinsicElements extends CustomElementsSolidJs {}
304
+ }
305
+ export interface CSSProperties extends CustomCssProperties {}
306
+ }
307
+
216
308
  declare global {
217
309
  namespace JSX {
218
310
  interface IntrinsicElements extends CustomElements {}