@jsonforms/material-renderers 3.1.0-alpha.1 → 3.1.0-alpha.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.
Files changed (123) hide show
  1. package/README.md +16 -17
  2. package/lib/additional/ListWithDetailMasterItem.d.ts +2 -0
  3. package/lib/additional/MaterialListWithDetailRenderer.d.ts +1 -1
  4. package/lib/additional/index.d.ts +2 -2
  5. package/lib/additional/unwrapped.d.ts +5 -0
  6. package/lib/cells/index.d.ts +1 -1
  7. package/lib/complex/CombinatorProperties.d.ts +1 -2
  8. package/lib/complex/DeleteDialog.d.ts +5 -1
  9. package/lib/complex/MaterialAllOfRenderer.d.ts +1 -1
  10. package/lib/complex/MaterialAnyOfRenderer.d.ts +1 -1
  11. package/lib/complex/MaterialArrayControlRenderer.d.ts +2 -1
  12. package/lib/complex/MaterialEnumArrayRenderer.d.ts +1 -1
  13. package/lib/complex/MaterialObjectRenderer.d.ts +1 -1
  14. package/lib/complex/MaterialOneOfRenderer.d.ts +1 -1
  15. package/lib/complex/MaterialTableControl.d.ts +4 -2
  16. package/lib/complex/NoBorderTableCell.d.ts +2 -2
  17. package/lib/complex/TableToolbar.d.ts +3 -2
  18. package/lib/complex/index.d.ts +11 -16
  19. package/lib/complex/unwrapped.d.ts +9 -0
  20. package/lib/controls/MaterialBooleanControl.d.ts +1 -1
  21. package/lib/controls/MaterialBooleanToggleControl.d.ts +1 -1
  22. package/lib/controls/index.d.ts +8 -26
  23. package/lib/controls/unwrapped.d.ts +19 -0
  24. package/lib/index.d.ts +34 -1
  25. package/lib/jsonforms-react-material.cjs.js +690 -599
  26. package/lib/jsonforms-react-material.cjs.js.map +1 -1
  27. package/lib/jsonforms-react-material.esm.js +620 -557
  28. package/lib/jsonforms-react-material.esm.js.map +1 -1
  29. package/lib/layouts/ArrayToolbar.d.ts +3 -1
  30. package/lib/layouts/ExpandPanelRenderer.d.ts +3 -1
  31. package/lib/layouts/MaterialGroupLayout.d.ts +1 -1
  32. package/lib/layouts/MaterialHorizontalLayout.d.ts +1 -1
  33. package/lib/layouts/MaterialVerticalLayout.d.ts +1 -1
  34. package/lib/layouts/index.d.ts +3 -1
  35. package/lib/layouts/unwrapped.d.ts +10 -0
  36. package/lib/mui-controls/MuiCheckbox.d.ts +1 -1
  37. package/lib/mui-controls/MuiInputInteger.d.ts +1 -1
  38. package/lib/mui-controls/MuiInputNumber.d.ts +1 -1
  39. package/lib/mui-controls/MuiInputNumberFormat.d.ts +1 -1
  40. package/lib/mui-controls/MuiInputText.d.ts +1 -1
  41. package/lib/mui-controls/MuiInputTime.d.ts +1 -1
  42. package/lib/mui-controls/MuiSelect.d.ts +1 -1
  43. package/lib/mui-controls/MuiToggle.d.ts +1 -1
  44. package/lib/mui-controls/index.d.ts +3 -1
  45. package/lib/util/layout.d.ts +2 -3
  46. package/package.json +16 -9
  47. package/src/additional/ListWithDetailMasterItem.tsx +31 -23
  48. package/src/additional/MaterialLabelRenderer.tsx +8 -15
  49. package/src/additional/MaterialListWithDetailRenderer.tsx +8 -5
  50. package/src/additional/index.ts +12 -4
  51. package/src/additional/unwrapped.ts +32 -0
  52. package/src/cells/MaterialBooleanCell.tsx +1 -1
  53. package/src/cells/MaterialBooleanToggleCell.tsx +2 -2
  54. package/src/cells/MaterialDateCell.tsx +4 -12
  55. package/src/cells/MaterialEnumCell.tsx +13 -6
  56. package/src/cells/MaterialIntegerCell.tsx +1 -1
  57. package/src/cells/MaterialNumberCell.tsx +1 -1
  58. package/src/cells/MaterialNumberFormatCell.tsx +1 -1
  59. package/src/cells/MaterialOneOfEnumCell.tsx +17 -7
  60. package/src/cells/MaterialTextCell.tsx +1 -1
  61. package/src/cells/MaterialTimeCell.tsx +1 -1
  62. package/src/cells/index.ts +7 -7
  63. package/src/complex/CombinatorProperties.tsx +20 -9
  64. package/src/complex/DeleteDialog.tsx +48 -37
  65. package/src/complex/MaterialAllOfRenderer.tsx +2 -2
  66. package/src/complex/MaterialAnyOfRenderer.tsx +3 -3
  67. package/src/complex/MaterialArrayControlRenderer.tsx +27 -11
  68. package/src/complex/MaterialEnumArrayRenderer.tsx +6 -8
  69. package/src/complex/MaterialObjectRenderer.tsx +6 -3
  70. package/src/complex/MaterialOneOfRenderer.tsx +105 -88
  71. package/src/complex/MaterialTableControl.tsx +145 -97
  72. package/src/complex/NoBorderTableCell.tsx +3 -5
  73. package/src/complex/TableToolbar.tsx +24 -25
  74. package/src/complex/ValidationIcon.tsx +10 -18
  75. package/src/complex/index.ts +35 -32
  76. package/src/complex/unwrapped.ts +39 -0
  77. package/src/controls/MaterialAnyOfStringOrEnumControl.tsx +19 -11
  78. package/src/controls/MaterialBooleanControl.tsx +22 -16
  79. package/src/controls/MaterialBooleanToggleControl.tsx +22 -16
  80. package/src/controls/MaterialDateControl.tsx +16 -19
  81. package/src/controls/MaterialDateTimeControl.tsx +24 -23
  82. package/src/controls/MaterialEnumControl.tsx +21 -15
  83. package/src/controls/MaterialInputControl.tsx +7 -8
  84. package/src/controls/MaterialIntegerControl.tsx +1 -1
  85. package/src/controls/MaterialNativeControl.tsx +12 -9
  86. package/src/controls/MaterialNumberControl.tsx +1 -1
  87. package/src/controls/MaterialOneOfEnumControl.tsx +21 -15
  88. package/src/controls/MaterialOneOfRadioGroupControl.tsx +5 -3
  89. package/src/controls/MaterialRadioGroup.tsx +11 -17
  90. package/src/controls/MaterialRadioGroupControl.tsx +8 -3
  91. package/src/controls/MaterialSliderControl.tsx +17 -16
  92. package/src/controls/MaterialTextControl.tsx +1 -1
  93. package/src/controls/MaterialTimeControl.tsx +19 -22
  94. package/src/controls/index.ts +36 -72
  95. package/src/controls/unwrapped.ts +57 -0
  96. package/src/index.ts +41 -22
  97. package/src/layouts/ArrayToolbar.tsx +38 -42
  98. package/src/layouts/ExpandPanelRenderer.tsx +96 -67
  99. package/src/layouts/MaterialArrayLayout.tsx +21 -16
  100. package/src/layouts/MaterialArrayLayoutRenderer.tsx +6 -9
  101. package/src/layouts/MaterialCategorizationLayout.tsx +52 -21
  102. package/src/layouts/MaterialCategorizationStepperLayout.tsx +60 -44
  103. package/src/layouts/MaterialGroupLayout.tsx +25 -6
  104. package/src/layouts/MaterialHorizontalLayout.tsx +18 -4
  105. package/src/layouts/MaterialVerticalLayout.tsx +18 -4
  106. package/src/layouts/index.ts +18 -7
  107. package/src/layouts/unwrapped.ts +41 -0
  108. package/src/mui-controls/MuiAutocomplete.tsx +51 -35
  109. package/src/mui-controls/MuiCheckbox.tsx +5 -3
  110. package/src/mui-controls/MuiInputInteger.tsx +31 -32
  111. package/src/mui-controls/MuiInputNumber.tsx +16 -16
  112. package/src/mui-controls/MuiInputNumberFormat.tsx +51 -42
  113. package/src/mui-controls/MuiInputText.tsx +30 -19
  114. package/src/mui-controls/MuiInputTime.tsx +11 -12
  115. package/src/mui-controls/MuiSelect.tsx +15 -6
  116. package/src/mui-controls/MuiToggle.tsx +5 -3
  117. package/src/mui-controls/index.ts +3 -1
  118. package/src/util/datejs.tsx +41 -20
  119. package/src/util/debounce.ts +26 -11
  120. package/src/util/focus.ts +7 -7
  121. package/src/util/i18nDefaults.ts +2 -2
  122. package/src/util/layout.tsx +47 -42
  123. package/src/util/theme.ts +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # JSON Forms - More Forms. Less Code
