@jsonforms/examples 3.0.0-beta.2 → 3.0.0-beta.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.
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +22 -7
- package/docs/index.html +3 -0
- package/lib/examples/additional-errors.d.ts +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/jsonforms-examples.cjs.js +40 -10
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +43 -11
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/examples/additional-errors.ts +57 -0
- package/src/index.ts +3 -1
- package/stats.html +1 -1
|
@@ -698,7 +698,7 @@ const data$M = {
|
|
|
698
698
|
}
|
|
699
699
|
]
|
|
700
700
|
};
|
|
701
|
-
const actions$
|
|
701
|
+
const actions$5 = [
|
|
702
702
|
{
|
|
703
703
|
'label': 'Enable Sorting',
|
|
704
704
|
'apply': (props) => {
|
|
@@ -728,7 +728,7 @@ registerExamples([
|
|
|
728
728
|
config: {
|
|
729
729
|
withSort: uischemaWithSorting
|
|
730
730
|
},
|
|
731
|
-
actions: actions$
|
|
731
|
+
actions: actions$5
|
|
732
732
|
}
|
|
733
733
|
]);
|
|
734
734
|
|
|
@@ -805,7 +805,7 @@ const uischemas$1 = [
|
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
];
|
|
808
|
-
const actions$
|
|
808
|
+
const actions$4 = [
|
|
809
809
|
{
|
|
810
810
|
'label': 'Register NestedArray UISchema',
|
|
811
811
|
'apply': (props) => {
|
|
@@ -833,7 +833,7 @@ registerExamples([
|
|
|
833
833
|
data: data$L,
|
|
834
834
|
schema: schema$J,
|
|
835
835
|
uischema: uischema$J,
|
|
836
|
-
actions: actions$
|
|
836
|
+
actions: actions$4
|
|
837
837
|
}
|
|
838
838
|
]);
|
|
839
839
|
|
|
@@ -2322,7 +2322,7 @@ var dates = /*#__PURE__*/Object.freeze({
|
|
|
2322
2322
|
__proto__: null
|
|
2323
2323
|
});
|
|
2324
2324
|
|
|
2325
|
-
const actions$
|
|
2325
|
+
const actions$3 = [
|
|
2326
2326
|
{
|
|
2327
2327
|
'label': 'Change data',
|
|
2328
2328
|
'apply': (props) => {
|
|
@@ -2340,7 +2340,7 @@ registerExamples([
|
|
|
2340
2340
|
schema: undefined,
|
|
2341
2341
|
uischema: undefined,
|
|
2342
2342
|
data: { name: 'bla' },
|
|
2343
|
-
actions: actions$
|
|
2343
|
+
actions: actions$3
|
|
2344
2344
|
}
|
|
2345
2345
|
]);
|
|
2346
2346
|
|
|
@@ -2687,7 +2687,7 @@ const data$q = {
|
|
|
2687
2687
|
toggleBottomLayout: true,
|
|
2688
2688
|
toggleControl: true
|
|
2689
2689
|
};
|
|
2690
|
-
const actions$
|
|
2690
|
+
const actions$2 = [
|
|
2691
2691
|
{
|
|
2692
2692
|
'label': 'Enable/Disable top layout',
|
|
2693
2693
|
'apply': (props) => {
|
|
@@ -2714,7 +2714,7 @@ registerExamples([
|
|
|
2714
2714
|
data: data$q,
|
|
2715
2715
|
schema: schema$o,
|
|
2716
2716
|
uischema: uischema$p,
|
|
2717
|
-
actions: actions$
|
|
2717
|
+
actions: actions$2
|
|
2718
2718
|
}
|
|
2719
2719
|
]);
|
|
2720
2720
|
|
|
@@ -3671,7 +3671,7 @@ const uischemas = [
|
|
|
3671
3671
|
},
|
|
3672
3672
|
},
|
|
3673
3673
|
];
|
|
3674
|
-
const actions = [
|
|
3674
|
+
const actions$1 = [
|
|
3675
3675
|
{
|
|
3676
3676
|
'label': 'Register Issue 1220 UISchema',
|
|
3677
3677
|
'apply': (props) => {
|
|
@@ -3699,7 +3699,7 @@ registerExamples([
|
|
|
3699
3699
|
data: data$g,
|
|
3700
3700
|
schema: schema$g,
|
|
3701
3701
|
uischema: uischema$g,
|
|
3702
|
-
actions
|
|
3702
|
+
actions: actions$1
|
|
3703
3703
|
}
|
|
3704
3704
|
]);
|
|
3705
3705
|
|
|
@@ -6080,6 +6080,38 @@ var conditionalSchemaCompositions = /*#__PURE__*/Object.freeze({
|
|
|
6080
6080
|
uischema: uischema$1
|
|
6081
6081
|
});
|
|
6082
6082
|
|
|
6083
|
+
const additionalErrors = [];
|
|
6084
|
+
const actions = [{
|
|
6085
|
+
label: 'Add additional error',
|
|
6086
|
+
apply: (props) => {
|
|
6087
|
+
additionalErrors.push({
|
|
6088
|
+
instancePath: '/personalData/age',
|
|
6089
|
+
message: `New error #${additionalErrors.length + 1}`,
|
|
6090
|
+
schemaPath: '',
|
|
6091
|
+
keyword: '',
|
|
6092
|
+
params: {}
|
|
6093
|
+
});
|
|
6094
|
+
return {
|
|
6095
|
+
...props,
|
|
6096
|
+
additionalErrors: [...additionalErrors]
|
|
6097
|
+
};
|
|
6098
|
+
}
|
|
6099
|
+
}];
|
|
6100
|
+
registerExamples([
|
|
6101
|
+
{
|
|
6102
|
+
name: 'additional-errors',
|
|
6103
|
+
label: 'Additional errors',
|
|
6104
|
+
data: data$K,
|
|
6105
|
+
schema: schema$I,
|
|
6106
|
+
uischema: uischema$I,
|
|
6107
|
+
actions
|
|
6108
|
+
}
|
|
6109
|
+
]);
|
|
6110
|
+
|
|
6111
|
+
var additionalErrors$1 = /*#__PURE__*/Object.freeze({
|
|
6112
|
+
__proto__: null
|
|
6113
|
+
});
|
|
6114
|
+
|
|
6083
6115
|
const schema = {
|
|
6084
6116
|
type: 'object',
|
|
6085
6117
|
properties: {
|
|
@@ -6108,5 +6140,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
|
|
|
6108
6140
|
data: data
|
|
6109
6141
|
});
|
|
6110
6142
|
|
|
6111
|
-
export { allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
|
|
6143
|
+
export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
|
|
6112
6144
|
//# sourceMappingURL=jsonforms-examples.esm.js.map
|