@jsonforms/examples 3.7.0 → 3.8.0-alpha.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.
- package/lib/examples/enumI18n.d.ts +49 -0
- package/lib/examples/validation-nested-same-name.d.ts +27 -0
- package/lib/index.d.ts +3 -1
- package/lib/jsonforms-examples.cjs.js +666 -508
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +666 -511
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/examples/arrays-with-translated-custom-element-label.ts +3 -3
- package/src/examples/arraysI18n.ts +7 -3
- package/src/examples/categorization.ts +3 -3
- package/src/examples/enumI18n.ts +135 -0
- package/src/examples/i18n.ts +3 -2
- package/src/examples/validation-nested-same-name.ts +69 -0
- package/src/index.ts +4 -0
- package/stats.html +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Translator } from '@jsonforms/core';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
type: string;
|
|
4
|
+
properties: {
|
|
5
|
+
country: {
|
|
6
|
+
type: string;
|
|
7
|
+
enum: string[];
|
|
8
|
+
};
|
|
9
|
+
countryNoAutocomplete: {
|
|
10
|
+
type: string;
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
status: {
|
|
14
|
+
type: string;
|
|
15
|
+
oneOf: {
|
|
16
|
+
const: string;
|
|
17
|
+
title: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const uischema: {
|
|
23
|
+
type: string;
|
|
24
|
+
elements: ({
|
|
25
|
+
type: string;
|
|
26
|
+
label: string;
|
|
27
|
+
elements: {
|
|
28
|
+
type: string;
|
|
29
|
+
scope: string;
|
|
30
|
+
label: string;
|
|
31
|
+
}[];
|
|
32
|
+
} | {
|
|
33
|
+
type: string;
|
|
34
|
+
label: string;
|
|
35
|
+
elements: {
|
|
36
|
+
type: string;
|
|
37
|
+
scope: string;
|
|
38
|
+
label: string;
|
|
39
|
+
options: {
|
|
40
|
+
autocomplete: boolean;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
export declare const data: {
|
|
46
|
+
country: string;
|
|
47
|
+
};
|
|
48
|
+
export declare const translations: Record<string, string>;
|
|
49
|
+
export declare const translate: Translator;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UISchemaElement } from '@jsonforms/core';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
type: string;
|
|
4
|
+
properties: {
|
|
5
|
+
name: {
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
name: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
name: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
required: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
required: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const uischema: UISchemaElement;
|
|
23
|
+
export declare const data: {
|
|
24
|
+
name: {
|
|
25
|
+
name: {};
|
|
26
|
+
};
|
|
27
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import * as onChange from './examples/onChange';
|
|
|
43
43
|
import * as enumExample from './examples/enum';
|
|
44
44
|
import * as radioGroupExample from './examples/radioGroup';
|
|
45
45
|
import * as multiEnum from './examples/enum-multi';
|
|
46
|
+
import * as enumI18n from './examples/enumI18n';
|
|
46
47
|
import * as enumInArray from './examples/enumInArray';
|
|
47
48
|
import * as readonly from './examples/readonly';
|
|
48
49
|
import * as listWithDetailPrimitives from './examples/list-with-detail-primitives';
|
|
@@ -55,9 +56,10 @@ import * as mixed from './examples/mixed';
|
|
|
55
56
|
import * as mixedObject from './examples/mixed-object';
|
|
56
57
|
import * as string from './examples/string';
|
|
57
58
|
import * as prependAppendSlots from './examples/prepend-append-slots';
|
|
59
|
+
import * as validationNestedSameName from './examples/validation-nested-same-name';
|
|
58
60
|
export * from './register';
|
|
59
61
|
export * from './example';
|
|
60
62
|
import * as ifThenElse from './examples/if_then_else';
|
|
61
63
|
import * as jsonschema from './examples/jsonschema';
|
|
62
64
|
import * as jsoneditor from './examples/json-editor';
|
|
63
|
-
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, jsoneditor, jsonschema, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, additionalProperties, login, mixed, mixedObject, issue_1884, arrayWithDefaults, string, prependAppendSlots, };
|
|
65
|
+
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, jsoneditor, jsonschema, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumI18n, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, additionalProperties, login, mixed, mixedObject, issue_1884, arrayWithDefaults, string, prependAppendSlots, validationNestedSameName, };
|