@jsonforms/examples 3.1.0-alpha.1 → 3.1.0-alpha.3

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 (111) hide show
  1. package/.eslintrc.js +29 -0
  2. package/.prettierrc.js +6 -0
  3. package/README.md +1 -1
  4. package/docs/assets/js/search.json +1 -1
  5. package/docs/globals.html +2074 -3228
  6. package/docs/index.html +0 -30
  7. package/lib/examples/1884.d.ts +8 -0
  8. package/lib/examples/additional-errors.d.ts +16 -1
  9. package/lib/examples/anyOf.d.ts +15 -2
  10. package/lib/examples/arrays.d.ts +13 -2
  11. package/lib/examples/arraysI18n.d.ts +52 -0
  12. package/lib/examples/dates.d.ts +115 -1
  13. package/lib/examples/enum.d.ts +16 -0
  14. package/lib/examples/generate-dynamic.d.ts +15 -0
  15. package/lib/examples/list-with-detail-primitives.d.ts +36 -0
  16. package/lib/examples/list-with-detail-registered.d.ts +55 -1
  17. package/lib/examples/list-with-detail.d.ts +191 -1
  18. package/lib/examples/nestedCategorization.d.ts +57 -0
  19. package/lib/examples/radioGroup.d.ts +42 -1
  20. package/lib/index.d.ts +8 -19
  21. package/lib/jsonforms-examples.cjs.js +2299 -2863
  22. package/lib/jsonforms-examples.cjs.js.map +1 -1
  23. package/lib/jsonforms-examples.esm.js +2288 -2869
  24. package/lib/jsonforms-examples.esm.js.map +1 -1
  25. package/package.json +13 -6
  26. package/rollup.config.js +12 -12
  27. package/src/example.ts +3 -3
  28. package/src/examples/1884.ts +52 -48
  29. package/src/examples/1948.ts +19 -19
  30. package/src/examples/additional-errors.ts +28 -25
  31. package/src/examples/allOf.ts +18 -18
  32. package/src/examples/anyOf-oneOf-allOf-resolve.ts +21 -21
  33. package/src/examples/anyOf.ts +42 -24
  34. package/src/examples/arrays-with-custom-element-label.ts +21 -21
  35. package/src/examples/arrays-with-detail-and-rule.ts +28 -28
  36. package/src/examples/arrays-with-detail.ts +21 -21
  37. package/src/examples/arrays-with-sorting.ts +35 -35
  38. package/src/examples/arrays.ts +40 -35
  39. package/src/examples/arraysI18n.ts +107 -0
  40. package/src/examples/{steppershownav.ts → categorization-stepper-nav-buttons.ts} +6 -6
  41. package/src/examples/{stepper.ts → categorization-stepper.ts} +5 -5
  42. package/src/examples/categorization.ts +119 -119
  43. package/src/examples/conditional-schema-compositions.ts +20 -20
  44. package/src/examples/config.ts +15 -15
  45. package/src/examples/control-options.ts +81 -82
  46. package/src/examples/dates.ts +34 -34
  47. package/src/examples/default.ts +22 -22
  48. package/src/examples/{multi-enum.ts → enum-multi.ts} +14 -14
  49. package/src/examples/enum.ts +65 -33
  50. package/src/examples/enumInArray.ts +10 -10
  51. package/src/examples/{dynamic.ts → generate-dynamic.ts} +10 -10
  52. package/src/examples/generate.ts +2 -2
  53. package/src/examples/generateUI.ts +2 -2
  54. package/src/examples/huge.ts +381 -377
  55. package/src/examples/i18n.ts +37 -28
  56. package/src/examples/if_then_else.ts +4 -4
  57. package/src/examples/layout.ts +29 -29
  58. package/src/examples/{booleanToggle.ts → list-with-detail-primitives.ts} +46 -33
  59. package/src/examples/list-with-detail-registered.ts +26 -26
  60. package/src/examples/list-with-detail.ts +82 -82
  61. package/src/examples/nestedArrays.ts +40 -35
  62. package/src/examples/nestedCategorization.ts +175 -0
  63. package/src/examples/numbers.ts +17 -17
  64. package/src/examples/object.ts +24 -24
  65. package/src/examples/onChange.ts +28 -22
  66. package/src/examples/oneOf-recursive.ts +15 -15
  67. package/src/examples/oneOf.ts +99 -96
  68. package/src/examples/oneOfArray.ts +20 -20
  69. package/src/examples/person.ts +35 -35
  70. package/src/examples/radioGroup.ts +52 -53
  71. package/src/examples/readonly.ts +14 -14
  72. package/src/examples/rule.ts +26 -26
  73. package/src/examples/ruleInheritance.ts +37 -34
  74. package/src/examples/scope.ts +26 -26
  75. package/src/examples/stringArray.ts +10 -10
  76. package/src/examples/text.ts +19 -19
  77. package/src/index.ts +11 -33
  78. package/src/register.ts +6 -3
  79. package/stats.html +2462 -329
  80. package/tsconfig.json +2 -6
  81. package/lib/examples/1169.d.ts +0 -24
  82. package/lib/examples/1220.d.ts +0 -4
  83. package/lib/examples/1253.d.ts +0 -16
  84. package/lib/examples/1254.d.ts +0 -21
  85. package/lib/examples/1645.d.ts +0 -68
  86. package/lib/examples/1779.d.ts +0 -1
  87. package/lib/examples/1996.d.ts +0 -31
  88. package/lib/examples/booleanToggle.d.ts +0 -62
  89. package/lib/examples/day1.d.ts +0 -23
  90. package/lib/examples/day2.d.ts +0 -42
  91. package/lib/examples/day3.d.ts +0 -51
  92. package/lib/examples/day4.d.ts +0 -72
  93. package/lib/examples/day5.d.ts +0 -133
  94. package/lib/examples/day6.d.ts +0 -85
  95. package/lib/examples/dynamic.d.ts +0 -1
  96. package/src/examples/1169.ts +0 -62
  97. package/src/examples/1220.ts +0 -146
  98. package/src/examples/1253.ts +0 -212
  99. package/src/examples/1254.ts +0 -67
  100. package/src/examples/1645.ts +0 -66
  101. package/src/examples/1779.ts +0 -83
  102. package/src/examples/1996.ts +0 -102
  103. package/src/examples/day1.ts +0 -61
  104. package/src/examples/day2.ts +0 -62
  105. package/src/examples/day3.ts +0 -76
  106. package/src/examples/day4.ts +0 -83
  107. package/src/examples/day5.ts +0 -169
  108. package/src/examples/day6.ts +0 -44
  109. /package/lib/examples/{steppershownav.d.ts → categorization-stepper-nav-buttons.d.ts} +0 -0
  110. /package/lib/examples/{stepper.d.ts → categorization-stepper.d.ts} +0 -0
  111. /package/lib/examples/{multi-enum.d.ts → enum-multi.d.ts} +0 -0
