1
1
/*
2
2
The MIT License
3
-
3
+
4
4
Copyright (c) 2017-2019 EclipseSource Munich
5
5
https://github.com/eclipsesource/jsonforms
6
-
6
+
7
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
of this software and associated documentation files (the "Software"), to deal
9
9
in the Software without restriction, including without limitation the rights
10
10
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
11
copies of the Software, and to permit persons to whom the Software is
12
12
furnished to do so, subject to the following conditions:
13
-
13
+
14
14
The above copyright notice and this permission notice shall be included in
15
15
all copies or substantial portions of the Software.
16
-
16
+
17
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -174,7 +174,7 @@ export interface AndCondition extends ComposableCondition {
174
174
/**
175
175
* Common base interface for any UI schema element.
176
176
*/
177
- export interface UISchemaElement {
177
+ export interface BaseUISchemaElement {
178
178
/**
179
179
* The type of this UI schema element.
180
180
*/
@@ -195,7 +195,7 @@ export interface UISchemaElement {
195
195
* Represents a layout element which can order its children
196
196
* in a specific way.
197
197
*/
198
- export interface Layout extends UISchemaElement {
198
+ export interface Layout extends BaseUISchemaElement {
199
199
/**
200
200
* The child elements of this layout.
201
201
*/
@@ -241,7 +241,7 @@ export interface LabelDescription {
241
241
/**
242
242
* A label element.
243
243
*/
244
- export interface LabelElement extends UISchemaElement , Internationalizable {
244
+ export interface LabelElement extends BaseUISchemaElement , Internationalizable {
245
245
type : 'Label' ;
246
246
/**
247
247
* The text of label.
@@ -254,7 +254,7 @@ export interface LabelElement extends UISchemaElement, Internationalizable {
254
254
* to which part of the schema the control should be bound.
255
255
*/
256
256
export interface ControlElement
257
- extends UISchemaElement ,
257
+ extends BaseUISchemaElement ,
258
258
Scoped ,
259
259
Labelable < string | boolean | LabelDescription > ,
260
260
Internationalizable {
@@ -274,7 +274,7 @@ export interface Category extends Layout, Labeled, Internationalizable {
274
274
* the categorization element can be used to represent recursive structures like trees.
275
275
*/
276
276
export interface Categorization
277
- extends UISchemaElement ,
277
+ extends BaseUISchemaElement ,
278
278
Labeled ,
279
279
Internationalizable {
280
280
type : 'Categorization' ;
@@ -284,3 +284,14 @@ export interface Categorization
284
284
*/
285
285
elements : ( Category | Categorization ) [ ] ;
286
286
}
287
+
288
+ export type UISchemaElement =
289
+ | BaseUISchemaElement
290
+ | ControlElement
291
+ | Layout
292
+ | LabelElement
293
+ | GroupLayout
294
+ | Category
295
+ | Categorization
296
+ | VerticalLayout
297
+ | HorizontalLayout ;
0 commit comments