@openremote/or-attribute-card 1.24.0 → 1.24.2
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 +149 -71
- package/dist/umd/index.bundle.js +20 -20
- package/dist/umd/index.bundle.js.map +1 -1
- package/package.json +11 -10
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import type { OrAttributeCard } from "./lib/index.d.ts";
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -27,7 +26,6 @@ export type ScopedElements<
|
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
type BaseProps<T extends HTMLElement> = {
|
|
30
|
-
|
|
31
29
|
/** Content added between the opening and closing tags of the element */
|
|
32
30
|
children?: any;
|
|
33
31
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -50,6 +48,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
50
48
|
key?: string | number;
|
|
51
49
|
/** Specifies the language of the element. */
|
|
52
50
|
lang?: string;
|
|
51
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
52
|
+
role?: string;
|
|
53
53
|
/** 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. */
|
|
54
54
|
part?: string;
|
|
55
55
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -70,135 +70,213 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
70
70
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
71
71
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
72
72
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
73
|
-
|
|
74
|
-
} ;
|
|
75
|
-
|
|
76
|
-
type BaseEvents = {
|
|
77
|
-
|
|
78
|
-
|
|
79
73
|
};
|
|
80
74
|
|
|
81
|
-
|
|
75
|
+
type BaseEvents = {};
|
|
82
76
|
|
|
83
77
|
export type OrAttributeCardProps = {
|
|
84
78
|
/** */
|
|
85
|
-
|
|
79
|
+
panelName?: OrAttributeCard["panelName"];
|
|
86
80
|
/** */
|
|
87
|
-
|
|
81
|
+
assets?: OrAttributeCard["assets"];
|
|
88
82
|
/** */
|
|
89
|
-
|
|
83
|
+
assetAttributes?: OrAttributeCard["assetAttributes"];
|
|
90
84
|
/** */
|
|
91
|
-
|
|
85
|
+
data?: OrAttributeCard["data"];
|
|
92
86
|
/** */
|
|
93
|
-
|
|
87
|
+
realm?: OrAttributeCard["realm"];
|
|
94
88
|
/** */
|
|
95
|
-
|
|
89
|
+
mainValue?: OrAttributeCard["mainValue"];
|
|
96
90
|
/** */
|
|
97
|
-
|
|
91
|
+
mainValueDecimals?: OrAttributeCard["mainValueDecimals"];
|
|
98
92
|
/** */
|
|
99
|
-
|
|
93
|
+
mainValueSize?: OrAttributeCard["mainValueSize"];
|
|
100
94
|
/** */
|
|
101
|
-
|
|
95
|
+
delta?: OrAttributeCard["delta"];
|
|
102
96
|
/** */
|
|
103
|
-
|
|
97
|
+
deltaPlus?: OrAttributeCard["deltaPlus"];
|
|
104
98
|
/** */
|
|
105
|
-
|
|
99
|
+
deltaFormat?: OrAttributeCard["deltaFormat"];
|
|
106
100
|
/** */
|
|
107
|
-
|
|
101
|
+
showControls?: OrAttributeCard["showControls"];
|
|
108
102
|
/** */
|
|
109
|
-
|
|
103
|
+
hideAttributePicker?: OrAttributeCard["hideAttributePicker"];
|
|
110
104
|
/** */
|
|
111
|
-
|
|
105
|
+
showTitle?: OrAttributeCard["showTitle"];
|
|
112
106
|
/** */
|
|
113
|
-
|
|
107
|
+
_loading?: OrAttributeCard["_loading"];
|
|
114
108
|
/** */
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
period?: OrAttributeCard["period"];
|
|
110
|
+
};
|
|
117
111
|
|
|
118
|
-
|
|
112
|
+
export type OrAttributeCardSolidJsProps = {
|
|
113
|
+
/** */
|
|
114
|
+
"prop:panelName"?: OrAttributeCard["panelName"];
|
|
115
|
+
/** */
|
|
116
|
+
"prop:assets"?: OrAttributeCard["assets"];
|
|
117
|
+
/** */
|
|
118
|
+
"prop:assetAttributes"?: OrAttributeCard["assetAttributes"];
|
|
119
|
+
/** */
|
|
120
|
+
"prop:data"?: OrAttributeCard["data"];
|
|
121
|
+
/** */
|
|
122
|
+
"prop:realm"?: OrAttributeCard["realm"];
|
|
123
|
+
/** */
|
|
124
|
+
"prop:mainValue"?: OrAttributeCard["mainValue"];
|
|
125
|
+
/** */
|
|
126
|
+
"prop:mainValueDecimals"?: OrAttributeCard["mainValueDecimals"];
|
|
127
|
+
/** */
|
|
128
|
+
"prop:mainValueSize"?: OrAttributeCard["mainValueSize"];
|
|
129
|
+
/** */
|
|
130
|
+
"prop:delta"?: OrAttributeCard["delta"];
|
|
131
|
+
/** */
|
|
132
|
+
"prop:deltaPlus"?: OrAttributeCard["deltaPlus"];
|
|
133
|
+
/** */
|
|
134
|
+
"prop:deltaFormat"?: OrAttributeCard["deltaFormat"];
|
|
135
|
+
/** */
|
|
136
|
+
"prop:showControls"?: OrAttributeCard["showControls"];
|
|
137
|
+
/** */
|
|
138
|
+
"prop:hideAttributePicker"?: OrAttributeCard["hideAttributePicker"];
|
|
139
|
+
/** */
|
|
140
|
+
"prop:showTitle"?: OrAttributeCard["showTitle"];
|
|
141
|
+
/** */
|
|
142
|
+
"prop:_loading"?: OrAttributeCard["_loading"];
|
|
143
|
+
/** */
|
|
144
|
+
"prop:period"?: OrAttributeCard["period"];
|
|
119
145
|
|
|
120
|
-
|
|
146
|
+
/** Set the innerHTML of the element */
|
|
147
|
+
innerHTML?: string;
|
|
148
|
+
/** Set the textContent of the element */
|
|
149
|
+
textContent?: string | number;
|
|
150
|
+
};
|
|
121
151
|
|
|
152
|
+
export type CustomElements = {
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*
|
|
156
|
+
* ## Attributes & Properties
|
|
157
|
+
*
|
|
158
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
159
|
+
*
|
|
160
|
+
* - `panelName`: undefined
|
|
161
|
+
* - `assets`: undefined
|
|
162
|
+
* - `assetAttributes`: undefined
|
|
163
|
+
* - `data`: undefined
|
|
164
|
+
* - `realm`: undefined
|
|
165
|
+
* - `mainValue`: undefined
|
|
166
|
+
* - `mainValueDecimals`: undefined
|
|
167
|
+
* - `mainValueSize`: undefined
|
|
168
|
+
* - `delta`: undefined
|
|
169
|
+
* - `deltaPlus`: undefined
|
|
170
|
+
* - `deltaFormat`: undefined
|
|
171
|
+
* - `showControls`: undefined
|
|
172
|
+
* - `hideAttributePicker`: undefined
|
|
173
|
+
* - `showTitle`: undefined
|
|
174
|
+
* - `_loading`: undefined
|
|
175
|
+
* - `period`: undefined
|
|
176
|
+
*
|
|
177
|
+
* ## Methods
|
|
178
|
+
*
|
|
179
|
+
* Methods that can be called to access component functionality.
|
|
180
|
+
*
|
|
181
|
+
* - `shouldHideAttributePicker() => boolean`: undefined
|
|
182
|
+
* - `shouldShowControls() => boolean`: undefined
|
|
183
|
+
* - `shouldShowTitle() => boolean`: undefined
|
|
184
|
+
* - `saveSettings() => void`: undefined
|
|
185
|
+
*/
|
|
186
|
+
"or-attribute-card": Partial<
|
|
187
|
+
OrAttributeCardProps & BaseProps<OrAttributeCard> & BaseEvents
|
|
188
|
+
>;
|
|
189
|
+
};
|
|
122
190
|
|
|
191
|
+
export type CustomElementsSolidJs = {
|
|
123
192
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
* ## Attributes & Properties
|
|
196
|
+
*
|
|
197
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
198
|
+
*
|
|
199
|
+
* - `panelName`: undefined
|
|
200
|
+
* - `assets`: undefined
|
|
201
|
+
* - `assetAttributes`: undefined
|
|
202
|
+
* - `data`: undefined
|
|
203
|
+
* - `realm`: undefined
|
|
204
|
+
* - `mainValue`: undefined
|
|
205
|
+
* - `mainValueDecimals`: undefined
|
|
206
|
+
* - `mainValueSize`: undefined
|
|
207
|
+
* - `delta`: undefined
|
|
208
|
+
* - `deltaPlus`: undefined
|
|
209
|
+
* - `deltaFormat`: undefined
|
|
210
|
+
* - `showControls`: undefined
|
|
211
|
+
* - `hideAttributePicker`: undefined
|
|
212
|
+
* - `showTitle`: undefined
|
|
213
|
+
* - `_loading`: undefined
|
|
214
|
+
* - `period`: undefined
|
|
215
|
+
*
|
|
216
|
+
* ## Methods
|
|
217
|
+
*
|
|
218
|
+
* Methods that can be called to access component functionality.
|
|
219
|
+
*
|
|
220
|
+
* - `shouldHideAttributePicker() => boolean`: undefined
|
|
221
|
+
* - `shouldShowControls() => boolean`: undefined
|
|
222
|
+
* - `shouldShowTitle() => boolean`: undefined
|
|
223
|
+
* - `saveSettings() => void`: undefined
|
|
224
|
+
*/
|
|
225
|
+
"or-attribute-card": Partial<
|
|
226
|
+
OrAttributeCardProps &
|
|
227
|
+
OrAttributeCardSolidJsProps &
|
|
228
|
+
BaseProps<OrAttributeCard> &
|
|
229
|
+
BaseEvents
|
|
230
|
+
>;
|
|
231
|
+
};
|
|
158
232
|
|
|
159
|
-
export type CustomCssProperties = {
|
|
233
|
+
export type CustomCssProperties = {};
|
|
160
234
|
|
|
235
|
+
declare module "react" {
|
|
236
|
+
namespace JSX {
|
|
237
|
+
interface IntrinsicElements extends CustomElements {}
|
|
238
|
+
}
|
|
239
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
161
240
|
}
|
|
162
241
|
|
|
163
|
-
|
|
164
|
-
declare module 'react' {
|
|
242
|
+
declare module "preact" {
|
|
165
243
|
namespace JSX {
|
|
166
244
|
interface IntrinsicElements extends CustomElements {}
|
|
167
245
|
}
|
|
168
246
|
export interface CSSProperties extends CustomCssProperties {}
|
|
169
247
|
}
|
|
170
248
|
|
|
171
|
-
declare module
|
|
249
|
+
declare module "@builder.io/qwik" {
|
|
172
250
|
namespace JSX {
|
|
173
251
|
interface IntrinsicElements extends CustomElements {}
|
|
174
252
|
}
|
|
175
253
|
export interface CSSProperties extends CustomCssProperties {}
|
|
176
254
|
}
|
|
177
255
|
|
|
178
|
-
declare module
|
|
256
|
+
declare module "@stencil/core" {
|
|
179
257
|
namespace JSX {
|
|
180
258
|
interface IntrinsicElements extends CustomElements {}
|
|
181
259
|
}
|
|
182
260
|
export interface CSSProperties extends CustomCssProperties {}
|
|
183
261
|
}
|
|
184
262
|
|
|
185
|
-
declare module
|
|
263
|
+
declare module "hono/jsx" {
|
|
186
264
|
namespace JSX {
|
|
187
265
|
interface IntrinsicElements extends CustomElements {}
|
|
188
266
|
}
|
|
189
267
|
export interface CSSProperties extends CustomCssProperties {}
|
|
190
268
|
}
|
|
191
269
|
|
|
192
|
-
declare module
|
|
270
|
+
declare module "react-native" {
|
|
193
271
|
namespace JSX {
|
|
194
272
|
interface IntrinsicElements extends CustomElements {}
|
|
195
273
|
}
|
|
196
274
|
export interface CSSProperties extends CustomCssProperties {}
|
|
197
275
|
}
|
|
198
276
|
|
|
199
|
-
declare module
|
|
277
|
+
declare module "solid-js" {
|
|
200
278
|
namespace JSX {
|
|
201
|
-
interface IntrinsicElements extends
|
|
279
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
202
280
|
}
|
|
203
281
|
export interface CSSProperties extends CustomCssProperties {}
|
|
204
282
|
}
|