@jsonforms/examples 3.3.0-alpha.1 → 3.3.0-beta.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.
Files changed (63) hide show
  1. package/lib/example.d.ts +24 -24
  2. package/lib/examples/1884.d.ts +99 -99
  3. package/lib/examples/1948.d.ts +40 -40
  4. package/lib/examples/additional-errors.d.ts +16 -16
  5. package/lib/examples/allOf.d.ts +56 -56
  6. package/lib/examples/anyOf-oneOf-allOf-resolve.d.ts +44 -44
  7. package/lib/examples/anyOf.d.ts +77 -77
  8. package/lib/examples/arrays-with-custom-element-label.d.ts +43 -43
  9. package/lib/examples/arrays-with-defaults.d.ts +107 -107
  10. package/lib/examples/arrays-with-detail-and-rule.d.ts +91 -91
  11. package/lib/examples/arrays-with-detail.d.ts +69 -69
  12. package/lib/examples/arrays-with-sorting.d.ts +66 -66
  13. package/lib/examples/arrays-with-translated-custom-element-label.d.ts +37 -0
  14. package/lib/examples/arrays.d.ts +73 -73
  15. package/lib/examples/arraysI18n.d.ts +52 -52
  16. package/lib/examples/categorization-stepper-nav-buttons.d.ts +142 -142
  17. package/lib/examples/categorization-stepper.d.ts +141 -141
  18. package/lib/examples/categorization.d.ts +146 -146
  19. package/lib/examples/conditional-schema-compositions.d.ts +56 -56
  20. package/lib/examples/config.d.ts +29 -29
  21. package/lib/examples/control-options.d.ts +191 -191
  22. package/lib/examples/dates.d.ts +115 -115
  23. package/lib/examples/default.d.ts +64 -64
  24. package/lib/examples/enum-multi-with-label-and-desc.d.ts +40 -40
  25. package/lib/examples/enum-multi.d.ts +34 -34
  26. package/lib/examples/enum.d.ts +65 -65
  27. package/lib/examples/enumInArray.d.ts +27 -27
  28. package/lib/examples/generate-dynamic.d.ts +15 -15
  29. package/lib/examples/generate.d.ts +12 -12
  30. package/lib/examples/generateUI.d.ts +33 -33
  31. package/lib/examples/huge.d.ts +1 -1
  32. package/lib/examples/i18n.d.ts +42 -42
  33. package/lib/examples/if_then_else.d.ts +25 -25
  34. package/lib/examples/layout.d.ts +97 -97
  35. package/lib/examples/list-with-detail-primitives.d.ts +36 -36
  36. package/lib/examples/list-with-detail-registered.d.ts +55 -55
  37. package/lib/examples/list-with-detail.d.ts +191 -191
  38. package/lib/examples/nestedArrays.d.ts +11 -11
  39. package/lib/examples/nestedCategorization.d.ts +57 -57
  40. package/lib/examples/numbers.d.ts +46 -46
  41. package/lib/examples/object.d.ts +67 -67
  42. package/lib/examples/onChange.d.ts +18 -18
  43. package/lib/examples/oneOf-recursive.d.ts +48 -48
  44. package/lib/examples/oneOf.d.ts +53 -53
  45. package/lib/examples/oneOfArray.d.ts +53 -53
  46. package/lib/examples/person.d.ts +99 -99
  47. package/lib/examples/radioGroup.d.ts +42 -42
  48. package/lib/examples/readonly.d.ts +36 -36
  49. package/lib/examples/rule.d.ts +59 -59
  50. package/lib/examples/ruleInheritance.d.ts +26 -26
  51. package/lib/examples/scope.d.ts +50 -50
  52. package/lib/examples/stringArray.d.ts +23 -23
  53. package/lib/examples/text.d.ts +37 -37
  54. package/lib/index.d.ts +55 -54
  55. package/lib/jsonforms-examples.cjs.js +384 -131
  56. package/lib/jsonforms-examples.cjs.js.map +1 -1
  57. package/lib/jsonforms-examples.esm.js +384 -132
  58. package/lib/jsonforms-examples.esm.js.map +1 -1
  59. package/lib/register.d.ts +3 -3
  60. package/package.json +4 -4
  61. package/src/examples/arrays-with-translated-custom-element-label.ts +284 -0
  62. package/src/index.ts +2 -0
  63. package/stats.html +1 -1
