@openremote/or-app 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,252 @@
1
+
2
+ import type { DefaultLogo, DefaultMobileLogo, DefaultFavIcon, AnyAction, *, HeaderConfig, DEFAULT_LANGUAGES, getDefaultManagerConfig, OrApp } from "./lib/index.d.ts";
3
+ import type { Languages, OrHeader } from "./lib/or-header.d.ts";
4
+ import type { pageOfflineProvider, PageOffline } from "./lib/page-offline.d.ts";
5
+ import type { router, Page } from "./lib/types.d.ts";
6
+
7
+ /**
8
+ * This type can be used to create scoped tags for your components.
9
+ *
10
+ * Usage:
11
+ *
12
+ * ```ts
13
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
14
+ *
15
+ * declare module "my-library" {
16
+ * namespace JSX {
17
+ * interface IntrinsicElements
18
+ * extends ScopedElements<'test-', ''> {}
19
+ * }
20
+ * }
21
+ * ```
22
+ *
23
+ * @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.
24
+ */
25
+ export type ScopedElements<
26
+ Prefix extends string = "",
27
+ Suffix extends string = ""
28
+ > = {
29
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
30
+ };
31
+
32
+ type BaseProps<T extends HTMLElement> = {
33
+
34
+ /** Content added between the opening and closing tags of the element */
35
+ children?: any;
36
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
37
+ class?: string;
38
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
39
+ className?: string;
40
+ /** 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. */
41
+ classList?: Record<string, boolean | undefined>;
42
+ /** Specifies the text direction of the element. */
43
+ dir?: "ltr" | "rtl";
44
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
45
+ exportparts?: string;
46
+ /** For <label> and <output>, lets you associate the label with some control. */
47
+ htmlFor?: string;
48
+ /** Specifies whether the element should be hidden. */
49
+ hidden?: boolean | string;
50
+ /** A unique identifier for the element. */
51
+ id?: string;
52
+ /** Keys tell React which array item each component corresponds to */
53
+ key?: string | number;
54
+ /** Specifies the language of the element. */
55
+ lang?: string;
56
+ /** 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. */
57
+ part?: string;
58
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
59
+ ref?: T | ((e: T) => void);
60
+ /** Adds a reference for a custom element slot */
61
+ slot?: string;
62
+ /** Prop for setting inline styles */
63
+ style?: Record<string, string | number>;
64
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
65
+ tabIndex?: number;
66
+ /** Specifies the tooltip text for the element. */
67
+ title?: string;
68
+ /** Passing 'no' excludes the element content from being translated. */
69
+ translate?: "yes" | "no";
70
+ /** The popover global attribute is used to designate an element as a popover element. */
71
+ popover?: "auto" | "hint" | "manual";
72
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
73
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
74
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
75
+ popovertargetaction?: "show" | "hide" | "toggle";
76
+
77
+ } ;
78
+
79
+ type BaseEvents = {
80
+
81
+
82
+ };
83
+
84
+
85
+
86
+ export type OrAppProps = {
87
+ /** */
88
+ "appConfig"?: OrApp['appConfig'];
89
+ /** */
90
+ "managerConfig"?: OrApp['managerConfig'];
91
+ /** */
92
+ "appConfigProvider"?: OrApp['appConfigProvider'];
93
+ /** */
94
+ "DialogHostElement"?: OrApp['DialogHostElement'];
95
+
96
+
97
+ }
98
+
99
+
100
+ export type OrHeaderProps = {
101
+ /** */
102
+ "realms"?: OrHeader['realms'];
103
+ /** */
104
+ "realm"?: OrHeader['realm'];
105
+ /** */
106
+ "store"?: OrHeader['store'];
107
+ /** */
108
+ "logo"?: OrHeader['logo'];
109
+ /** */
110
+ "logoMobile"?: OrHeader['logoMobile'];
111
+ /** */
112
+ "config"?: OrHeader['config'];
113
+ /** */
114
+ "activeMenu"?: OrHeader['activeMenu'];
115
+
116
+
117
+ }
118
+
119
+
120
+ export type PageOfflineProps = {
121
+ /** */
122
+ "onRefresh"?: PageOffline['onRefresh'];
123
+
124
+
125
+ }
126
+
127
+
128
+ export type CustomElements = {
129
+
130
+
131
+ /**
132
+ *
133
+ *
134
+ * ## Attributes & Properties
135
+ *
136
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
137
+ *
138
+ * - `appConfig`: undefined
139
+ * - `managerConfig`: undefined
140
+ * - `appConfigProvider`: undefined (property only)
141
+ * - `DialogHostElement`: undefined (property only)
142
+ *
143
+ * ## Methods
144
+ *
145
+ * Methods that can be called to access component functionality.
146
+ *
147
+ * - `getState() => S`: undefined
148
+ * - `stateChanged(state: AppStateKeyed) => void`: undefined
149
+ * - `logout() => void`: undefined
150
+ * - `setLanguage(lang: string) => void`: undefined
151
+ * - `showLanguageModal() => void`: undefined
152
+ */
153
+ "or-app": Partial<OrAppProps & BaseProps<OrApp> & BaseEvents>;
154
+
155
+
156
+ /**
157
+ *
158
+ *
159
+ * ## Attributes & Properties
160
+ *
161
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
162
+ *
163
+ * - `realms`: undefined
164
+ * - `realm`: undefined
165
+ * - `store`: undefined
166
+ * - `logo`: undefined
167
+ * - `logoMobile`: undefined
168
+ * - `config`: undefined
169
+ * - `activeMenu`: undefined
170
+ *
171
+ * ## Methods
172
+ *
173
+ * Methods that can be called to access component functionality.
174
+ *
175
+ * - `_onRealmSelect(realm: string) => void`: undefined
176
+ */
177
+ "or-header": Partial<OrHeaderProps & BaseProps<OrHeader> & BaseEvents>;
178
+
179
+
180
+ /**
181
+ *
182
+ *
183
+ * ## Attributes & Properties
184
+ *
185
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
186
+ *
187
+ * - `name`: undefined (property only) (readonly)
188
+ * - `onRefresh`: undefined (property only)
189
+ *
190
+ * ## Methods
191
+ *
192
+ * Methods that can be called to access component functionality.
193
+ *
194
+ * - `stateChanged(state: AppStateKeyed) => void`: undefined
195
+ */
196
+ "page-offline": Partial<PageOfflineProps & BaseProps<PageOffline> & BaseEvents>;
197
+
198
+ }
199
+
200
+ export type CustomCssProperties = {
201
+
202
+ }
203
+
204
+
205
+ declare module 'react' {
206
+ namespace JSX {
207
+ interface IntrinsicElements extends CustomElements {}
208
+ }
209
+ export interface CSSProperties extends CustomCssProperties {}
210
+ }
211
+
212
+ declare module 'preact' {
213
+ namespace JSX {
214
+ interface IntrinsicElements extends CustomElements {}
215
+ }
216
+ export interface CSSProperties extends CustomCssProperties {}
217
+ }
218
+
219
+ declare module '@builder.io/qwik' {
220
+ namespace JSX {
221
+ interface IntrinsicElements extends CustomElements {}
222
+ }
223
+ export interface CSSProperties extends CustomCssProperties {}
224
+ }
225
+
226
+ declare module '@stencil/core' {
227
+ namespace JSX {
228
+ interface IntrinsicElements extends CustomElements {}
229
+ }
230
+ export interface CSSProperties extends CustomCssProperties {}
231
+ }
232
+
233
+ declare module 'hono/jsx' {
234
+ namespace JSX {
235
+ interface IntrinsicElements extends CustomElements {}
236
+ }
237
+ export interface CSSProperties extends CustomCssProperties {}
238
+ }
239
+
240
+ declare module 'react-native' {
241
+ namespace JSX {
242
+ interface IntrinsicElements extends CustomElements {}
243
+ }
244
+ export interface CSSProperties extends CustomCssProperties {}
245
+ }
246
+
247
+ declare global {
248
+ namespace JSX {
249
+ interface IntrinsicElements extends CustomElements {}
250
+ }
251
+ export interface CSSProperties extends CustomCssProperties {}
252
+ }
@@ -203,6 +203,9 @@
203
203
  "type": {
204
204
  "text": "S"
205
205
  }
