@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
@@ -0,0 +1,57 @@
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ cat1: {
5
+ type: string;
6
+ properties: {
7
+ subcat11: {
8
+ type: string;
9
+ };
10
+ };
11
+ };
12
+ cat2: {
13
+ type: string;
14
+ properties: {
15
+ subcat21: {
16
+ type: string;
17
+ };
18
+ subcat22: {
19
+ type: string;
20
+ };
21
+ };
22
+ };
23
+ cat3: {
24
+ type: string;
25
+ properties: {
26
+ subcat31: {
27
+ type: string;
28
+ };
29
+ subcat32: {
30
+ type: string;
31
+ };
32
+ subcat33: {
33
+ type: string;
34
+ };
35
+ };
36
+ };
37
+ };
38
+ };
39
+ export declare const uischema: {
40
+ type: string;
41
+ elements: {
42
+ type: string;
43
+ label: string;
44
+ elements: {
45
+ type: string;
46
+ elements: {
47
+ type: string;
48
+ label: string;
49
+ elements: {
50
+ type: string;
51
+ scope: string;
52
+ }[];
53
+ }[];
54
+ }[];
55
+ }[];
56
+ };
57
+ export declare const data: {};
@@ -1 +1,42 @@
1
- export {};
1
+ export declare const data: {};
2
+ export declare const schema: {
3
+ type: string;
4
+ properties: {
5
+ exampleRadioEnum: {
6
+ type: string;
7
+ enum: string[];
8
+ };
9
+ exampleRadioOneOfEnum: {
10
+ type: string;
11
+ oneOf: {
12
+ const: string;
13
+ title: string;
14
+ }[];
15
+ };
16
+ };
17
+ };
18
+ export declare const uischema: {
19
+ type: string;
20
+ elements: ({
21
+ type: string;
22
+ label: string;
23
+ elements: {
24
+ type: string;
25
+ scope: string;
26
+ options: {
27
+ format: string;
28
+ orientation: string;
29
+ };
30
+ }[];
31
+ } | {
32
+ type: string;
33
+ label: string;
34
+ elements: {
35
+ type: string;
36
+ scope: string;
37
+ options: {
38
+ format: string;
39
+ };
40
+ }[];
41
+ })[];
42
+ };
package/lib/index.d.ts CHANGED
@@ -4,24 +4,20 @@ import * as oneOf from './examples/oneOf';
4
4
  import * as oneOfArray from './examples/oneOfArray';
5
5
  import * as anyOfOneOfAllOfResolve from './examples/anyOf-oneOf-allOf-resolve';
6
6
  import * as array from './examples/arrays';
7
+ import * as arrayI18n from './examples/arraysI18n';
7
8
  import * as nestedArray from './examples/nestedArrays';
9
+ import * as nestedCategorization from './examples/nestedCategorization';
8
10
  import * as arrayWithDetail from './examples/arrays-with-detail';
9
11
  import * as arrayWithDetailAndRule from './examples/arrays-with-detail-and-rule';
10
12
  import * as arrayWithCustomChildLabel from './examples/arrays-with-custom-element-label';
11
13
  import * as arrayWithSorting from './examples/arrays-with-sorting';
12
14
  import * as stringArray from './examples/stringArray';
13
15
  import * as categorization from './examples/categorization';
14
- import * as stepper from './examples/stepper';
15
- import * as steppershownav from './examples/steppershownav';
16
+ import * as stepper from './examples/categorization-stepper';
17
+ import * as steppershownav from './examples/categorization-stepper-nav-buttons';
16
18
  import * as controlOptions from './examples/control-options';
17
- import * as day1 from './examples/day1';
18
- import * as day2 from './examples/day2';
19
- import * as day3 from './examples/day3';
20
- import * as day4 from './examples/day4';
21
- import * as day5 from './examples/day5';
22
- import * as day6 from './examples/day6';
23
19
  import * as dates from './examples/dates';
24
- import * as dynamic from './examples/dynamic';
20
+ import * as generateDynamic from './examples/generate-dynamic';
25
21
  import * as generateSchema from './examples/generate';
26
22
  import * as generateUISchema from './examples/generateUI';
27
23
  import * as layout from './examples/layout';
@@ -38,26 +34,19 @@ import * as listWithDetailRegistered from './examples/list-with-detail-registere
38
34
  import * as object from './examples/object';
39
35
  import * as i18n from './examples/i18n';
40
36
  import * as issue_1948 from './examples/1948';
41
- import * as issue_1996 from './examples/1996';
42
- import * as issue_1169 from './examples/1169';
43
- import * as issue_1220 from './examples/1220';
44
- import * as issue_1253 from './examples/1253';
45
- import * as issue_1254 from './examples/1254';
46
37
  import * as oneOfRecursive from './examples/oneOf-recursive';
47
38
  import * as huge from './examples/huge';
48
39
  import * as defaultExample from './examples/default';
49
40
  import * as onChange from './examples/onChange';
50
41
  import * as enumExample from './examples/enum';
51
42
  import * as radioGroupExample from './examples/radioGroup';
52
- import * as booleanToggle from './examples/booleanToggle';
53
- import * as multiEnum from './examples/multi-enum';
43
+ import * as multiEnum from './examples/enum-multi';
54
44
  import * as enumInArray from './examples/enumInArray';
55
45
  import * as readonly from './examples/readonly';
56
- import * as bug_1779 from './examples/1779';
57
- import * as bug_1645 from './examples/1645';
46
+ import * as listWithDetailPrimitives from './examples/list-with-detail-primitives';
58
47
  import * as conditionalSchemaComposition from './examples/conditional-schema-compositions';
59
48
  import * as additionalErrors from './examples/additional-errors';
60
49
  export * from './register';
61
50
  export * from './example';
62
51
  import * as ifThenElse from './examples/if_then_else';
63
- export { issue_1948, issue_1996, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, nestedArray, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, categorization, stepper, steppershownav, controlOptions, day1, day2, day3, day4, day5, day6, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, dynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, issue_1169, issue_1220, issue_1253, issue_1254, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, booleanToggle, multiEnum, enumInArray, readonly, bug_1779, bug_1645, conditionalSchemaComposition, additionalErrors, issue_1884, };
52
+ export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, categorization, stepper, steppershownav, controlOptions, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, generateDynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, multiEnum, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, issue_1884, };