@openremote/or-gauge 1.24.0 → 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.
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import type { OrGauge } 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,122 +70,182 @@ 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 OrGaugeProps = {
|
|
84
78
|
/** */
|
|
85
|
-
|
|
79
|
+
attrRef?: OrGauge["attrRef"];
|
|
86
80
|
/** */
|
|
87
|
-
|
|
81
|
+
asset?: OrGauge["asset"];
|
|
88
82
|
/** */
|
|
89
|
-
|
|
83
|
+
assetAttribute?: OrGauge["assetAttribute"];
|
|
90
84
|
/** */
|
|
91
|
-
|
|
85
|
+
value?: OrGauge["value"];
|
|
92
86
|
/** */
|
|
93
|
-
|
|
87
|
+
decimals?: OrGauge["decimals"];
|
|
94
88
|
/** */
|
|
95
|
-
|
|
89
|
+
unit?: OrGauge["unit"];
|
|
96
90
|
/** */
|
|
97
|
-
|
|
91
|
+
min?: OrGauge["min"];
|
|
98
92
|
/** */
|
|
99
|
-
|
|
93
|
+
max?: OrGauge["max"];
|
|
100
94
|
/** */
|
|
101
|
-
|
|
95
|
+
thresholds?: OrGauge["thresholds"];
|
|
102
96
|
/** */
|
|
103
|
-
|
|
97
|
+
config?: OrGauge["config"];
|
|
104
98
|
/** */
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
realm?: OrGauge["realm"];
|
|
100
|
+
};
|
|
107
101
|
|
|
108
|
-
|
|
102
|
+
export type OrGaugeSolidJsProps = {
|
|
103
|
+
/** */
|
|
104
|
+
"prop:attrRef"?: OrGauge["attrRef"];
|
|
105
|
+
/** */
|
|
106
|
+
"prop:asset"?: OrGauge["asset"];
|
|
107
|
+
/** */
|
|
108
|
+
"prop:assetAttribute"?: OrGauge["assetAttribute"];
|
|
109
|
+
/** */
|
|
110
|
+
"prop:value"?: OrGauge["value"];
|
|
111
|
+
/** */
|
|
112
|
+
"prop:decimals"?: OrGauge["decimals"];
|
|
113
|
+
/** */
|
|
114
|
+
"prop:unit"?: OrGauge["unit"];
|
|
115
|
+
/** */
|
|
116
|
+
"prop:min"?: OrGauge["min"];
|
|
117
|
+
/** */
|
|
118
|
+
"prop:max"?: OrGauge["max"];
|
|
119
|
+
/** */
|
|
120
|
+
"prop:thresholds"?: OrGauge["thresholds"];
|
|
121
|
+
/** */
|
|
122
|
+
"prop:config"?: OrGauge["config"];
|
|
123
|
+
/** */
|
|
124
|
+
"prop:realm"?: OrGauge["realm"];
|
|
109
125
|
|
|
110
|
-
|
|
126
|
+
/** Set the innerHTML of the element */
|
|
127
|
+
innerHTML?: string;
|
|
128
|
+
/** Set the textContent of the element */
|
|
129
|
+
textContent?: string | number;
|
|
130
|
+
};
|
|
111
131
|
|
|
132
|
+
export type CustomElements = {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* ## Attributes & Properties
|
|
137
|
+
*
|
|
138
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
139
|
+
*
|
|
140
|
+
* - `attrRef`: undefined
|
|
141
|
+
* - `asset`: undefined
|
|
142
|
+
* - `assetAttribute`: undefined
|
|
143
|
+
* - `value`: undefined
|
|
144
|
+
* - `decimals`: undefined
|
|
145
|
+
* - `unit`: undefined
|
|
146
|
+
* - `min`: undefined
|
|
147
|
+
* - `max`: undefined
|
|
148
|
+
* - `thresholds`: undefined
|
|
149
|
+
* - `config`: undefined
|
|
150
|
+
* - `realm`: undefined
|
|
151
|
+
*
|
|
152
|
+
* ## Methods
|
|
153
|
+
*
|
|
154
|
+
* Methods that can be called to access component functionality.
|
|
155
|
+
*
|
|
156
|
+
* - `setupGauge() => void`: undefined
|
|
157
|
+
* - `getGaugeWidth(gaugeSize?: { width: number, height: number }, includeLabelHeight: boolean = true) => string`: undefined
|
|
158
|
+
* - `shouldShowLabel(gaugeSize: { width: number, height: number }) => boolean`: undefined
|
|
159
|
+
* - `getLabelSize(width: number) => "s" | "m" | "l" | "xl"`: undefined
|
|
160
|
+
* - `loadData(attrRef: AttributeRef) => void`: undefined
|
|
161
|
+
* - `getDefaultConfig() => OrGaugeConfig`: undefined
|
|
162
|
+
*/
|
|
163
|
+
"or-gauge": Partial<OrGaugeProps & BaseProps<OrGauge> & BaseEvents>;
|
|
164
|
+
};
|
|
112
165
|
|
|
166
|
+
export type CustomElementsSolidJs = {
|
|
113
167
|
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
168
|
+
*
|
|
169
|
+
*
|
|
170
|
+
* ## Attributes & Properties
|
|
171
|
+
*
|
|
172
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
173
|
+
*
|
|
174
|
+
* - `attrRef`: undefined
|
|
175
|
+
* - `asset`: undefined
|
|
176
|
+
* - `assetAttribute`: undefined
|
|
177
|
+
* - `value`: undefined
|
|
178
|
+
* - `decimals`: undefined
|
|
179
|
+
* - `unit`: undefined
|
|
180
|
+
* - `min`: undefined
|
|
181
|
+
* - `max`: undefined
|
|
182
|
+
* - `thresholds`: undefined
|
|
183
|
+
* - `config`: undefined
|
|
184
|
+
* - `realm`: undefined
|
|
185
|
+
*
|
|
186
|
+
* ## Methods
|
|
187
|
+
*
|
|
188
|
+
* Methods that can be called to access component functionality.
|
|
189
|
+
*
|
|
190
|
+
* - `setupGauge() => void`: undefined
|
|
191
|
+
* - `getGaugeWidth(gaugeSize?: { width: number, height: number }, includeLabelHeight: boolean = true) => string`: undefined
|
|
192
|
+
* - `shouldShowLabel(gaugeSize: { width: number, height: number }) => boolean`: undefined
|
|
193
|
+
* - `getLabelSize(width: number) => "s" | "m" | "l" | "xl"`: undefined
|
|
194
|
+
* - `loadData(attrRef: AttributeRef) => void`: undefined
|
|
195
|
+
* - `getDefaultConfig() => OrGaugeConfig`: undefined
|
|
196
|
+
*/
|
|
197
|
+
"or-gauge": Partial<
|
|
198
|
+
OrGaugeProps & OrGaugeSolidJsProps & BaseProps<OrGauge> & BaseEvents
|
|
199
|
+
>;
|
|
200
|
+
};
|
|
145
201
|
|
|
146
|
-
export type CustomCssProperties = {
|
|
202
|
+
export type CustomCssProperties = {};
|
|
147
203
|
|
|
204
|
+
declare module "react" {
|
|
205
|
+
namespace JSX {
|
|
206
|
+
interface IntrinsicElements extends CustomElements {}
|
|
207
|
+
}
|
|
208
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
148
209
|
}
|
|
149
210
|
|
|
150
|
-
|
|
151
|
-
declare module 'react' {
|
|
211
|
+
declare module "preact" {
|
|
152
212
|
namespace JSX {
|
|
153
213
|
interface IntrinsicElements extends CustomElements {}
|
|
154
214
|
}
|
|
155
215
|
export interface CSSProperties extends CustomCssProperties {}
|
|
156
216
|
}
|
|
157
217
|
|
|
158
|
-
declare module
|
|
218
|
+
declare module "@builder.io/qwik" {
|
|
159
219
|
namespace JSX {
|
|
160
220
|
interface IntrinsicElements extends CustomElements {}
|
|
161
221
|
}
|
|
162
222
|
export interface CSSProperties extends CustomCssProperties {}
|
|
163
223
|
}
|
|
164
224
|
|
|
165
|
-
declare module
|
|
225
|
+
declare module "@stencil/core" {
|
|
166
226
|
namespace JSX {
|
|
167
227
|
interface IntrinsicElements extends CustomElements {}
|
|
168
228
|
}
|
|
169
229
|
export interface CSSProperties extends CustomCssProperties {}
|
|
170
230
|
}
|
|
171
231
|
|
|
172
|
-
declare module
|
|
232
|
+
declare module "hono/jsx" {
|
|
173
233
|
namespace JSX {
|
|
174
234
|
interface IntrinsicElements extends CustomElements {}
|
|
175
235
|
}
|
|
176
236
|
export interface CSSProperties extends CustomCssProperties {}
|
|
177
237
|
}
|
|
178
238
|
|
|
179
|
-
declare module
|
|
239
|
+
declare module "react-native" {
|
|
180
240
|
namespace JSX {
|
|
181
241
|
interface IntrinsicElements extends CustomElements {}
|
|
182
242
|
}
|
|
183
243
|
export interface CSSProperties extends CustomCssProperties {}
|
|
184
244
|
}
|
|
185
245
|
|
|
186
|
-
declare module
|
|
246
|
+
declare module "solid-js" {
|
|
187
247
|
namespace JSX {
|
|
188
|
-
interface IntrinsicElements extends
|
|
248
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
189
249
|
}
|
|
190
250
|
export interface CSSProperties extends CustomCssProperties {}
|
|
191
251
|
}
|