@jsonforms/examples 3.1.0 → 3.1.1-alpha.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.
Files changed (71) hide show
  1. package/docs/assets/css/main.css +2660 -1
  2. package/docs/assets/js/main.js +248 -51
  3. package/docs/assets/js/search.js +1 -0
  4. package/docs/index.html +121 -108
  5. package/docs/interfaces/{exampledescription.html → example.ExampleDescription.html} +49 -36
  6. package/docs/interfaces/{stateprops.html → example.StateProps.html} +42 -29
  7. package/docs/modules/example.html +125 -0
  8. package/docs/modules/examples_1884.html +336 -0
  9. package/docs/modules/examples_1948.html +252 -0
  10. package/docs/modules/examples_additional_errors.html +148 -0
  11. package/docs/modules/examples_allOf.html +236 -0
  12. package/docs/modules/examples_anyOf.html +316 -0
  13. package/docs/modules/examples_anyOf_oneOf_allOf_resolve.html +217 -0
  14. package/docs/modules/examples_arrays.html +292 -0
  15. package/docs/modules/examples_arraysI18n.html +370 -0
  16. package/docs/modules/examples_arrays_with_custom_element_label.html +234 -0
  17. package/docs/modules/examples_arrays_with_detail.html +301 -0
  18. package/docs/modules/examples_arrays_with_detail_and_rule.html +309 -0
  19. package/docs/modules/examples_arrays_with_sorting.html +287 -0
  20. package/docs/modules/examples_categorization.html +467 -0
  21. package/docs/modules/examples_categorization_stepper.html +362 -0
  22. package/docs/modules/examples_categorization_stepper_nav_buttons.html +365 -0
  23. package/docs/modules/examples_conditional_schema_compositions.html +200 -0
  24. package/docs/modules/examples_config.html +222 -0
  25. package/docs/modules/examples_control_options.html +472 -0
  26. package/docs/modules/examples_dates.html +320 -0
  27. package/docs/modules/examples_default.html +292 -0
  28. package/docs/modules/examples_enum.html +277 -0
  29. package/docs/modules/examples_enumInArray.html +216 -0
  30. package/docs/modules/examples_enum_multi.html +238 -0
  31. package/docs/modules/examples_generate.html +187 -0
  32. package/docs/modules/examples_generateUI.html +247 -0
  33. package/docs/modules/examples_generate_dynamic.html +134 -0
  34. package/docs/modules/examples_huge.html +134 -0
  35. package/docs/modules/examples_i18n.html +357 -0
  36. package/docs/modules/examples_if_then_else.html +225 -0
  37. package/docs/modules/examples_layout.html +410 -0
  38. package/docs/modules/examples_list_with_detail.html +405 -0
  39. package/docs/modules/examples_list_with_detail_primitives.html +300 -0
  40. package/docs/modules/examples_list_with_detail_registered.html +290 -0
  41. package/docs/modules/examples_nestedArrays.html +145 -0
  42. package/docs/modules/examples_nestedCategorization.html +278 -0
  43. package/docs/modules/examples_numbers.html +224 -0
  44. package/docs/modules/examples_object.html +272 -0
  45. package/docs/modules/examples_onChange.html +276 -0
  46. package/docs/modules/examples_oneOf.html +277 -0
  47. package/docs/modules/examples_oneOfArray.html +276 -0
  48. package/docs/modules/examples_oneOf_recursive.html +271 -0
  49. package/docs/modules/examples_person.html +403 -0
  50. package/docs/modules/examples_radioGroup.html +213 -0
  51. package/docs/modules/examples_readonly.html +227 -0
  52. package/docs/modules/examples_rule.html +246 -0
  53. package/docs/modules/examples_ruleInheritance.html +229 -0
  54. package/docs/modules/examples_scope.html +280 -0
  55. package/docs/modules/examples_stringArray.html +213 -0
  56. package/docs/modules/examples_text.html +233 -0
  57. package/docs/modules/index.html +597 -0
  58. package/docs/modules/register.html +168 -0
  59. package/docs/modules.html +314 -0
  60. package/lib/examples/arrays-with-detail.d.ts +3 -0
  61. package/lib/examples/arrays-with-sorting.d.ts +4 -0
  62. package/lib/jsonforms-examples.cjs.js +7 -0
  63. package/lib/jsonforms-examples.cjs.js.map +1 -1
  64. package/lib/jsonforms-examples.esm.js +7 -0
  65. package/lib/jsonforms-examples.esm.js.map +1 -1
  66. package/package.json +11 -9
  67. package/src/examples/arrays-with-detail.ts +3 -0
  68. package/src/examples/arrays-with-sorting.ts +4 -0
  69. package/stats.html +90 -1429
  70. package/docs/assets/js/search.json +0 -1
  71. package/docs/globals.html +0 -14138
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonforms/examples",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-alpha.0",
4
4
  "description": "JSON Forms Example Data",
