@genesislcap/foundation-forms 14.116.1 → 14.117.1-alpha-7cac6ae.0
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/README.md +6 -6
- package/dist/custom-elements.json +198 -198
- package/dist/dts/jsonforms/renderers/StringControlRenderer.d.ts.map +1 -1
- package/dist/dts/types.d.ts +165 -13
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/jsonforms/renderers/StringControlRenderer.js +30 -15
- package/dist/foundation-forms.api.json +290 -25
- package/dist/foundation-forms.d.ts +185 -25
- package/docs/api/foundation-forms.arrayrendereroptions.md +17 -0
- package/docs/api/foundation-forms.categorizationrendereroptions.md +17 -0
- package/docs/api/foundation-forms.connectedrenderersoptions.md +20 -0
- package/docs/api/foundation-forms.grouprendereroptions.md +15 -0
- package/docs/api/foundation-forms.md +13 -5
- package/docs/api/foundation-forms.standardrendereroptions.md +19 -0
- package/docs/api/foundation-forms.stepperorientationoptions.md +17 -0
- package/docs/api/foundation-forms.stepperorientationtype.md +1 -0
- package/docs/api/foundation-forms.stepperrendereroptions.md +15 -0
- package/docs/api/foundation-forms.stringrendereroptions.md +16 -0
- package/docs/api/foundation-forms.uischema.md +3 -2
- package/docs/api/foundation-forms.uischemaelement.md +1 -0
- package/docs/api/foundation-forms.uischemaelementoptions.md +3 -19
- package/docs/api/foundation-forms.uischemaelementtype.md +2 -1
- package/docs/api-report.md +55 -26
- package/package.json +9 -9
|
@@ -14,6 +14,68 @@ import { StatePropsOfControl } from '@jsonforms/core';
|
|
|
14
14
|
import { UISchemaElement } from '@jsonforms/core';
|
|
15
15
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Configuration options available for array renderer.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare type ArrayRendererOptions = {
|
|
22
|
+
/**
|
|
23
|
+
* ChildUiSchema allows you to pass a UiSchema for a particular element,
|
|
24
|
+
* which can then be multiplied many times by the renderer.
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
childUiSchema?: UiSchema;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Configuration options available for categorization renderer.
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export declare type CategorizationRendererOptions = {
|
|
35
|
+
/**
|
|
36
|
+
* childElements allows you to pass the UiSchema array in which the renderers groups will be located
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
childElements?: UiSchema[];
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Available configuration options for connected combobox/multiselect.
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare type ConnectedRenderersOptions = {
|
|
47
|
+
/**
|
|
48
|
+
* Activates the async search by changing the criteria based on the value from the search-bar.
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
async?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the target Data Server query or Request Server requestReply.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
allOptionsResourceName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* A property that is set to configure the resource to which combobox/multiselect is connected.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
datasourceConfig?: DatasourceOptions;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies which field should be used as underlying data used when changing selection.
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
valueField?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Field used to display label for the component.
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
labelField?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Property to which we can provide the data to be used instead of data from the server.
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
data?: any[];
|
|
77
|
+
};
|
|
78
|
+
|
|
17
79
|
/**
|
|
18
80
|
* Creates a expressions/criteria from given payload
|
|
19
81
|
* @public
|
|
@@ -254,6 +316,12 @@ export declare const foundationFormTemplate: ViewTemplate<Form, any>;
|
|
|
254
316
|
/** @public */
|
|
255
317
|
export declare const genesisErrorTranslator: ErrorTranslator;
|
|
256
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Configuration options available for group renderer.
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export declare type GroupRendererOptions = CategorizationRendererOptions;
|
|
324
|
+
|
|
257
325
|
/** @internal */
|
|
258
326
|
export declare const logger: Logger;
|
|
259
327
|
|
|
@@ -281,47 +349,139 @@ export declare type RendererEntry = {
|
|
|
281
349
|
/** @public */
|
|
282
350
|
export declare const renderers: any[];
|
|
283
351
|
|
|
284
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* Standard configuration options available for all renderers.
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
export declare type StandardRendererOptions = {
|
|
357
|
+
/**
|
|
358
|
+
* Setting this property allows you to hide the renderer.
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
361
|
+
hidden?: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Setting this property enables client-side validation.
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
367
|
+
i18n?: {
|
|
368
|
+
[key: string]: any;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Orientation options available for stepper renderer.
|
|
374
|
+
* @public
|
|
375
|
+
*/
|
|
376
|
+
export declare type StepperOrientationOptions = {
|
|
377
|
+
/**
|
|
378
|
+
* Configuration options available for the stepper renderer which set the renderer horizontally or vertically.
|
|
379
|
+
* @public
|
|
380
|
+
*/
|
|
381
|
+
orientation?: StepperOrientationType;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Available orientation for stepper renderer.
|
|
386
|
+
* @public
|
|
387
|
+
*/
|
|
285
388
|
export declare type StepperOrientationType = 'vertical' | 'horizontal';
|
|
286
389
|
|
|
287
|
-
/**
|
|
390
|
+
/**
|
|
391
|
+
* Configuration options available for stepper renderer.
|
|
392
|
+
* @public
|
|
393
|
+
*/
|
|
394
|
+
export declare type StepperRendererOptions = CategorizationRendererOptions;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Configuration options available for string renderer.
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
export declare type StringRendererOptions = {
|
|
401
|
+
/**
|
|
402
|
+
* Changes the type attribute in the string renderer from text to password.
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
isPassword?: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Setting this property enables text-area instead of text-field.
|
|
408
|
+
* @public
|
|
409
|
+
*/
|
|
410
|
+
textarea?: boolean;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* The UI schema, which is passed to JSON Forms, describes the general layout of a form and is just a regular JSON object.
|
|
415
|
+
* It describes the form by means of different UI schema elements, which can often be categorized into either Controls or Layouts.
|
|
416
|
+
* @public
|
|
417
|
+
*/
|
|
288
418
|
export declare type UiSchema = {
|
|
419
|
+
/**
|
|
420
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
421
|
+
* @public
|
|
422
|
+
* */
|
|
289
423
|
type: UiSchemaElementType;
|
|
424
|
+
/**
|
|
425
|
+
* All layouts need to declare an elements property which contains the children which are to be arranged by the layout.
|
|
426
|
+
* It is expected to be an array of UI Schema elements, e.g. controls or other layouts.
|
|
427
|
+
* @public
|
|
428
|
+
*/
|
|
290
429
|
elements: UiSchemaElement[];
|
|
430
|
+
/**
|
|
431
|
+
* Allows changing the design-system for renderers.
|
|
432
|
+
* @public
|
|
433
|
+
*/
|
|
291
434
|
dsPrefix?: string;
|
|
292
|
-
|
|
435
|
+
/**
|
|
436
|
+
* Options for changing the orientation for the stepper renderer.
|
|
437
|
+
* @public
|
|
438
|
+
*/
|
|
439
|
+
options?: StepperOrientationOptions;
|
|
293
440
|
};
|
|
294
441
|
|
|
295
|
-
/**
|
|
442
|
+
/**
|
|
443
|
+
* A UiSchemaElement that displays property values in a user interface element.
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
296
446
|
export declare type UiSchemaElement = {
|
|
447
|
+
/**
|
|
448
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
449
|
+
* @public
|
|
450
|
+
* */
|
|
297
451
|
type: UiSchemaElementType;
|
|
452
|
+
/**
|
|
453
|
+
* The mandatory scope property, which expects a JSON schema reference value, defines to which property of the data the control should be bound to.
|
|
454
|
+
* @public
|
|
455
|
+
*/
|
|
298
456
|
scope: string;
|
|
457
|
+
/**
|
|
458
|
+
* By default, controls use the name of property they point to as a label.
|
|
459
|
+
* Setting this property allows you to change the label.
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
299
462
|
label?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Setting this property allows you to change the placeholder in input renderers.
|
|
465
|
+
* @public
|
|
466
|
+
*/
|
|
300
467
|
placeholder?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Optional attribute options that determine how the control is rendered.
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
301
472
|
options?: UiSchemaElementOptions;
|
|
302
473
|
};
|
|
303
474
|
|
|
304
|
-
/**
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
datasourceConfig?: DatasourceOptions;
|
|
310
|
-
hidden?: boolean;
|
|
311
|
-
isPassword?: boolean;
|
|
312
|
-
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
313
|
-
valueField?: string;
|
|
314
|
-
labelField?: string;
|
|
315
|
-
textarea?: boolean;
|
|
316
|
-
data?: any[];
|
|
317
|
-
childUiSchema?: UiSchema;
|
|
318
|
-
childElements?: UiSchema[];
|
|
319
|
-
i18n?: {
|
|
320
|
-
[key: string]: any;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
475
|
+
/**
|
|
476
|
+
* All configuration options that are available.
|
|
477
|
+
* @public
|
|
478
|
+
*/
|
|
479
|
+
export declare type UiSchemaElementOptions = ConnectedRenderersOptions | ArrayRendererOptions | CategorizationRendererOptions | GroupRendererOptions | StepperRendererOptions | StringRendererOptions | StandardRendererOptions;
|
|
323
480
|
|
|
324
|
-
/**
|
|
325
|
-
|
|
481
|
+
/**
|
|
482
|
+
* The layouts and control types, which allow you to customize the arrangement of forms.
|
|
483
|
+
* @public
|
|
484
|
+
* */
|
|
485
|
+
export declare type UiSchemaElementType = 'Control' | 'VerticalLayout' | 'LayoutVertical2Columns' | 'Categorization' | 'Group' | 'Stepper' | 'HorizontalLayout';
|
|
326
486
|
|
|
327
487
|
export { }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [ArrayRendererOptions](./foundation-forms.arrayrendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## ArrayRendererOptions type
|
|
6
|
+
|
|
7
|
+
Configuration options available for array renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ArrayRendererOptions = {
|
|
13
|
+
childUiSchema?: UiSchema;
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
**References:** [UiSchema](./foundation-forms.uischema.md)
|
|
17
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [CategorizationRendererOptions](./foundation-forms.categorizationrendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## CategorizationRendererOptions type
|
|
6
|
+
|
|
7
|
+
Configuration options available for categorization renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type CategorizationRendererOptions = {
|
|
13
|
+
childElements?: UiSchema[];
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
**References:** [UiSchema](./foundation-forms.uischema.md)
|
|
17
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [ConnectedRenderersOptions](./foundation-forms.connectedrenderersoptions.md)
|
|
4
|
+
|
|
5
|
+
## ConnectedRenderersOptions type
|
|
6
|
+
|
|
7
|
+
Available configuration options for connected combobox/multiselect.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ConnectedRenderersOptions = {
|
|
13
|
+
async?: boolean;
|
|
14
|
+
allOptionsResourceName?: string;
|
|
15
|
+
datasourceConfig?: DatasourceOptions;
|
|
16
|
+
valueField?: string;
|
|
17
|
+
labelField?: string;
|
|
18
|
+
data?: any[];
|
|
19
|
+
};
|
|
20
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [GroupRendererOptions](./foundation-forms.grouprendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## GroupRendererOptions type
|
|
6
|
+
|
|
7
|
+
Configuration options available for group renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type GroupRendererOptions = CategorizationRendererOptions;
|
|
13
|
+
```
|
|
14
|
+
**References:** [CategorizationRendererOptions](./foundation-forms.categorizationrendereroptions.md)
|
|
15
|
+
|
|
@@ -25,10 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
| Type Alias | Description |
|
|
27
27
|
| --- | --- |
|
|
28
|
+
| [ArrayRendererOptions](./foundation-forms.arrayrendereroptions.md) | Configuration options available for array renderer. |
|
|
29
|
+
| [CategorizationRendererOptions](./foundation-forms.categorizationrendereroptions.md) | Configuration options available for categorization renderer. |
|
|
30
|
+
| [ConnectedRenderersOptions](./foundation-forms.connectedrenderersoptions.md) | Available configuration options for connected combobox/multiselect. |
|
|
31
|
+
| [GroupRendererOptions](./foundation-forms.grouprendereroptions.md) | Configuration options available for group renderer. |
|
|
28
32
|
| [RendererEntry](./foundation-forms.rendererentry.md) | |
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
33
|
+
| [StandardRendererOptions](./foundation-forms.standardrendereroptions.md) | Standard configuration options available for all renderers. |
|
|
34
|
+
| [StepperOrientationOptions](./foundation-forms.stepperorientationoptions.md) | Orientation options available for stepper renderer. |
|
|
35
|
+
| [StepperOrientationType](./foundation-forms.stepperorientationtype.md) | Available orientation for stepper renderer. |
|
|
36
|
+
| [StepperRendererOptions](./foundation-forms.stepperrendereroptions.md) | Configuration options available for stepper renderer. |
|
|
37
|
+
| [StringRendererOptions](./foundation-forms.stringrendereroptions.md) | Configuration options available for string renderer. |
|
|
38
|
+
| [UiSchema](./foundation-forms.uischema.md) | The UI schema, which is passed to JSON Forms, describes the general layout of a form and is just a regular JSON object. It describes the form by means of different UI schema elements, which can often be categorized into either Controls or Layouts. |
|
|
39
|
+
| [UiSchemaElement](./foundation-forms.uischemaelement.md) | A UiSchemaElement that displays property values in a user interface element. |
|
|
40
|
+
| [UiSchemaElementOptions](./foundation-forms.uischemaelementoptions.md) | All configuration options that are available. |
|
|
41
|
+
| [UiSchemaElementType](./foundation-forms.uischemaelementtype.md) | The layouts and control types, which allow you to customize the arrangement of forms. |
|
|
34
42
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [StandardRendererOptions](./foundation-forms.standardrendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## StandardRendererOptions type
|
|
6
|
+
|
|
7
|
+
Standard configuration options available for all renderers.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type StandardRendererOptions = {
|
|
13
|
+
hidden?: boolean;
|
|
14
|
+
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
15
|
+
i18n?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [StepperOrientationOptions](./foundation-forms.stepperorientationoptions.md)
|
|
4
|
+
|
|
5
|
+
## StepperOrientationOptions type
|
|
6
|
+
|
|
7
|
+
Orientation options available for stepper renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type StepperOrientationOptions = {
|
|
13
|
+
orientation?: StepperOrientationType;
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
**References:** [StepperOrientationType](./foundation-forms.stepperorientationtype.md)
|
|
17
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [StepperRendererOptions](./foundation-forms.stepperrendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## StepperRendererOptions type
|
|
6
|
+
|
|
7
|
+
Configuration options available for stepper renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type StepperRendererOptions = CategorizationRendererOptions;
|
|
13
|
+
```
|
|
14
|
+
**References:** [CategorizationRendererOptions](./foundation-forms.categorizationrendereroptions.md)
|
|
15
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-forms](./foundation-forms.md) > [StringRendererOptions](./foundation-forms.stringrendereroptions.md)
|
|
4
|
+
|
|
5
|
+
## StringRendererOptions type
|
|
6
|
+
|
|
7
|
+
Configuration options available for string renderer.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type StringRendererOptions = {
|
|
13
|
+
isPassword?: boolean;
|
|
14
|
+
textarea?: boolean;
|
|
15
|
+
};
|
|
16
|
+
```
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## UiSchema type
|
|
6
6
|
|
|
7
|
+
The UI schema, which is passed to JSON Forms, describes the general layout of a form and is just a regular JSON object. It describes the form by means of different UI schema elements, which can often be categorized into either Controls or Layouts.
|
|
7
8
|
|
|
8
9
|
**Signature:**
|
|
9
10
|
|
|
@@ -12,8 +13,8 @@ export type UiSchema = {
|
|
|
12
13
|
type: UiSchemaElementType;
|
|
13
14
|
elements: UiSchemaElement[];
|
|
14
15
|
dsPrefix?: string;
|
|
15
|
-
options?:
|
|
16
|
+
options?: StepperOrientationOptions;
|
|
16
17
|
};
|
|
17
18
|
```
|
|
18
|
-
**References:** [UiSchemaElementType](./foundation-forms.uischemaelementtype.md)<!-- -->, [UiSchemaElement](./foundation-forms.uischemaelement.md)<!-- -->, [
|
|
19
|
+
**References:** [UiSchemaElementType](./foundation-forms.uischemaelementtype.md)<!-- -->, [UiSchemaElement](./foundation-forms.uischemaelement.md)<!-- -->, [StepperOrientationOptions](./foundation-forms.stepperorientationoptions.md)
|
|
19
20
|
|
|
@@ -4,28 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## UiSchemaElementOptions type
|
|
6
6
|
|
|
7
|
+
All configuration options that are available.
|
|
7
8
|
|
|
8
9
|
**Signature:**
|
|
9
10
|
|
|
10
11
|
```typescript
|
|
11
|
-
export type UiSchemaElementOptions =
|
|
12
|
-
async?: boolean;
|
|
13
|
-
orientation?: StepperOrientationType;
|
|
14
|
-
allOptionsResourceName?: string;
|
|
15
|
-
datasourceConfig?: DatasourceOptions;
|
|
16
|
-
hidden?: boolean;
|
|
17
|
-
isPassword?: boolean;
|
|
18
|
-
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
19
|
-
valueField?: string;
|
|
20
|
-
labelField?: string;
|
|
21
|
-
textarea?: boolean;
|
|
22
|
-
data?: any[];
|
|
23
|
-
childUiSchema?: UiSchema;
|
|
24
|
-
childElements?: UiSchema[];
|
|
25
|
-
i18n?: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
12
|
+
export type UiSchemaElementOptions = ConnectedRenderersOptions | ArrayRendererOptions | CategorizationRendererOptions | GroupRendererOptions | StepperRendererOptions | StringRendererOptions | StandardRendererOptions;
|
|
29
13
|
```
|
|
30
|
-
**References:** [
|
|
14
|
+
**References:** [ConnectedRenderersOptions](./foundation-forms.connectedrenderersoptions.md)<!-- -->, [ArrayRendererOptions](./foundation-forms.arrayrendereroptions.md)<!-- -->, [CategorizationRendererOptions](./foundation-forms.categorizationrendereroptions.md)<!-- -->, [GroupRendererOptions](./foundation-forms.grouprendereroptions.md)<!-- -->, [StepperRendererOptions](./foundation-forms.stepperrendereroptions.md)<!-- -->, [StringRendererOptions](./foundation-forms.stringrendereroptions.md)<!-- -->, [StandardRendererOptions](./foundation-forms.standardrendereroptions.md)
|
|
31
15
|
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## UiSchemaElementType type
|
|
6
6
|
|
|
7
|
+
The layouts and control types, which allow you to customize the arrangement of forms.
|
|
7
8
|
|
|
8
9
|
**Signature:**
|
|
9
10
|
|
|
10
11
|
```typescript
|
|
11
|
-
export type UiSchemaElementType = 'Control' | 'VerticalLayout' |
|
|
12
|
+
export type UiSchemaElementType = 'Control' | 'VerticalLayout' | 'LayoutVertical2Columns' | 'Categorization' | 'Group' | 'Stepper' | 'HorizontalLayout';
|
|
12
13
|
```
|
package/docs/api-report.md
CHANGED
|
@@ -20,6 +20,26 @@ import { StatePropsOfControl } from '@jsonforms/core';
|
|
|
20
20
|
import { UISchemaElement } from '@jsonforms/core';
|
|
21
21
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
22
22
|
|
|
23
|
+
// @public
|
|
24
|
+
export type ArrayRendererOptions = {
|
|
25
|
+
childUiSchema?: UiSchema;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export type CategorizationRendererOptions = {
|
|
30
|
+
childElements?: UiSchema[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// @public
|
|
34
|
+
export type ConnectedRenderersOptions = {
|
|
35
|
+
async?: boolean;
|
|
36
|
+
allOptionsResourceName?: string;
|
|
37
|
+
datasourceConfig?: DatasourceOptions;
|
|
38
|
+
valueField?: string;
|
|
39
|
+
labelField?: string;
|
|
40
|
+
data?: any[];
|
|
41
|
+
};
|
|
42
|
+
|
|
23
43
|
// Warning: (ae-forgotten-export) The symbol "Expressions" needs to be exported by the entry point index.d.ts
|
|
24
44
|
//
|
|
25
45
|
// @public
|
|
@@ -106,6 +126,9 @@ export const foundationFormTemplate: ViewTemplate<Form, any>;
|
|
|
106
126
|
// @public (undocumented)
|
|
107
127
|
export const genesisErrorTranslator: ErrorTranslator;
|
|
108
128
|
|
|
129
|
+
// @public
|
|
130
|
+
export type GroupRendererOptions = CategorizationRendererOptions;
|
|
131
|
+
|
|
109
132
|
// Warning: (ae-internal-missing-underscore) The name "logger" should be prefixed with an underscore because the declaration is marked as @internal
|
|
110
133
|
//
|
|
111
134
|
// @internal (undocumented)
|
|
@@ -130,18 +153,41 @@ export type RendererEntry = {
|
|
|
130
153
|
// @public (undocumented)
|
|
131
154
|
export const renderers: any[];
|
|
132
155
|
|
|
133
|
-
// @public
|
|
156
|
+
// @public
|
|
157
|
+
export type StandardRendererOptions = {
|
|
158
|
+
hidden?: boolean;
|
|
159
|
+
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
160
|
+
i18n?: {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// @public
|
|
166
|
+
export type StepperOrientationOptions = {
|
|
167
|
+
orientation?: StepperOrientationType;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// @public
|
|
134
171
|
export type StepperOrientationType = 'vertical' | 'horizontal';
|
|
135
172
|
|
|
136
|
-
// @public
|
|
173
|
+
// @public
|
|
174
|
+
export type StepperRendererOptions = CategorizationRendererOptions;
|
|
175
|
+
|
|
176
|
+
// @public
|
|
177
|
+
export type StringRendererOptions = {
|
|
178
|
+
isPassword?: boolean;
|
|
179
|
+
textarea?: boolean;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// @public
|
|
137
183
|
export type UiSchema = {
|
|
138
184
|
type: UiSchemaElementType;
|
|
139
185
|
elements: UiSchemaElement[];
|
|
140
186
|
dsPrefix?: string;
|
|
141
|
-
options?:
|
|
187
|
+
options?: StepperOrientationOptions;
|
|
142
188
|
};
|
|
143
189
|
|
|
144
|
-
// @public
|
|
190
|
+
// @public
|
|
145
191
|
export type UiSchemaElement = {
|
|
146
192
|
type: UiSchemaElementType;
|
|
147
193
|
scope: string;
|
|
@@ -150,32 +196,15 @@ export type UiSchemaElement = {
|
|
|
150
196
|
options?: UiSchemaElementOptions;
|
|
151
197
|
};
|
|
152
198
|
|
|
153
|
-
// @public
|
|
154
|
-
export type UiSchemaElementOptions =
|
|
155
|
-
async?: boolean;
|
|
156
|
-
orientation?: StepperOrientationType;
|
|
157
|
-
allOptionsResourceName?: string;
|
|
158
|
-
datasourceConfig?: DatasourceOptions;
|
|
159
|
-
hidden?: boolean;
|
|
160
|
-
isPassword?: boolean;
|
|
161
|
-
validateFn?: (data: any, path: string, label: string) => ErrorObject[];
|
|
162
|
-
valueField?: string;
|
|
163
|
-
labelField?: string;
|
|
164
|
-
textarea?: boolean;
|
|
165
|
-
data?: any[];
|
|
166
|
-
childUiSchema?: UiSchema;
|
|
167
|
-
childElements?: UiSchema[];
|
|
168
|
-
i18n?: {
|
|
169
|
-
[key: string]: any;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
199
|
+
// @public
|
|
200
|
+
export type UiSchemaElementOptions = ConnectedRenderersOptions | ArrayRendererOptions | CategorizationRendererOptions | GroupRendererOptions | StepperRendererOptions | StringRendererOptions | StandardRendererOptions;
|
|
172
201
|
|
|
173
|
-
// @public
|
|
174
|
-
export type UiSchemaElementType = 'Control' | 'VerticalLayout' |
|
|
202
|
+
// @public
|
|
203
|
+
export type UiSchemaElementType = 'Control' | 'VerticalLayout' | 'LayoutVertical2Columns' | 'Categorization' | 'Group' | 'Stepper' | 'HorizontalLayout';
|
|
175
204
|
|
|
176
205
|
// Warnings were encountered during analysis:
|
|
177
206
|
//
|
|
178
|
-
// src/types.ts:
|
|
207
|
+
// src/types.ts:231:3 - (ae-forgotten-export) The symbol "DispatchRenderer" needs to be exported by the entry point index.d.ts
|
|
179
208
|
|
|
180
209
|
// (No @packageDocumentation comment for this package)
|
|
181
210
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-forms",
|
|
3
3
|
"description": "Genesis Foundation Forms",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.117.1-alpha-7cac6ae.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"test:debug": "genx test --debug"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "14.
|
|
44
|
-
"@genesislcap/genx": "14.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.117.1-alpha-7cac6ae.0",
|
|
44
|
+
"@genesislcap/genx": "14.117.1-alpha-7cac6ae.0",
|
|
45
45
|
"@types/json-schema": "^7.0.11",
|
|
46
46
|
"rimraf": "^3.0.2"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@genesislcap/foundation-comms": "14.
|
|
50
|
-
"@genesislcap/foundation-criteria": "14.
|
|
51
|
-
"@genesislcap/foundation-logger": "14.
|
|
52
|
-
"@genesislcap/foundation-ui": "14.
|
|
53
|
-
"@genesislcap/foundation-utils": "14.
|
|
49
|
+
"@genesislcap/foundation-comms": "14.117.1-alpha-7cac6ae.0",
|
|
50
|
+
"@genesislcap/foundation-criteria": "14.117.1-alpha-7cac6ae.0",
|
|
51
|
+
"@genesislcap/foundation-logger": "14.117.1-alpha-7cac6ae.0",
|
|
52
|
+
"@genesislcap/foundation-ui": "14.117.1-alpha-7cac6ae.0",
|
|
53
|
+
"@genesislcap/foundation-utils": "14.117.1-alpha-7cac6ae.0",
|
|
54
54
|
"@jsonforms/core": "^3.0.0",
|
|
55
55
|
"@microsoft/fast-components": "^2.21.3",
|
|
56
56
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"customElements": "dist/custom-elements.json",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "2512159d58bbc359d03ec49dd788ca01b9ea0dbf"
|
|
74
74
|
}
|