@openremote/or-components 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,386 @@
1
+
2
+ import type { OrAceEditorChangedEvent, OrAceEditorEditEvent, OrAceEditor } from "./lib/or-ace-editor.d.ts";
3
+ import type { OrCollapsiblePanel } from "./lib/or-collapsible-panel.d.ts";
4
+ import type { OrFileUploader } from "./lib/or-file-uploader.d.ts";
5
+ import type { OrForm } from "./lib/or-form.d.ts";
6
+ import type { OrIFrameEvent, OrIframe } from "./lib/or-iframe.d.ts";
7
+ import type { OrLoadingIndicator } from "./lib/or-loading-indicator.d.ts";
8
+ import type { OrLoadingWrapper } from "./lib/or-loading-wrapper.d.ts";
9
+ import type { OrPanel } from "./lib/or-panel.d.ts";
10
+
11
+ /**
12
+ * This type can be used to create scoped tags for your components.
13
+ *
14
+ * Usage:
15
+ *
16
+ * ```ts
17
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
18
+ *
19
+ * declare module "my-library" {
20
+ * namespace JSX {
21
+ * interface IntrinsicElements
22
+ * extends ScopedElements<'test-', ''> {}
23
+ * }
24
+ * }
25
+ * ```
26
+ *
27
+ * @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.
28
+ */
29
+ export type ScopedElements<
30
+ Prefix extends string = "",
31
+ Suffix extends string = ""
32
+ > = {
33
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
34
+ };
35
+
36
+ type BaseProps<T extends HTMLElement> = {
37
+
38
+ /** Content added between the opening and closing tags of the element */
39
+ children?: any;
40
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
41
+ class?: string;
42
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
43
+ className?: string;
44
+ /** 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. */
45
+ classList?: Record<string, boolean | undefined>;
46
+ /** Specifies the text direction of the element. */
47
+ dir?: "ltr" | "rtl";
48
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
49
+ exportparts?: string;
50
+ /** For <label> and <output>, lets you associate the label with some control. */
51
+ htmlFor?: string;
52
+ /** Specifies whether the element should be hidden. */
53
+ hidden?: boolean | string;
54
+ /** A unique identifier for the element. */
55
+ id?: string;
56
+ /** Keys tell React which array item each component corresponds to */
57
+ key?: string | number;
58
+ /** Specifies the language of the element. */
59
+ lang?: string;
60
+ /** 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. */
61
+ part?: string;
62
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
63
+ ref?: T | ((e: T) => void);
64
+ /** Adds a reference for a custom element slot */
65
+ slot?: string;
66
+ /** Prop for setting inline styles */
67
+ style?: Record<string, string | number>;
68
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
69
+ tabIndex?: number;
70
+ /** Specifies the tooltip text for the element. */
71
+ title?: string;
72
+ /** Passing 'no' excludes the element content from being translated. */
73
+ translate?: "yes" | "no";
74
+ /** The popover global attribute is used to designate an element as a popover element. */
75
+ popover?: "auto" | "hint" | "manual";
76
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
77
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
78
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
79
+ popovertargetaction?: "show" | "hide" | "toggle";
80
+
81
+ } ;
82
+
83
+ type BaseEvents = {
84
+
85
+
86
+ };
87
+
88
+
89
+
90
+ export type OrAceEditorProps = {
91
+ /** */
92
+ "readonly"?: OrAceEditor['readonly'];
93
+ /** */
94
+ "value"?: OrAceEditor['value'];
95
+ /** */
96
+ "mode"?: OrAceEditor['mode'];
97
+
98
+ /** */
99
+ "onundefined"?: (e: CustomEvent<OrAceEditorEditEvent>) => void;
100
+ /** */
101
+ "onnewValue"?: (e: CustomEvent<OrAceEditorChangedEvent>) => void;
102
+ }
103
+
104
+
105
+ export type OrCollapsiblePanelProps = {
106
+ /** */
107
+ "lazycontent"?: OrCollapsiblePanel['lazycontent'];
108
+ /** */
109
+ "expanded"?: OrCollapsiblePanel['expanded'];
110
+ /** */
111
+ "expandable"?: OrCollapsiblePanel['expandable'];
112
+
113
+
114
+ }
115
+
116
+
117
+ export type OrFileUploaderProps = {
118
+ /** */
119
+ "title"?: OrFileUploader['title'];
120
+
121
+ /** */
122
+ "onchange"?: (e: CustomEvent<CustomEvent>) => void;
123
+ }
124
+
125
+
126
+ export type OrFormProps = {
127
+
128
+
129
+ }
130
+
131
+
132
+ export type OrIframeProps = {
133
+ /** */
134
+ "src"?: OrIframe['src'];
135
+ /** */
136
+ "timeout"?: OrIframe['timeout'];
137
+ /** */
138
+ "preventCache"?: OrIframe['preventCache'];
139
+
140
+ /** Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error. */
141
+ "onor-iframe-event"?: (e: CustomEvent<OrIFrameEvent>) => void;
142
+ }
143
+
144
+
145
+ export type OrLoadingIndicatorProps = {
146
+ /** */
147
+ "overlay"?: OrLoadingIndicator['overlay'];
148
+
149
+
150
+ }
151
+
152
+
153
+ export type OrLoadingWrapperProps = {
154
+ /** */
155
+ "loadingHeight"?: OrLoadingWrapper['loadingHeight'];
156
+ /** */
157
+ "loadDom"?: OrLoadingWrapper['loadDom'];
158
+ /** */
159
+ "fadeContent"?: OrLoadingWrapper['fadeContent'];
160
+ /** */
161
+ "loading"?: OrLoadingWrapper['loading'];
162
+ /** */
163
+ "content"?: OrLoadingWrapper['content'];
164
+
165
+
166
+ }
167
+
168
+
169
+ export type OrPanelProps = {
170
+ /** */
171
+ "zLevel"?: OrPanel['zLevel'];
172
+ /** */
173
+ "heading"?: OrPanel['heading'];
174
+
175
+
176
+ }
177
+
178
+ export type CustomElements = {
179
+
180
+
181
+ /**
182
+ *
183
+ *
184
+ * ## Attributes & Properties
185
+ *
186
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
187
+ *
188
+ * - `readonly`: undefined (property only)
189
+ * - `value`: undefined (property only)
190
+ * - `mode`: undefined (property only)
191
+ *
192
+ * ## Events
193
+ *
194
+ * Events that will be emitted by the component.
195
+ *
196
+ * - `undefined`: undefined
197
+ * - `newValue`: undefined
198
+ *
199
+ * ## Methods
200
+ *
201
+ * Methods that can be called to access component functionality.
202
+ *
203
+ * - `getValue() => string | undefined`: undefined
204
+ * - `validate() => boolean`: undefined
205
+ */
206
+ "or-ace-editor": Partial<OrAceEditorProps & BaseProps<OrAceEditor> & BaseEvents>;
207
+
208
+
209
+ /**
210
+ *
211
+ *
212
+ * ## Attributes & Properties
213
+ *
214
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
215
+ *
216
+ * - `lazycontent`: undefined
217
+ * - `expanded`: undefined
218
+ * - `expandable`: undefined
219
+ */
220
+ "or-collapsible-panel": Partial<OrCollapsiblePanelProps & BaseProps<OrCollapsiblePanel> & BaseEvents>;
221
+
222
+
223
+ /**
224
+ *
225
+ *
226
+ * ## Attributes & Properties
227
+ *
228
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
229
+ *
230
+ * - `title`: undefined
231
+ * - `src`: undefined (property only) (readonly)
232
+ * - `managerUrl`: undefined (property only) (readonly)
233
+ * - `accept`: undefined (property only) (readonly)
234
+ * - `Files`: undefined (property only) (readonly)
235
+ *
236
+ * ## Events
237
+ *
238
+ * Events that will be emitted by the component.
239
+ *
240
+ * - `change`: undefined
241
+ *
242
+ * ## Methods
243
+ *
244
+ * Methods that can be called to access component functionality.
245
+ *
246
+ * - `_onChange(e: any) => void`: undefined
247
+ */
248
+ "or-file-uploader": Partial<OrFileUploaderProps & BaseProps<OrFileUploader> & BaseEvents>;
249
+
250
+
251
+ /**
252
+ * This is a form element that supports any element that has a value property
253
+ *
254
+ * ## Methods
255
+ *
256
+ * Methods that can be called to access component functionality.
257
+ *
258
+ * - `checkValidity() => boolean`: undefined
259
+ * - `reportValidity() => boolean`: undefined
260
+ * - `submit() => {[key: string]: any}`: undefined
261
+ * - `reset() => void`: undefined
262
+ */
263
+ "or-form": Partial<OrFormProps & BaseProps<OrForm> & BaseEvents>;
264
+
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
+ * - `src`: undefined
274
+ * - `timeout`: undefined
275
+ * - `preventCache`: undefined
276
+ *
277
+ * ## Events
278
+ *
279
+ * Events that will be emitted by the component.
280
+ *
281
+ * - `or-iframe-event`: Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error.
282
+ *
283
+ * ## Methods
284
+ *
285
+ * Methods that can be called to access component functionality.
286
+ *
287
+ * - `getSrc() => string`: undefined
288
+ * - `reload() => void`: Reload the iframe content by clearing and resetting the src
289
+ */
290
+ "or-iframe": Partial<OrIframeProps & BaseProps<OrIframe> & BaseEvents>;
291
+
292
+
293
+ /**
294
+ *
295
+ *
296
+ * ## Attributes & Properties
297
+ *
298
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
299
+ *
300
+ * - `overlay`: undefined
301
+ */
302
+ "or-loading-indicator": Partial<OrLoadingIndicatorProps & BaseProps<OrLoadingIndicator> & BaseEvents>;
303
+
304
+
305
+ /**
306
+ * A simple loading wrapper around some other content that will hide the content whilst loading property is true
307
+ *
308
+ * ## Attributes & Properties
309
+ *
310
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
311
+ *
312
+ * - `loadingHeight`: undefined
313
+ * - `loadDom`: undefined
314
+ * - `fadeContent`: undefined
315
+ * - `loading`: undefined
316
+ * - `content`: undefined (property only)
317
+ */
318
+ "or-loading-wrapper": Partial<OrLoadingWrapperProps & BaseProps<OrLoadingWrapper> & BaseEvents>;
319
+
320
+
321
+ /**
322
+ *
323
+ *
324
+ * ## Attributes & Properties
325
+ *
326
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
327
+ *
328
+ * - `zLevel`: undefined
329
+ * - `heading`: undefined
330
+ */
331
+ "or-panel": Partial<OrPanelProps & BaseProps<OrPanel> & BaseEvents>;
332
+ }
333
+
334
+ export type CustomCssProperties = {
335
+
336
+ }
337
+
338
+
339
+ declare module 'react' {
340
+ namespace JSX {
341
+ interface IntrinsicElements extends CustomElements {}
342
+ }
343
+ export interface CSSProperties extends CustomCssProperties {}
344
+ }
345
+
346
+ declare module 'preact' {
347
+ namespace JSX {
348
+ interface IntrinsicElements extends CustomElements {}
349
+ }
350
+ export interface CSSProperties extends CustomCssProperties {}
351
+ }
352
+
353
+ declare module '@builder.io/qwik' {
354
+ namespace JSX {
355
+ interface IntrinsicElements extends CustomElements {}
356
+ }
357
+ export interface CSSProperties extends CustomCssProperties {}
358
+ }
359
+
360
+ declare module '@stencil/core' {
361
+ namespace JSX {
362
+ interface IntrinsicElements extends CustomElements {}
363
+ }
364
+ export interface CSSProperties extends CustomCssProperties {}
365
+ }
366
+
367
+ declare module 'hono/jsx' {
368
+ namespace JSX {
369
+ interface IntrinsicElements extends CustomElements {}
370
+ }
371
+ export interface CSSProperties extends CustomCssProperties {}
372
+ }
373
+
374
+ declare module 'react-native' {
375
+ namespace JSX {
376
+ interface IntrinsicElements extends CustomElements {}
377
+ }
378
+ export interface CSSProperties extends CustomCssProperties {}
379
+ }
380
+
381
+ declare global {
382
+ namespace JSX {
383
+ interface IntrinsicElements extends CustomElements {}
384
+ }
385
+ export interface CSSProperties extends CustomCssProperties {}
386
+ }
@@ -150,6 +150,9 @@
150
150
  "type": {
151
151
  "text": "string | undefined"
152
152
  }