5
5
  "repository": "https://github.com/eclipsesource/jsonforms",
6
6
  "bugs": "https://github.com/eclipsesource/jsonforms/issues",
@@ -40,16 +40,18 @@
40
40
  "lint": "eslint .",
41
41
  "lint:fix": "eslint --fix .",
42
42
  "test": "echo 'Nothing to do for `examples` package'",
43
- "doc": "typedoc --name 'JSON Forms Examples' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src"
43
+ "doc": "typedoc --name 'JSON Forms Examples' --excludeExternals --theme ../../typedoc-jsonforms --out docs src"
44
44
  },
45
45
  "dependencies": {
46
- "ajv-i18n": "^3.5.0"
46
+ "ajv-i18n": "^3.5.0",
47
+ "lodash": "^4.17.21"
47
48
  },
48
49
  "peerDependencies": {
49
- "@jsonforms/core": "3.1.0"
50
+ "@jsonforms/core": "3.1.1-alpha.0"
50
51
  },
51
52
  "devDependencies": {
52
- "@jsonforms/core": "^3.1.0",
53
+ "@jsonforms/core": "3.1.1-alpha.0",
54
+ "@types/node": "^16.18.34",
53
55
  "@typescript-eslint/eslint-plugin": "^5.54.1",
54
56
  "@typescript-eslint/parser": "^5.54.1",
55
57
  "eslint": "^7.32.0",
@@ -60,11 +62,11 @@
60
62
  "rimraf": "^3.0.2",
61
63
  "rollup": "^2.78.0",
62
64
  "rollup-plugin-cleanup": "^3.2.1",
63
- "rollup-plugin-typescript2": "^0.31.1",
65
+ "rollup-plugin-typescript2": "^0.34.1",
64
66
  "rollup-plugin-visualizer": "^5.4.1",
65
- "tslib": "^2.2.0",
66
- "typedoc": "^0.19.2",
67
+ "tslib": "^2.5.0",
68
+ "typedoc": "~0.21.9",
67
69
  "typescript": "4.2.3"
68
70
  },
69
- "gitHead": "7e0115feeced7711b0768d325566aaa6b054c32b"
71
+ "gitHead": "071b32056d62e9548fb2b300a3a173cdbcb5b69a"
70
72
  }
@@ -32,6 +32,8 @@ export const schema = {
32
32
  occupation: { type: 'string' },
33
33
  comments: {
34
34
  type: 'array',
35
+ minItems: 2,
36
+ maxItems: 8,
35
37
  items: {
36
38
  type: 'object',
37
39
  properties: {
@@ -58,6 +60,7 @@ export const uischema = {
58
60
  scope: '#/properties/comments',
59
61
  options: {
60
62
  showSortButtons: true,
63
+ restrict: true,
61
64
  detail: {
62
65
  type: 'VerticalLayout',
63
66
  elements: [
@@ -30,6 +30,8 @@ export const schema = {
30
30
  properties: {
31
31
  comments: {
32
32
  type: 'array',
33
+ minItems: 2,
34
+ maxItems: 8,
33
35
  items: {
34
36
  type: 'object',
35
37
  properties: {
@@ -64,6 +66,7 @@ export const uischema = {
64
66
  scope: '#/properties/comments',
65
67
  options: {
66
68
  showSortButtons: true,
69
+ restrict: true,
67
70
  },
68
71
  },
69
72
  ],
@@ -81,6 +84,7 @@ export const uischemaWithSorting = {
81
84
  scope: '#/properties/comments',
82
85
  options: {
83
86
  showSortButtons: true,
87
+ restrict: true,
84
88
  },
85
89
  },
86
90
  ],