@jsonforms/material-renderers 3.3.0-alpha.1 → 3.3.0-beta.1

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 (108) hide show
  1. package/lib/additional/ListWithDetailMasterItem.d.ts +5 -5
  2. package/lib/additional/MaterialLabelRenderer.d.ts +13 -13
  3. package/lib/additional/MaterialListWithDetailRenderer.d.ts +6 -6
  4. package/lib/additional/index.d.ts +4 -4
  5. package/lib/additional/unwrapped.d.ts +5 -5
  6. package/lib/cells/CustomizableCells.d.ts +9 -9
  7. package/lib/cells/MaterialBooleanCell.d.ts +6 -6
  8. package/lib/cells/MaterialBooleanToggleCell.d.ts +6 -6
  9. package/lib/cells/MaterialDateCell.d.ts +7 -7
  10. package/lib/cells/MaterialEnumCell.d.ts +11 -11
  11. package/lib/cells/MaterialIntegerCell.d.ts +6 -6
  12. package/lib/cells/MaterialNumberCell.d.ts +10 -10
  13. package/lib/cells/MaterialNumberFormatCell.d.ts +10 -10
  14. package/lib/cells/MaterialOneOfEnumCell.d.ts +11 -11
  15. package/lib/cells/MaterialTextCell.d.ts +10 -10
  16. package/lib/cells/MaterialTimeCell.d.ts +6 -6
  17. package/lib/cells/index.d.ts +13 -13
  18. package/lib/complex/CombinatorProperties.d.ts +12 -12
  19. package/lib/complex/DeleteDialog.d.ts +15 -15
  20. package/lib/complex/MaterialAllOfRenderer.d.ts +6 -6
  21. package/lib/complex/MaterialAnyOfRenderer.d.ts +6 -6
  22. package/lib/complex/MaterialArrayControlRenderer.d.ts +6 -6
  23. package/lib/complex/MaterialEnumArrayRenderer.d.ts +6 -6
  24. package/lib/complex/MaterialObjectRenderer.d.ts +6 -6
  25. package/lib/complex/MaterialOneOfRenderer.d.ts +9 -9
  26. package/lib/complex/MaterialTableControl.d.ts +27 -27
  27. package/lib/complex/NoBorderTableCell.d.ts +3 -3
  28. package/lib/complex/TabSwitchConfirmDialog.d.ts +9 -9
  29. package/lib/complex/TableToolbar.d.ts +17 -17
  30. package/lib/complex/ValidationIcon.d.ts +7 -7
  31. package/lib/complex/index.d.ts +14 -14
  32. package/lib/complex/unwrapped.d.ts +9 -9
  33. package/lib/controls/MaterialAnyOfStringOrEnumControl.d.ts +9 -9
  34. package/lib/controls/MaterialBooleanControl.d.ts +6 -6
  35. package/lib/controls/MaterialBooleanToggleControl.d.ts +6 -6
  36. package/lib/controls/MaterialDateControl.d.ts +6 -6
  37. package/lib/controls/MaterialDateTimeControl.d.ts +6 -6
  38. package/lib/controls/MaterialEnumControl.d.ts +8 -8
  39. package/lib/controls/MaterialInputControl.d.ts +6 -6
  40. package/lib/controls/MaterialIntegerControl.d.ts +6 -6
  41. package/lib/controls/MaterialNativeControl.d.ts +6 -6
  42. package/lib/controls/MaterialNumberControl.d.ts +6 -6
  43. package/lib/controls/MaterialOneOfEnumControl.d.ts +8 -8
  44. package/lib/controls/MaterialOneOfRadioGroupControl.d.ts +6 -6
  45. package/lib/controls/MaterialRadioGroup.d.ts +3 -3
  46. package/lib/controls/MaterialRadioGroupControl.d.ts +6 -6
  47. package/lib/controls/MaterialSliderControl.d.ts +6 -6
  48. package/lib/controls/MaterialTextControl.d.ts +6 -6
  49. package/lib/controls/MaterialTimeControl.d.ts +6 -6
  50. package/lib/controls/index.d.ts +17 -17
  51. package/lib/controls/unwrapped.d.ts +19 -19
  52. package/lib/index.d.ts +42 -42
  53. package/lib/jsonforms-react-material.cjs.js +144 -83
  54. package/lib/jsonforms-react-material.cjs.js.map +1 -1
  55. package/lib/jsonforms-react-material.esm.js +149 -85
  56. package/lib/jsonforms-react-material.esm.js.map +1 -1
  57. package/lib/layouts/ArrayToolbar.d.ts +13 -13
  58. package/lib/layouts/ExpandPanelRenderer.d.ts +58 -54
  59. package/lib/layouts/MaterialArrayLayout.d.ts +3 -3
  60. package/lib/layouts/MaterialArrayLayoutRenderer.d.ts +6 -6
  61. package/lib/layouts/MaterialCategorizationLayout.d.ts +18 -18
  62. package/lib/layouts/MaterialCategorizationStepperLayout.d.ts +14 -14
  63. package/lib/layouts/MaterialGroupLayout.d.ts +7 -7
  64. package/lib/layouts/MaterialHorizontalLayout.d.ts +10 -10
  65. package/lib/layouts/MaterialVerticalLayout.d.ts +10 -10
  66. package/lib/layouts/index.d.ts +8 -8
  67. package/lib/layouts/unwrapped.d.ts +10 -10
  68. package/lib/mui-controls/MuiAutocomplete.d.ts +9 -9
  69. package/lib/mui-controls/MuiCheckbox.d.ts +8 -8
  70. package/lib/mui-controls/MuiInputInteger.d.ts +4 -4
  71. package/lib/mui-controls/MuiInputNumber.d.ts +4 -4
  72. package/lib/mui-controls/MuiInputNumberFormat.d.ts +4 -4
  73. package/lib/mui-controls/MuiInputText.d.ts +10 -10
  74. package/lib/mui-controls/MuiInputTime.d.ts +4 -4
  75. package/lib/mui-controls/MuiSelect.d.ts +5 -5
  76. package/lib/mui-controls/MuiToggle.d.ts +8 -8
  77. package/lib/mui-controls/index.d.ts +9 -9
  78. package/lib/util/datejs.d.ts +5 -5
  79. package/lib/util/debounce.d.ts +1 -1
  80. package/lib/util/focus.d.ts +1 -1
  81. package/lib/util/i18nDefaults.d.ts +3 -3
  82. package/lib/util/index.d.ts +6 -6
  83. package/lib/util/layout.d.ts +17 -17
  84. package/lib/util/theme.d.ts +17 -17
  85. package/package.json +6 -6
  86. package/src/additional/ListWithDetailMasterItem.tsx +13 -6
  87. package/src/additional/MaterialLabelRenderer.tsx +5 -6
  88. package/src/additional/MaterialListWithDetailRenderer.tsx +10 -4
  89. package/src/complex/MaterialAllOfRenderer.tsx +14 -12
  90. package/src/complex/MaterialAnyOfRenderer.tsx +7 -3
  91. package/src/complex/MaterialArrayControlRenderer.tsx +6 -3
  92. package/src/complex/MaterialEnumArrayRenderer.tsx +56 -55
  93. package/src/complex/MaterialObjectRenderer.tsx +14 -12
  94. package/src/complex/MaterialOneOfRenderer.tsx +7 -3
  95. package/src/complex/MaterialTableControl.tsx +34 -33
  96. package/src/controls/MaterialBooleanControl.tsx +7 -8
  97. package/src/controls/MaterialBooleanToggleControl.tsx +7 -8
  98. package/src/controls/MaterialInputControl.tsx +32 -30
  99. package/src/controls/MaterialNativeControl.tsx +23 -21
  100. package/src/controls/MaterialRadioGroup.tsx +39 -38
  101. package/src/controls/MaterialSliderControl.tsx +44 -43
  102. package/src/layouts/ExpandPanelRenderer.tsx +48 -11
  103. package/src/layouts/MaterialArrayLayoutRenderer.tsx +6 -4
  104. package/src/layouts/MaterialCategorizationLayout.tsx +7 -3
  105. package/src/layouts/MaterialCategorizationStepperLayout.tsx +8 -3
  106. package/src/layouts/MaterialGroupLayout.tsx +17 -14
  107. package/src/mui-controls/MuiAutocomplete.tsx +6 -3
  108. package/src/util/layout.tsx +16 -18
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { ArrayTranslations } from '@jsonforms/core';
3
- export interface ArrayLayoutToolbarProps {
4
- label: string;
5
- description: string;
6
- errors: string;
7
- path: string;
8
- enabled: boolean;
9
- addItem(path: string, data: any): () => void;
10
- createDefault(): any;
11
- translations: ArrayTranslations;
12
- }
13
- export declare const ArrayLayoutToolbar: React.NamedExoticComponent<ArrayLayoutToolbarProps>;
1
+ import React from 'react';
2
+ import { ArrayTranslations } from '@jsonforms/core';
3
+ export interface ArrayLayoutToolbarProps {
4
+ label: string;
5
+ description: string;
6
+ errors: string;
7
+ path: string;
8
+ enabled: boolean;
9
+ addItem(path: string, data: any): () => void;
10
+ createDefault(): any;
11
+ translations: ArrayTranslations;
12
+ }
13
+ export declare const ArrayLayoutToolbar: React.NamedExoticComponent<ArrayLayoutToolbarProps>;
@@ -1,54 +1,58 @@
1
- import React, { ComponentType, Dispatch, ReducerAction } from 'react';
2
- import { ControlElement, JsonFormsRendererRegistryEntry, JsonSchema, JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, ArrayTranslations } from '@jsonforms/core';
3
- interface OwnPropsOfExpandPanel {
4
- enabled: boolean;
5
- index: number;
6
- path: string;
7
- uischema: ControlElement;
8
- schema: JsonSchema;
9
- expanded: boolean;
10
- renderers?: JsonFormsRendererRegistryEntry[];
11
- cells?: JsonFormsCellRendererRegistryEntry[];
12
- uischemas?: JsonFormsUISchemaRegistryEntry[];
13
- rootSchema: JsonSchema;
14
- enableMoveUp: boolean;
15
- enableMoveDown: boolean;
16
- config: any;
17
- childLabelProp?: string;
18
- handleExpansion(panel: string): (event: any, expanded: boolean) => void;
19
- translations: ArrayTranslations;
20
- }
21
- interface StatePropsOfExpandPanel extends OwnPropsOfExpandPanel {
22
- childLabel: string;
23
- childPath: string;
24
- enableMoveUp: boolean;
25
- enableMoveDown: boolean;
26
- }
27
- /**
28
- * Dispatch props of a table control
29
- */
30
- export interface DispatchPropsOfExpandPanel {
31
- removeItems(path: string, toDelete: number[]): (event: any) => void;
32
- moveUp(path: string, toMove: number): (event: any) => void;
33
- moveDown(path: string, toMove: number): (event: any) => void;
34
- }
35
- export interface ExpandPanelProps extends StatePropsOfExpandPanel, DispatchPropsOfExpandPanel {
36
- }
37
- export declare const ExpandPanelRenderer: React.MemoExoticComponent<(props: ExpandPanelProps) => React.JSX.Element>;
38
- /**
39
- * Maps state to dispatch properties of an expand pandel control.
40
- *
41
- * @param dispatch the store's dispatch method
42
- * @returns {DispatchPropsOfArrayControl} dispatch props of an expand panel control
43
- */
44
- export declare const ctxDispatchToExpandPanelProps: (dispatch: Dispatch<ReducerAction<any>>) => DispatchPropsOfExpandPanel;
45
- /**
46
- * Map state to control props.
47
- * @param state the JSON Forms state
48
- * @param ownProps any own props
49
- * @returns {StatePropsOfControl} state props for a control
50
- */
51
- export declare const withContextToExpandPanelProps: (Component: ComponentType<ExpandPanelProps>) => ComponentType<OwnPropsOfExpandPanel>;
52
- export declare const withJsonFormsExpandPanelProps: (Component: ComponentType<ExpandPanelProps>) => ComponentType<OwnPropsOfExpandPanel>;
53
- declare const _default: React.ComponentType<OwnPropsOfExpandPanel>;
54
- export default _default;
1
+ import React, { ComponentType, Dispatch, ReducerAction } from 'react';
2
+ import { JsonFormsStateContext } from '@jsonforms/react';
3
+ import { ControlElement, JsonFormsRendererRegistryEntry, JsonSchema, JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, ArrayTranslations } from '@jsonforms/core';
4
+ interface OwnPropsOfExpandPanel {
5
+ enabled: boolean;
6
+ index: number;
7
+ path: string;
8
+ uischema: ControlElement;
9
+ schema: JsonSchema;
10
+ expanded: boolean;
11
+ renderers?: JsonFormsRendererRegistryEntry[];
12
+ cells?: JsonFormsCellRendererRegistryEntry[];
13
+ uischemas?: JsonFormsUISchemaRegistryEntry[];
14
+ rootSchema: JsonSchema;
15
+ enableMoveUp: boolean;
16
+ enableMoveDown: boolean;
17
+ config: any;
18
+ childLabelProp?: string;
19
+ handleExpansion(panel: string): (event: any, expanded: boolean) => void;
20
+ translations: ArrayTranslations;
21
+ }
22
+ interface StatePropsOfExpandPanel extends OwnPropsOfExpandPanel {
23
+ childLabel: string;
24
+ childPath: string;
25
+ enableMoveUp: boolean;
26
+ enableMoveDown: boolean;
27
+ }
28
+ /**
29
+ * Dispatch props of a table control
30
+ */
31
+ export interface DispatchPropsOfExpandPanel {
32
+ removeItems(path: string, toDelete: number[]): (event: any) => void;
33
+ moveUp(path: string, toMove: number): (event: any) => void;
34
+ moveDown(path: string, toMove: number): (event: any) => void;
35
+ }
36
+ export interface ExpandPanelProps extends StatePropsOfExpandPanel, DispatchPropsOfExpandPanel {
37
+ }
38
+ export declare const ExpandPanelRenderer: React.MemoExoticComponent<(props: ExpandPanelProps) => React.JSX.Element>;
39
+ /**
40
+ * Maps state to dispatch properties of an expand pandel control.
41
+ *
42
+ * @param dispatch the store's dispatch method
43
+ * @returns {DispatchPropsOfArrayControl} dispatch props of an expand panel control
44
+ */
45
+ export declare const ctxDispatchToExpandPanelProps: (dispatch: Dispatch<ReducerAction<any>>) => DispatchPropsOfExpandPanel;
46
+ /**
47
+ * Map state to control props.
48
+ * @param state the JSON Forms state
49
+ * @param ownProps any own props
50
+ * @returns {StatePropsOfControl} state props for a control
51
+ */
52
+ export declare const withContextToExpandPanelProps: (Component: ComponentType<ExpandPanelProps>) => ComponentType<{
53
+ ctx: JsonFormsStateContext;
54
+ props: OwnPropsOfExpandPanel;
55
+ }>;
56
+ export declare const withJsonFormsExpandPanelProps: (Component: ComponentType<ExpandPanelProps>) => ComponentType<OwnPropsOfExpandPanel>;
57
+ declare const _default: React.ComponentType<OwnPropsOfExpandPanel>;
58
+ export default _default;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { ArrayLayoutProps } from '@jsonforms/core';
3
- export declare const MaterialArrayLayout: React.MemoExoticComponent<(props: ArrayLayoutProps) => React.JSX.Element>;
1
+ import React from 'react';
2
+ import { ArrayLayoutProps } from '@jsonforms/core';
3
+ export declare const MaterialArrayLayout: React.MemoExoticComponent<(props: ArrayLayoutProps) => React.JSX.Element>;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ArrayLayoutProps, RankedTester } from '@jsonforms/core';
3
- export declare const MaterialArrayLayoutRenderer: ({ visible, addItem, ...props }: ArrayLayoutProps) => React.JSX.Element;
4
- export declare const materialArrayLayoutTester: RankedTester;
5
- declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
- export default _default;
1
+ import React from 'react';
2
+ import { ArrayLayoutProps, RankedTester } from '@jsonforms/core';
3
+ export declare const MaterialArrayLayoutRenderer: ({ visible, addItem, ...props }: ArrayLayoutProps) => React.JSX.Element;
4
+ export declare const materialArrayLayoutTester: RankedTester;
5
+ declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
6
+ export default _default;
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import { RankedTester, StatePropsOfLayout, Tester } from '@jsonforms/core';
3
- import { TranslateProps } from '@jsonforms/react';
4
- import { AjvProps } from '../util/layout';
5
- export declare const isSingleLevelCategorization: Tester;
6
- export declare const materialCategorizationTester: RankedTester;
7
- export interface CategorizationState {
8
- activeCategory: number;
9
- }
10
- export interface MaterialCategorizationLayoutRendererProps extends StatePropsOfLayout, AjvProps, TranslateProps {
11
- selected?: number;
12
- ownState?: boolean;
13
- data?: any;
14
- onChange?(selected: number, prevSelected: number): void;
15
- }
16
- export declare const MaterialCategorizationLayoutRenderer: (props: MaterialCategorizationLayoutRendererProps) => React.JSX.Element;
17
- declare const _default: (props: MaterialCategorizationLayoutRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => React.JSX.Element;
18
- export default _default;
1
+ import React from 'react';
2
+ import { RankedTester, StatePropsOfLayout, Tester } from '@jsonforms/core';
3
+ import { TranslateProps } from '@jsonforms/react';
4
+ import { AjvProps } from '../util/layout';
5
+ export declare const isSingleLevelCategorization: Tester;
6
+ export declare const materialCategorizationTester: RankedTester;
7
+ export interface CategorizationState {
8
+ activeCategory: number;
9
+ }
10
+ export interface MaterialCategorizationLayoutRendererProps extends StatePropsOfLayout, AjvProps, TranslateProps {
11
+ selected?: number;
12
+ ownState?: boolean;
13
+ data?: any;
14
+ onChange?(selected: number, prevSelected: number): void;
15
+ }
16
+ export declare const MaterialCategorizationLayoutRenderer: (props: MaterialCategorizationLayoutRendererProps) => React.JSX.Element;
17
+ declare const _default: (props: MaterialCategorizationLayoutRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => React.JSX.Element;
18
+ export default _default;
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { RankedTester, StatePropsOfLayout } from '@jsonforms/core';
3
- import { TranslateProps } from '@jsonforms/react';
4
- import { AjvProps } from '../util/layout';
5
- export declare const materialCategorizationStepperTester: RankedTester;
6
- export interface CategorizationStepperState {
7
- activeCategory: number;
8
- }
9
- export interface MaterialCategorizationStepperLayoutRendererProps extends StatePropsOfLayout, AjvProps, TranslateProps {
10
- data: any;
11
- }
12
- export declare const MaterialCategorizationStepperLayoutRenderer: (props: MaterialCategorizationStepperLayoutRendererProps) => React.JSX.Element;
13
- declare const _default: (props: MaterialCategorizationStepperLayoutRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => React.JSX.Element;
14
- export default _default;
1
+ import React from 'react';
2
+ import { RankedTester, StatePropsOfLayout } from '@jsonforms/core';
3
+ import { TranslateProps } from '@jsonforms/react';
4
+ import { AjvProps } from '../util/layout';
5
+ export declare const materialCategorizationStepperTester: RankedTester;
6
+ export interface CategorizationStepperState {
7
+ activeCategory: number;
8
+ }
9
+ export interface MaterialCategorizationStepperLayoutRendererProps extends StatePropsOfLayout, AjvProps, TranslateProps {
10
+ data: any;
11
+ }
12
+ export declare const MaterialCategorizationStepperLayoutRenderer: (props: MaterialCategorizationStepperLayoutRendererProps) => React.JSX.Element;
13
+ declare const _default: (props: MaterialCategorizationStepperLayoutRendererProps & import("@jsonforms/core").OwnPropsOfLayout) => React.JSX.Element;
14
+ export default _default;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { LayoutProps, RankedTester } from '@jsonforms/core';
3
- export declare const groupTester: RankedTester;
4
- export declare const MaterializedGroupLayoutRenderer: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: LayoutProps) => React.JSX.Element;
5
- declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
6
- export default _default;
7
- export declare const materialGroupTester: RankedTester;
1
+ import React from 'react';
2
+ import { LayoutProps, RankedTester } from '@jsonforms/core';
3
+ export declare const groupTester: RankedTester;
4
+ export declare const MaterializedGroupLayoutRenderer: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: LayoutProps) => React.JSX.Element;
5
+ declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
6
+ export default _default;
7
+ export declare const materialGroupTester: RankedTester;
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { LayoutProps, RankedTester } from '@jsonforms/core';
3
- /**
4
- * Default tester for a horizontal layout.
5
- * @type {RankedTester}
6
- */
7
- export declare const materialHorizontalLayoutTester: RankedTester;
8
- export declare const MaterialHorizontalLayoutRenderer: ({ uischema, renderers, cells, schema, path, enabled, visible, }: LayoutProps) => React.JSX.Element;
9
- declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
10
- export default _default;
1
+ import React from 'react';
2
+ import { LayoutProps, RankedTester } from '@jsonforms/core';
3
+ /**
4
+ * Default tester for a horizontal layout.
5
+ * @type {RankedTester}
6
+ */
7
+ export declare const materialHorizontalLayoutTester: RankedTester;
8
+ export declare const MaterialHorizontalLayoutRenderer: ({ uischema, renderers, cells, schema, path, enabled, visible, }: LayoutProps) => React.JSX.Element;
9
+ declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
10
+ export default _default;
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { LayoutProps, RankedTester } from '@jsonforms/core';
3
- /**
4
- * Default tester for a vertical layout.
5
- * @type {RankedTester}
6
- */
7
- export declare const materialVerticalLayoutTester: RankedTester;
8
- export declare const MaterialVerticalLayoutRenderer: ({ uischema, schema, path, enabled, visible, renderers, cells, }: LayoutProps) => React.JSX.Element;
9
- declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
10
- export default _default;
1
+ import React from 'react';
2
+ import { LayoutProps, RankedTester } from '@jsonforms/core';
3
+ /**
4
+ * Default tester for a vertical layout.
5
+ * @type {RankedTester}
6
+ */
7
+ export declare const materialVerticalLayoutTester: RankedTester;
8
+ export declare const MaterialVerticalLayoutRenderer: ({ uischema, schema, path, enabled, visible, renderers, cells, }: LayoutProps) => React.JSX.Element;
9
+ declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
10
+ export default _default;
@@ -1,8 +1,8 @@
1
- import ExpandPanelRenderer, { ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps } from './ExpandPanelRenderer';
2
- import MaterialGroupLayout, { materialGroupTester } from './MaterialGroupLayout';
3
- import MaterialHorizontalLayout, { materialHorizontalLayoutTester } from './MaterialHorizontalLayout';
4
- import MaterialVerticalLayout, { materialVerticalLayoutTester } from './MaterialVerticalLayout';
5
- import MaterialCategorizationLayout, { materialCategorizationTester } from './MaterialCategorizationLayout';
6
- import MaterialArrayLayout, { materialArrayLayoutTester } from './MaterialArrayLayoutRenderer';
7
- export { ExpandPanelRenderer, ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps, MaterialArrayLayout, materialArrayLayoutTester, MaterialCategorizationLayout, materialCategorizationTester, MaterialGroupLayout, materialGroupTester, MaterialHorizontalLayout, materialHorizontalLayoutTester, MaterialVerticalLayout, materialVerticalLayoutTester, };
8
- export * from './ArrayToolbar';
1
+ import ExpandPanelRenderer, { ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps } from './ExpandPanelRenderer';
2
+ import MaterialGroupLayout, { materialGroupTester } from './MaterialGroupLayout';
3
+ import MaterialHorizontalLayout, { materialHorizontalLayoutTester } from './MaterialHorizontalLayout';
4
+ import MaterialVerticalLayout, { materialVerticalLayoutTester } from './MaterialVerticalLayout';
5
+ import MaterialCategorizationLayout, { materialCategorizationTester } from './MaterialCategorizationLayout';
6
+ import MaterialArrayLayout, { materialArrayLayoutTester } from './MaterialArrayLayoutRenderer';
7
+ export { ExpandPanelRenderer, ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps, MaterialArrayLayout, materialArrayLayoutTester, MaterialCategorizationLayout, materialCategorizationTester, MaterialGroupLayout, materialGroupTester, MaterialHorizontalLayout, materialHorizontalLayoutTester, MaterialVerticalLayout, materialVerticalLayoutTester, };
8
+ export * from './ArrayToolbar';
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
- export declare const UnwrappedLayouts: {
3
- ExpandPanelRenderer: import("react").MemoExoticComponent<(props: import("./ExpandPanelRenderer").ExpandPanelProps) => import("react").JSX.Element>;
4
- MaterialArrayLayout: ({ visible, addItem, ...props }: import("@jsonforms/core").ArrayLayoutProps) => import("react").JSX.Element;
5
- MaterialCategorizationLayout: (props: import("./MaterialCategorizationLayout").MaterialCategorizationLayoutRendererProps) => import("react").JSX.Element;
6
- MaterialGroupLayout: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
7
- MaterialHorizontalLayout: ({ uischema, renderers, cells, schema, path, enabled, visible, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
8
- MaterialVerticalLayout: ({ uischema, schema, path, enabled, visible, renderers, cells, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
9
- };
10
- export * from './ArrayToolbar';
1
+ /// <reference types="react" />
2
+ export declare const UnwrappedLayouts: {
3
+ ExpandPanelRenderer: import("react").MemoExoticComponent<(props: import("./ExpandPanelRenderer").ExpandPanelProps) => import("react").JSX.Element>;
4
+ MaterialArrayLayout: ({ visible, addItem, ...props }: import("@jsonforms/core").ArrayLayoutProps) => import("react").JSX.Element;
5
+ MaterialCategorizationLayout: (props: import("./MaterialCategorizationLayout").MaterialCategorizationLayoutRendererProps) => import("react").JSX.Element;
6
+ MaterialGroupLayout: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
7
+ MaterialHorizontalLayout: ({ uischema, renderers, cells, schema, path, enabled, visible, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
8
+ MaterialVerticalLayout: ({ uischema, schema, path, enabled, visible, renderers, cells, }: import("@jsonforms/core").LayoutProps) => import("react").JSX.Element;
9
+ };
10
+ export * from './ArrayToolbar';
@@ -1,9 +1,9 @@
1
- import React, { ReactNode } from 'react';
2
- import { ControlProps, EnumCellProps, EnumOption, WithClassname } from '@jsonforms/core';
3
- import { AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
4
- export interface WithOptionLabel {
5
- getOptionLabel?(option: EnumOption): string;
6
- renderOption?(props: React.HTMLAttributes<HTMLLIElement>, option: EnumOption, state: AutocompleteRenderOptionState): ReactNode;
7
- filterOptions?(options: EnumOption[], state: FilterOptionsState<EnumOption>): EnumOption[];
8
- }
9
- export declare const MuiAutocomplete: (props: ControlProps & EnumCellProps & WithClassname & WithOptionLabel) => React.JSX.Element;
1
+ import React, { ReactNode } from 'react';
2
+ import { ControlProps, EnumCellProps, EnumOption, WithClassname } from '@jsonforms/core';
3
+ import { AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
4
+ export interface WithOptionLabel {
5
+ getOptionLabel?(option: EnumOption): string;
6
+ renderOption?(props: React.HTMLAttributes<HTMLLIElement>, option: EnumOption, state: AutocompleteRenderOptionState): ReactNode;
7
+ filterOptions?(options: EnumOption[], state: FilterOptionsState<EnumOption>): EnumOption[];
8
+ }
9
+ export declare const MuiAutocomplete: (props: ControlProps & EnumCellProps & WithClassname & WithOptionLabel) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { InputProps } from '@mui/material';
4
- interface MuiCheckboxInputProps {
5
- inputProps?: InputProps['inputProps'];
6
- }
7
- export declare const MuiCheckbox: React.NamedExoticComponent<CellProps & WithClassname & MuiCheckboxInputProps>;
8
- export {};
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { InputProps } from '@mui/material';
4
+ interface MuiCheckboxInputProps {
5
+ inputProps?: InputProps['inputProps'];
6
+ }
7
+ export declare const MuiCheckbox: React.NamedExoticComponent<CellProps & WithClassname & MuiCheckboxInputProps>;
8
+ export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { WithInputProps } from '../util';
4
- export declare const MuiInputInteger: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { WithInputProps } from '../util';
4
+ export declare const MuiInputInteger: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { WithInputProps } from '../util';
4
- export declare const MuiInputNumber: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { WithInputProps } from '../util';
4
+ export declare const MuiInputNumber: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { CellProps, Formatted, WithClassname } from '@jsonforms/core';
3
- import { WithInputProps } from '../util';
4
- export declare const MuiInputNumberFormat: React.NamedExoticComponent<CellProps & WithClassname & Formatted<number> & WithInputProps>;
1
+ import React from 'react';
2
+ import { CellProps, Formatted, WithClassname } from '@jsonforms/core';
3
+ import { WithInputProps } from '../util';
4
+ export declare const MuiInputNumberFormat: React.NamedExoticComponent<CellProps & WithClassname & Formatted<number> & WithInputProps>;
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { InputProps } from '@mui/material';
4
- import { WithInputProps } from '../util';
5
- interface MuiTextInputProps {
6
- muiInputProps?: InputProps['inputProps'];
7
- inputComponent?: InputProps['inputComponent'];
8
- }
9
- export declare const MuiInputText: React.NamedExoticComponent<CellProps & WithClassname & MuiTextInputProps & WithInputProps>;
10
- export {};
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { InputProps } from '@mui/material';
4
+ import { WithInputProps } from '../util';
5
+ interface MuiTextInputProps {
6
+ muiInputProps?: InputProps['inputProps'];
7
+ inputComponent?: InputProps['inputComponent'];
8
+ }
9
+ export declare const MuiInputText: React.NamedExoticComponent<CellProps & WithClassname & MuiTextInputProps & WithInputProps>;
10
+ export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { WithInputProps } from '../util';
4
- export declare const MuiInputTime: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { WithInputProps } from '../util';
4
+ export declare const MuiInputTime: React.NamedExoticComponent<CellProps & WithClassname & WithInputProps>;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { EnumCellProps, WithClassname } from '@jsonforms/core';
3
- import { TranslateProps } from '@jsonforms/react';
4
- import { WithInputProps } from '../util';
5
- export declare const MuiSelect: React.NamedExoticComponent<EnumCellProps & WithClassname & TranslateProps & WithInputProps>;
1
+ import React from 'react';
2
+ import { EnumCellProps, WithClassname } from '@jsonforms/core';
3
+ import { TranslateProps } from '@jsonforms/react';
4
+ import { WithInputProps } from '../util';
5
+ export declare const MuiSelect: React.NamedExoticComponent<EnumCellProps & WithClassname & TranslateProps & WithInputProps>;
@@ -1,8 +1,8 @@
1
- import React from 'react';
2
- import { CellProps, WithClassname } from '@jsonforms/core';
3
- import { InputProps } from '@mui/material';
4
- interface MuiToggleInputProps {
5
- inputProps?: InputProps['inputProps'];
6
- }
7
- export declare const MuiToggle: React.NamedExoticComponent<CellProps & WithClassname & MuiToggleInputProps>;
8
- export {};
1
+ import React from 'react';
2
+ import { CellProps, WithClassname } from '@jsonforms/core';
3
+ import { InputProps } from '@mui/material';
4
+ interface MuiToggleInputProps {
5
+ inputProps?: InputProps['inputProps'];
6
+ }
7
+ export declare const MuiToggle: React.NamedExoticComponent<CellProps & WithClassname & MuiToggleInputProps>;
8
+ export {};
@@ -1,9 +1,9 @@
1
- export * from './MuiAutocomplete';
2
- export * from './MuiCheckbox';
3
- export * from './MuiInputInteger';
4
- export * from './MuiInputNumber';
5
- export * from './MuiInputNumberFormat';
6
- export * from './MuiInputText';
7
- export * from './MuiInputTime';
8
- export * from './MuiSelect';
9
- export * from './MuiToggle';
1
+ export * from './MuiAutocomplete';
2
+ export * from './MuiCheckbox';
3
+ export * from './MuiInputInteger';
4
+ export * from './MuiInputNumber';
5
+ export * from './MuiInputNumberFormat';
6
+ export * from './MuiInputText';
7
+ export * from './MuiInputTime';
8
+ export * from './MuiSelect';
9
+ export * from './MuiToggle';
@@ -1,5 +1,5 @@
1
- import dayjs from 'dayjs';
2
- export declare const createOnChangeHandler: (path: string, handleChange: (path: string, value: any) => void, saveFormat: string) => (value: dayjs.Dayjs) => void;
3
- export declare const createOnBlurHandler: (path: string, handleChange: (path: string, value: any) => void, format: string, saveFormat: string, rerenderChild: () => void, onBlur: () => void) => (e: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement, Element>) => void;
4
- export declare const formatDate: (date: dayjs.Dayjs, saveFormat: string) => string;
5
- export declare const getData: (data: any, saveFormat: string | undefined) => dayjs.Dayjs | null;
1
+ import dayjs from 'dayjs';
2
+ export declare const createOnChangeHandler: (path: string, handleChange: (path: string, value: any) => void, saveFormat: string) => (value: dayjs.Dayjs) => void;
3
+ export declare const createOnBlurHandler: (path: string, handleChange: (path: string, value: any) => void, format: string, saveFormat: string, rerenderChild: () => void, onBlur: () => void) => (e: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement, Element>) => void;
4
+ export declare const formatDate: (date: dayjs.Dayjs, saveFormat: string) => string;
5
+ export declare const getData: (data: any, saveFormat: string | undefined) => dayjs.Dayjs | null;
@@ -1 +1 @@
1
- export declare const useDebouncedChange: (handleChange: (path: string, value: any) => void, defaultValue: any, data: any, path: string, eventToValueFunction?: (ev: any) => any, timeout?: number) => [any, React.ChangeEventHandler, () => void];
1
+ export declare const useDebouncedChange: (handleChange: (path: string, value: any) => void, defaultValue: any, data: any, path: string, eventToValueFunction?: (ev: any) => any, timeout?: number) => [any, React.ChangeEventHandler, () => void];
@@ -1 +1 @@
1
- export declare const useFocus: () => [boolean, () => void, () => void];
1
+ export declare const useFocus: () => [boolean, () => void, () => void];
@@ -1,3 +1,3 @@
1
- export declare const i18nDefaults: {
2
- 'enum.none': string;
3
- };
1
+ export declare const i18nDefaults: {
2
+ 'enum.none': string;
3
+ };
@@ -1,6 +1,6 @@
1
- export * from './datejs';
2
- export * from './layout';
3
- export * from './theme';
4
- export * from './debounce';
5
- export * from './focus';
6
- export * from './i18nDefaults';
1
+ export * from './datejs';
2
+ export * from './layout';
3
+ export * from './theme';
4
+ export * from './debounce';
5
+ export * from './focus';
6
+ export * from './i18nDefaults';
@@ -1,17 +1,17 @@
1
- import React, { ComponentType } from 'react';
2
- import Ajv from 'ajv';
3
- import type { UISchemaElement } from '@jsonforms/core';
4
- import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, OwnPropsOfRenderer } from '@jsonforms/core';
5
- export declare const renderLayoutElements: (elements: UISchemaElement[], schema: JsonSchema, path: string, enabled: boolean, renderers?: JsonFormsRendererRegistryEntry[], cells?: JsonFormsCellRendererRegistryEntry[]) => React.JSX.Element[];
6
- export interface MaterialLayoutRendererProps extends OwnPropsOfRenderer {
7
- elements: UISchemaElement[];
8
- direction: 'row' | 'column';
9
- }
10
- export declare const MaterialLayoutRenderer: React.MemoExoticComponent<({ visible, elements, schema, path, enabled, direction, renderers, cells, }: MaterialLayoutRendererProps) => React.JSX.Element>;
11
- export interface AjvProps {
12
- ajv: Ajv;
13
- }
14
- export declare const withAjvProps: <P extends {}>(Component: React.ComponentType<AjvProps & P>) => (props: P) => React.JSX.Element;
15
- export interface MaterialLabelableLayoutRendererProps extends MaterialLayoutRendererProps {
16
- label?: string;
17
- }
1
+ import React, { ComponentType } from 'react';
2
+ import Ajv from 'ajv';
3
+ import type { UISchemaElement } from '@jsonforms/core';
4
+ import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, OwnPropsOfRenderer } from '@jsonforms/core';
5
+ export declare const renderLayoutElements: (elements: UISchemaElement[], schema: JsonSchema, path: string, enabled: boolean, renderers?: JsonFormsRendererRegistryEntry[], cells?: JsonFormsCellRendererRegistryEntry[]) => React.JSX.Element[];
6
+ export interface MaterialLayoutRendererProps extends OwnPropsOfRenderer {
7
+ elements: UISchemaElement[];
8
+ direction: 'row' | 'column';
9
+ }
10
+ export declare const MaterialLayoutRenderer: React.MemoExoticComponent<({ visible, elements, schema, path, enabled, direction, renderers, cells, }: MaterialLayoutRendererProps) => React.JSX.Element>;
11
+ export interface AjvProps {
12
+ ajv: Ajv;
13
+ }
14
+ export declare const withAjvProps: <P extends {}>(Component: React.ComponentType<AjvProps & P>) => (props: P) => React.JSX.Element;
15
+ export interface MaterialLabelableLayoutRendererProps extends MaterialLayoutRendererProps {
16
+ label?: string;
17
+ }
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- import { Theme, TextFieldProps, InputBaseProps } from '@mui/material';
3
- export interface JsonFormsTheme extends Theme {
4
- jsonforms?: {
5
- input?: {
6
- delete?: {
7
- background?: string;
8
- };
9
- };
10
- };
11
- }
12
- export interface WithInputProps {
13
- label?: string;
14
- }
15
- export declare const defaultInputVariant: TextFieldProps['variant'];
16
- export declare function useInputVariant(): TextFieldProps['variant'];
17
- export declare function useInputComponent(): React.JSXElementConstructor<InputBaseProps & WithInputProps>;
1
+ /// <reference types="react" />
2
+ import { Theme, TextFieldProps, InputBaseProps } from '@mui/material';
3
+ export interface JsonFormsTheme extends Theme {
4
+ jsonforms?: {
5
+ input?: {
6
+ delete?: {
7
+ background?: string;
8
+ };
9
+ };
10
+ };
11
+ }
12
+ export interface WithInputProps {
13
+ label?: string;
14
+ }
15
+ export declare const defaultInputVariant: TextFieldProps['variant'];
16
+ export declare function useInputVariant(): TextFieldProps['variant'];
17
+ export declare function useInputComponent(): React.JSXElementConstructor<InputBaseProps & WithInputProps>;