153
+ },
154
+ "type": {
155
+ "text": "getValue() => string | undefined"
153
156
  }
154
157
  },
155
158
  {
@@ -160,6 +163,9 @@
160
163
  "type": {
161
164
  "text": "boolean"
162
165
  }
166
+ },
167
+ "type": {
168
+ "text": "validate() => boolean"
163
169
  }
164
170
  }
165
171
  ],
@@ -181,7 +187,9 @@
181
187
  "package": "lit"
182
188
  },
183
189
  "tagName": "or-ace-editor",
184
- "customElement": true
190
+ "customElement": true,
191
+ "modulePath": "src/or-ace-editor.ts",
192
+ "definitionPath": "src/or-ace-editor.ts"
185
193
  }
186
194
  ],
187
195
  "exports": [
@@ -306,7 +314,9 @@
306
314
  "package": "lit"
307
315
  },
308
316
  "tagName": "or-collapsible-panel",
309
- "customElement": true
317
+ "customElement": true,
318
+ "modulePath": "src/or-collapsible-panel.ts",
319
+ "definitionPath": "src/or-collapsible-panel.ts"
310
320
  }
311
321
  ],
312
322
  "exports": [
@@ -414,7 +424,10 @@
414
424
  "text": "any"
415
425
  }
416
426
  }