206
+ },
207
+ "type": {
208
+ "text": "getState() => S"
206
209
  }
207
210
  },
208
211
  {
@@ -229,7 +232,10 @@
229
232
  "text": "AppStateKeyed"
230
233
  }
231
234
  }
232
- ]
235
+ ],
236
+ "type": {
237
+ "text": "stateChanged(state: AppStateKeyed) => void"
238
+ }
233
239
  },
234
240
  {
235
241
  "kind": "method",
@@ -274,7 +280,10 @@
274
280
  {
275
281
  "kind": "method",
276
282
  "name": "logout",
277
- "privacy": "public"
283
+ "privacy": "public",
284
+ "type": {
285
+ "text": "logout() => void"
286
+ }
278
287
  },
279
288
  {
280
289
  "kind": "method",
@@ -287,12 +296,18 @@
287
296
  "text": "string"
288
297
  }
289
298
  }
290
- ]
299
+ ],
300
+ "type": {
301
+ "text": "setLanguage(lang: string) => void"
302
+ }
291
303
  },
292
304
  {
293
305
  "kind": "method",
294
306
  "name": "showLanguageModal",
295
- "privacy": "public"
307
+ "privacy": "public",
308
+ "type": {
309
+ "text": "showLanguageModal() => void"
310
+ }
296
311
  },
