@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
@@ -1,42 +1,42 @@
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
- };
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
+ };
@@ -1,36 +1,36 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- readonly: {
5
- type: string;
6
- readOnly: boolean;
7
- };
8
- readonlyByUISchema: {
9
- type: string;
10
- };
11
- notReadonly: {
12
- type: string;
13
- };
14
- };
15
- };
16
- export declare const uischema: {
17
- type: string;
18
- elements: ({
19
- type: string;
20
- scope: string;
21
- label: string;
22
- options?: undefined;
23
- } | {
24
- type: string;
25
- scope: string;
26
- label: string;
27
- options: {
28
- readonly: boolean;
29
- };
30
- })[];
31
- };
32
- export declare const data: {
33
- readonly: string;
34
- readonlyByUISchema: string;
35
- notReadonly: string;
36
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ readonly: {
5
+ type: string;
6
+ readOnly: boolean;
7
+ };
8
+ readonlyByUISchema: {
9
+ type: string;
10
+ };
11
+ notReadonly: {
12
+ type: string;
13
+ };
14
+ };
15
+ };
16
+ export declare const uischema: {
17
+ type: string;
18
+ elements: ({
19
+ type: string;
20
+ scope: string;
21
+ label: string;
22
+ options?: undefined;
23
+ } | {
24
+ type: string;
25
+ scope: string;
26
+ label: string;
27
+ options: {
28
+ readonly: boolean;
29
+ };
30
+ })[];
31
+ };
32
+ export declare const data: {
33
+ readonly: string;
34
+ readonlyByUISchema: string;
35
+ notReadonly: string;
36
+ };
@@ -1,59 +1,59 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- name: {
5
- type: string;
6
- };
7
- dead: {
8
- type: string;
9
- };
10
- kindOfDead: {
11
- type: string;
12
- enum: string[];
13
- };
14
- vegetables: {
15
- type: string;
16
- };
17
- kindOfVegetables: {
18
- type: string;
19
- enum: string[];
20
- };
21
- };
22
- };
23
- export declare const uischema: {
24
- type: string;
25
- elements: ({
26
- type: string;
27
- label: string;
28
- scope: string;
29
- elements?: undefined;
30
- } | {
31
- type: string;
32
- elements: ({
33
- type: string;
34
- label: string;
35
- scope: string;
36
- rule?: undefined;
37
- } | {
38
- type: string;
39
- label: string;
40
- scope: string;
41
- rule: {
42
- effect: string;
43
- condition: {
44
- scope: string;
45
- schema: {
46
- const: boolean;
47
- };
48
- };
49
- };
50
- })[];
51
- label?: undefined;
52
- scope?: undefined;
53
- })[];
54
- };
55
- export declare const data: {
56
- name: string;
57
- dead: boolean;
58
- vegetables: boolean;
59
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ name: {
5
+ type: string;
6
+ };
7
+ dead: {
8
+ type: string;
9
+ };
10
+ kindOfDead: {
11
+ type: string;
12
+ enum: string[];
13
+ };
14
+ vegetables: {
15
+ type: string;
16
+ };
17
+ kindOfVegetables: {
18
+ type: string;
19
+ enum: string[];
20
+ };
21
+ };
22
+ };
23
+ export declare const uischema: {
24
+ type: string;
25
+ elements: ({
26
+ type: string;
27
+ label: string;
28
+ scope: string;
29
+ elements?: undefined;
30
+ } | {
31
+ type: string;
32
+ elements: ({
33
+ type: string;
34
+ label: string;
35
+ scope: string;
36
+ rule?: undefined;
37
+ } | {
38
+ type: string;
39
+ label: string;
40
+ scope: string;
41
+ rule: {
42
+ effect: string;
43
+ condition: {
44
+ scope: string;
45
+ schema: {
46
+ const: boolean;
47
+ };
48
+ };
49
+ };
50
+ })[];
51
+ label?: undefined;
52
+ scope?: undefined;
53
+ })[];
54
+ };
55
+ export declare const data: {
56
+ name: string;
57
+ dead: boolean;
58
+ vegetables: boolean;
59
+ };
@@ -1,26 +1,26 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- toggleTopLayout: {
5
- type: string;
6
- };
7
- topString: {
8
- type: string;
9
- };
10
- middleNumber: {
11
- type: string;
12
- };
13
- toggleBottomLayout: {
14
- type: string;
15
- };
16
- bottomBoolean: {
17
- type: string;
18
- };
19
- };
20
- };
21
- export declare const uischema: any;
22
- export declare const data: {
23
- toggleTopLayout: boolean;
24
- toggleBottomLayout: boolean;
25
- toggleControl: boolean;
26
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ toggleTopLayout: {
5
+ type: string;
6
+ };
7
+ topString: {
8
+ type: string;
9
+ };
10
+ middleNumber: {
11
+ type: string;
12
+ };
13
+ toggleBottomLayout: {
14
+ type: string;
15
+ };
16
+ bottomBoolean: {
17
+ type: string;
18
+ };
19
+ };
20
+ };
21
+ export declare const uischema: any;
22
+ export declare const data: {
23
+ toggleTopLayout: boolean;
24
+ toggleBottomLayout: boolean;
25
+ toggleControl: boolean;
26
+ };
@@ -1,50 +1,50 @@
1
- export declare const orderSchema: {
2
- type: string;
3
- properties: {
4
- orderId: {
5
- type: string;
6
- };
7
- purchaseDate: {
8
- type: string;
9
- format: string;
10
- };
11
- price: {
12
- type: string;
13
- };
14
- shippingAddress: {
15
- $ref: string;
16
- };
17
- };
18
- definitions: {
19
- shippingAddress: {
20
- type: string;
21
- properties: {
22
- aptNo: {
23
- type: string;
24
- };
25
- streetNumber: {
26
- type: string;
27
- };
28
- };
29
- };
30
- };
31
- };
32
- export declare const uischema: {
33
- type: string;
34
- elements: {
35
- type: string;
36
- elements: {
37
- type: string;
38
- scope: string;
39
- }[];
40
- }[];
41
- };
42
- export declare const data: {
43
- orderId: string;
44
- purchaseDate: string;
45
- price: number;
46
- shippingAddress: {
47
- aptNo: number;
48
- streetNumber: number;
49
- };
50
- };
1
+ export declare const orderSchema: {
2
+ type: string;
3
+ properties: {
4
+ orderId: {
5
+ type: string;
6
+ };
7
+ purchaseDate: {
8
+ type: string;
9
+ format: string;
10
+ };
11
+ price: {
12
+ type: string;
13
+ };
14
+ shippingAddress: {
15
+ $ref: string;
16
+ };
17
+ };
18
+ definitions: {
19
+ shippingAddress: {
20
+ type: string;
21
+ properties: {
22
+ aptNo: {
23
+ type: string;
24
+ };
25
+ streetNumber: {
26
+ type: string;
27
+ };
28
+ };
29
+ };
30
+ };
31
+ };
32
+ export declare const uischema: {
33
+ type: string;
34
+ elements: {
35
+ type: string;
36
+ elements: {
37
+ type: string;
38
+ scope: string;
39
+ }[];
40
+ }[];
41
+ };
42
+ export declare const data: {
43
+ orderId: string;
44
+ purchaseDate: string;
45
+ price: number;
46
+ shippingAddress: {
47
+ aptNo: number;
48
+ streetNumber: number;
49
+ };
50
+ };
@@ -1,23 +1,23 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- comments: {
5
- description: string;
6
- type: string;
7
- items: {
8
- type: string;
9
- maxLength: number;
10
- };
11
- };
12
- };
13
- };
14
- export declare const uischema: {
15
- type: string;
16
- elements: {
17
- type: string;
18
- scope: string;
19
- }[];
20
- };
21
- export declare const data: {
22
- comments: string[];
23
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ comments: {
5
+ description: string;
6
+ type: string;
7
+ items: {
8
+ type: string;
9
+ maxLength: number;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export declare const uischema: {
15
+ type: string;
16
+ elements: {
17
+ type: string;
18
+ scope: string;
19
+ }[];
20
+ };
21
+ export declare const data: {
22
+ comments: string[];
23
+ };
@@ -1,37 +1,37 @@
1
- export declare const schema: {
2
- type: string;
3
- properties: {
4
- zipCode: {
5
- type: string;
6
- maxLength: number;
7
- };
8
- zipCodeWithoutTrim: {
9
- type: string;
10
- maxLength: number;
11
- };
12
- zipCodeWithoutRestrict: {
13
- type: string;
14
- maxLength: number;
15
- };
16
- };
17
- };
18
- export declare const uischema: {
19
- type: string;
20
- elements: {
21
- type: string;
22
- elements: {
23
- type: string;
24
- scope: string;
25
- label: string;
26
- options: {
27
- trim: boolean;
28
- restrict: boolean;
29
- };
30
- }[];
31
- }[];
32
- };
33
- export declare const data: {
34
- zipCode: string;
35
- zipCodeWithoutTrim: string;
36
- zipCodeWithoutRestrict: string;
37
- };
1
+ export declare const schema: {
2
+ type: string;
3
+ properties: {
4
+ zipCode: {
5
+ type: string;
6
+ maxLength: number;
7
+ };
8
+ zipCodeWithoutTrim: {
9
+ type: string;
10
+ maxLength: number;
11
+ };
12
+ zipCodeWithoutRestrict: {
13
+ type: string;
14
+ maxLength: number;
15
+ };
16
+ };
17
+ };
18
+ export declare const uischema: {
19
+ type: string;
20
+ elements: {
21
+ type: string;
22
+ elements: {
23
+ type: string;
24
+ scope: string;
25
+ label: string;
26
+ options: {
27
+ trim: boolean;
28
+ restrict: boolean;
29
+ };
30
+ }[];
31
+ }[];
32
+ };
33
+ export declare const data: {
34
+ zipCode: string;
35
+ zipCodeWithoutTrim: string;
36
+ zipCodeWithoutRestrict: string;
37
+ };
package/lib/index.d.ts CHANGED
@@ -1,54 +1,55 @@
1
- import * as allOf from './examples/allOf';
2
- import * as anyOf from './examples/anyOf';
3
- import * as oneOf from './examples/oneOf';
4
- import * as oneOfArray from './examples/oneOfArray';
5
- import * as anyOfOneOfAllOfResolve from './examples/anyOf-oneOf-allOf-resolve';
6
- import * as array from './examples/arrays';
7
- import * as arrayI18n from './examples/arraysI18n';
8
- import * as nestedArray from './examples/nestedArrays';
9
- import * as nestedCategorization from './examples/nestedCategorization';
10
- import * as arrayWithDetail from './examples/arrays-with-detail';
11
- import * as arrayWithDetailAndRule from './examples/arrays-with-detail-and-rule';
12
- import * as arrayWithCustomChildLabel from './examples/arrays-with-custom-element-label';
13
- import * as arrayWithSorting from './examples/arrays-with-sorting';
14
- import * as arrayWithDefaults from './examples/arrays-with-defaults';
15
- import * as stringArray from './examples/stringArray';
16
- import * as categorization from './examples/categorization';
17
- import * as stepper from './examples/categorization-stepper';
18
- import * as steppershownav from './examples/categorization-stepper-nav-buttons';
19
- import * as controlOptions from './examples/control-options';
20
- import * as dates from './examples/dates';
21
- import * as generateDynamic from './examples/generate-dynamic';
22
- import * as generateSchema from './examples/generate';
23
- import * as generateUISchema from './examples/generateUI';
24
- import * as layout from './examples/layout';
25
- import * as person from './examples/person';
26
- import * as issue_1884 from './examples/1884';
27
- import * as rule from './examples/rule';
28
- import * as ruleInheritance from './examples/ruleInheritance';
29
- import * as config from './examples/config';
30
- import * as text from './examples/text';
31
- import * as numbers from './examples/numbers';
32
- import * as scope from './examples/scope';
33
- import * as listWithDetail from './examples/list-with-detail';
34
- import * as listWithDetailRegistered from './examples/list-with-detail-registered';
35
- import * as object from './examples/object';
36
- import * as i18n from './examples/i18n';
37
- import * as issue_1948 from './examples/1948';
38
- import * as oneOfRecursive from './examples/oneOf-recursive';
39
- import * as huge from './examples/huge';
40
- import * as defaultExample from './examples/default';
41
- import * as onChange from './examples/onChange';
42
- import * as enumExample from './examples/enum';
43
- import * as radioGroupExample from './examples/radioGroup';
44
- import * as multiEnum from './examples/enum-multi';
45
- import * as enumInArray from './examples/enumInArray';
46
- import * as readonly from './examples/readonly';
47
- import * as listWithDetailPrimitives from './examples/list-with-detail-primitives';
48
- import * as conditionalSchemaComposition from './examples/conditional-schema-compositions';
49
- import * as additionalErrors from './examples/additional-errors';
50
- import * as multiEnumWithLabelAndDesc from './examples/enum-multi-with-label-and-desc';
51
- export * from './register';
52
- export * from './example';
53
- import * as ifThenElse from './examples/if_then_else';
54
- 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, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, issue_1884, arrayWithDefaults, };
1
+ import * as allOf from './examples/allOf';
2
+ import * as anyOf from './examples/anyOf';
3
+ import * as oneOf from './examples/oneOf';
4
+ import * as oneOfArray from './examples/oneOfArray';
5
+ import * as anyOfOneOfAllOfResolve from './examples/anyOf-oneOf-allOf-resolve';
6
+ import * as array from './examples/arrays';
7
+ import * as arrayI18n from './examples/arraysI18n';
8
+ import * as nestedArray from './examples/nestedArrays';
9
+ import * as nestedCategorization from './examples/nestedCategorization';
10
+ import * as arrayWithDetail from './examples/arrays-with-detail';
11
+ import * as arrayWithDetailAndRule from './examples/arrays-with-detail-and-rule';
12
+ import * as arrayWithCustomChildLabel from './examples/arrays-with-custom-element-label';
13
+ import * as arrayWithSorting from './examples/arrays-with-sorting';
14
+ import * as arrayWithTranslatedCustomChildLabel from './examples/arrays-with-translated-custom-element-label';
15
+ import * as arrayWithDefaults from './examples/arrays-with-defaults';
16
+ import * as stringArray from './examples/stringArray';
17
+ import * as categorization from './examples/categorization';
18
+ import * as stepper from './examples/categorization-stepper';
19
+ import * as steppershownav from './examples/categorization-stepper-nav-buttons';
20
+ import * as controlOptions from './examples/control-options';
21
+ import * as dates from './examples/dates';
22
+ import * as generateDynamic from './examples/generate-dynamic';
23
+ import * as generateSchema from './examples/generate';
24
+ import * as generateUISchema from './examples/generateUI';
25
+ import * as layout from './examples/layout';
26
+ import * as person from './examples/person';
27
+ import * as issue_1884 from './examples/1884';
28
+ import * as rule from './examples/rule';
29
+ import * as ruleInheritance from './examples/ruleInheritance';
30
+ import * as config from './examples/config';
31
+ import * as text from './examples/text';
32
+ import * as numbers from './examples/numbers';
33
+ import * as scope from './examples/scope';
34
+ import * as listWithDetail from './examples/list-with-detail';
35
+ import * as listWithDetailRegistered from './examples/list-with-detail-registered';
36
+ import * as object from './examples/object';
37
+ import * as i18n from './examples/i18n';
38
+ import * as issue_1948 from './examples/1948';
39
+ import * as oneOfRecursive from './examples/oneOf-recursive';
40
+ import * as huge from './examples/huge';
41
+ import * as defaultExample from './examples/default';
42
+ import * as onChange from './examples/onChange';
43
+ import * as enumExample from './examples/enum';
44
+ import * as radioGroupExample from './examples/radioGroup';
45
+ import * as multiEnum from './examples/enum-multi';
46
+ import * as enumInArray from './examples/enumInArray';
47
+ import * as readonly from './examples/readonly';
48
+ import * as listWithDetailPrimitives from './examples/list-with-detail-primitives';
49
+ import * as conditionalSchemaComposition from './examples/conditional-schema-compositions';
50
+ import * as additionalErrors from './examples/additional-errors';
51
+ import * as multiEnumWithLabelAndDesc from './examples/enum-multi-with-label-and-desc';
52
+ export * from './register';
53
+ export * from './example';
54
+ import * as ifThenElse from './examples/if_then_else';
55
+ export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, arrayWithTranslatedCustomChildLabel, 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, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, issue_1884, arrayWithDefaults, };