417
- ]
427
+ ],
428
+ "type": {
429
+ "text": "_onChange(e: any) => void"
430
+ }
418
431
  }
419
432
  ],
420
433
  "events": [
@@ -441,7 +454,9 @@
441
454
  "package": "lit"
442
455
  },
443
456
  "tagName": "or-file-uploader",
444
- "customElement": true
457
+ "customElement": true,
458
+ "modulePath": "src/or-file-uploader.ts",
459
+ "definitionPath": "src/or-file-uploader.ts"
445
460
  }
446
461
  ],
447
462
  "exports": [
@@ -488,6 +503,9 @@
488
503
  "type": {
489
504
  "text": "boolean"
490
505
  }
506
+ },
507
+ "type": {
508
+ "text": "checkValidity() => boolean"
491
509
  }
492
510
  },
493
511
  {
@@ -498,6 +516,9 @@
498
516
  "type": {
499
517
  "text": "boolean"
500
518
  }
519
+ },
520
+ "type": {
521
+ "text": "reportValidity() => boolean"
501
522
  }
502
523
  },
503
524
  {
@@ -508,12 +529,18 @@
508
529
  "type": {
509
530
  "text": "{[key: string]: any}"
510
531
  }
532
+ },
533
+ "type": {
534
+ "text": "submit() => {[key: string]: any}"
511
535
  }