package/lib/example.d.ts CHANGED
@@ -1,24 +1,24 @@
1
- import { JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, UISchemaElement, JsonFormsI18nState } from '@jsonforms/core';
2
- export interface ExampleDescription {
3
- name: string;
4
- label: string;
5
- data: any;
6
- schema: JsonSchema;
7
- uischema: UISchemaElement;
8
- uischemas?: JsonFormsUISchemaRegistryEntry[];
9
- config?: any;
10
- actions?: {
11
- label: string;
12
- apply: (props: StateProps) => any;
13
- }[];
14
- i18n?: JsonFormsI18nState;
15
- }
16
- export interface StateProps {
17
- data: any;
18
- schema?: JsonSchema;
19
- uischema?: UISchemaElement;
20
- renderers: JsonFormsRendererRegistryEntry[];
21
- cells?: JsonFormsCellRendererRegistryEntry[];
22
- config?: any;
23
- uischemas?: JsonFormsUISchemaRegistryEntry[];
24
- }
1
+ import { JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, UISchemaElement, JsonFormsI18nState } from '@jsonforms/core';
2
+ export interface ExampleDescription {
3
+ name: string;
4
+ label: string;
5
+ data: any;
6
+ schema: JsonSchema;
7
+ uischema: UISchemaElement;
8
+ uischemas?: JsonFormsUISchemaRegistryEntry[];
9
+ config?: any;
10
+ actions?: {
11
+ label: string;
12
+ apply: (props: StateProps) => any;
13
+ }[];
14
+ i18n?: JsonFormsI18nState;
15
+ }
16
+ export interface StateProps {
17
+ data: any;
18
+ schema?: JsonSchema;
19
+ uischema?: UISchemaElement;
20
+ renderers: JsonFormsRendererRegistryEntry[];
21
+ cells?: JsonFormsCellRendererRegistryEntry[];
22
+ config?: any;
23
+ uischemas?: JsonFormsUISchemaRegistryEntry[];
24
+ }
@@ -1,99 +1,99 @@
1
- export declare const schema: {
2
- type: string;
3
- required: string[];
4
- properties: {
5
- firstName: {
6
- type: string;
7
- minLength: number;
8
- maxLength: number;
9
- };
10
- lastName: {
11
- type: string;
12
- minLength: number;
13
- maxLength: number;
14
- };
15
- age: {
16
- type: string;
17
- minimum: number;
18
- maximum: number;
19
- };
20
- gender: {
21
- type: string;
22
- enum: string[];
23
- };
24
- height: {
25
- type: string;
26
- };
27
- dateOfBirth: {
28
- type: string;
29
- format: string;
30
- };
31
- rating: {
32
- type: string;
33
- };
34
- committer: {
35
- type: string;
36
- };
37
- address: {
38
- type: string;
39
- properties: {
40
- street: {
41
- type: string;
42
- };
43
- streetnumber: {
44
- type: string;
45
- };
46
- postalCode: {
47
- type: string;
48
- };
49
- city: {
50
- type: string;
51
- };
52
- };
53
- };
54
- };
55
- };
56
- export declare const uischema: {
57
- type: string;
58
- elements: ({
59
- type: string;
60
- text: string;
61
- elements?: undefined;
62
- label?: undefined;
63
- rule?: undefined;
64
- } | {
65
- type: string;
66
- elements: {
67
- type: string;
68
- scope: string;
69
- }[];
70
- text?: undefined;
71
- label?: undefined;
72
- rule?: undefined;
73
- } | {
74
- type: string;
75
- label: string;
76
- elements: {
77
- type: string;
78
- elements: {
79
- type: string;
80
- scope: string;
81
- }[];
82
- }[];
83
- rule: {
84
- effect: string;
85
- condition: {
86
- scope: string;
87
- schema: {
88
- const: boolean;
89
- };
90
- };
91
- };
92
- text?: undefined;
93
- })[];
94
- };
95
- export declare const data: {
96
- firstName: string;
97
- lastName: string;
98
- committer: boolean;
99
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ required: string[];
4
+ properties: {
5
+ firstName: {
6
+ type: string;
7
+ minLength: number;
8
+ maxLength: number;
9
+ };
10
+ lastName: {
11
+ type: string;
12
+ minLength: number;
13
+ maxLength: number;
14
+ };
15
+ age: {
16
+ type: string;
17
+ minimum: number;
18
+ maximum: number;
19
+ };
20
+ gender: {
21
+ type: string;
22
+ enum: string[];
23
+ };
24
+ height: {
25
+ type: string;
26
+ };
27
+ dateOfBirth: {
28
+ type: string;
29
+ format: string;
30
+ };
31
+ rating: {
32
+ type: string;
33
+ };
34
+ committer: {
35
+ type: string;
36
+ };
37
+ address: {
38
+ type: string;
39
+ properties: {
40
+ street: {
41
+ type: string;
42
+ };
43
+ streetnumber: {
44
+ type: string;
45
+ };
46
+ postalCode: {
47
+ type: string;
48
+ };
49
+ city: {
50
+ type: string;
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
56
+ export declare const uischema: {
57
+ type: string;
58
+ elements: ({
59
+ type: string;
60
+ text: string;
61
+ elements?: undefined;
62
+ label?: undefined;
63
+ rule?: undefined;
64
+ } | {
65
+ type: string;
66
+ elements: {
67
+ type: string;
68
+ scope: string;
69
+ }[];
70
+ text?: undefined;
71
+ label?: undefined;
72
+ rule?: undefined;
73
+ } | {
74
+ type: string;
75
+ label: string;
76
+ elements: {
77
+ type: string;
78
+ elements: {
79
+ type: string;
80
+ scope: string;
81
+ }[];
82
+ }[];
83
+ rule: {
84
+ effect: string;
85
+ condition: {
86
+ scope: string;
87
+ schema: {
88
+ const: boolean;
89
+ };
90
+ };
91
+ };
92
+ text?: undefined;
93
+ })[];
94
+ };
95
+ export declare const data: {
96
+ firstName: string;
97
+ lastName: string;
98
+ committer: boolean;
99
+ };
@@ -1,40 +1,40 @@
1
- import { UISchemaElement } from '@jsonforms/core';
2
- export declare const schema: {
3
- type: string;
4
- definitions: {
5
- import: {
6
- title: string;
7
- type: string;
8
- properties: {
9
- eClass: {
10
- const: string;
11
- };
12
- document: {
13
- type: string;
14
- };
15
- package: {
16
- type: string;
17
- };
18
- prefix: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- properties: {
25
- import: {
26
- type: string;
27
- items: {
28
- $ref: string;
29
- };
30
- };
31
- };
32
- };
33
- export declare const uischema: UISchemaElement;
34
- export declare const data: {
35
- import: {
36
- document: string;
37
- package: string;
38
- prefix: string;
39
- }[];
40
- };
1
+ import { UISchemaElement } from '@jsonforms/core';
2
+ export declare const schema: {
3
+ type: string;
4
+ definitions: {
5
+ import: {
6
+ title: string;
7
+ type: string;
8
+ properties: {
9
+ eClass: {
10
+ const: string;
11
+ };
12
+ document: {
13
+ type: string;
14
+ };
15
+ package: {
16
+ type: string;
17
+ };
18
+ prefix: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
23
+ };
24
+ properties: {
25
+ import: {
26
+ type: string;
27
+ items: {
28
+ $ref: string;
29
+ };
30
+ };
31
+ };
32
+ };
33
+ export declare const uischema: UISchemaElement;
34
+ export declare const data: {
35
+ import: {
36
+ document: string;
37
+ package: string;
38
+ prefix: string;
39
+ }[];
40
+ };
@@ -1,16 +1,16 @@
1
- import { ErrorObject } from 'ajv';
2
- import { StateProps } from '../example';
3
- export declare const additionalErrors: ErrorObject[];
4
- export declare const actions: {
5
- label: string;
6
- apply: (props: StateProps) => {
7
- additionalErrors: ErrorObject<string, Record<string, any>, unknown>[];
8
- data: any;
9
- schema?: import("@jsonforms/core").JsonSchema;
10
- uischema?: import("@jsonforms/core").UISchemaElement;
11
- renderers: import("@jsonforms/core").JsonFormsRendererRegistryEntry[];
12
- cells?: import("@jsonforms/core").JsonFormsCellRendererRegistryEntry[];
13
- config?: any;
14
- uischemas?: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];
15
- };
16
- }[];
1
+ import { ErrorObject } from 'ajv';
2
+ import { StateProps } from '../example';
3
+ export declare const additionalErrors: ErrorObject[];
4
+ export declare const actions: {
5
+ label: string;
6
+ apply: (props: StateProps) => {
7
+ additionalErrors: ErrorObject<string, Record<string, any>, unknown>[];
8
+ data: any;
9
+ schema?: import("@jsonforms/core").JsonSchema;
10
+ uischema?: import("@jsonforms/core").UISchemaElement;
11
+ renderers: import("@jsonforms/core").JsonFormsRendererRegistryEntry[];
12
+ cells?: import("@jsonforms/core").JsonFormsCellRendererRegistryEntry[];
13
+ config?: any;
14
+ uischemas?: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];
15
+ };
16
+ }[];
@@ -1,56 +1,56 @@
1
- export declare const schema: {
2
- $schema: string;
3
- definitions: {
4
- address: {
5
- type: string;
6
- properties: {
7
- street_address: {
8
- type: string;
9
- };
10
- city: {
11
- type: string;
12
- };
13
- state: {
14
- type: string;
15
- };
16
- };
17
- required: string[];
18
- };
19
- };
20
- type: string;
21
- properties: {
22
- billing_address: {
23
- $ref: string;
24
- };
25
- shipping_address: {
26
- allOf: ({
27
- $ref: string;
28
- type?: undefined;
29
- properties?: undefined;
30
- required?: undefined;
31
- } | {
32
- type: string;
33
- properties: {
34
- type: {
35
- type: string;
36
- enum: string[];
37
- };
38
- };
39
- required: string[];
40
- $ref?: undefined;
41
- })[];
42
- };
43
- };
44
- };
45
- export declare const uischema: {
46
- type: string;
47
- elements: ({
48
- label: string;
49
- type: string;
50
- scope: string;
51
- } | {
52
- type: string;
53
- scope: string;
54
- label?: undefined;
55
- })[];
56
- };
1
+ export declare const schema: {
2
+ $schema: string;
3
+ definitions: {
4
+ address: {
5
+ type: string;
6
+ properties: {
7
+ street_address: {
8
+ type: string;
9
+ };
10
+ city: {
11
+ type: string;
12
+ };
13
+ state: {
14
+ type: string;
15
+ };
16
+ };
17
+ required: string[];
18
+ };
19
+ };
20
+ type: string;
21
+ properties: {
22
+ billing_address: {
23
+ $ref: string;
24
+ };
25
+ shipping_address: {
26
+ allOf: ({
27
+ $ref: string;
28
+ type?: undefined;
29
+ properties?: undefined;
30
+ required?: undefined;
31
+ } | {
32
+ type: string;
33
+ properties: {
34
+ type: {
35
+ type: string;
36
+ enum: string[];
37
+ };
38
+ };
39
+ required: string[];
40
+ $ref?: undefined;
41
+ })[];
42
+ };
43
+ };
44
+ };
45
+ export declare const uischema: {
46
+ type: string;
47
+ elements: ({
48
+ label: string;
49
+ type: string;
50
+ scope: string;
51
+ } | {
52
+ type: string;
53
+ scope: string;
54
+ label?: undefined;
55
+ })[];
56
+ };
@@ -1,44 +1,44 @@
1
- export declare const schema: {
2
- $defs: {
3
- Base: {
4
- type: string;
5
- properties: {
6
- width: {
7
- type: string;
8
- };
9
- };
10
- };
11
- Child: {
12
- type: string;
13
- allOf: ({
14
- $ref: string;
15
- properties?: undefined;
16
- } | {
17
- properties: {
18
- geometry: {
19
- type: string;
20
- };
21
- };
22
- $ref?: undefined;
23
- })[];
24
- };
25
- };
26
- type: string;
27
- properties: {
28
- element: {
29
- $ref: string;
30
- };
31
- };
32
- };
33
- export declare const uischema: {
34
- type: string;
35
- elements: ({
36
- type: string;
37
- text: string;
38
- scope?: undefined;
39
- } | {
40
- type: string;
41
- scope: string;
42
- text?: undefined;
43
- })[];
44
- };
1
+ export declare const schema: {
2
+ $defs: {
3
+ Base: {
4
+ type: string;
5
+ properties: {
6
+ width: {
7
+ type: string;
8
+ };
9
+ };
10
+ };
11
+ Child: {
12
+ type: string;
13
+ allOf: ({
14
+ $ref: string;
15
+ properties?: undefined;
16
+ } | {
17
+ properties: {
18
+ geometry: {
19
+ type: string;
20
+ };
21
+ };
22
+ $ref?: undefined;
23
+ })[];
24
+ };
25
+ };
26
+ type: string;
27
+ properties: {
28
+ element: {
29
+ $ref: string;
30
+ };
31
+ };
32
+ };
33
+ export declare const uischema: {
34
+ type: string;
35
+ elements: ({
36
+ type: string;
37
+ text: string;
38
+ scope?: undefined;
39
+ } | {
40
+ type: string;
41
+ scope: string;
42
+ text?: undefined;
43
+ })[];
44
+ };