@openremote/or-components 1.13.0 → 1.14.0-snapshot
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 +417 -191
- package/custom-elements.json +0 -94
- package/lib/or-ace-editor.d.ts.map +1 -1
- package/lib/or-ace-editor.js +1 -1
- package/lib/or-ace-editor.js.map +1 -1
- package/lib/or-collapsible-panel.d.ts.map +1 -1
- package/lib/or-collapsible-panel.js +6 -1
- package/lib/or-collapsible-panel.js.map +1 -1
- package/lib/or-iframe.js +1 -1
- package/lib/or-iframe.js.map +1 -1
- package/lib/or-loading-wrapper.d.ts.map +1 -1
- package/lib/or-loading-wrapper.js +4 -0
- package/lib/or-loading-wrapper.js.map +1 -1
- package/package.json +8 -6
- package/lib/or-form.d.ts +0 -16
- package/lib/or-form.d.ts.map +0 -1
- package/lib/or-form.js +0 -12
- package/lib/or-form.js.map +0 -1
package/custom-elements-jsx.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type {
|
|
2
|
+
OrAceEditorChangedEvent,
|
|
3
|
+
OrAceEditorEditEvent,
|
|
4
|
+
OrAceEditor,
|
|
5
|
+
} from "./lib/or-ace-editor.d.ts";
|
|
3
6
|
import type { OrCollapsiblePanel } from "./lib/or-collapsible-panel.d.ts";
|
|
4
7
|
import type { OrFileUploader } from "./lib/or-file-uploader.d.ts";
|
|
5
|
-
import type { OrForm } from "./lib/or-form.d.ts";
|
|
6
8
|
import type { OrIFrameEvent, OrIframe } from "./lib/or-iframe.d.ts";
|
|
7
9
|
import type { OrLoadingIndicator } from "./lib/or-loading-indicator.d.ts";
|
|
8
10
|
import type { OrLoadingWrapper } from "./lib/or-loading-wrapper.d.ts";
|
|
@@ -34,7 +36,6 @@ export type ScopedElements<
|
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
type BaseProps<T extends HTMLElement> = {
|
|
37
|
-
|
|
38
39
|
/** Content added between the opening and closing tags of the element */
|
|
39
40
|
children?: any;
|
|
40
41
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -57,6 +58,8 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
57
58
|
key?: string | number;
|
|
58
59
|
/** Specifies the language of the element. */
|
|
59
60
|
lang?: string;
|
|
61
|
+
/** Defines the element's semantic role for accessibility APIs. */
|
|
62
|
+
role?: string;
|
|
60
63
|
/** 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. */
|
|
61
64
|
part?: string;
|
|
62
65
|
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
@@ -77,303 +80,526 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
77
80
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
78
81
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
79
82
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
80
|
-
|
|
81
|
-
} ;
|
|
82
|
-
|
|
83
|
-
type BaseEvents = {
|
|
84
|
-
|
|
85
|
-
|
|
86
83
|
};
|
|
87
84
|
|
|
88
|
-
|
|
85
|
+
type BaseEvents = {};
|
|
89
86
|
|
|
90
87
|
export type OrAceEditorProps = {
|
|
91
88
|
/** */
|
|
92
|
-
|
|
89
|
+
readonly?: OrAceEditor["readonly"];
|
|
93
90
|
/** */
|
|
94
|
-
|
|
91
|
+
value?: OrAceEditor["value"];
|
|
95
92
|
/** */
|
|
96
|
-
|
|
93
|
+
mode?: OrAceEditor["mode"];
|
|
97
94
|
|
|
98
95
|
/** */
|
|
99
|
-
|
|
96
|
+
onnewValue?: (e: OrAceEditorChangedEvent) => void;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type OrAceEditorSolidJsProps = {
|
|
100
100
|
/** */
|
|
101
|
-
"
|
|
102
|
-
|
|
101
|
+
"prop:readonly"?: OrAceEditor["readonly"];
|
|
102
|
+
/** */
|
|
103
|
+
"prop:value"?: OrAceEditor["value"];
|
|
104
|
+
/** */
|
|
105
|
+
"prop:mode"?: OrAceEditor["mode"];
|
|
106
|
+
/** */
|
|
107
|
+
"on:newValue"?: (e: OrAceEditorChangedEvent) => void;
|
|
103
108
|
|
|
109
|
+
/** Set the innerHTML of the element */
|
|
110
|
+
innerHTML?: string;
|
|
111
|
+
/** Set the textContent of the element */
|
|
112
|
+
textContent?: string | number;
|
|
113
|
+
};
|
|
104
114
|
|
|
105
115
|
export type OrCollapsiblePanelProps = {
|
|
106
116
|
/** */
|
|
107
|
-
|
|
117
|
+
lazycontent?: OrCollapsiblePanel["lazycontent"];
|
|
108
118
|
/** */
|
|
109
|
-
|
|
119
|
+
expanded?: OrCollapsiblePanel["expanded"];
|
|
110
120
|
/** */
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
expandable?: OrCollapsiblePanel["expandable"];
|
|
122
|
+
};
|
|
113
123
|
|
|
114
|
-
|
|
124
|
+
export type OrCollapsiblePanelSolidJsProps = {
|
|
125
|
+
/** */
|
|
126
|
+
"prop:lazycontent"?: OrCollapsiblePanel["lazycontent"];
|
|
127
|
+
/** */
|
|
128
|
+
"prop:expanded"?: OrCollapsiblePanel["expanded"];
|
|
129
|
+
/** */
|
|
130
|
+
"prop:expandable"?: OrCollapsiblePanel["expandable"];
|
|
115
131
|
|
|
132
|
+
/** Set the innerHTML of the element */
|
|
133
|
+
innerHTML?: string;
|
|
134
|
+
/** Set the textContent of the element */
|
|
135
|
+
textContent?: string | number;
|
|
136
|
+
};
|
|
116
137
|
|
|
117
138
|
export type OrFileUploaderProps = {
|
|
118
139
|
/** */
|
|
119
|
-
|
|
140
|
+
title?: OrFileUploader["title"];
|
|
120
141
|
|
|
121
142
|
/** */
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
export type OrFormProps = {
|
|
127
|
-
|
|
143
|
+
onchange?: (e: CustomEvent) => void;
|
|
144
|
+
};
|
|
128
145
|
|
|
129
|
-
|
|
146
|
+
export type OrFileUploaderSolidJsProps = {
|
|
147
|
+
/** */
|
|
148
|
+
"prop:title"?: OrFileUploader["title"];
|
|
149
|
+
/** */
|
|
150
|
+
"on:change"?: (e: CustomEvent) => void;
|
|
130
151
|
|
|
152
|
+
/** Set the innerHTML of the element */
|
|
153
|
+
innerHTML?: string;
|
|
154
|
+
/** Set the textContent of the element */
|
|
155
|
+
textContent?: string | number;
|
|
156
|
+
};
|
|
131
157
|
|
|
132
158
|
export type OrIframeProps = {
|
|
133
159
|
/** */
|
|
134
|
-
|
|
160
|
+
src?: OrIframe["src"];
|
|
135
161
|
/** */
|
|
136
|
-
|
|
162
|
+
timeout?: OrIframe["timeout"];
|
|
137
163
|
/** */
|
|
138
|
-
|
|
164
|
+
preventCache?: OrIframe["preventCache"];
|
|
139
165
|
|
|
140
166
|
/** Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error. */
|
|
141
|
-
"onor-iframe-event"?: (e:
|
|
142
|
-
}
|
|
167
|
+
"onor-iframe-event"?: (e: OrIFrameEvent) => void;
|
|
168
|
+
};
|
|
143
169
|
|
|
170
|
+
export type OrIframeSolidJsProps = {
|
|
171
|
+
/** */
|
|
172
|
+
"prop:src"?: OrIframe["src"];
|
|
173
|
+
/** */
|
|
174
|
+
"prop:timeout"?: OrIframe["timeout"];
|
|
175
|
+
/** */
|
|
176
|
+
"prop:preventCache"?: OrIframe["preventCache"];
|
|
177
|
+
/** Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error. */
|
|
178
|
+
"on:or-iframe-event"?: (e: OrIFrameEvent) => void;
|
|
179
|
+
|
|
180
|
+
/** Set the innerHTML of the element */
|
|
181
|
+
innerHTML?: string;
|
|
182
|
+
/** Set the textContent of the element */
|
|
183
|
+
textContent?: string | number;
|
|
184
|
+
};
|
|
144
185
|
|
|
145
186
|
export type OrLoadingIndicatorProps = {
|
|
146
187
|
/** */
|
|
147
|
-
|
|
148
|
-
|
|
188
|
+
overlay?: OrLoadingIndicator["overlay"];
|
|
189
|
+
};
|
|
149
190
|
|
|
150
|
-
|
|
191
|
+
export type OrLoadingIndicatorSolidJsProps = {
|
|
192
|
+
/** */
|
|
193
|
+
"prop:overlay"?: OrLoadingIndicator["overlay"];
|
|
151
194
|
|
|
195
|
+
/** Set the innerHTML of the element */
|
|
196
|
+
innerHTML?: string;
|
|
197
|
+
/** Set the textContent of the element */
|
|
198
|
+
textContent?: string | number;
|
|
199
|
+
};
|
|
152
200
|
|
|
153
201
|
export type OrLoadingWrapperProps = {
|
|
154
202
|
/** */
|
|
155
|
-
|
|
203
|
+
loadingHeight?: OrLoadingWrapper["loadingHeight"];
|
|
156
204
|
/** */
|
|
157
|
-
|
|
205
|
+
loadDom?: OrLoadingWrapper["loadDom"];
|
|
158
206
|
/** */
|
|
159
|
-
|
|
207
|
+
fadeContent?: OrLoadingWrapper["fadeContent"];
|
|
160
208
|
/** */
|
|
161
|
-
|
|
209
|
+
loading?: OrLoadingWrapper["loading"];
|
|
162
210
|
/** */
|
|
163
|
-
|
|
164
|
-
|
|
211
|
+
content?: OrLoadingWrapper["content"];
|
|
212
|
+
};
|
|
165
213
|
|
|
166
|
-
|
|
214
|
+
export type OrLoadingWrapperSolidJsProps = {
|
|
215
|
+
/** */
|
|
216
|
+
"prop:loadingHeight"?: OrLoadingWrapper["loadingHeight"];
|
|
217
|
+
/** */
|
|
218
|
+
"prop:loadDom"?: OrLoadingWrapper["loadDom"];
|
|
219
|
+
/** */
|
|
220
|
+
"prop:fadeContent"?: OrLoadingWrapper["fadeContent"];
|
|
221
|
+
/** */
|
|
222
|
+
"prop:loading"?: OrLoadingWrapper["loading"];
|
|
223
|
+
/** */
|
|
224
|
+
"prop:content"?: OrLoadingWrapper["content"];
|
|
167
225
|
|
|
226
|
+
/** Set the innerHTML of the element */
|
|
227
|
+
innerHTML?: string;
|
|
228
|
+
/** Set the textContent of the element */
|
|
229
|
+
textContent?: string | number;
|
|
230
|
+
};
|
|
168
231
|
|
|
169
232
|
export type OrPanelProps = {
|
|
170
233
|
/** */
|
|
171
|
-
|
|
234
|
+
zLevel?: OrPanel["zLevel"];
|
|
172
235
|
/** */
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
236
|
+
heading?: OrPanel["heading"];
|
|
237
|
+
};
|
|
177
238
|
|
|
178
|
-
|
|
239
|
+
export type OrPanelSolidJsProps = {
|
|
240
|
+
/** */
|
|
241
|
+
"prop:zLevel"?: OrPanel["zLevel"];
|
|
242
|
+
/** */
|
|
243
|
+
"prop:heading"?: OrPanel["heading"];
|
|
179
244
|
|
|
245
|
+
/** Set the innerHTML of the element */
|
|
246
|
+
innerHTML?: string;
|
|
247
|
+
/** Set the textContent of the element */
|
|
248
|
+
textContent?: string | number;
|
|
249
|
+
};
|
|
180
250
|
|
|
251
|
+
export type CustomElements = {
|
|
181
252
|
/**
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
253
|
+
*
|
|
254
|
+
*
|
|
255
|
+
* ## Attributes & Properties
|
|
256
|
+
*
|
|
257
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
258
|
+
*
|
|
259
|
+
* - `readonly`: undefined (property only)
|
|
260
|
+
* - `value`: undefined (property only)
|
|
261
|
+
* - `mode`: undefined (property only)
|
|
262
|
+
*
|
|
263
|
+
* ## Events
|
|
264
|
+
*
|
|
265
|
+
* Events that will be emitted by the component.
|
|
266
|
+
*
|
|
267
|
+
* - `undefined`: undefined
|
|
268
|
+
* - `newValue`: undefined
|
|
269
|
+
*
|
|
270
|
+
* ## Methods
|
|
271
|
+
*
|
|
272
|
+
* Methods that can be called to access component functionality.
|
|
273
|
+
*
|
|
274
|
+
* - `getValue() => string | undefined`: undefined
|
|
275
|
+
* - `validate() => boolean`: undefined
|
|
276
|
+
*/
|
|
277
|
+
"or-ace-editor": Partial<
|
|
278
|
+
OrAceEditorProps & BaseProps<OrAceEditor> & BaseEvents
|
|
279
|
+
>;
|
|
208
280
|
|
|
209
281
|
/**
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
282
|
+
*
|
|
283
|
+
*
|
|
284
|
+
* ## Attributes & Properties
|
|
285
|
+
*
|
|
286
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
287
|
+
*
|
|
288
|
+
* - `lazycontent`: undefined
|
|
289
|
+
* - `expanded`: undefined
|
|
290
|
+
* - `expandable`: undefined
|
|
291
|
+
*/
|
|
292
|
+
"or-collapsible-panel": Partial<
|
|
293
|
+
OrCollapsiblePanelProps & BaseProps<OrCollapsiblePanel> & BaseEvents
|
|
294
|
+
>;
|
|
221
295
|
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
*
|
|
299
|
+
* ## Attributes & Properties
|
|
300
|
+
*
|
|
301
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
302
|
+
*
|
|
303
|
+
* - `title`: undefined
|
|
304
|
+
* - `src`: undefined (property only) (readonly)
|
|
305
|
+
* - `managerUrl`: undefined (property only) (readonly)
|
|
306
|
+
* - `accept`: undefined (property only) (readonly)
|
|
307
|
+
* - `Files`: undefined (property only) (readonly)
|
|
308
|
+
*
|
|
309
|
+
* ## Events
|
|
310
|
+
*
|
|
311
|
+
* Events that will be emitted by the component.
|
|
312
|
+
*
|
|
313
|
+
* - `change`: undefined
|
|
314
|
+
*
|
|
315
|
+
* ## Methods
|
|
316
|
+
*
|
|
317
|
+
* Methods that can be called to access component functionality.
|
|
318
|
+
*
|
|
319
|
+
* - `_onChange(e: any) => void`: undefined
|
|
320
|
+
*/
|
|
321
|
+
"or-file-uploader": Partial<
|
|
322
|
+
OrFileUploaderProps & BaseProps<OrFileUploader> & BaseEvents
|
|
323
|
+
>;
|
|
222
324
|
|
|
223
325
|
/**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"or-file-uploader": Partial<OrFileUploaderProps & BaseProps<OrFileUploader> & BaseEvents>;
|
|
326
|
+
*
|
|
327
|
+
*
|
|
328
|
+
* ## Attributes & Properties
|
|
329
|
+
*
|
|
330
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
331
|
+
*
|
|
332
|
+
* - `src`: undefined
|
|
333
|
+
* - `timeout`: undefined
|
|
334
|
+
* - `preventCache`: undefined
|
|
335
|
+
*
|
|
336
|
+
* ## Events
|
|
337
|
+
*
|
|
338
|
+
* Events that will be emitted by the component.
|
|
339
|
+
*
|
|
340
|
+
* - `or-iframe-event`: Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error.
|
|
341
|
+
*
|
|
342
|
+
* ## Methods
|
|
343
|
+
*
|
|
344
|
+
* Methods that can be called to access component functionality.
|
|
345
|
+
*
|
|
346
|
+
* - `getSrc() => string`: undefined
|
|
347
|
+
* - `reload() => void`: Reload the iframe content by clearing and resetting the src
|
|
348
|
+
*/
|
|
349
|
+
"or-iframe": Partial<OrIframeProps & BaseProps<OrIframe> & BaseEvents>;
|
|
249
350
|
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
*
|
|
354
|
+
* ## Attributes & Properties
|
|
355
|
+
*
|
|
356
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
357
|
+
*
|
|
358
|
+
* - `overlay`: undefined
|
|
359
|
+
*/
|
|
360
|
+
"or-loading-indicator": Partial<
|
|
361
|
+
OrLoadingIndicatorProps & BaseProps<OrLoadingIndicator> & BaseEvents
|
|
362
|
+
>;
|
|
250
363
|
|
|
251
364
|
/**
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
365
|
+
* A simple loading wrapper around some other content that will hide the content whilst loading property is true
|
|
366
|
+
*
|
|
367
|
+
* ## Attributes & Properties
|
|
368
|
+
*
|
|
369
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
370
|
+
*
|
|
371
|
+
* - `loadingHeight`: undefined
|
|
372
|
+
* - `loadDom`: undefined
|
|
373
|
+
* - `fadeContent`: undefined
|
|
374
|
+
* - `loading`: undefined
|
|
375
|
+
* - `content`: undefined (property only)
|
|
376
|
+
*/
|
|
377
|
+
"or-loading-wrapper": Partial<
|
|
378
|
+
OrLoadingWrapperProps & BaseProps<OrLoadingWrapper> & BaseEvents
|
|
379
|
+
>;
|
|
264
380
|
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
*
|
|
384
|
+
* ## Attributes & Properties
|
|
385
|
+
*
|
|
386
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
387
|
+
*
|
|
388
|
+
* - `zLevel`: undefined
|
|
389
|
+
* - `heading`: undefined
|
|
390
|
+
*/
|
|
391
|
+
"or-panel": Partial<OrPanelProps & BaseProps<OrPanel> & BaseEvents>;
|
|
392
|
+
};
|
|
265
393
|
|
|
394
|
+
export type CustomElementsSolidJs = {
|
|
266
395
|
/**
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
396
|
+
*
|
|
397
|
+
*
|
|
398
|
+
* ## Attributes & Properties
|
|
399
|
+
*
|
|
400
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
401
|
+
*
|
|
402
|
+
* - `readonly`: undefined (property only)
|
|
403
|
+
* - `value`: undefined (property only)
|
|
404
|
+
* - `mode`: undefined (property only)
|
|
405
|
+
*
|
|
406
|
+
* ## Events
|
|
407
|
+
*
|
|
408
|
+
* Events that will be emitted by the component.
|
|
409
|
+
*
|
|
410
|
+
* - `undefined`: undefined
|
|
411
|
+
* - `newValue`: undefined
|
|
412
|
+
*
|
|
413
|
+
* ## Methods
|
|
414
|
+
*
|
|
415
|
+
* Methods that can be called to access component functionality.
|
|
416
|
+
*
|
|
417
|
+
* - `getValue() => string | undefined`: undefined
|
|
418
|
+
* - `validate() => boolean`: undefined
|
|
419
|
+
*/
|
|
420
|
+
"or-ace-editor": Partial<
|
|
421
|
+
OrAceEditorProps &
|
|
422
|
+
OrAceEditorSolidJsProps &
|
|
423
|
+
BaseProps<OrAceEditor> &
|
|
424
|
+
BaseEvents
|
|
425
|
+
>;
|
|
291
426
|
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
*
|
|
430
|
+
* ## Attributes & Properties
|
|
431
|
+
*
|
|
432
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
433
|
+
*
|
|
434
|
+
* - `lazycontent`: undefined
|
|
435
|
+
* - `expanded`: undefined
|
|
436
|
+
* - `expandable`: undefined
|
|
437
|
+
*/
|
|
438
|
+
"or-collapsible-panel": Partial<
|
|
439
|
+
OrCollapsiblePanelProps &
|
|
440
|
+
OrCollapsiblePanelSolidJsProps &
|
|
441
|
+
BaseProps<OrCollapsiblePanel> &
|
|
442
|
+
BaseEvents
|
|
443
|
+
>;
|
|
292
444
|
|
|
293
445
|
/**
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
446
|
+
*
|
|
447
|
+
*
|
|
448
|
+
* ## Attributes & Properties
|
|
449
|
+
*
|
|
450
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
451
|
+
*
|
|
452
|
+
* - `title`: undefined
|
|
453
|
+
* - `src`: undefined (property only) (readonly)
|
|
454
|
+
* - `managerUrl`: undefined (property only) (readonly)
|
|
455
|
+
* - `accept`: undefined (property only) (readonly)
|
|
456
|
+
* - `Files`: undefined (property only) (readonly)
|
|
457
|
+
*
|
|
458
|
+
* ## Events
|
|
459
|
+
*
|
|
460
|
+
* Events that will be emitted by the component.
|
|
461
|
+
*
|
|
462
|
+
* - `change`: undefined
|
|
463
|
+
*
|
|
464
|
+
* ## Methods
|
|
465
|
+
*
|
|
466
|
+
* Methods that can be called to access component functionality.
|
|
467
|
+
*
|
|
468
|
+
* - `_onChange(e: any) => void`: undefined
|
|
469
|
+
*/
|
|
470
|
+
"or-file-uploader": Partial<
|
|
471
|
+
OrFileUploaderProps &
|
|
472
|
+
OrFileUploaderSolidJsProps &
|
|
473
|
+
BaseProps<OrFileUploader> &
|
|
474
|
+
BaseEvents
|
|
475
|
+
>;
|
|
303
476
|
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
*
|
|
480
|
+
* ## Attributes & Properties
|
|
481
|
+
*
|
|
482
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
483
|
+
*
|
|
484
|
+
* - `src`: undefined
|
|
485
|
+
* - `timeout`: undefined
|
|
486
|
+
* - `preventCache`: undefined
|
|
487
|
+
*
|
|
488
|
+
* ## Events
|
|
489
|
+
*
|
|
490
|
+
* Events that will be emitted by the component.
|
|
491
|
+
*
|
|
492
|
+
* - `or-iframe-event`: Fired when the iframe loading state changes, and dispatches the event detail containing type, src, and optional error.
|
|
493
|
+
*
|
|
494
|
+
* ## Methods
|
|
495
|
+
*
|
|
496
|
+
* Methods that can be called to access component functionality.
|
|
497
|
+
*
|
|
498
|
+
* - `getSrc() => string`: undefined
|
|
499
|
+
* - `reload() => void`: Reload the iframe content by clearing and resetting the src
|
|
500
|
+
*/
|
|
501
|
+
"or-iframe": Partial<
|
|
502
|
+
OrIframeProps & OrIframeSolidJsProps & BaseProps<OrIframe> & BaseEvents
|
|
503
|
+
>;
|
|
304
504
|
|
|
305
505
|
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
506
|
+
*
|
|
507
|
+
*
|
|
508
|
+
* ## Attributes & Properties
|
|
509
|
+
*
|
|
510
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
511
|
+
*
|
|
512
|
+
* - `overlay`: undefined
|
|
513
|
+
*/
|
|
514
|
+
"or-loading-indicator": Partial<
|
|
515
|
+
OrLoadingIndicatorProps &
|
|
516
|
+
OrLoadingIndicatorSolidJsProps &
|
|
517
|
+
BaseProps<OrLoadingIndicator> &
|
|
518
|
+
BaseEvents
|
|
519
|
+
>;
|
|
319
520
|
|
|
521
|
+
/**
|
|
522
|
+
* A simple loading wrapper around some other content that will hide the content whilst loading property is true
|
|
523
|
+
*
|
|
524
|
+
* ## Attributes & Properties
|
|
525
|
+
*
|
|
526
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
527
|
+
*
|
|
528
|
+
* - `loadingHeight`: undefined
|
|
529
|
+
* - `loadDom`: undefined
|
|
530
|
+
* - `fadeContent`: undefined
|
|
531
|
+
* - `loading`: undefined
|
|
532
|
+
* - `content`: undefined (property only)
|
|
533
|
+
*/
|
|
534
|
+
"or-loading-wrapper": Partial<
|
|
535
|
+
OrLoadingWrapperProps &
|
|
536
|
+
OrLoadingWrapperSolidJsProps &
|
|
537
|
+
BaseProps<OrLoadingWrapper> &
|
|
538
|
+
BaseEvents
|
|
539
|
+
>;
|
|
320
540
|
|
|
321
541
|
/**
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
542
|
+
*
|
|
543
|
+
*
|
|
544
|
+
* ## Attributes & Properties
|
|
545
|
+
*
|
|
546
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
547
|
+
*
|
|
548
|
+
* - `zLevel`: undefined
|
|
549
|
+
* - `heading`: undefined
|
|
550
|
+
*/
|
|
551
|
+
"or-panel": Partial<
|
|
552
|
+
OrPanelProps & OrPanelSolidJsProps & BaseProps<OrPanel> & BaseEvents
|
|
553
|
+
>;
|
|
554
|
+
};
|
|
333
555
|
|
|
334
|
-
export type CustomCssProperties = {
|
|
556
|
+
export type CustomCssProperties = {};
|
|
335
557
|
|
|
558
|
+
declare module "react" {
|
|
559
|
+
namespace JSX {
|
|
560
|
+
interface IntrinsicElements extends CustomElements {}
|
|
561
|
+
}
|
|
562
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
336
563
|
}
|
|
337
564
|
|
|
338
|
-
|
|
339
|
-
declare module 'react' {
|
|
565
|
+
declare module "preact" {
|
|
340
566
|
namespace JSX {
|
|
341
567
|
interface IntrinsicElements extends CustomElements {}
|
|
342
568
|
}
|
|
343
569
|
export interface CSSProperties extends CustomCssProperties {}
|
|
344
570
|
}
|
|
345
571
|
|
|
346
|
-
declare module
|
|
572
|
+
declare module "@builder.io/qwik" {
|
|
347
573
|
namespace JSX {
|
|
348
574
|
interface IntrinsicElements extends CustomElements {}
|
|
349
575
|
}
|
|
350
576
|
export interface CSSProperties extends CustomCssProperties {}
|
|
351
577
|
}
|
|
352
578
|
|
|
353
|
-
declare module
|
|
579
|
+
declare module "@stencil/core" {
|
|
354
580
|
namespace JSX {
|
|
355
581
|
interface IntrinsicElements extends CustomElements {}
|
|
356
582
|
}
|
|
357
583
|
export interface CSSProperties extends CustomCssProperties {}
|
|
358
584
|
}
|
|
359
585
|
|
|
360
|
-
declare module
|
|
586
|
+
declare module "hono/jsx" {
|
|
361
587
|
namespace JSX {
|
|
362
588
|
interface IntrinsicElements extends CustomElements {}
|
|
363
589
|
}
|
|
364
590
|
export interface CSSProperties extends CustomCssProperties {}
|
|
365
591
|
}
|
|
366
592
|
|
|
367
|
-
declare module
|
|
593
|
+
declare module "react-native" {
|
|
368
594
|
namespace JSX {
|
|
369
595
|
interface IntrinsicElements extends CustomElements {}
|
|
370
596
|
}
|
|
371
597
|
export interface CSSProperties extends CustomCssProperties {}
|
|
372
598
|
}
|
|
373
599
|
|
|
374
|
-
declare module
|
|
600
|
+
declare module "solid-js" {
|
|
375
601
|
namespace JSX {
|
|
376
|
-
interface IntrinsicElements extends
|
|
602
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
377
603
|
}
|
|
378
604
|
export interface CSSProperties extends CustomCssProperties {}
|
|
379
605
|
}
|
package/custom-elements.json
CHANGED
|
@@ -478,100 +478,6 @@
|
|
|
478
478
|
}
|
|
479
479
|
]
|
|
480
480
|
},
|
|
481
|
-
{
|
|
482
|
-
"kind": "javascript-module",
|
|
483
|
-
"path": "src/or-form.ts",
|
|
484
|
-
"declarations": [
|
|
485
|
-
{
|
|
486
|
-
"kind": "class",
|
|
487
|
-
"description": "This is a form element that supports any element that has a value property",
|
|
488
|
-
"name": "OrForm",
|
|
489
|
-
"members": [
|
|
490
|
-
{
|
|
491
|
-
"kind": "field",
|
|
492
|
-
"name": "formNodes",
|
|
493
|
-
"type": {
|
|
494
|
-
"text": "Node[]"
|
|
495
|
-
},
|
|
496
|
-
"privacy": "protected"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"kind": "method",
|
|
500
|
-
"name": "checkValidity",
|
|
501
|
-
"privacy": "public",
|
|
502
|
-
"return": {
|
|
503
|
-
"type": {
|
|
504
|
-
"text": "boolean"
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
"type": {
|
|
508
|
-
"text": "checkValidity() => boolean"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
"kind": "method",
|
|
513
|
-
"name": "reportValidity",
|
|
514
|
-
"privacy": "public",
|
|
515
|
-
"return": {
|
|
516
|
-
"type": {
|
|
517
|
-
"text": "boolean"
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"type": {
|
|
521
|
-
"text": "reportValidity() => boolean"
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"kind": "method",
|
|
526
|
-
"name": "submit",
|
|
527
|
-
"privacy": "public",
|
|
528
|
-
"return": {
|
|
529
|
-
"type": {
|
|
530
|
-
"text": "{[key: string]: any}"
|
|
531
|
-
}
|
|
532
|
-
},
|
|
533
|
-
"type": {
|
|
534
|
-
"text": "submit() => {[key: string]: any}"
|
|
535
|
-
}
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"kind": "method",
|
|
539
|
-
"name": "reset",
|
|
540
|
-
"privacy": "public",
|
|
541
|
-
"type": {
|
|
542
|
-
"text": "reset() => void"
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
],
|
|
546
|
-
"superclass": {
|
|
547
|
-
"name": "LitElement",
|
|
548
|
-
"package": "lit"
|
|
549
|
-
},
|
|
550
|
-
"tagName": "or-form",
|
|
551
|
-
"customElement": true,
|
|
552
|
-
"modulePath": "src/or-form.ts",
|
|
553
|
-
"definitionPath": "src/or-form.ts"
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"exports": [
|
|
557
|
-
{
|
|
558
|
-
"kind": "js",
|
|
559
|
-
"name": "OrForm",
|
|
560
|
-
"declaration": {
|
|
561
|
-
"name": "OrForm",
|
|
562
|
-
"module": "src/or-form.ts"
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
"kind": "custom-element-definition",
|
|
567
|
-
"name": "or-form",
|
|
568
|
-
"declaration": {
|
|
569
|
-
"name": "OrForm",
|
|
570
|
-
"module": "src/or-form.ts"
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
]
|
|
574
|
-
},
|
|
575
481
|
{
|
|
576
482
|
"kind": "javascript-module",
|
|
577
483
|
"path": "src/or-iframe.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-ace-editor.d.ts","sourceRoot":"","sources":["../src/or-ace-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,cAAc,EAAE,cAAc,EAAC,MAAM,KAAK,CAAC;AAE1E,OAAY,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,2CAA2C,CAAC;AACnD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAE/C,qBAAa,uBAAwB,SAAQ,WAAW,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;IAEvF,gBAAuB,IAAI,2BAA2B;gBAE1C,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAU5C;AAED,qBAAa,oBAAqB,SAAQ,WAAW,CAAC,IAAI,CAAC;IAEvD,gBAAuB,IAAI,wBAAwB;;CAQtD;AAED,OAAO,CAAC,MAAM,CAAC;IACX,MAAM,WAAW,mBAAmB;QAChC,CAAC,uBAAuB,CAAC,IAAI,CAAC,EAAE,uBAAuB,CAAC;QACxD,CAA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B,CAAC;QACxD,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,oBAAoB,CAAC;KACrD;CACJ;AAED,qBACa,WAAY,SAAQ,UAAU;IAGvC,MAAM,KAAK,MAAM,4BAwBhB;IAGM,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,KAAK,CAAC,EAAE,GAAG,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAmB;IAGtC,SAAS,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAClC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAM;IAClC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAS;IACpC,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEhC,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,kBAAkB,EAAE,cAAc;IAoB1C,MAAM,IAAI,cAAc,GAAG,IAAI;IAM/B,SAAS,CAAC,aAAa;IAOvB,SAAS,CAAC,UAAU;IAkBpB,SAAS,CAAC,aAAa;IAiBvB,SAAS,CAAC,eAAe;IAUlB,QAAQ,IAAI,MAAM,GAAG,SAAS;IAQ9B,QAAQ,IAAI,OAAO;CAS7B"}
|
package/lib/or-ace-editor.js
CHANGED
|
@@ -20,6 +20,6 @@ var __decorate=this&&this.__decorate||function(t,e,i,o){var r,d=arguments.length
|
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`}disconnectedCallback(){this.destroyEditor(),super.disconnectedCallback()}updated(t){super.updated(t),t.has("mode")&&(this.destroyEditor(),this.initEditor()),t.has("value")&&this._aceEditor&&(this._lastValue=void 0!==this.value?"string"==typeof this.value?this.value:JSON.stringify(this.value,null,2):"",this._aceEditor.setValue(this._lastValue))}render(){return e`
|
|
23
|
+
`}disconnectedCallback(){this.destroyEditor(),super.disconnectedCallback()}updated(t){super.updated(t),t.has("mode")&&(this.destroyEditor(),this.initEditor()),t.has("value")&&this._aceEditor&&(this._lastValue=void 0!==this.value?"string"==typeof this.value?this.value:JSON.stringify(this.value,null,2):"",this._aceEditor.setValue(this._lastValue)),t.has("readonly")&&this._aceEditor&&this._aceEditor.setReadOnly(!!this.readonly)}render(){return e`
|
|
24
24
|
<div id="ace-editor"></div>
|
|
25
25
|
`}destroyEditor(){this._aceEditor&&(this._aceEditor.destroy(),this._aceEditor=void 0)}initEditor(){this._aceElem&&(this._aceEditor=s.edit(this._aceElem,{mode:this.mode,value:this._lastValue,useSoftTabs:!0,tabSize:2,readOnly:this.readonly,showPrintMargin:!1}),this._aceEditor.renderer.attachToShadowRoot(),this._aceEditor.getSession().on("changeAnnotation",()=>this._onEditorChange()),this._aceEditor.on("change",()=>this._onEditorEdit()))}_onEditorEdit(){this._editing||(this.dispatchEvent(new OrAceEditorEditEvent),this._editing=!0),this._changeTimer&&window.clearTimeout(this._changeTimer),this._changeTimer=window.setTimeout(()=>{this._changeTimer=void 0,this._editing&&this._onEditorChange()},600)}_onEditorChange(){this._editing=!1;let t=this.getValue()||"";if(this._lastValue!==t){this._lastValue=t;let e=this.validate();this.dispatchEvent(new OrAceEditorChangedEvent(t,e))}}getValue(){if(this._aceEditor)return this._aceEditor.getValue()}validate(){if(!this._aceEditor)return!1;let t=this._aceEditor.getSession().getAnnotations();return!t||0===t.length}};__decorate([r({type:Boolean,attribute:!1})],OrAceEditor.prototype,"readonly",void 0),__decorate([r({attribute:!1})],OrAceEditor.prototype,"value",void 0),__decorate([r({type:String,attribute:!1})],OrAceEditor.prototype,"mode",void 0),__decorate([d("#ace-editor")],OrAceEditor.prototype,"_aceElem",void 0),OrAceEditor=__decorate([o("or-ace-editor")],OrAceEditor);export{OrAceEditor};
|
package/lib/or-ace-editor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-ace-editor.js","sourceRoot":"","sources":["../src/or-ace-editor.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,E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AAQ;QACX,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAEM,QAAQ;QAEX,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC,cAAc,EAAE,CAAC;QAClE,OAAO,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC;IACpD,CAAC;CACJ,CAAA;AAnHU;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;6CAClB;AAGnB;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;0CACV;AAGZ;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;yCACL;AAG5B;IADT,KAAK,CAAC,aAAa,CAAC;6CACY;AAvCxB,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAiJvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-collapsible-panel.d.ts","sourceRoot":"","sources":["../src/or-collapsible-panel.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"or-collapsible-panel.d.ts","sourceRoot":"","sources":["../src/or-collapsible-panel.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAiGvE,qBACa,kBAAmB,SAAQ,UAAU;IAE9C,MAAM,KAAK,MAAM,8BAIhB;IAGD,WAAW,EAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEtC,QAAQ,EAAE,OAAO,CAAS;IAE1B,UAAU,EAAE,OAAO,CAAQ;IAE3B,SAAS,CAAC,UAAU,EAAG,cAAc,CAAC;IAEtC,SAAS,CAAC,gBAAgB,CAAC,EAAE,EAAE,UAAU;IAQzC,MAAM;CAcT"}
|
|
@@ -26,7 +26,7 @@ var __decorate=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length
|
|
|
26
26
|
font-size: 15px;
|
|
27
27
|
font-weight: 400;
|
|
28
28
|
align-items: center;
|
|
29
|
-
padding: 0
|
|
29
|
+
padding: 0 16px 0 16px;
|
|
30
30
|
border-radius: inherit;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -47,6 +47,11 @@ var __decorate=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length
|
|
|
47
47
|
display: flex;
|
|
48
48
|
flex-direction: row;
|
|
49
49
|
overflow: hidden;
|
|
50
|
+
min-width: 0; /* Allows the element to shrink */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
#header-title {
|
|
54
|
+
min-width: 0; /* Allows the element to shrink */
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
#header-title, #header-description {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-collapsible-panel.js","sourceRoot":"","sources":["../src/or-collapsible-panel.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,SAAS,EAAE,MAAM,KAAK,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAe;AACf,MAAM,KAAK,GAAG,GAAG,CAA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I,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,EAAa,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC;kBACtK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA,0BAA0B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,EAAE;;;;;;uCAM9E,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;kBACvE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAA,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,8BAA8B;;SAExI,CAAC;IACN,CAAC;CACJ,CAAA;AA9BG;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,CAAA,OAAuB,CAAA,EAAC,CAAC;uDACJ;AAEtC;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;oDACA;AAE1B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;sDACC;AAEjB;IADT,KAAK,CAAC,SAAS,CAAC;sDACqB;AAf7B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAuC9B"}
|
package/lib/or-iframe.js
CHANGED
|
@@ -34,7 +34,7 @@ var __decorate=this&&this.__decorate||function(e,r,t,o){var i,a=arguments.length
|
|
|
34
34
|
font-weight: 500;
|
|
35
35
|
gap: 0.5rem;
|
|
36
36
|
}
|
|
37
|
-
`,OrIframe=class extends t{constructor(){super(...arguments),this.timeout=1e4,this.loading=!0,this.error=!1,this.preventCache=!0,this._handleLoadEvent=e=>{this._handleIframeEvent(OrIFrameEventType.LOADED,e)},this._handleErrorEvent=e=>{this._handleIframeEvent(OrIFrameEventType.ERROR,e)},this._handleIframeEvent=(e,r)=>{this._clearTimeout();let t={type:e,src:this.src,error:e===OrIFrameEventType.ERROR||e===OrIFrameEventType.TIMEOUT?e===OrIFrameEventType.TIMEOUT?"Timeout loading iframe":"Error loading iframe":void 0};switch(this.dispatchEvent(new OrIFrameEvent(t)),e){case OrIFrameEventType.LOADED:this.error=!1,this.loading=!1;break;case OrIFrameEventType.ERROR:this.error=!0,this.loading=!1,console.error(`Error event loading iframe for src: ${this.src}`,r);break;case OrIFrameEventType.TIMEOUT:this.error=!0,this.loading=!1,console.error(`Timeout event loading iframe for src: ${this.src}`,r)}}}static get styles(){return[style]}_clearTimeout(){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=void 0)}_startTimeout(){this._clearTimeout(),this.timeoutId=window.setTimeout(()=>{console.warn(`Iframe load timeout after ${this.timeout}ms for src: ${this.src}`),this._handleIframeEvent(OrIFrameEventType.TIMEOUT,new Event("timeout"))},this.timeout)}_resetState(){this.loading=!0,this.error=!1,this._startTimeout()}connectedCallback(){super.connectedCallback(),this._resetState()}willUpdate(e){e.has("src")&&this._resetState()}disconnectedCallback(){this._clearTimeout()}getSrc(){if(this.preventCache&&this.src){let e=new URL(this.src);return e.searchParams.set("t",Date.now().toString()),e.toString()}return this.src||""}reload(){var e;if(!this.src)return void console.warn("Cannot reload iframe: no src specified");this._resetState();let r=null==(e=this.shadowRoot)?void 0:e.querySelector("iframe");if(r){let e=this.getSrc();r.src="",requestAnimationFrame(()=>{r.src=e})}}render(){return r`
|
|
37
|
+
`,OrIframe=class extends t{constructor(){super(...arguments),this.timeout=1e4,this.loading=!0,this.error=!1,this.preventCache=!0,this._handleLoadEvent=e=>{this._handleIframeEvent(OrIFrameEventType.LOADED,e)},this._handleErrorEvent=e=>{this._handleIframeEvent(OrIFrameEventType.ERROR,e)},this._handleIframeEvent=(e,r)=>{this._clearTimeout();let t={type:e,src:this.src,error:e===OrIFrameEventType.ERROR||e===OrIFrameEventType.TIMEOUT?e===OrIFrameEventType.TIMEOUT?"Timeout loading iframe":"Error loading iframe":void 0};switch(this.dispatchEvent(new OrIFrameEvent(t)),e){case OrIFrameEventType.LOADED:this.error=!1,this.loading=!1;break;case OrIFrameEventType.ERROR:this.error=!0,this.loading=!1,console.error(`Error event loading iframe for src: ${this.src}`,r);break;case OrIFrameEventType.TIMEOUT:this.error=!0,this.loading=!1,console.error(`Timeout event loading iframe for src: ${this.src}`,r)}}}static get styles(){return[style]}_clearTimeout(){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=void 0)}_startTimeout(){this._clearTimeout(),this.timeoutId=window.setTimeout(()=>{console.warn(`Iframe load timeout after ${this.timeout}ms for src: ${this.src}`),this._handleIframeEvent(OrIFrameEventType.TIMEOUT,new Event("timeout"))},this.timeout)}_resetState(){this.loading=!0,this.error=!1,this._startTimeout()}connectedCallback(){super.connectedCallback(),this._resetState()}willUpdate(e){e.has("src")&&this._resetState()}disconnectedCallback(){this._clearTimeout()}getSrc(){if(this.preventCache&&this.src){let e=new URL(this.src,globalThis.location.href);return e.searchParams.set("t",Date.now().toString()),e.toString()}return this.src||""}reload(){var e;if(!this.src)return void console.warn("Cannot reload iframe: no src specified");this._resetState();let r=null==(e=this.shadowRoot)?void 0:e.querySelector("iframe");if(r){let e=this.getSrc();r.src="",requestAnimationFrame(()=>{r.src=e})}}render(){return r`
|
|
38
38
|
<div class="wrapper">
|
|
39
39
|
${this.loading?r`<or-loading-indicator></or-loading-indicator>`:r``}
|
|
40
40
|
${this.error?r`<div class="error">
|
package/lib/or-iframe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-iframe.js","sourceRoot":"","sources":["../src/or-iframe.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,GAA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AK,EAAE;yCACiB;AAGf;IADT,KAAK,EAAE;uCACgB;AAGjB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;8CACD;AAlBlB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAwJpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-loading-wrapper.d.ts","sourceRoot":"","sources":["../src/or-loading-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3D;;GAEG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAGrC,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,OAAO,CAAQ;IAGxB,WAAW,EAAE,OAAO,CAAS;IAG7B,OAAO,EAAE,OAAO,CAAS;IAGzB,OAAO,CAAC,EAAE,cAAc,CAAC;IAGhC,WAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"or-loading-wrapper.d.ts","sourceRoot":"","sources":["../src/or-loading-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3D;;GAEG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAGrC,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,EAAE,OAAO,CAAQ;IAGxB,WAAW,EAAE,OAAO,CAAS;IAG7B,OAAO,EAAE,OAAO,CAAS;IAGzB,OAAO,CAAC,EAAE,cAAc,CAAC;IAGhC,WAAkB,MAAM,4BA4BvB;IAED,MAAM;CAYT"}
|
|
@@ -20,6 +20,10 @@ var __decorate=this&&this.__decorate||function(e,t,o,r){var a,i=arguments.length
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
#content-wrapper {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
23
27
|
`}render(){return t`
|
|
24
28
|
<div id="wrapper">
|
|
25
29
|
${this.loading?t`<div id="loader">LOADING</div>`:""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-loading-wrapper.js","sourceRoot":"","sources":["../src/or-loading-wrapper.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;GAEG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAMI,YAAO,GAAY,IAAI,CAAC;QAGxB,gBAAW,GAAY,KAAK,CAAC;QAG7B,YAAO,GAAY,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"or-loading-wrapper.js","sourceRoot":"","sources":["../src/or-loading-wrapper.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;GAEG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAMI,YAAO,GAAY,IAAI,CAAC;QAGxB,gBAAW,GAAY,KAAK,CAAC;QAG7B,YAAO,GAAY,KAAK,CAAC;IAgDpC,CAAC;IA3CG,eAAe;IACR,MAAM,KAAK,MAAM;QACpB,OAAO,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;SA0BT,CAAC;IACN,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAA;;kBAED,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,gCAAgC,CAAC,CAAC,CAAC,EAAE;kBACxD,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAA,CAAC,CAAC,IAAI,CAAA;uDACE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;;0BAEtF,IAAI,CAAC,OAAO,IAAI,EAAE;2BACjB,CAAC,CAAC,CAAC,EAAE;;SAEvB,CAAC;IACN,CAAC;CACJ,CAAA;AAzDU;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;uDACK;AAGvB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;iDACK;AAGxB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;qDACU;AAG7B;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;iDACM;AAGzB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;iDACX;AAfvB,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CA4D5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0-snapshot",
|
|
4
4
|
"description": "OpenRemote basic UI components",
|
|
5
5
|
"customElements": "custom-elements.json",
|
|
6
6
|
"main": "dist/umd/index.bundle.js",
|
|
@@ -29,15 +29,17 @@
|
|
|
29
29
|
"license": "AGPL-3.0-or-later",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@material/elevation": "^9.0.0",
|
|
32
|
-
"@openremote/core": "1.
|
|
33
|
-
"@openremote/model": "1.
|
|
34
|
-
"@openremote/or-icon": "1.
|
|
35
|
-
"@openremote/or-
|
|
36
|
-
"@openremote/or-translate": "1.13.0",
|
|
32
|
+
"@openremote/core": "1.14.0-snapshot",
|
|
33
|
+
"@openremote/model": "1.14.0-snapshot",
|
|
34
|
+
"@openremote/or-icon": "1.14.0-snapshot",
|
|
35
|
+
"@openremote/or-translate": "1.14.0-snapshot",
|
|
37
36
|
"ace-builds": "^1.41.0",
|
|
38
37
|
"lit": "^3.3.1",
|
|
39
38
|
"simplebar": "^5.3.6"
|
|
40
39
|
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@openremote/util": "1.14.0-snapshot"
|
|
42
|
+
},
|
|
41
43
|
"publishConfig": {
|
|
42
44
|
"access": "public"
|
|
43
45
|
}
|
package/lib/or-form.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from "lit";
|
|
2
|
-
/**
|
|
3
|
-
* This is a form element that supports any element that has a value property
|
|
4
|
-
*/
|
|
5
|
-
export declare class OrForm extends LitElement {
|
|
6
|
-
protected formNodes: Node[];
|
|
7
|
-
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
8
|
-
render(): import("lit").TemplateResult<1>;
|
|
9
|
-
checkValidity(): boolean;
|
|
10
|
-
reportValidity(): boolean;
|
|
11
|
-
submit(): {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
};
|
|
14
|
-
reset(): void;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=or-form.d.ts.map
|
package/lib/or-form.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"or-form.d.ts","sourceRoot":"","sources":["../src/or-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,cAAc,EAAY,MAAM,KAAK,CAAC;AAiBrE;;GAEG;AAEH,qBACa,MAAO,SAAQ,UAAU;IAGlC,SAAS,CAAC,SAAS,EAAG,IAAI,EAAE,CAAC;IAE7B,SAAS,CAAC,YAAY,CAAC,kBAAkB,EAAE,cAAc,GAAG,IAAI;IAchE,MAAM;IAOC,aAAa,IAAI,OAAO;IAWxB,cAAc,IAAI,OAAO;IAWzB,MAAM,IAAI;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC;IAQ9B,KAAK;CAKf"}
|
package/lib/or-form.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};import{css as e,html as t,LitElement as r}from"lit";import{customElement as o,queryAssignedElements as i}from"lit/decorators.js";import{OrMwcInput as a}from"@openremote/or-mwc-components/or-mwc-input";let style=e`
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host([hidden]) {
|
|
8
|
-
display: none;
|
|
9
|
-
}
|
|
10
|
-
`,OrForm=class extends r{firstUpdated(e){super.firstUpdated(e)}render(){return t`
|
|
11
|
-
<slot></slot>
|
|
12
|
-
`}checkValidity(){let e=!1;return this.formNodes.filter(e=>e instanceof a&&e.name).map(e=>e).forEach(t=>{let r=t.checkValidity();e=e&&r}),e}reportValidity(){let e=!0;return this.formNodes.filter(e=>e instanceof a&&e.name).map(e=>e).forEach(t=>{let r=t.reportValidity();e=e&&r}),e}submit(){let e={};return this.formNodes.filter(e=>e instanceof a&&e.name).map(e=>e).forEach(t=>{e[t.name]=t.value}),e}reset(){this.formNodes.filter(e=>e instanceof a&&e.name).map(e=>e).forEach(e=>{e.value=void 0})}};__decorate([i()],OrForm.prototype,"formNodes",void 0),OrForm=__decorate([o("or-form")],OrForm);export{OrForm};
|
package/lib/or-form.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"or-form.js","sourceRoot":"","sources":["../src/or-form.ts"],"names":[],"mappings":";;;;;;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