512
536
  },
513
537
  {
514
538
  "kind": "method",
515
539
  "name": "reset",
516
- "privacy": "public"
540
+ "privacy": "public",
541
+ "type": {
542
+ "text": "reset() => void"
543
+ }
517
544
  }
518
545
  ],
519
546
  "superclass": {
@@ -521,7 +548,9 @@
521
548
  "package": "lit"
522
549
  },
523
550
  "tagName": "or-form",
524
- "customElement": true
551
+ "customElement": true,
552
+ "modulePath": "src/or-form.ts",
553
+ "definitionPath": "src/or-form.ts"
525
554
  }
526
555
  ],
527
556
  "exports": [
@@ -685,6 +714,9 @@
685
714
  "type": {
686
715
  "text": "string"
687
716
  }
717
+ },
718
+ "type": {
719
+ "text": "getSrc() => string"
688
720
  }
689
721
  },
690
722
  {
@@ -696,7 +728,10 @@
696
728
  "text": "void"
697
729
  }
698
730
  },
699
- "description": "Reload the iframe content by clearing and resetting the src"
731
+ "description": "Reload the iframe content by clearing and resetting the src",
732
+ "type": {
733
+ "text": "reload() => void"
734
+ }
700
735
  }
701
736
  ],
702
737
  "events": [
@@ -738,7 +773,9 @@
738
773
  "package": "lit"
739
774
  },