2
2
 
3
- *Complex forms in the blink of an eye*
3
+ _Complex forms in the blink of an eye_
4
4
 
5
5
  JSON Forms eliminates the tedious task of writing fully-featured forms by hand by leveraging the capabilities of JSON, JSON Schema and Javascript.
6
6
 
@@ -24,12 +24,11 @@ npm i --save @jsonforms/core @jsonforms/react @jsonforms/material-renderers
24
24
 
25
25
  Use the `JsonForms` component for each form you want to render and hand over the renderer set.
26
26
 
27
-
28
27
  ```ts
29
28
  import React, { useState } from 'react';
30
29
  import {
31
30
  materialRenderers,
32
- materialCells
31
+ materialCells,
33
32
  } from '@jsonforms/material-renderers';
34
33
  import { JsonForms } from '@jsonforms/react';
35
34
 
@@ -38,21 +37,21 @@ const schema = {
38
37
  properties: {
39
38
  name: {
40
39
  type: 'string',
41
- minLength: 1
40
+ minLength: 1,
42
41
  },
43
42
  done: {
44
- type: 'boolean'
43
+ type: 'boolean',
45
44
  },
46
45
  due_date: {
47
46
  type: 'string',
48
- format: 'date'
47
+ format: 'date',
49
48
  },
50
49
  recurrence: {
51
50
  type: 'string',
52
- enum: ['Never', 'Daily', 'Weekly', 'Monthly']
53
- }
51
+ enum: ['Never', 'Daily', 'Weekly', 'Monthly'],
52
+ },
54
53
  },
55
- required: ['name', 'due_date']
54
+ required: ['name', 'due_date'],
56
55
  };
57
56
 
58
57
  const uischema = {
@@ -61,26 +60,26 @@ const uischema = {
61
60
  {
62
61
  type: 'Control',
63
62
  label: false,
64
- scope: '#/properties/done'
63
+ scope: '#/properties/done',
65
64
  },
66
65
  {
67
66
  type: 'Control',
68
- scope: '#/properties/name'
67
+ scope: '#/properties/name',
69
68
  },
70
69
  {
71
70
  type: 'HorizontalLayout',
72
71
  elements: [
73
72
  {
74
73
  type: 'Control',
75
- scope: '#/properties/due_date'
74
+ scope: '#/properties/due_date',
76
75
  },
77
76
  {
78
77
  type: 'Control',
79
- scope: '#/properties/recurrence'
80
- }
81
- ]
82
- }
83
- ]
78
+ scope: '#/properties/recurrence',
79
+ },
80
+ ],
81
+ },
82
+ ],
84
83
  };
85
84
 
86
85
  const initialData = {};
@@ -1,3 +1,5 @@
1
+ import type { StatePropsOfMasterItem } from '@jsonforms/core';
1
2
  import React from 'react';
3
+ export declare const ListWithDetailMasterItem: ({ index, childLabel, selected, handleSelect, removeItem, path, translations, }: StatePropsOfMasterItem) => JSX.Element;
2
4
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfMasterListItem>;
3
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ArrayLayoutProps, RankedTester } from '@jsonforms/core';
2
2
  import React from 'react';
3
- export declare const MaterialListWithDetailRenderer: ({ uischemas, schema, uischema, path, errors, visible, label, required, removeItems, addItem, data, renderers, cells, config, rootSchema }: ArrayLayoutProps) => JSX.Element;
3
+ export declare const MaterialListWithDetailRenderer: ({ uischemas, schema, uischema, path, errors, visible, label, required, removeItems, addItem, data, renderers, cells, config, rootSchema, translations, }: ArrayLayoutProps) => JSX.Element;
4
4
  export declare const materialListWithDetailTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import MaterialLabelRenderer, { materialLabelRendererTester } from './MaterialLabelRenderer';
2
- export { MaterialLabelRenderer, materialLabelRendererTester };
3
2
  import MaterialListWithDetailRenderer, { materialListWithDetailTester } from './MaterialListWithDetailRenderer';
4
- export { MaterialListWithDetailRenderer, materialListWithDetailTester };
3
+ export { MaterialLabelRenderer, materialLabelRendererTester, MaterialListWithDetailRenderer, materialListWithDetailTester, };
4
+ export * from './ListWithDetailMasterItem';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const UnwrappedAdditional: {
3
+ MaterialLabelRenderer: ({ text, visible }: import("@jsonforms/core").LabelProps) => JSX.Element;
4
+ MaterialListWithDetailRenderer: ({ uischemas, schema, uischema, path, errors, visible, label, required, removeItems, addItem, data, renderers, cells, config, rootSchema, translations, }: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
5
+ };
@@ -8,6 +8,6 @@ import MaterialNumberFormatCell, { materialNumberFormatCellTester } from './Mate
8
8
  import MaterialOneOfEnumCell, { materialOneOfEnumCellTester } from './MaterialOneOfEnumCell';
9
9
  import MaterialTextCell, { materialTextCellTester } from './MaterialTextCell';
10
10
  import MaterialTimeCell, { materialTimeCellTester } from './MaterialTimeCell';
11
- export { MaterialBooleanCell, materialBooleanCellTester, MaterialBooleanToggleCell, materialBooleanToggleCellTester, MaterialDateCell, materialDateCellTester, MaterialEnumCell, materialEnumCellTester, MaterialIntegerCell, materialIntegerCellTester, MaterialNumberCell, materialNumberCellTester, MaterialNumberFormatCell, materialNumberFormatCellTester, MaterialOneOfEnumCell, materialOneOfEnumCellTester, MaterialTextCell, materialTextCellTester, MaterialTimeCell, materialTimeCellTester };
11
+ export { MaterialBooleanCell, materialBooleanCellTester, MaterialBooleanToggleCell, materialBooleanToggleCellTester, MaterialDateCell, materialDateCellTester, MaterialEnumCell, materialEnumCellTester, MaterialIntegerCell, materialIntegerCellTester, MaterialNumberCell, materialNumberCellTester, MaterialNumberFormatCell, materialNumberFormatCellTester, MaterialOneOfEnumCell, materialOneOfEnumCellTester, MaterialTextCell, materialTextCellTester, MaterialTimeCell, materialTimeCellTester, };
12
12
  import * as Customizable from './CustomizableCells';
13
13
  export { Customizable };
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { JsonSchema, Layout, UISchemaElement } from '@jsonforms/core';
2
+ import { JsonSchema } from '@jsonforms/core';
3
3
  interface CombinatorPropertiesProps {
4
4
  schema: JsonSchema;
5
5
  combinatorKeyword: 'oneOf' | 'anyOf';
6
6
  path: string;
7
7
  }
8
- export declare const isLayout: (uischema: UISchemaElement) => uischema is Layout;
9
8
  export declare class CombinatorProperties extends React.Component<CombinatorPropertiesProps, {}> {
10
9
  render(): JSX.Element;
11
10
  }
@@ -4,8 +4,12 @@ export interface DeleteDialogProps {
4
4
  onClose(): void;
5
5
  onConfirm(): void;
6
6
  onCancel(): void;
7
+ title: string;
8
+ message: string;
9
+ acceptText: string;
10
+ declineText: string;
7
11
  }
8
12
  export interface WithDeleteDialogSupport {
9
13
  openDeleteDialog(path: string, data: number): void;
10
14
  }
11
- export declare const DeleteDialog: React.MemoExoticComponent<({ open, onClose, onConfirm, onCancel }: DeleteDialogProps) => JSX.Element>;
15
+ export declare const DeleteDialog: React.NamedExoticComponent<DeleteDialogProps>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RankedTester, StatePropsOfCombinator } from '@jsonforms/core';
3
- export declare const MaterialAllOfRenderer: ({ schema, rootSchema, visible, renderers, cells, path, uischemas, uischema }: StatePropsOfCombinator) => JSX.Element;
3
+ export declare const MaterialAllOfRenderer: ({ schema, rootSchema, visible, renderers, cells, path, uischemas, uischema, }: StatePropsOfCombinator) => JSX.Element;
4
4
  export declare const materialAllOfControlTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RankedTester, StatePropsOfCombinator } from '@jsonforms/core';
3
- export declare const MaterialAnyOfRenderer: ({ schema, rootSchema, indexOfFittingSchema, visible, path, renderers, cells, uischema, uischemas }: StatePropsOfCombinator) => JSX.Element;
3
+ export declare const MaterialAnyOfRenderer: ({ schema, rootSchema, indexOfFittingSchema, visible, path, renderers, cells, uischema, uischemas, }: StatePropsOfCombinator) => JSX.Element;
4
4
  export declare const materialAnyOfControlTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { ArrayLayoutProps } from '@jsonforms/core';
2
+ import { ArrayLayoutProps, RankedTester } from '@jsonforms/core';
3
3
  export declare const MaterialArrayControlRenderer: (props: ArrayLayoutProps) => JSX.Element;
4
+ export declare const materialArrayControlTester: RankedTester;
4
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
5
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ControlProps, DispatchPropsOfMultiEnumControl, OwnPropsOfEnum, RankedTester } from '@jsonforms/core';
2
2
  import React from 'react';
3
- export declare const MaterialEnumArrayRenderer: ({ schema, visible, errors, path, options, data, addItem, removeItem, handleChange, ...otherProps }: ControlProps & OwnPropsOfEnum & DispatchPropsOfMultiEnumControl) => JSX.Element;
3
+ export declare const MaterialEnumArrayRenderer: ({ schema, visible, errors, path, options, data, addItem, removeItem, handleChange: _handleChange, ...otherProps }: ControlProps & OwnPropsOfEnum & DispatchPropsOfMultiEnumControl) => JSX.Element;
4
4
  export declare const materialEnumArrayRendererTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl & OwnPropsOfEnum & DispatchPropsOfMultiEnumControl>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { RankedTester, StatePropsOfControlWithDetail } from '@jsonforms/core';
2
2
  import React from 'react';
3
- export declare const MaterialObjectRenderer: ({ renderers, cells, uischemas, schema, label, path, visible, enabled, uischema, rootSchema }: StatePropsOfControlWithDetail) => JSX.Element;
3
+ export declare const MaterialObjectRenderer: ({ renderers, cells, uischemas, schema, label, path, visible, enabled, uischema, rootSchema, }: StatePropsOfControlWithDetail) => JSX.Element;
4
4
  export declare const materialObjectControlTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -3,7 +3,7 @@ import { CombinatorRendererProps, OwnPropsOfControl, RankedTester } from '@jsonf
3
3
  export interface OwnOneOfProps extends OwnPropsOfControl {
4
4
  indexOfFittingSchema?: number;
5
5
  }
6
- export declare const MaterialOneOfRenderer: ({ handleChange, schema, path, renderers, cells, rootSchema, id, visible, indexOfFittingSchema, uischema, uischemas, data }: CombinatorRendererProps) => JSX.Element;
6
+ export declare const MaterialOneOfRenderer: ({ handleChange, schema, path, renderers, cells, rootSchema, id, visible, indexOfFittingSchema, uischema, uischemas, data, }: CombinatorRendererProps) => JSX.Element;
7
7
  export declare const materialOneOfControlTester: RankedTester;
8
8
  declare const _default: React.ComponentType<OwnPropsOfControl>;
9
9
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { ArrayLayoutProps, JsonSchema, JsonFormsCellRendererRegistryEntry } from '@jsonforms/core';
2
+ import { ArrayLayoutProps, JsonSchema, JsonFormsCellRendererRegistryEntry, ArrayTranslations } from '@jsonforms/core';
3
3
  import { WithDeleteDialogSupport } from './DeleteDialog';
4
4
  export interface EmptyTableProps {
5
5
  numColumns: number;
6
+ translations: ArrayTranslations;
6
7
  }
7
8
  interface NonEmptyRowProps {
8
9
  childPath: string;
@@ -16,8 +17,9 @@ interface NonEmptyRowProps {
16
17
  enabled: boolean;
17
18
  cells?: JsonFormsCellRendererRegistryEntry[];
18
19
  path: string;
20
+ translations: ArrayTranslations;
19
21
  }
20
- export declare const NonEmptyRow: React.MemoExoticComponent<({ childPath, schema, rowIndex, openDeleteDialog, moveUpCreator, moveDownCreator, enableUp, enableDown, showSortButtons, enabled, cells, path }: NonEmptyRowProps & WithDeleteDialogSupport) => JSX.Element>;
22
+ export declare const NonEmptyRow: React.MemoExoticComponent<({ childPath, schema, rowIndex, openDeleteDialog, moveUpCreator, moveDownCreator, enableUp, enableDown, showSortButtons, enabled, cells, path, translations, }: NonEmptyRowProps & WithDeleteDialogSupport) => JSX.Element>;
21
23
  export declare class MaterialTableControl extends React.Component<ArrayLayoutProps & WithDeleteDialogSupport, any> {
22
24
  addItem: (path: string, value: any) => () => void;
23
25
  render(): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const _default: ({ children, ...otherProps }: any) => JSX.Element;
3
- export default _default;
2
+ declare const NoBorderTableCell: ({ children, ...otherProps }: any) => JSX.Element;
3
+ export default NoBorderTableCell;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ControlElement, JsonSchema } from '@jsonforms/core';
2
+ import { ControlElement, JsonSchema, ArrayTranslations } from '@jsonforms/core';
3
3
  export interface MaterialTableToolbarProps {
4
4
  numColumns: number;
5
5
  errors: string;
@@ -9,7 +9,8 @@ export interface MaterialTableToolbarProps {
9
9
  schema: JsonSchema;
10
10
  rootSchema: JsonSchema;
11
11
  enabled: boolean;
12
+ translations: ArrayTranslations;
12
13
  addItem(path: string, value: any): () => void;
13
14
  }
14
- declare const TableToolbar: React.MemoExoticComponent<({ numColumns, errors, label, path, addItem, schema, enabled }: MaterialTableToolbarProps) => JSX.Element>;
15
+ declare const TableToolbar: React.NamedExoticComponent<MaterialTableToolbarProps>;
15
16
  export default TableToolbar;
@@ -1,19 +1,14 @@
1
- import { RankedTester } from '@jsonforms/core';
2
- import MaterialArrayControlRenderer from './MaterialArrayControlRenderer';
3
- import MaterialObjectRenderer, { materialObjectControlTester } from './MaterialObjectRenderer';
4
1
  import MaterialAllOfRenderer, { materialAllOfControlTester } from './MaterialAllOfRenderer';
5
2
  import MaterialAnyOfRenderer, { materialAnyOfControlTester } from './MaterialAnyOfRenderer';
6
- import MaterialOneOfRenderer, { materialOneOfControlTester } from './MaterialOneOfRenderer';
3
+ import MaterialArrayControlRenderer, { materialArrayControlTester } from './MaterialArrayControlRenderer';
7
4
  import MaterialEnumArrayRenderer, { materialEnumArrayRendererTester } from './MaterialEnumArrayRenderer';
8
- export declare const materialArrayControlTester: RankedTester;
9
- export { MaterialArrayControlRenderer };
10
- export { MaterialObjectRenderer };
11
- export { MaterialAllOfRenderer };
12
- export { MaterialAnyOfRenderer };
13
- export { MaterialOneOfRenderer };
14
- export { MaterialEnumArrayRenderer };
15
- export { materialObjectControlTester };
16
- export { materialAllOfControlTester };
17
- export { materialAnyOfControlTester };
18
- export { materialOneOfControlTester };
19
- export { materialEnumArrayRendererTester };
5
+ import MaterialObjectRenderer, { materialObjectControlTester } from './MaterialObjectRenderer';
6
+ import MaterialOneOfRenderer, { materialOneOfControlTester } from './MaterialOneOfRenderer';
7
+ export { materialAllOfControlTester, MaterialAllOfRenderer, materialAnyOfControlTester, MaterialAnyOfRenderer, materialArrayControlTester, MaterialArrayControlRenderer, materialEnumArrayRendererTester, MaterialEnumArrayRenderer, materialObjectControlTester, MaterialObjectRenderer, materialOneOfControlTester, MaterialOneOfRenderer, };
8
+ export * from './CombinatorProperties';
9
+ export * from './DeleteDialog';
10
+ export * from './MaterialTableControl';
11
+ export * from './TableToolbar';
12
+ export * from './ValidationIcon';
13
+ import NoBorderTableCell from './NoBorderTableCell';
14
+ export { NoBorderTableCell };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const UnwrappedComplex: {
3
+ MaterialAllOfRenderer: ({ schema, rootSchema, visible, renderers, cells, path, uischemas, uischema, }: import("@jsonforms/core").StatePropsOfCombinator) => JSX.Element;
4
+ MaterialAnyOfRenderer: ({ schema, rootSchema, indexOfFittingSchema, visible, path, renderers, cells, uischema, uischemas, }: import("@jsonforms/core").StatePropsOfCombinator) => JSX.Element;
5
+ MaterialArrayControlRenderer: (props: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
6
+ MaterialEnumArrayRenderer: ({ schema, visible, errors, path, options, data, addItem, removeItem, handleChange: _handleChange, ...otherProps }: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("@jsonforms/core").DispatchPropsOfMultiEnumControl) => JSX.Element;
7
+ MaterialObjectRenderer: ({ renderers, cells, uischemas, schema, label, path, visible, enabled, uischema, rootSchema, }: import("@jsonforms/core").StatePropsOfControlWithDetail) => JSX.Element;
8
+ MaterialOneOfRenderer: ({ handleChange, schema, path, renderers, cells, rootSchema, id, visible, indexOfFittingSchema, uischema, uischemas, data, }: import("@jsonforms/core").CombinatorRendererProps) => JSX.Element;
9
+ };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RankedTester, ControlProps } from '@jsonforms/core';
3
- export declare const MaterialBooleanControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description }: ControlProps) => JSX.Element;
3
+ export declare const MaterialBooleanControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: ControlProps) => JSX.Element;
4
4
  export declare const materialBooleanControlTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RankedTester, ControlProps } from '@jsonforms/core';
3
- export declare const MaterialBooleanToggleControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description }: ControlProps) => JSX.Element;
3
+ export declare const MaterialBooleanToggleControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: ControlProps) => JSX.Element;
4
4
  export declare const materialBooleanToggleControlTester: RankedTester;
5
5
  declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
6
  export default _default;
@@ -1,35 +1,17 @@
1
- /// <reference types="react" />
1
+ import MaterialAnyOfStringOrEnumControl, { materialAnyOfStringOrEnumControlTester } from './MaterialAnyOfStringOrEnumControl';
2
2
  import MaterialBooleanControl, { materialBooleanControlTester } from './MaterialBooleanControl';
3
3
  import MaterialBooleanToggleControl, { materialBooleanToggleControlTester } from './MaterialBooleanToggleControl';
4
- import MaterialEnumControl, { materialEnumControlTester } from './MaterialEnumControl';
5
- import MaterialNativeControl, { materialNativeControlTester } from './MaterialNativeControl';
6
4
  import MaterialDateControl, { materialDateControlTester } from './MaterialDateControl';
7
5
  import MaterialDateTimeControl, { materialDateTimeControlTester } from './MaterialDateTimeControl';
8
- import MaterialTimeControl, { materialTimeControlTester } from './MaterialTimeControl';
9
- import MaterialSliderControl, { materialSliderControlTester } from './MaterialSliderControl';
10
- import MaterialRadioGroupControl, { materialRadioGroupControlTester } from './MaterialRadioGroupControl';
6
+ import MaterialEnumControl, { materialEnumControlTester } from './MaterialEnumControl';
11
7
  import MaterialIntegerControl, { materialIntegerControlTester } from './MaterialIntegerControl';
8
+ import MaterialNativeControl, { materialNativeControlTester } from './MaterialNativeControl';
12
9
  import MaterialNumberControl, { materialNumberControlTester } from './MaterialNumberControl';
13
- import MaterialTextControl, { materialTextControlTester } from './MaterialTextControl';
14
- import MaterialAnyOfStringOrEnumControl, { materialAnyOfStringOrEnumControlTester, MaterialAnyOfStringOrEnumControl as MaterialAnyOfStringOrEnumControlUnwrapped } from './MaterialAnyOfStringOrEnumControl';
15
10
  import MaterialOneOfEnumControl, { materialOneOfEnumControlTester } from './MaterialOneOfEnumControl';
16
11
  import MaterialOneOfRadioGroupControl, { materialOneOfRadioGroupControlTester } from './MaterialOneOfRadioGroupControl';
17
- export declare const Unwrapped: {
18
- MaterialBooleanControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description }: import("@jsonforms/core").ControlProps) => JSX.Element;
19
- MaterialBooleanToggleControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description }: import("@jsonforms/core").ControlProps) => JSX.Element;
20
- MaterialEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("../mui-controls/MuiAutocomplete").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
21
- MaterialNativeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
22
- MaterialDateControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
23
- MaterialDateTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
24
- MaterialTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
25
- MaterialSliderControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
26
- MaterialRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
27
- MaterialIntegerControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
28
- MaterialNumberControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
29
- MaterialTextControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
30
- MaterialAnyOfStringOrEnumControl: typeof MaterialAnyOfStringOrEnumControlUnwrapped;
31
- MaterialOneOfEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("../mui-controls/MuiAutocomplete").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
32
- MaterialOneOfRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
33
- };
34
- export { MaterialBooleanControl, materialBooleanControlTester, MaterialBooleanToggleControl, materialBooleanToggleControlTester, MaterialEnumControl, materialEnumControlTester, MaterialNativeControl, materialNativeControlTester, MaterialDateControl, materialDateControlTester, MaterialDateTimeControl, materialDateTimeControlTester, MaterialTimeControl, materialTimeControlTester, MaterialSliderControl, materialSliderControlTester, MaterialRadioGroupControl, materialRadioGroupControlTester, MaterialIntegerControl, materialIntegerControlTester, MaterialNumberControl, materialNumberControlTester, MaterialTextControl, materialTextControlTester, MaterialAnyOfStringOrEnumControl, materialAnyOfStringOrEnumControlTester, MaterialOneOfEnumControl, materialOneOfEnumControlTester, MaterialOneOfRadioGroupControl, materialOneOfRadioGroupControlTester };
12
+ import MaterialRadioGroupControl, { materialRadioGroupControlTester } from './MaterialRadioGroupControl';
13
+ import MaterialSliderControl, { materialSliderControlTester } from './MaterialSliderControl';
14
+ import MaterialTextControl, { materialTextControlTester } from './MaterialTextControl';
15
+ import MaterialTimeControl, { materialTimeControlTester } from './MaterialTimeControl';
16
+ export { MaterialAnyOfStringOrEnumControl, materialAnyOfStringOrEnumControlTester, MaterialBooleanControl, materialBooleanControlTester, MaterialBooleanToggleControl, materialBooleanToggleControlTester, MaterialDateControl, materialDateControlTester, MaterialDateTimeControl, materialDateTimeControlTester, MaterialEnumControl, materialEnumControlTester, MaterialIntegerControl, materialIntegerControlTester, MaterialNativeControl, materialNativeControlTester, MaterialNumberControl, materialNumberControlTester, MaterialOneOfEnumControl, materialOneOfEnumControlTester, MaterialOneOfRadioGroupControl, materialOneOfRadioGroupControlTester, MaterialRadioGroupControl, materialRadioGroupControlTester, MaterialSliderControl, materialSliderControlTester, MaterialTextControl, materialTextControlTester, MaterialTimeControl, materialTimeControlTester, };
35
17
  export * from './MaterialInputControl';
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { MaterialAnyOfStringOrEnumControl } from './MaterialAnyOfStringOrEnumControl';
3
+ export declare const UnwrappedControls: {
4
+ MaterialAnyOfStringOrEnumControl: typeof MaterialAnyOfStringOrEnumControl;
5
+ MaterialBooleanControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: import("@jsonforms/core").ControlProps) => JSX.Element;
6
+ MaterialBooleanToggleControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: import("@jsonforms/core").ControlProps) => JSX.Element;
7
+ MaterialDateControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
8
+ MaterialDateTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
9
+ MaterialEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("..").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
10
+ MaterialIntegerControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
11
+ MaterialNativeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
12
+ MaterialNumberControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
13
+ MaterialOneOfEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("..").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
14
+ MaterialOneOfRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
15
+ MaterialSliderControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
16
+ MaterialRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
17
+ MaterialTextControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
18
+ MaterialTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
19
+ };
package/lib/index.d.ts CHANGED
@@ -1,9 +1,42 @@
1
+ /// <reference types="react" />
1
2
  import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry } from '@jsonforms/core';
3
+ export * from './additional';
4
+ export * from './cells';
2
5
  export * from './complex';
3
6
  export * from './controls';
4
7
  export * from './layouts';
5
- export * from './cells';
6
8
  export * from './mui-controls';
7
9
  export * from './util';
8
10
  export declare const materialRenderers: JsonFormsRendererRegistryEntry[];
9
11
  export declare const materialCells: JsonFormsCellRendererRegistryEntry[];
12
+ export declare const Unwrapped: {
13
+ ExpandPanelRenderer: import("react").MemoExoticComponent<(props: import("./layouts/ExpandPanelRenderer").ExpandPanelProps) => JSX.Element>;
14
+ MaterialArrayLayout: ({ visible, addItem, ...props }: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
15
+ MaterialCategorizationLayout: (props: import("./layouts/MaterialCategorizationLayout").MaterialCategorizationLayoutRendererProps) => JSX.Element;
16
+ MaterialGroupLayout: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
17
+ MaterialHorizontalLayout: ({ uischema, renderers, cells, schema, path, enabled, visible, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
18
+ MaterialVerticalLayout: ({ uischema, schema, path, enabled, visible, renderers, cells, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
19
+ MaterialAnyOfStringOrEnumControl: typeof import("./controls/MaterialAnyOfStringOrEnumControl").MaterialAnyOfStringOrEnumControl;
20
+ MaterialBooleanControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: import("@jsonforms/core").ControlProps) => JSX.Element;
21
+ MaterialBooleanToggleControl: ({ data, visible, label, id, enabled, uischema, schema, rootSchema, handleChange, errors, path, config, description, }: import("@jsonforms/core").ControlProps) => JSX.Element;
22
+ MaterialDateControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
23
+ MaterialDateTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
24
+ MaterialEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("./mui-controls").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
25
+ MaterialIntegerControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
26
+ MaterialNativeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
27
+ MaterialNumberControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
28
+ MaterialOneOfEnumControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("./mui-controls").WithOptionLabel & import("@jsonforms/react").TranslateProps) => JSX.Element;
29
+ MaterialOneOfRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
30
+ MaterialSliderControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
31
+ MaterialRadioGroupControl: (props: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum) => JSX.Element;
32
+ MaterialTextControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
33
+ MaterialTimeControl: (props: import("@jsonforms/core").ControlProps) => JSX.Element;
34
+ MaterialAllOfRenderer: ({ schema, rootSchema, visible, renderers, cells, path, uischemas, uischema, }: import("@jsonforms/core").StatePropsOfCombinator) => JSX.Element;
35
+ MaterialAnyOfRenderer: ({ schema, rootSchema, indexOfFittingSchema, visible, path, renderers, cells, uischema, uischemas, }: import("@jsonforms/core").StatePropsOfCombinator) => JSX.Element;
36
+ MaterialArrayControlRenderer: (props: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
37
+ MaterialEnumArrayRenderer: ({ schema, visible, errors, path, options, data, addItem, removeItem, handleChange: _handleChange, ...otherProps }: import("@jsonforms/core").ControlProps & import("@jsonforms/core").OwnPropsOfEnum & import("@jsonforms/core").DispatchPropsOfMultiEnumControl) => JSX.Element;
38
+ MaterialObjectRenderer: ({ renderers, cells, uischemas, schema, label, path, visible, enabled, uischema, rootSchema, }: import("@jsonforms/core").StatePropsOfControlWithDetail) => JSX.Element;
39
+ MaterialOneOfRenderer: ({ handleChange, schema, path, renderers, cells, rootSchema, id, visible, indexOfFittingSchema, uischema, uischemas, data, }: import("@jsonforms/core").CombinatorRendererProps) => JSX.Element;
40
+ MaterialLabelRenderer: ({ text, visible }: import("@jsonforms/core").LabelProps) => JSX.Element;
41
+ MaterialListWithDetailRenderer: ({ uischemas, schema, uischema, path, errors, visible, label, required, removeItems, addItem, data, renderers, cells, config, rootSchema, translations, }: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
42
+ };