package/tsconfig.json CHANGED
@@ -4,10 +4,6 @@
4
4
  "outDir": "lib",
5
5
  "sourceMap": true
6
6
  },
7
- "exclude":[
8
- "node_modules"
9
- ],
10
- "files": [
11
- "./src/index.ts"
12
- ]
7
+ "exclude": ["node_modules"],
8
+ "files": ["./src/index.ts"]
13
9
  }
@@ -1,24 +0,0 @@
1
- import { UISchemaElement } from '@jsonforms/core';
2
- export declare const schema: {
3
- type: string;
4
- properties: {
5
- Level1: {
6
- type: string;
7
- items: {
8
- type: string;
9
- properties: {
10
- Level2: {
11
- type: string;
12
- properties: {
13
- Level3: {
14
- type: string;
15
- };
16
- };
17
- };
18
- };
19
- };
20
- };
21
- };
22
- };
23
- export declare const uischema: UISchemaElement;
24
- export declare const data: {};
@@ -1,4 +0,0 @@
1
- export declare const uischema: {
2
- type: string;
3
- scope: string;
4
- };
@@ -1,16 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- value: {
5
- oneOf: {
6
- title: string;
7
- type: string;
8
- }[];
9
- };
10
- };
11
- };
12
- export declare const uischema: {
13
- type: string;
14
- label: string;
15
- scope: string;
16
- };
@@ -1,21 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- name: {
5
- type: string;
6
- minLength: number;
7
- };
8
- version: {
9
- const: string;
10
- };
11
- };
12
- required: string[];
13
- };
14
- export declare const uischema: {
15
- type: string;
16
- elements: {
17
- type: string;
18
- label: string;
19
- scope: string;
20
- }[];
21
- };
@@ -1,68 +0,0 @@
1
- import { UISchemaElement } from '@jsonforms/core';
2
- export declare const schema: {
3
- type: string;
4
- properties: {
5
- propText0: {
6
- type: string;
7
- };
8
- propText1: {
9
- type: string;
10
- };
11
- propText2: {
12
- type: string;
13
- };
14
- propText3: {
15
- type: string;
16
- };
17
- propText4: {
18
- type: string;
19
- };
20
- propText5: {
21
- type: string;
22
- };
23
- propText6: {
24
- type: string;
25
- };
26
- propText7: {
27
- type: string;
28
- };
29
- propText8: {
30
- type: string;
31
- };
32
- propText9: {
33
- type: string;
34
- };
35
- propNumber0: {
36
- type: string;
37
- };
38
- propNumber1: {
39
- type: string;
40
- };
41
- propNumber2: {
42
- type: string;
43
- };
44
- propNumber3: {
45
- type: string;
46
- };
47
- propNumber4: {
48
- type: string;
49
- };
50
- propNumber5: {
51
- type: string;
52
- };
53
- propNumber6: {
54
- type: string;
55
- };
56
- propNumber7: {
57
- type: string;
58
- };
59
- propNumber8: {
60
- type: string;
61
- };
62
- propNumber9: {
63
- type: string;
64
- };
65
- };
66
- };
67
- export declare const uischema: UISchemaElement;
68
- export declare const data: {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,31 +0,0 @@
1
- import { ControlElement } from '@jsonforms/core';
2
- export declare const schemaAnyOf: {
3
- type: string;
4
- items: {
5
- anyOf: {
6
- type: string;
7
- properties: {
8
- value: {
9
- type: string;
10
- };
11
- };
12
- required: string[];
13
- }[];
14
- };
15
- };
16
- export declare const schemaOneOf: {
17
- type: string;
18
- items: {
19
- oneOf: {
20
- type: string;
21
- properties: {
22
- value: {
23
- type: string;
24
- };
25
- };
26
- required: string[];
27
- }[];
28
- };
29
- };
30
- export declare const uischema: ControlElement;
31
- export declare const data: any[];
@@ -1,62 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- checkbox: {
5
- type: string;
6
- };
7
- toggle: {
8
- type: string;
9
- };
10
- };
11
- };
12
- export declare const uischema: {
13
- type: string;
14
- elements: ({
15
- type: string;
16
- scope: string;
17
- options?: undefined;
18
- } | {
19
- type: string;
20
- scope: string;
21
- options: {
22
- toggle: boolean;
23
- };
24
- })[];
25
- };
26
- export declare const data: {
27
- checkbox: boolean;
28
- toggle: boolean;
29
- };
30
- export declare const booleanToggleExample: {
31
- name: string;
32
- label: string;
33
- data: {
34
- checkbox: boolean;
35
- toggle: boolean;
36
- };
37
- schema: {
38
- type: string;
39
- properties: {
40
- checkbox: {
41
- type: string;
42
- };
43
- toggle: {
44
- type: string;
45
- };
46
- };
47
- };
48
- uischema: {
49
- type: string;
50
- elements: ({
51
- type: string;
52
- scope: string;
53
- options?: undefined;
54
- } | {
55
- type: string;
56
- scope: string;
57
- options: {
58
- toggle: boolean;
59
- };
60
- })[];
61
- };
62
- };
@@ -1,23 +0,0 @@
1
- import { UISchemaElement } from '@jsonforms/core';
2
- export declare const schema: {
3
- type: string;
4
- properties: {
5
- name: {
6
- type: string;
7
- minLength: number;
8
- };
9
- description: {
10
- type: string;
11
- };
12
- done: {
13
- type: string;
14
- };
15
- };
16
- required: string[];
17
- };
18
- export declare const uischema: UISchemaElement;
19
- export declare const data: {
20
- name: string;
21
- description: string;
22
- done: boolean;
23
- };
@@ -1,42 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- name: {
5
- type: string;
6
- minLength: number;
7
- };
8
- description: {
9
- type: string;
10
- };
11
- done: {
12
- type: string;
13
- };
14
- };
15
- required: string[];
16
- };
17
- export declare const uischema: {
18
- type: string;
19
- elements: ({
20
- type: string;
21
- scope: string;
22
- label?: undefined;
23
- options?: undefined;
24
- } | {
25
- type: string;
26
- label: boolean;
27
- scope: string;
28
- options?: undefined;
29
- } | {
30
- type: string;
31
- scope: string;
32
- options: {
33
- multi: boolean;
34
- };
35
- label?: undefined;
36
- })[];
37
- };
38
- export declare const data: {
39
- name: string;
40
- description: string;
41
- done: boolean;
42
- };
@@ -1,51 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- dueDate: {
5
- type: string;
6
- format: string;
7
- };
8
- rating: {
9
- type: string;
10
- maximum: number;
11
- };
12
- name: {
13
- type: string;
14
- minLength: number;
15
- };
16
- description: {
17
- type: string;
18
- };
19
- done: {
20
- type: string;
21
- };
22
- };
23
- required: string[];
24
- };
25
- export declare const uischema: {
26
- type: string;
27
- elements: ({
28
- type: string;
29
- scope: string;
30
- label?: undefined;
31
- options?: undefined;
32
- } | {
33
- type: string;
34
- label: boolean;
35
- scope: string;
36
- options?: undefined;
37
- } | {
38
- type: string;
39
- scope: string;
40
- options: {
41
- multi: boolean;
42
- };
43
- label?: undefined;
44
- })[];
45
- };
46
- export declare const data: {
47
- rating: number;
48
- name: string;
49
- description: string;
50
- done: boolean;
51
- };
@@ -1,72 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- recurrence: {
5
- type: string;
6
- enum: string[];
7
- };
8
- recurrenceInterval: {
9
- type: string;
10
- };
11
- dueDate: {
12
- type: string;
13
- format: string;
14
- };
15
- rating: {
16
- type: string;
17
- maximum: number;
18
- };
19
- name: {
20
- type: string;
21
- minLength: number;
22
- };
23
- description: {
24
- type: string;
25
- };
26
- done: {
27
- type: string;
28
- };
29
- };
30
- required: string[];
31
- };
32
- export declare const uischema: {
33
- type: string;
34
- elements: ({
35
- type: string;
36
- scope: string;
37
- label?: undefined;
38
- options?: undefined;
39
- } | {
40
- type: string;
41
- label: boolean;
42
- scope: string;
43
- options?: undefined;
44
- } | {
45
- type: string;
46
- scope: string;
47
- options: {
48
- multi: boolean;
49
- };
50
- label?: undefined;
51
- } | {
52
- type: string;
53
- scope: string;
54
- rule: {
55
- effect: string;
56
- condition: {
57
- scope: string;
58
- schema: {
59
- enum: string[];
60
- };
61
- };
62
- };
63
- })[];
64
- };
65
- export declare const data: {
66
- recurrence: string;
67
- recurrenceInterval: number;
68
- rating: number;
69
- name: string;
70
- description: string;
71
- done: boolean;
72
- };
@@ -1,133 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- recurrence: {
5
- type: string;
6
- enum: string[];
7
- };
8
- recurrenceInterval: {
9
- type: string;
10
- };
11
- dueDate: {
12
- type: string;
13
- format: string;
14
- };
15
- rating: {
16
- type: string;
17
- maximum: number;
18
- };
19
- name: {
20
- type: string;
21
- minLength: number;
22
- };
23
- description: {
24
- type: string;
25
- };
26
- done: {
27
- type: string;
28
- };
29
- };
30
- required: string[];
31
- };
32
- export declare const uischema: {
33
- type: string;
34
- elements: ({
35
- type: string;
36
- label: boolean;
37
- scope: string;
38
- options?: undefined;
39
- elements?: undefined;
40
- } | {
41
- type: string;
42
- scope: string;
43
- label?: undefined;
44
- options?: undefined;
45
- elements?: undefined;
46
- } | {
47
- type: string;
48
- scope: string;
49
- options: {
50
- multi: boolean;
51
- };
52
- label?: undefined;
53
- elements?: undefined;
54
- } | {
55
- type: string;
56
- elements: ({
57
- type: string;
58
- scope: string;
59
- rule?: undefined;
60
- } | {
61
- type: string;
62
- scope: string;
63
- rule: {
64
- effect: string;
65
- condition: {
66
- scope: string;
67
- schema: {
68
- enum: string[];
69
- };
70
- };
71
- };
72
- })[];
73
- label?: undefined;
74
- scope?: undefined;
75
- options?: undefined;
76
- })[];
77
- };
78
- export declare const categoryUiSchema: {
79
- type: string;
80
- elements: ({
81
- type: string;
82
- label: string;
83
- elements: ({
84
- type: string;
85
- label: boolean;
86
- scope: string;
87
- options?: undefined;
88
- } | {
89
- type: string;
90
- scope: string;
91
- label?: undefined;
92
- options?: undefined;
93
- } | {
94
- type: string;
95
- scope: string;
96
- options: {
97
- multi: boolean;
98
- };
99
- label?: undefined;
100
- })[];
101
- } | {
102
- type: string;
103
- label: string;
104
- elements: {
105
- type: string;
106
- elements: ({
107
- type: string;
108
- scope: string;
109
- rule?: undefined;
110
- } | {
111
- type: string;
112
- scope: string;
113
- rule: {
114
- effect: string;
115
- condition: {
116
- scope: string;
117
- schema: {
118
- enum: string[];
119
- };
120
- };
121
- };
122
- })[];
123
- }[];
124
- })[];
125
- };
126
- export declare const data: {
127
- recurrence: string;
128
- recurrenceInterval: number;
129
- rating: number;
130
- name: string;
131
- description: string;
132
- done: boolean;
133
- };
@@ -1,85 +0,0 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- recurrence: {
5
- type: string;
6
- enum: string[];
7
- };
8
- recurrenceInterval: {
9
- type: string;
10
- };
11
- dueDate: {
12
- type: string;
13
- format: string;
14
- };
15
- rating: {
16
- type: string;
17
- maximum: number;
18
- };
19
- name: {
20
- type: string;
21
- minLength: number;
22
- };
23
- description: {
24
- type: string;
25
- };
26
- done: {
27
- type: string;
28
- };
29
- };
30
- required: string[];
31
- };
32
- export declare const uischema: {
33
- type: string;
34
- elements: ({
35
- type: string;
36
- label: boolean;
37
- scope: string;
38
- options?: undefined;
39
- elements?: undefined;
40
- } | {
41
- type: string;
42
- scope: string;
43
- label?: undefined;
44
- options?: undefined;
45
- elements?: undefined;
46
- } | {
47
- type: string;
48
- scope: string;
49
- options: {
50
- multi: boolean;
51
- };
52
- label?: undefined;
53
- elements?: undefined;
54
- } | {
55
- type: string;
56
- elements: ({
57
- type: string;
58
- scope: string;
59
- rule?: undefined;
60
- } | {
61
- type: string;
62
- scope: string;
63
- rule: {
64
- effect: string;
65
- condition: {
66
- scope: string;
67
- schema: {
68
- enum: string[];
69
- };
70
- };
71
- };
72
- })[];
73
- label?: undefined;
74
- scope?: undefined;
75
- options?: undefined;
76
- })[];
77
- };
78
- export declare const data: {
79
- recurrence: string;
80
- recurrenceInterval: number;
81
- rating: number;
82
- name: string;
83
- description: string;
84
- done: boolean;
85
- };
@@ -1 +0,0 @@
1
- export {};