740
775
  "tagName": "or-iframe",
741
- "customElement": true
776
+ "customElement": true,
777
+ "modulePath": "src/or-iframe.ts",
778
+ "definitionPath": "src/or-iframe.ts"
742
779
  }
743
780
  ],
744
781
  "exports": [
@@ -803,7 +840,9 @@
803
840
  "package": "lit"
804
841
  },
805
842
  "tagName": "or-loading-indicator",
806
- "customElement": true
843
+ "customElement": true,
844
+ "modulePath": "src/or-loading-indicator.ts",
845
+ "definitionPath": "src/or-loading-indicator.ts"
807
846
  }
808
847
  ],
809
848
  "exports": [
@@ -920,7 +959,9 @@
920
959
  "package": "lit"
921
960
  },
922
961
  "tagName": "or-loading-wrapper",
923
- "customElement": true
962
+ "customElement": true,
963
+ "modulePath": "src/or-loading-wrapper.ts",
964
+ "definitionPath": "src/or-loading-wrapper.ts"
924
965
  }
925
966
  ],
926
967
  "exports": [
@@ -998,7 +1039,9 @@
998
1039
  "package": "lit"
999
1040
  },
1000
1041
  "tagName": "or-panel",
1001
- "customElement": true
1042
+ "customElement": true,
1043
+ "modulePath": "src/or-panel.ts",
1044
+ "definitionPath": "src/or-panel.ts"
1002
1045
  }
1003
1046
  ],
1004
1047
  "exports": [
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@openremote/or-components",
3
- "version": "1.11.0-snapshot.20251103144513",
3
+ "version": "1.11.0",
4
4
  "description": "OpenRemote basic UI components",
5
5
  "customElements": "custom-elements.json",
6
6
  "main": "dist/umd/index.bundle.js",
7
7
  "module": "lib/index.js",
8
8
  "exports": {
9
9
  ".": "./lib/index.js",
10
- "./*": "./lib/*.js"
10
+ "./*": "./lib/*.js",
11
+ "./jsx": {
12
+ "types": "./custom-elements-jsx.d.ts"
13
+ }
11
14
  },
12
15
  "typesVersions": {
13
16
  "*": {
@@ -26,11 +29,11 @@
26
29
  "license": "AGPL-3.0-or-later",
27
30
  "dependencies": {
28
31
  "@material/elevation": "^9.0.0",
29
- "@openremote/core": "1.11.0-snapshot.20251103144513",
30
- "@openremote/model": "1.11.0-snapshot.20251103144513",
31
- "@openremote/or-icon": "1.11.0-snapshot.20251103144513",
32
- "@openremote/or-mwc-components": "1.11.0-snapshot.20251103144513",
33
- "@openremote/or-translate": "1.11.0-snapshot.20251103144513",
32
+ "@openremote/core": "1.11.0",
33
+ "@openremote/model": "1.11.0",
34
+ "@openremote/or-icon": "1.11.0",
35
+ "@openremote/or-mwc-components": "1.11.0",
36
+ "@openremote/or-translate": "1.11.0",
34
37
  "ace-builds": "^1.41.0",
35
38
  "lit": "^3.3.1",
36
39
  "simplebar": "^5.3.6"