297
312
  {
298
313
  "kind": "method",
@@ -365,7 +380,9 @@
365
380
  "package": "lit"
366
381
  },
367
382
  "tagName": "or-app",
368
- "customElement": true
383
+ "customElement": true,
384
+ "modulePath": "src/index.ts",
385
+ "definitionPath": "src/index.ts"
369
386
  }
370
387
  ],
371
388
  "exports": [
@@ -593,7 +610,10 @@
593
610
  "text": "string"
594
611
  }
595
612
  }
596
- ]
613
+ ],
614
+ "type": {
615
+ "text": "_onRealmSelect(realm: string) => void"
616
+ }
597
617
  },
598
618
  {
599
619
  "kind": "method",
@@ -721,7 +741,9 @@
721
741
  "package": "lit"
722
742
  },
723
743
  "tagName": "or-header",
724
- "customElement": true
744
+ "customElement": true,
745
+ "modulePath": "src/or-header.ts",
746
+ "definitionPath": "src/or-header.ts"
725
747
  }
726
748
  ],
727
749
  "exports": [
@@ -805,6 +827,9 @@
805
827
  "inheritedFrom": {
806
828
  "name": "Page",
807
829
  "module": "src/types.ts"
830
+ },
831
+ "type": {
832
+ "text": "stateChanged(state: AppStateKeyed) => void"
808
833
  }
809
834
  },
810
835
  {
@@ -875,7 +900,9 @@
875
900
  "module": "/src/types"
876
901
  },
877
902
  "tagName": "page-offline",
878
- "customElement": true
903
+ "customElement": true,
904
+ "modulePath": "src/page-offline.ts",
905
+ "definitionPath": "src/page-offline.ts"
879
906
  }
880
907
  ],
881
908
  "exports": [
@@ -989,7 +1016,8 @@
989
1016
  "name": "LitElement",
990
1017
  "package": "lit"
991
1018
  },
992
- "customElement": true
1019
+ "customElement": true,
1020
+ "modulePath": "src/types.ts"
993
1021
  }
994
1022
  ],
995
1023
  "exports": [
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@openremote/or-app",
3
- "version": "1.11.0-snapshot.20251103144513",
3
+ "version": "1.11.0",
4
4
  "description": "OpenRemote app template",
5
+ "customElements": "custom-elements.json",
5
6
  "author": "OpenRemote",
6
7
  "license": "AGPL-3.0-or-later",
7
8
  "main": "dist/umd/index.bundle.js",
8
9
  "module": "lib/index.js",
9
10
  "exports": {
10
11
  ".": "./lib/index.js",
11
- "./*": "./lib/*.js"
12
+ "./*": "./lib/*.js",
13
+ "./jsx": {
14
+ "types": "./custom-elements-jsx.d.ts"
15
+ }
12
16
  },
13
17
  "types": "lib/index.d.ts",
14
18
  "scripts": {
@@ -21,11 +25,11 @@
21
25
  "prepack": "npx tsc -b"
22
26
  },
23
27
  "dependencies": {
24
- "@openremote/core": "1.11.0-snapshot.20251103144513",
25
- "@openremote/model": "1.11.0-snapshot.20251103144513",
26
- "@openremote/or-icon": "1.11.0-snapshot.20251103144513",
27
- "@openremote/or-mwc-components": "1.11.0-snapshot.20251103144513",
28
- "@openremote/or-translate": "1.11.0-snapshot.20251103144513",
28
+ "@openremote/core": "1.11.0",
29
+ "@openremote/model": "1.11.0",
30
+ "@openremote/or-icon": "1.11.0",
31
+ "@openremote/or-mwc-components": "1.11.0",
32
+ "@openremote/or-translate": "1.11.0",
29
33
  "@reduxjs/toolkit": "^1.8.1",
30
34
  "@webcomponents/webcomponentsjs": "^2.6.0",
31
35
  "lit": "^3.3.1",
@@ -33,7 +37,7 @@
33
37
  "pwa-helpers": "^0.9.0"
34
38
  },
35
39
  "devDependencies": {
36
- "@openremote/util": "1.11.0-snapshot.20251103144513"
40
+ "@openremote/util": "1.11.0"
37
41
  },
38
42
  "publishConfig": {
39
43
  "access": "public"