@jsonforms/examples 3.4.0-alpha.3 → 3.4.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.
- package/lib/example.d.ts +2 -0
- package/lib/examples/additional-errors.d.ts +1 -0
- package/lib/examples/generate-dynamic.d.ts +1 -0
- package/lib/jsonforms-examples.cjs.js +19 -4
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +19 -4
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/example.ts +2 -0
- package/src/examples/arrays-with-detail.ts +11 -0
- package/src/examples/arrays.ts +6 -0
- package/stats.html +1 -1
|
@@ -733,7 +733,7 @@ const data$L = {
|
|
|
733
733
|
},
|
|
734
734
|
],
|
|
735
735
|
};
|
|
736
|
-
const actions$
|
|
736
|
+
const actions$6 = [
|
|
737
737
|
{
|
|
738
738
|
label: 'Enable Sorting',
|
|
739
739
|
apply: (props) => {
|
|
@@ -752,6 +752,12 @@ const actions$5 = [
|
|
|
752
752
|
};
|
|
753
753
|
},
|
|
754
754
|
},
|
|
755
|
+
{
|
|
756
|
+
label: 'Toggle readonly',
|
|
757
|
+
apply: (props) => {
|
|
758
|
+
return { ...props, readonly: !props.readonly };
|
|
759
|
+
},
|
|
760
|
+
},
|
|
755
761
|
];
|
|
756
762
|
registerExamples([
|
|
757
763
|
{
|
|
@@ -763,7 +769,7 @@ registerExamples([
|
|
|
763
769
|
config: {
|
|
764
770
|
withSort: uischemaWithSorting$1,
|
|
765
771
|
},
|
|
766
|
-
actions: actions$
|
|
772
|
+
actions: actions$6,
|
|
767
773
|
},
|
|
768
774
|
]);
|
|
769
775
|
|
|
@@ -924,7 +930,7 @@ const uischemas = [
|
|
|
924
930
|
},
|
|
925
931
|
},
|
|
926
932
|
];
|
|
927
|
-
const actions$
|
|
933
|
+
const actions$5 = [
|
|
928
934
|
{
|
|
929
935
|
label: 'Register NestedArray UISchema',
|
|
930
936
|
apply: (props) => {
|
|
@@ -952,7 +958,7 @@ registerExamples([
|
|
|
952
958
|
data: data$J,
|
|
953
959
|
schema: schema$H,
|
|
954
960
|
uischema: uischema$H,
|
|
955
|
-
actions: actions$
|
|
961
|
+
actions: actions$5,
|
|
956
962
|
},
|
|
957
963
|
]);
|
|
958
964
|
|
|
@@ -1324,6 +1330,14 @@ const data$G = {
|
|
|
1324
1330
|
},
|
|
1325
1331
|
],
|
|
1326
1332
|
};
|
|
1333
|
+
const actions$4 = [
|
|
1334
|
+
{
|
|
1335
|
+
label: 'Toggle readonly',
|
|
1336
|
+
apply: (props) => {
|
|
1337
|
+
return { ...props, readonly: !props.readonly };
|
|
1338
|
+
},
|
|
1339
|
+
},
|
|
1340
|
+
];
|
|
1327
1341
|
registerExamples([
|
|
1328
1342
|
{
|
|
1329
1343
|
name: 'array-with-detail',
|
|
@@ -1331,6 +1345,7 @@ registerExamples([
|
|
|
1331
1345
|
data: data$G,
|
|
1332
1346
|
schema: schema$E,
|
|
1333
1347
|
uischema: uischema$E,
|
|
1348
|
+
actions: actions$4,
|
|
1334
1349
|
},
|
|
1335
1350
|
]);
|
|
1336
1351
|
|