@openremote/or-attribute-input 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.
- package/custom-elements-jsx.d.ts +222 -98
- package/dist/umd/index.orbundle.js +230 -230
- package/dist/umd/index.orbundle.js.map +1 -1
- package/package.json +12 -9
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
OrAttributeInputChangedEvent,
|
|
3
|
+
getAttributeInputWrapper,
|
|
4
|
+
getHelperText,
|
|
5
|
+
jsonFormsInputTemplateProvider,
|
|
6
|
+
OrAttributeInput,
|
|
7
|
+
} from "./lib/index.d.ts";
|
|
3
8
|
|
|
4
9
|
/**
|
|
5
10
|
* This type can be used to create scoped tags for your components.
|
|
@@ -27,7 +32,6 @@ export type ScopedElements<
|
|
|
27
32
|
};
|
|
28
33
|
|
|
29
34
|
type BaseProps<T extends HTMLElement> = {
|
|
30
|
-
|
|
31
35
|
/** Content added between the opening and closing tags of the element */
|
|
32
36
|
children?: any;
|
|
33
37
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -50,6 +54,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
50
54
|
key?: string | number;
|
|
51
55
|
/** Specifies the language of the element. */
|
|
52
56
|
lang?: string;
|
|
57
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
58
|
+
role?: string;
|
|
53
59
|
/** 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
60
|
part?: string;
|
|
55
61
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -70,172 +76,290 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
70
76
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
71
77
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
72
78
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
73
|
-
|
|
74
|
-
} ;
|
|
75
|
-
|
|
76
|
-
type BaseEvents = {
|
|
77
|
-
|
|
78
|
-
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
type BaseEvents = {};
|
|
82
82
|
|
|
83
83
|
export type OrAttributeInputProps = {
|
|
84
84
|
/** */
|
|
85
|
-
|
|
85
|
+
attribute?: OrAttributeInput["attribute"];
|
|
86
86
|
/** */
|
|
87
|
-
|
|
87
|
+
assetId?: OrAttributeInput["assetId"];
|
|
88
88
|
/** */
|
|
89
|
-
|
|
89
|
+
attributeDescriptor?: OrAttributeInput["attributeDescriptor"];
|
|
90
90
|
/** */
|
|
91
|
-
|
|
91
|
+
valueDescriptor?: OrAttributeInput["valueDescriptor"];
|
|
92
92
|
/** */
|
|
93
|
-
|
|
93
|
+
assetType?: OrAttributeInput["assetType"];
|
|
94
94
|
/** */
|
|
95
|
-
|
|
95
|
+
label?: OrAttributeInput["label"];
|
|
96
96
|
/** */
|
|
97
|
-
|
|
97
|
+
disabled?: OrAttributeInput["disabled"];
|
|
98
98
|
/** */
|
|
99
|
-
|
|
99
|
+
readonly?: OrAttributeInput["readonly"];
|
|
100
100
|
/** */
|
|
101
|
-
|
|
101
|
+
required?: OrAttributeInput["required"];
|
|
102
102
|
/** */
|
|
103
|
-
|
|
103
|
+
value?: OrAttributeInput["value"];
|
|
104
104
|
/** */
|
|
105
|
-
|
|
105
|
+
inputType?: OrAttributeInput["inputType"];
|
|
106
106
|
/** */
|
|
107
|
-
|
|
107
|
+
hasHelperText?: OrAttributeInput["hasHelperText"];
|
|
108
108
|
/** */
|
|
109
|
-
|
|
109
|
+
disableButton?: OrAttributeInput["disableButton"];
|
|
110
110
|
/** */
|
|
111
|
-
|
|
111
|
+
disableSubscribe?: OrAttributeInput["disableSubscribe"];
|
|
112
112
|
/** */
|
|
113
|
-
|
|
113
|
+
disableWrite?: OrAttributeInput["disableWrite"];
|
|
114
114
|
/** */
|
|
115
|
-
|
|
115
|
+
compact?: OrAttributeInput["compact"];
|
|
116
116
|
/** */
|
|
117
|
-
|
|
117
|
+
comfortable?: OrAttributeInput["comfortable"];
|
|
118
118
|
/** */
|
|
119
|
-
|
|
119
|
+
resizeVertical?: OrAttributeInput["resizeVertical"];
|
|
120
120
|
/** */
|
|
121
|
-
|
|
121
|
+
fullWidth?: OrAttributeInput["fullWidth"];
|
|
122
122
|
/** */
|
|
123
|
-
|
|
123
|
+
rounded?: OrAttributeInput["rounded"];
|
|
124
124
|
/** */
|
|
125
|
-
|
|
125
|
+
outlined?: OrAttributeInput["outlined"];
|
|
126
126
|
/** */
|
|
127
|
-
|
|
127
|
+
_attributeEvent?: OrAttributeInput["_attributeEvent"];
|
|
128
128
|
/** */
|
|
129
|
-
|
|
129
|
+
_writeTimeoutHandler?: OrAttributeInput["_writeTimeoutHandler"];
|
|
130
130
|
/** */
|
|
131
|
-
|
|
131
|
+
customProvider?: OrAttributeInput["customProvider"];
|
|
132
132
|
/** */
|
|
133
|
-
|
|
133
|
+
writeTimeout?: OrAttributeInput["writeTimeout"];
|
|
134
134
|
/** */
|
|
135
|
-
|
|
135
|
+
langChangedCallback?: OrAttributeInput["langChangedCallback"];
|
|
136
136
|
|
|
137
137
|
/** */
|
|
138
|
-
|
|
139
|
-
}
|
|
138
|
+
onnewValue?: (e: OrAttributeInputChangedEvent) => void;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type OrAttributeInputSolidJsProps = {
|
|
142
|
+
/** */
|
|
143
|
+
"prop:attribute"?: OrAttributeInput["attribute"];
|
|
144
|
+
/** */
|
|
145
|
+
"prop:assetId"?: OrAttributeInput["assetId"];
|
|
146
|
+
/** */
|
|
147
|
+
"prop:attributeDescriptor"?: OrAttributeInput["attributeDescriptor"];
|
|
148
|
+
/** */
|
|
149
|
+
"prop:valueDescriptor"?: OrAttributeInput["valueDescriptor"];
|
|
150
|
+
/** */
|
|
151
|
+
"prop:assetType"?: OrAttributeInput["assetType"];
|
|
152
|
+
/** */
|
|
153
|
+
"prop:label"?: OrAttributeInput["label"];
|
|
154
|
+
/** */
|
|
155
|
+
"prop:disabled"?: OrAttributeInput["disabled"];
|
|
156
|
+
/** */
|
|
157
|
+
"prop:readonly"?: OrAttributeInput["readonly"];
|
|
158
|
+
/** */
|
|
159
|
+
"prop:required"?: OrAttributeInput["required"];
|
|
160
|
+
/** */
|
|
161
|
+
"prop:value"?: OrAttributeInput["value"];
|
|
162
|
+
/** */
|
|
163
|
+
"prop:inputType"?: OrAttributeInput["inputType"];
|
|
164
|
+
/** */
|
|
165
|
+
"prop:hasHelperText"?: OrAttributeInput["hasHelperText"];
|
|
166
|
+
/** */
|
|
167
|
+
"prop:disableButton"?: OrAttributeInput["disableButton"];
|
|
168
|
+
/** */
|
|
169
|
+
"prop:disableSubscribe"?: OrAttributeInput["disableSubscribe"];
|
|
170
|
+
/** */
|
|
171
|
+
"prop:disableWrite"?: OrAttributeInput["disableWrite"];
|
|
172
|
+
/** */
|
|
173
|
+
"prop:compact"?: OrAttributeInput["compact"];
|
|
174
|
+
/** */
|
|
175
|
+
"prop:comfortable"?: OrAttributeInput["comfortable"];
|
|
176
|
+
/** */
|
|
177
|
+
"prop:resizeVertical"?: OrAttributeInput["resizeVertical"];
|
|
178
|
+
/** */
|
|
179
|
+
"prop:fullWidth"?: OrAttributeInput["fullWidth"];
|
|
180
|
+
/** */
|
|
181
|
+
"prop:rounded"?: OrAttributeInput["rounded"];
|
|
182
|
+
/** */
|
|
183
|
+
"prop:outlined"?: OrAttributeInput["outlined"];
|
|
184
|
+
/** */
|
|
185
|
+
"prop:_attributeEvent"?: OrAttributeInput["_attributeEvent"];
|
|
186
|
+
/** */
|
|
187
|
+
"prop:_writeTimeoutHandler"?: OrAttributeInput["_writeTimeoutHandler"];
|
|
188
|
+
/** */
|
|
189
|
+
"prop:customProvider"?: OrAttributeInput["customProvider"];
|
|
190
|
+
/** */
|
|
191
|
+
"prop:writeTimeout"?: OrAttributeInput["writeTimeout"];
|
|
192
|
+
/** */
|
|
193
|
+
"prop:langChangedCallback"?: OrAttributeInput["langChangedCallback"];
|
|
194
|
+
/** */
|
|
195
|
+
"on:newValue"?: (e: OrAttributeInputChangedEvent) => void;
|
|
140
196
|
|
|
141
|
-
|
|
197
|
+
/** Set the innerHTML of the element */
|
|
198
|
+
innerHTML?: string;
|
|
199
|
+
/** Set the textContent of the element */
|
|
200
|
+
textContent?: string | number;
|
|
201
|
+
};
|
|
142
202
|
|
|
203
|
+
export type CustomElements = {
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
*
|
|
207
|
+
* ## Attributes & Properties
|
|
208
|
+
*
|
|
209
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
210
|
+
*
|
|
211
|
+
* - `attribute`: undefined
|
|
212
|
+
* - `assetId`: undefined
|
|
213
|
+
* - `attributeDescriptor`: undefined
|
|
214
|
+
* - `valueDescriptor`: undefined
|
|
215
|
+
* - `assetType`: undefined
|
|
216
|
+
* - `label`: undefined
|
|
217
|
+
* - `disabled`: undefined
|
|
218
|
+
* - `readonly`: undefined
|
|
219
|
+
* - `required`: undefined
|
|
220
|
+
* - `value`: undefined
|
|
221
|
+
* - `inputType`: undefined
|
|
222
|
+
* - `hasHelperText`: undefined
|
|
223
|
+
* - `disableButton`: undefined
|
|
224
|
+
* - `disableSubscribe`: undefined
|
|
225
|
+
* - `disableWrite`: undefined
|
|
226
|
+
* - `compact`: undefined
|
|
227
|
+
* - `comfortable`: undefined
|
|
228
|
+
* - `resizeVertical`: undefined
|
|
229
|
+
* - `fullWidth`: undefined
|
|
230
|
+
* - `rounded`: undefined
|
|
231
|
+
* - `outlined`: undefined
|
|
232
|
+
* - `_attributeEvent`: undefined
|
|
233
|
+
* - `_writeTimeoutHandler`: undefined
|
|
234
|
+
* - `customProvider`: undefined (property only)
|
|
235
|
+
* - `writeTimeout`: undefined (property only)
|
|
236
|
+
* - `langChangedCallback`: undefined (property only)
|
|
237
|
+
*
|
|
238
|
+
* ## Events
|
|
239
|
+
*
|
|
240
|
+
* Events that will be emitted by the component.
|
|
241
|
+
*
|
|
242
|
+
* - `newValue`: undefined
|
|
243
|
+
*
|
|
244
|
+
* ## Methods
|
|
245
|
+
*
|
|
246
|
+
* Methods that can be called to access component functionality.
|
|
247
|
+
*
|
|
248
|
+
* - `getLabel() => string | undefined`: undefined
|
|
249
|
+
* - `isReadonly() => boolean`: undefined
|
|
250
|
+
* - `_onEvent(event: SharedEvent) => void`: This is called by asset-mixin
|
|
251
|
+
* - `checkValidity() => boolean`: undefined
|
|
252
|
+
*/
|
|
253
|
+
"or-attribute-input": Partial<
|
|
254
|
+
OrAttributeInputProps & BaseProps<OrAttributeInput> & BaseEvents
|
|
255
|
+
>;
|
|
256
|
+
};
|
|
143
257
|
|
|
258
|
+
export type CustomElementsSolidJs = {
|
|
144
259
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
* ## Attributes & Properties
|
|
263
|
+
*
|
|
264
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
265
|
+
*
|
|
266
|
+
* - `attribute`: undefined
|
|
267
|
+
* - `assetId`: undefined
|
|
268
|
+
* - `attributeDescriptor`: undefined
|
|
269
|
+
* - `valueDescriptor`: undefined
|
|
270
|
+
* - `assetType`: undefined
|
|
271
|
+
* - `label`: undefined
|
|
272
|
+
* - `disabled`: undefined
|
|
273
|
+
* - `readonly`: undefined
|
|
274
|
+
* - `required`: undefined
|
|
275
|
+
* - `value`: undefined
|
|
276
|
+
* - `inputType`: undefined
|
|
277
|
+
* - `hasHelperText`: undefined
|
|
278
|
+
* - `disableButton`: undefined
|
|
279
|
+
* - `disableSubscribe`: undefined
|
|
280
|
+
* - `disableWrite`: undefined
|
|
281
|
+
* - `compact`: undefined
|
|
282
|
+
* - `comfortable`: undefined
|
|
283
|
+
* - `resizeVertical`: undefined
|
|
284
|
+
* - `fullWidth`: undefined
|
|
285
|
+
* - `rounded`: undefined
|
|
286
|
+
* - `outlined`: undefined
|
|
287
|
+
* - `_attributeEvent`: undefined
|
|
288
|
+
* - `_writeTimeoutHandler`: undefined
|
|
289
|
+
* - `customProvider`: undefined (property only)
|
|
290
|
+
* - `writeTimeout`: undefined (property only)
|
|
291
|
+
* - `langChangedCallback`: undefined (property only)
|
|
292
|
+
*
|
|
293
|
+
* ## Events
|
|
294
|
+
*
|
|
295
|
+
* Events that will be emitted by the component.
|
|
296
|
+
*
|
|
297
|
+
* - `newValue`: undefined
|
|
298
|
+
*
|
|
299
|
+
* ## Methods
|
|
300
|
+
*
|
|
301
|
+
* Methods that can be called to access component functionality.
|
|
302
|
+
*
|
|
303
|
+
* - `getLabel() => string | undefined`: undefined
|
|
304
|
+
* - `isReadonly() => boolean`: undefined
|
|
305
|
+
* - `_onEvent(event: SharedEvent) => void`: This is called by asset-mixin
|
|
306
|
+
* - `checkValidity() => boolean`: undefined
|
|
307
|
+
*/
|
|
308
|
+
"or-attribute-input": Partial<
|
|
309
|
+
OrAttributeInputProps &
|
|
310
|
+
OrAttributeInputSolidJsProps &
|
|
311
|
+
BaseProps<OrAttributeInput> &
|
|
312
|
+
BaseEvents
|
|
313
|
+
>;
|
|
314
|
+
};
|
|
195
315
|
|
|
196
|
-
export type CustomCssProperties = {
|
|
316
|
+
export type CustomCssProperties = {};
|
|
197
317
|
|
|
318
|
+
declare module "react" {
|
|
319
|
+
namespace JSX {
|
|
320
|
+
interface IntrinsicElements extends CustomElements {}
|
|
321
|
+
}
|
|
322
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
198
323
|
}
|
|
199
324
|
|
|
200
|
-
|
|
201
|
-
declare module 'react' {
|
|
325
|
+
declare module "preact" {
|
|
202
326
|
namespace JSX {
|
|
203
327
|
interface IntrinsicElements extends CustomElements {}
|
|
204
328
|
}
|
|
205
329
|
export interface CSSProperties extends CustomCssProperties {}
|
|
206
330
|
}
|
|
207
331
|
|
|
208
|
-
declare module
|
|
332
|
+
declare module "@builder.io/qwik" {
|
|
209
333
|
namespace JSX {
|
|
210
334
|
interface IntrinsicElements extends CustomElements {}
|
|
211
335
|
}
|
|
212
336
|
export interface CSSProperties extends CustomCssProperties {}
|
|
213
337
|
}
|
|
214
338
|
|
|
215
|
-
declare module
|
|
339
|
+
declare module "@stencil/core" {
|
|
216
340
|
namespace JSX {
|
|
217
341
|
interface IntrinsicElements extends CustomElements {}
|
|
218
342
|
}
|
|
219
343
|
export interface CSSProperties extends CustomCssProperties {}
|
|
220
344
|
}
|
|
221
345
|
|
|
222
|
-
declare module
|
|
346
|
+
declare module "hono/jsx" {
|
|
223
347
|
namespace JSX {
|
|
224
348
|
interface IntrinsicElements extends CustomElements {}
|
|
225
349
|
}
|
|
226
350
|
export interface CSSProperties extends CustomCssProperties {}
|
|
227
351
|
}
|
|
228
352
|
|
|
229
|
-
declare module
|
|
353
|
+
declare module "react-native" {
|
|
230
354
|
namespace JSX {
|
|
231
355
|
interface IntrinsicElements extends CustomElements {}
|
|
232
356
|
}
|
|
233
357
|
export interface CSSProperties extends CustomCssProperties {}
|
|
234
358
|
}
|
|
235
359
|
|
|
236
|
-
declare module
|
|
360
|
+
declare module "solid-js" {
|
|
237
361
|
namespace JSX {
|
|
238
|
-
interface IntrinsicElements extends
|
|
362
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
239
363
|
}
|
|
240
364
|
export interface CSSProperties extends CustomCssProperties {}
|
|
241
365
|
}
|