@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 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
  }
@@ -12,5 +12,6 @@ export declare const actions: {
12
12
  cells?: import("@jsonforms/core").JsonFormsCellRendererRegistryEntry[];
13
13
  config?: any;
14
14
  uischemas?: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];
15
+ readonly?: boolean;
15
16
  };
16
17
  }[];
@@ -11,5 +11,6 @@ export declare const actions: {
11
11
  cells?: import("@jsonforms/core").JsonFormsCellRendererRegistryEntry[];
12
12
  config?: any;
13
13
  uischemas?: import("@jsonforms/core").JsonFormsUISchemaRegistryEntry[];
14
+ readonly?: boolean;
14
15
  };
15
16
  }[];
@@ -783,7 +783,7 @@ var data$L = {
783
783
  },
784
784
  ],
785
785
  };
786
- var actions$5 = [
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$5,
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$4 = [
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$4,
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