@jsonforms/examples 3.4.0-alpha.3 → 3.4.0-beta.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
package/lib/example.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface ExampleDescription {
|
|
|
12
12
|
apply: (props: StateProps) => any;
|
|
13
13
|
}[];
|
|
14
14
|
i18n?: JsonFormsI18nState;
|
|
15
|
+
readonly?: boolean;
|
|
15
16
|
}
|
|
16
17
|
export interface StateProps {
|
|
17
18
|
data: any;
|
|
@@ -21,4 +22,5 @@ export interface StateProps {
|
|
|
21
22
|
cells?: JsonFormsCellRendererRegistryEntry[];
|
|
22
23
|
config?: any;
|
|
23
24
|
uischemas?: JsonFormsUISchemaRegistryEntry[];
|
|
25
|
+
readonly?: boolean;
|
|
24
26
|
}
|
|
@@ -783,7 +783,7 @@ var data$L = {
|
|
|
783
783
|
},
|
|
784
784
|
],
|
|
785
785
|
};
|
|
786
|
-
var actions$
|
|
786
|
+
var actions$6 = [
|
|
787
787
|
{
|
|
788
788
|
label: 'Enable Sorting',
|
|
789
789
|
apply: function (props) {
|
|
@@ -796,6 +796,12 @@ var actions$5 = [
|
|
|
796
796
|
return __assign(__assign({}, props), { uischema: uischema$J });
|
|
797
797
|
},
|
|
798
798
|
},
|
|
799
|
+
{
|
|
800
|
+
label: 'Toggle readonly',
|
|
801
|
+
apply: function (props) {
|
|
802
|
+
return __assign(__assign({}, props), { readonly: !props.readonly });
|
|
803
|
+
},
|
|
804
|
+
},
|
|
799
805
|
];
|
|
800
806
|
registerExamples([
|
|
801
807
|
{
|
|
@@ -807,7 +813,7 @@ registerExamples([
|
|
|
807
813
|
config: {
|
|
808
814
|
withSort: uischemaWithSorting$1,
|
|
809
815
|
},
|
|
810
|
-
actions: actions$
|
|
816
|
+
actions: actions$6,
|
|
811
817
|
},
|
|
812
818
|
]);
|
|
813
819
|
|
|
@@ -970,7 +976,7 @@ var uischemas = [
|
|
|
970
976
|
},
|
|
971
977
|
},
|
|
972
978
|
];
|
|
973
|
-
var actions$
|
|
979
|
+
var actions$5 = [
|
|
974
980
|
{
|
|
975
981
|
label: 'Register NestedArray UISchema',
|
|
976
982
|
apply: function (props) {
|
|
@@ -992,7 +998,7 @@ registerExamples([
|
|
|
992
998
|
data: data$J,
|
|
993
999
|
schema: schema$H,
|
|
994
1000
|
uischema: uischema$H,
|
|
995
|
-
actions: actions$
|
|
1001
|
+
actions: actions$5,
|
|
996
1002
|
},
|
|
997
1003
|
]);
|
|
998
1004
|
|
|
@@ -1353,6 +1359,14 @@ var data$G = {
|
|
|
1353
1359
|
},
|
|
1354
1360
|
],
|
|
1355
1361
|
};
|
|
1362
|
+
var actions$4 = [
|
|
1363
|
+
{
|
|
1364
|
+
label: 'Toggle readonly',
|
|
1365
|
+
apply: function (props) {
|
|
1366
|
+
return __assign(__assign({}, props), { readonly: !props.readonly });
|
|
1367
|
+
},
|
|
1368
|
+
},
|
|
1369
|
+
];
|
|
1356
1370
|
registerExamples([
|
|
1357
1371
|
{
|
|
1358
1372
|
name: 'array-with-detail',
|
|
@@ -1360,6 +1374,7 @@ registerExamples([
|
|
|
1360
1374
|
data: data$G,
|
|
1361
1375
|
schema: schema$E,
|
|
1362
1376
|
uischema: uischema$E,
|
|
1377
|
+
actions: actions$4,
|
|
1363
1378
|
},
|
|
1364
1379
|
]);
|
|
1365
1380
|
|