@openremote/or-json-forms 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 +126 -62
- package/dist/umd/index.orbundle.js +55 -55
- package/dist/umd/index.orbundle.js.map +1 -1
- package/package.json +8 -5
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
1
|
import type { BaseElement } from "./lib/base-element.d.ts";
|
|
3
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
ErrorObject,
|
|
4
|
+
StandardRenderers,
|
|
5
|
+
getTemplateWrapper,
|
|
6
|
+
OrJSONForms,
|
|
7
|
+
} from "./lib/index.d.ts";
|
|
4
8
|
|
|
5
9
|
/**
|
|
6
10
|
* This type can be used to create scoped tags for your components.
|
|
@@ -28,7 +32,6 @@ export type ScopedElements<
|
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
type BaseProps<T extends HTMLElement> = {
|
|
31
|
-
|
|
32
35
|
/** Content added between the opening and closing tags of the element */
|
|
33
36
|
children?: any;
|
|
34
37
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -51,6 +54,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
51
54
|
key?: string | number;
|
|
52
55
|
/** Specifies the language of the element. */
|
|
53
56
|
lang?: string;
|
|
57
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
58
|
+
role?: string;
|
|
54
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. */
|
|
55
60
|
part?: string;
|
|
56
61
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -71,120 +76,179 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
71
76
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
72
77
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
73
78
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
74
|
-
|
|
75
|
-
} ;
|
|
76
|
-
|
|
77
|
-
type BaseEvents = {
|
|
78
|
-
|
|
79
|
-
|
|
80
79
|
};
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
type BaseEvents = {};
|
|
84
82
|
|
|
85
83
|
export type OrJSONFormsProps = {
|
|
86
84
|
/** */
|
|
87
|
-
|
|
85
|
+
uischema?: OrJSONForms["uischema"];
|
|
88
86
|
/** */
|
|
89
|
-
|
|
87
|
+
schema?: OrJSONForms["schema"];
|
|
90
88
|
/** */
|
|
91
|
-
|
|
89
|
+
renderers?: OrJSONForms["renderers"];
|
|
92
90
|
/** */
|
|
93
|
-
|
|
91
|
+
cells?: OrJSONForms["cells"];
|
|
94
92
|
/** */
|
|
95
|
-
|
|
93
|
+
uischemas?: OrJSONForms["uischemas"];
|
|
96
94
|
/** */
|
|
97
|
-
|
|
95
|
+
readonly?: OrJSONForms["readonly"];
|
|
98
96
|
/** */
|
|
99
|
-
|
|
97
|
+
label?: OrJSONForms["label"];
|
|
100
98
|
/** */
|
|
101
|
-
|
|
99
|
+
required?: OrJSONForms["required"];
|
|
102
100
|
/** */
|
|
103
|
-
|
|
101
|
+
data?: OrJSONForms["data"];
|
|
104
102
|
/** */
|
|
105
|
-
|
|
103
|
+
onChange?: OrJSONForms["onChange"];
|
|
106
104
|
/** */
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
105
|
+
config?: OrJSONForms["config"];
|
|
106
|
+
};
|
|
111
107
|
|
|
112
|
-
|
|
108
|
+
export type OrJSONFormsSolidJsProps = {
|
|
109
|
+
/** */
|
|
110
|
+
"prop:uischema"?: OrJSONForms["uischema"];
|
|
111
|
+
/** */
|
|
112
|
+
"prop:schema"?: OrJSONForms["schema"];
|
|
113
|
+
/** */
|
|
114
|
+
"prop:renderers"?: OrJSONForms["renderers"];
|
|
115
|
+
/** */
|
|
116
|
+
"prop:cells"?: OrJSONForms["cells"];
|
|
117
|
+
/** */
|
|
118
|
+
"prop:uischemas"?: OrJSONForms["uischemas"];
|
|
119
|
+
/** */
|
|
120
|
+
"prop:readonly"?: OrJSONForms["readonly"];
|
|
121
|
+
/** */
|
|
122
|
+
"prop:label"?: OrJSONForms["label"];
|
|
123
|
+
/** */
|
|
124
|
+
"prop:required"?: OrJSONForms["required"];
|
|
125
|
+
/** */
|
|
126
|
+
"prop:data"?: OrJSONForms["data"];
|
|
127
|
+
/** */
|
|
128
|
+
"prop:onChange"?: OrJSONForms["onChange"];
|
|
129
|
+
/** */
|
|
130
|
+
"prop:config"?: OrJSONForms["config"];
|
|
113
131
|
|
|
132
|
+
/** Set the innerHTML of the element */
|
|
133
|
+
innerHTML?: string;
|
|
134
|
+
/** Set the textContent of the element */
|
|
135
|
+
textContent?: string | number;
|
|
136
|
+
};
|
|
114
137
|
|
|
138
|
+
export type CustomElements = {
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
* ## Attributes & Properties
|
|
143
|
+
*
|
|
144
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
145
|
+
*
|
|
146
|
+
* - `uischema`: undefined
|
|
147
|
+
* - `schema`: undefined
|
|
148
|
+
* - `renderers`: undefined
|
|
149
|
+
* - `cells`: undefined
|
|
150
|
+
* - `uischemas`: undefined
|
|
151
|
+
* - `readonly`: undefined
|
|
152
|
+
* - `label`: undefined
|
|
153
|
+
* - `required`: undefined
|
|
154
|
+
* - `data`: undefined (property only)
|
|
155
|
+
* - `onChange`: undefined (property only)
|
|
156
|
+
* - `config`: undefined (property only)
|
|
157
|
+
*
|
|
158
|
+
* ## Methods
|
|
159
|
+
*
|
|
160
|
+
* Methods that can be called to access component functionality.
|
|
161
|
+
*
|
|
162
|
+
* - `checkValidity() => void`: undefined
|
|
163
|
+
* - `updateCore(coreAction: T) => T`: undefined
|
|
164
|
+
*/
|
|
165
|
+
"or-json-forms": Partial<
|
|
166
|
+
OrJSONFormsProps & BaseProps<OrJSONForms> & BaseEvents
|
|
167
|
+
>;
|
|
168
|
+
};
|
|
115
169
|
|
|
170
|
+
export type CustomElementsSolidJs = {
|
|
116
171
|
/**
|
|
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
|
-
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
* ## Attributes & Properties
|
|
175
|
+
*
|
|
176
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
177
|
+
*
|
|
178
|
+
* - `uischema`: undefined
|
|
179
|
+
* - `schema`: undefined
|
|
180
|
+
* - `renderers`: undefined
|
|
181
|
+
* - `cells`: undefined
|
|
182
|
+
* - `uischemas`: undefined
|
|
183
|
+
* - `readonly`: undefined
|
|
184
|
+
* - `label`: undefined
|
|
185
|
+
* - `required`: undefined
|
|
186
|
+
* - `data`: undefined (property only)
|
|
187
|
+
* - `onChange`: undefined (property only)
|
|
188
|
+
* - `config`: undefined (property only)
|
|
189
|
+
*
|
|
190
|
+
* ## Methods
|
|
191
|
+
*
|
|
192
|
+
* Methods that can be called to access component functionality.
|
|
193
|
+
*
|
|
194
|
+
* - `checkValidity() => void`: undefined
|
|
195
|
+
* - `updateCore(coreAction: T) => T`: undefined
|
|
196
|
+
*/
|
|
197
|
+
"or-json-forms": Partial<
|
|
198
|
+
OrJSONFormsProps &
|
|
199
|
+
OrJSONFormsSolidJsProps &
|
|
200
|
+
BaseProps<OrJSONForms> &
|
|
201
|
+
BaseEvents
|
|
202
|
+
>;
|
|
203
|
+
};
|
|
144
204
|
|
|
145
|
-
export type CustomCssProperties = {
|
|
205
|
+
export type CustomCssProperties = {};
|
|
146
206
|
|
|
207
|
+
declare module "react" {
|
|
208
|
+
namespace JSX {
|
|
209
|
+
interface IntrinsicElements extends CustomElements {}
|
|
210
|
+
}
|
|
211
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
147
212
|
}
|
|
148
213
|
|
|
149
|
-
|
|
150
|
-
declare module 'react' {
|
|
214
|
+
declare module "preact" {
|
|
151
215
|
namespace JSX {
|
|
152
216
|
interface IntrinsicElements extends CustomElements {}
|
|
153
217
|
}
|
|
154
218
|
export interface CSSProperties extends CustomCssProperties {}
|
|
155
219
|
}
|
|
156
220
|
|
|
157
|
-
declare module
|
|
221
|
+
declare module "@builder.io/qwik" {
|
|
158
222
|
namespace JSX {
|
|
159
223
|
interface IntrinsicElements extends CustomElements {}
|
|
160
224
|
}
|
|
161
225
|
export interface CSSProperties extends CustomCssProperties {}
|
|
162
226
|
}
|
|
163
227
|
|
|
164
|
-
declare module
|
|
228
|
+
declare module "@stencil/core" {
|
|
165
229
|
namespace JSX {
|
|
166
230
|
interface IntrinsicElements extends CustomElements {}
|
|
167
231
|
}
|
|
168
232
|
export interface CSSProperties extends CustomCssProperties {}
|
|
169
233
|
}
|
|
170
234
|
|
|
171
|
-
declare module
|
|
235
|
+
declare module "hono/jsx" {
|
|
172
236
|
namespace JSX {
|
|
173
237
|
interface IntrinsicElements extends CustomElements {}
|
|
174
238
|
}
|
|
175
239
|
export interface CSSProperties extends CustomCssProperties {}
|
|
176
240
|
}
|
|
177
241
|
|
|
178
|
-
declare module
|
|
242
|
+
declare module "react-native" {
|
|
179
243
|
namespace JSX {
|
|
180
244
|
interface IntrinsicElements extends CustomElements {}
|
|
181
245
|
}
|
|
182
246
|
export interface CSSProperties extends CustomCssProperties {}
|
|
183
247
|
}
|
|
184
248
|
|
|
185
|
-
declare module
|
|
249
|
+
declare module "solid-js" {
|
|
186
250
|
namespace JSX {
|
|
187
|
-
interface IntrinsicElements extends
|
|
251
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
188
252
|
}
|
|
189
253
|
export interface CSSProperties extends CustomCssProperties {}
|
|
190
254
|
}
|