@jsonforms/material-renderers 3.1.0-alpha.0 → 3.1.0-alpha.2
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/README.md +16 -17
- package/lib/additional/ListWithDetailMasterItem.d.ts +2 -0
- package/lib/additional/MaterialListWithDetailRenderer.d.ts +1 -1
- package/lib/additional/index.d.ts +2 -2
- package/lib/additional/unwrapped.d.ts +5 -0
- package/lib/cells/index.d.ts +1 -1
- package/lib/complex/CombinatorProperties.d.ts +1 -2
- package/lib/complex/DeleteDialog.d.ts +5 -1
- package/lib/complex/MaterialAllOfRenderer.d.ts +1 -1
- package/lib/complex/MaterialAnyOfRenderer.d.ts +1 -1
- package/lib/complex/MaterialArrayControlRenderer.d.ts +2 -1
- package/lib/complex/MaterialEnumArrayRenderer.d.ts +1 -1
- package/lib/complex/MaterialObjectRenderer.d.ts +1 -1
- package/lib/complex/MaterialOneOfRenderer.d.ts +1 -1
- package/lib/complex/MaterialTableControl.d.ts +4 -2
- package/lib/complex/NoBorderTableCell.d.ts +2 -2
- package/lib/complex/TableToolbar.d.ts +3 -2
- package/lib/complex/index.d.ts +11 -16
- package/lib/complex/unwrapped.d.ts +9 -0
- package/lib/controls/MaterialBooleanControl.d.ts +1 -1
- package/lib/controls/MaterialBooleanToggleControl.d.ts +1 -1
- package/lib/controls/index.d.ts +8 -26
- package/lib/controls/unwrapped.d.ts +19 -0
- package/lib/index.d.ts +34 -1
- package/lib/jsonforms-react-material.cjs.js +731 -572
- package/lib/jsonforms-react-material.cjs.js.map +1 -1
- package/lib/jsonforms-react-material.esm.js +648 -517
- package/lib/jsonforms-react-material.esm.js.map +1 -1
- package/lib/layouts/ArrayToolbar.d.ts +3 -1
- package/lib/layouts/ExpandPanelRenderer.d.ts +3 -1
- package/lib/layouts/MaterialGroupLayout.d.ts +1 -1
- package/lib/layouts/MaterialHorizontalLayout.d.ts +1 -1
- package/lib/layouts/MaterialVerticalLayout.d.ts +1 -1
- package/lib/layouts/index.d.ts +3 -1
- package/lib/layouts/unwrapped.d.ts +10 -0
- package/lib/mui-controls/MuiCheckbox.d.ts +6 -1
- package/lib/mui-controls/MuiInputInteger.d.ts +1 -1
- package/lib/mui-controls/MuiInputNumber.d.ts +1 -1
- package/lib/mui-controls/MuiInputNumberFormat.d.ts +1 -1
- package/lib/mui-controls/MuiInputText.d.ts +1 -1
- package/lib/mui-controls/MuiInputTime.d.ts +1 -1
- package/lib/mui-controls/MuiSelect.d.ts +1 -1
- package/lib/mui-controls/MuiToggle.d.ts +6 -1
- package/lib/mui-controls/index.d.ts +3 -1
- package/lib/util/layout.d.ts +2 -3
- package/package.json +33 -15
- package/src/additional/ListWithDetailMasterItem.tsx +32 -24
- package/src/additional/MaterialLabelRenderer.tsx +8 -15
- package/src/additional/MaterialListWithDetailRenderer.tsx +8 -5
- package/src/additional/index.ts +12 -4
- package/{example/index.ts → src/additional/unwrapped.ts} +7 -6
- package/src/cells/MaterialBooleanCell.tsx +1 -1
- package/src/cells/MaterialBooleanToggleCell.tsx +2 -2
- package/src/cells/MaterialDateCell.tsx +4 -12
- package/src/cells/MaterialEnumCell.tsx +13 -6
- package/src/cells/MaterialIntegerCell.tsx +1 -1
- package/src/cells/MaterialNumberCell.tsx +1 -1
- package/src/cells/MaterialNumberFormatCell.tsx +1 -1
- package/src/cells/MaterialOneOfEnumCell.tsx +17 -7
- package/src/cells/MaterialTextCell.tsx +1 -1
- package/src/cells/MaterialTimeCell.tsx +1 -1
- package/src/cells/index.ts +7 -7
- package/src/complex/CombinatorProperties.tsx +20 -9
- package/src/complex/DeleteDialog.tsx +48 -37
- package/src/complex/MaterialAllOfRenderer.tsx +2 -2
- package/src/complex/MaterialAnyOfRenderer.tsx +3 -3
- package/src/complex/MaterialArrayControlRenderer.tsx +27 -11
- package/src/complex/MaterialEnumArrayRenderer.tsx +6 -8
- package/src/complex/MaterialObjectRenderer.tsx +6 -3
- package/src/complex/MaterialOneOfRenderer.tsx +105 -88
- package/src/complex/MaterialTableControl.tsx +145 -97
- package/src/complex/NoBorderTableCell.tsx +3 -5
- package/src/complex/TableToolbar.tsx +24 -25
- package/src/complex/ValidationIcon.tsx +10 -18
- package/src/complex/index.ts +35 -32
- package/{test/renderers/MatchMediaMock.ts → src/complex/unwrapped.ts} +19 -16
- package/src/controls/MaterialAnyOfStringOrEnumControl.tsx +19 -11
- package/src/controls/MaterialBooleanControl.tsx +90 -23
- package/src/controls/MaterialBooleanToggleControl.tsx +90 -23
- package/src/controls/MaterialDateControl.tsx +16 -19
- package/src/controls/MaterialDateTimeControl.tsx +24 -23
- package/src/controls/MaterialEnumControl.tsx +21 -15
- package/src/controls/MaterialInputControl.tsx +7 -8
- package/src/controls/MaterialIntegerControl.tsx +1 -1
- package/src/controls/MaterialNativeControl.tsx +12 -9
- package/src/controls/MaterialNumberControl.tsx +1 -1
- package/src/controls/MaterialOneOfEnumControl.tsx +21 -15
- package/src/controls/MaterialOneOfRadioGroupControl.tsx +5 -3
- package/src/controls/MaterialRadioGroup.tsx +11 -17
- package/src/controls/MaterialRadioGroupControl.tsx +8 -3
- package/src/controls/MaterialSliderControl.tsx +17 -16
- package/src/controls/MaterialTextControl.tsx +1 -1
- package/src/controls/MaterialTimeControl.tsx +19 -22
- package/src/controls/index.ts +36 -72
- package/src/controls/unwrapped.ts +57 -0
- package/src/index.ts +41 -22
- package/src/layouts/ArrayToolbar.tsx +38 -42
- package/src/layouts/ExpandPanelRenderer.tsx +96 -67
- package/src/layouts/MaterialArrayLayout.tsx +21 -16
- package/src/layouts/MaterialArrayLayoutRenderer.tsx +6 -9
- package/src/layouts/MaterialCategorizationLayout.tsx +52 -21
- package/src/layouts/MaterialCategorizationStepperLayout.tsx +60 -44
- package/src/layouts/MaterialGroupLayout.tsx +25 -6
- package/src/layouts/MaterialHorizontalLayout.tsx +18 -4
- package/src/layouts/MaterialVerticalLayout.tsx +18 -4
- package/src/layouts/index.ts +18 -7
- package/{test/renderers/util.ts → src/layouts/unwrapped.ts} +19 -28
- package/src/mui-controls/MuiAutocomplete.tsx +51 -35
- package/src/mui-controls/MuiCheckbox.tsx +14 -5
- package/src/mui-controls/MuiInputInteger.tsx +31 -32
- package/src/mui-controls/MuiInputNumber.tsx +16 -16
- package/src/mui-controls/MuiInputNumberFormat.tsx +51 -42
- package/src/mui-controls/MuiInputText.tsx +30 -19
- package/src/mui-controls/MuiInputTime.tsx +11 -12
- package/src/mui-controls/MuiSelect.tsx +15 -6
- package/src/mui-controls/MuiToggle.tsx +14 -5
- package/src/mui-controls/index.ts +3 -1
- package/src/util/datejs.tsx +41 -20
- package/src/util/debounce.ts +26 -11
- package/src/util/focus.ts +7 -7
- package/src/util/i18nDefaults.ts +2 -2
- package/src/util/layout.tsx +47 -42
- package/src/util/theme.ts +2 -2
- package/docs/assets/css/main.css +0 -1
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -51
- package/docs/assets/js/search.json +0 -1
- package/docs/classes/combinatorproperties.html +0 -957
- package/docs/classes/materialanyofstringorenumcontrol.html +0 -822
- package/docs/classes/materialtablecontrol.html +0 -999
- package/docs/globals.html +0 -4492
- package/docs/index.html +0 -753
- package/docs/interfaces/ajvprops.html +0 -162
- package/docs/interfaces/arraylayouttoolbarprops.html +0 -253
- package/docs/interfaces/categorizationstate.html +0 -154
- package/docs/interfaces/categorizationstepperstate.html +0 -154
- package/docs/interfaces/combinatorpropertiesprops.html +0 -182
- package/docs/interfaces/deletedialogprops.html +0 -225
- package/docs/interfaces/dispatchpropsofexpandpanel.html +0 -296
- package/docs/interfaces/emptytableprops.html +0 -154
- package/docs/interfaces/expandpanelprops.html +0 -594
- package/docs/interfaces/inputref.html +0 -168
- package/docs/interfaces/jsonformstheme.html +0 -352
- package/docs/interfaces/materialcategorizationlayoutrendererprops.html +0 -460
- package/docs/interfaces/materialcategorizationstepperlayoutrendererprops.html +0 -394
- package/docs/interfaces/materiallabelablelayoutrendererprops.html +0 -328
- package/docs/interfaces/materiallayoutrendererprops.html +0 -317
- package/docs/interfaces/materialtabletoolbarprops.html +0 -302
- package/docs/interfaces/muitextinputprops.html +0 -168
- package/docs/interfaces/nonemptycellcomponentprops.html +0 -266
- package/docs/interfaces/nonemptycellprops.html +0 -277
- package/docs/interfaces/nonemptyrowprops.html +0 -366
- package/docs/interfaces/ownoneofprops.html +0 -308
- package/docs/interfaces/ownpropsofexpandpanel.html +0 -397
- package/docs/interfaces/ownpropsofnonemptycell.html +0 -229
- package/docs/interfaces/statepropsofexpandpanel.html +0 -445
- package/docs/interfaces/tableheadercellprops.html +0 -154
- package/docs/interfaces/tablerowsprop.html +0 -330
- package/docs/interfaces/validationprops.html +0 -168
- package/docs/interfaces/withdeletedialogsupport.html +0 -170
- package/docs/interfaces/withinput.html +0 -154
- package/docs/interfaces/withoptionlabel.html +0 -230
- package/example/index.html +0 -16
- package/rollup.config.js +0 -51
- package/stats.html +0 -3279
- package/test/renderers/MaterialAllOfRenderer.test.tsx +0 -114
- package/test/renderers/MaterialAnyOfRenderer.test.tsx +0 -310
- package/test/renderers/MaterialAnyOfStringOrEnumControl.test.tsx +0 -126
- package/test/renderers/MaterialArrayControl.test.tsx +0 -633
- package/test/renderers/MaterialArrayLayout.test.tsx +0 -528
- package/test/renderers/MaterialBooleanCell.test.tsx +0 -374
- package/test/renderers/MaterialBooleanToggleCell.test.tsx +0 -466
- package/test/renderers/MaterialBooleanToggleControl.test.tsx +0 -469
- package/test/renderers/MaterialCategorizationLayout.test.tsx +0 -458
- package/test/renderers/MaterialCategorizationStepperLayout.test.tsx +0 -647
- package/test/renderers/MaterialDateCell.test.tsx +0 -303
- package/test/renderers/MaterialDateControl.test.tsx +0 -411
- package/test/renderers/MaterialDateTimeControl.test.tsx +0 -417
- package/test/renderers/MaterialEnumArrayRenderer.test.tsx +0 -207
- package/test/renderers/MaterialEnumCell.test.tsx +0 -88
- package/test/renderers/MaterialEnumControl.test.tsx +0 -75
- package/test/renderers/MaterialGroupLayout.test.tsx +0 -90
- package/test/renderers/MaterialInputControl.test.tsx +0 -370
- package/test/renderers/MaterialIntegerCell.test.tsx +0 -333
- package/test/renderers/MaterialLabelRenderer.test.tsx +0 -114
- package/test/renderers/MaterialLayouts.test.tsx +0 -542
- package/test/renderers/MaterialListWithDetailRenderer.test.tsx +0 -279
- package/test/renderers/MaterialNativeControl.test.tsx +0 -81
- package/test/renderers/MaterialNumberCell.test.tsx +0 -382
- package/test/renderers/MaterialObjectControl.test.tsx +0 -186
- package/test/renderers/MaterialOneOfEnumCell.test.tsx +0 -94
- package/test/renderers/MaterialOneOfRadioGroupControl.test.tsx +0 -108
- package/test/renderers/MaterialOneOfRenderer.test.tsx +0 -603
- package/test/renderers/MaterialRadioGroupControl.test.tsx +0 -125
- package/test/renderers/MaterialSliderControl.test.tsx +0 -438
- package/test/renderers/MaterialTextCell.test.tsx +0 -541
- package/test/renderers/MaterialTextControl.test.tsx +0 -115
- package/test/renderers/MaterialTimeCell.test.tsx +0 -331
- package/test/renderers/MaterialTimeControl.test.tsx +0 -411
- package/tsconfig.json +0 -13
- package/tsconfig.test.json +0 -7
- package/webpack/webpack.dev.js +0 -11
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ArrayTranslations } from '@jsonforms/core';
|
|
2
3
|
export interface ArrayLayoutToolbarProps {
|
|
3
4
|
label: string;
|
|
4
5
|
errors: string;
|
|
5
6
|
path: string;
|
|
6
7
|
addItem(path: string, data: any): () => void;
|
|
7
8
|
createDefault(): any;
|
|
9
|
+
translations: ArrayTranslations;
|
|
8
10
|
}
|
|
9
|
-
export declare const ArrayLayoutToolbar: React.
|
|
11
|
+
export declare const ArrayLayoutToolbar: React.NamedExoticComponent<ArrayLayoutToolbarProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentType, Dispatch, ReducerAction } from 'react';
|
|
2
|
-
import { ControlElement, JsonFormsRendererRegistryEntry, JsonSchema, JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
import { ControlElement, JsonFormsRendererRegistryEntry, JsonSchema, JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, ArrayTranslations } from '@jsonforms/core';
|
|
3
3
|
interface OwnPropsOfExpandPanel {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
index: number;
|
|
@@ -16,6 +16,7 @@ interface OwnPropsOfExpandPanel {
|
|
|
16
16
|
config: any;
|
|
17
17
|
childLabelProp?: string;
|
|
18
18
|
handleExpansion(panel: string): (event: any, expanded: boolean) => void;
|
|
19
|
+
translations: ArrayTranslations;
|
|
19
20
|
}
|
|
20
21
|
interface StatePropsOfExpandPanel extends OwnPropsOfExpandPanel {
|
|
21
22
|
childLabel: string;
|
|
@@ -33,6 +34,7 @@ export interface DispatchPropsOfExpandPanel {
|
|
|
33
34
|
}
|
|
34
35
|
export interface ExpandPanelProps extends StatePropsOfExpandPanel, DispatchPropsOfExpandPanel {
|
|
35
36
|
}
|
|
37
|
+
export declare const ExpandPanelRenderer: React.MemoExoticComponent<(props: ExpandPanelProps) => JSX.Element>;
|
|
36
38
|
/**
|
|
37
39
|
* Maps state to dispatch properties of an expand pandel control.
|
|
38
40
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LayoutProps, RankedTester } from '@jsonforms/core';
|
|
3
3
|
export declare const groupTester: RankedTester;
|
|
4
|
-
export declare const MaterializedGroupLayoutRenderer: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label }: LayoutProps) => JSX.Element;
|
|
4
|
+
export declare const MaterializedGroupLayoutRenderer: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: LayoutProps) => JSX.Element;
|
|
5
5
|
declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const materialGroupTester: RankedTester;
|
|
@@ -5,6 +5,6 @@ import { LayoutProps, RankedTester } from '@jsonforms/core';
|
|
|
5
5
|
* @type {RankedTester}
|
|
6
6
|
*/
|
|
7
7
|
export declare const materialHorizontalLayoutTester: RankedTester;
|
|
8
|
-
export declare const MaterialHorizontalLayoutRenderer: ({ uischema, renderers, cells, schema, path, enabled, visible }: LayoutProps) => JSX.Element;
|
|
8
|
+
export declare const MaterialHorizontalLayoutRenderer: ({ uischema, renderers, cells, schema, path, enabled, visible, }: LayoutProps) => JSX.Element;
|
|
9
9
|
declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
|
|
10
10
|
export default _default;
|
|
@@ -5,6 +5,6 @@ import { LayoutProps, RankedTester } from '@jsonforms/core';
|
|
|
5
5
|
* @type {RankedTester}
|
|
6
6
|
*/
|
|
7
7
|
export declare const materialVerticalLayoutTester: RankedTester;
|
|
8
|
-
export declare const MaterialVerticalLayoutRenderer: ({ uischema, schema, path, enabled, visible, renderers, cells }: LayoutProps) => JSX.Element;
|
|
8
|
+
export declare const MaterialVerticalLayoutRenderer: ({ uischema, schema, path, enabled, visible, renderers, cells, }: LayoutProps) => JSX.Element;
|
|
9
9
|
declare const _default: React.ComponentType<LayoutProps & import("@jsonforms/core").OwnPropsOfLayout>;
|
|
10
10
|
export default _default;
|
package/lib/layouts/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import ExpandPanelRenderer, { ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps } from './ExpandPanelRenderer';
|
|
1
2
|
import MaterialGroupLayout, { materialGroupTester } from './MaterialGroupLayout';
|
|
2
3
|
import MaterialHorizontalLayout, { materialHorizontalLayoutTester } from './MaterialHorizontalLayout';
|
|
3
4
|
import MaterialVerticalLayout, { materialVerticalLayoutTester } from './MaterialVerticalLayout';
|
|
4
5
|
import MaterialCategorizationLayout, { materialCategorizationTester } from './MaterialCategorizationLayout';
|
|
5
6
|
import MaterialArrayLayout, { materialArrayLayoutTester } from './MaterialArrayLayoutRenderer';
|
|
6
|
-
export {
|
|
7
|
+
export { ExpandPanelRenderer, ctxDispatchToExpandPanelProps, withContextToExpandPanelProps, withJsonFormsExpandPanelProps, MaterialArrayLayout, materialArrayLayoutTester, MaterialCategorizationLayout, materialCategorizationTester, MaterialGroupLayout, materialGroupTester, MaterialHorizontalLayout, materialHorizontalLayoutTester, MaterialVerticalLayout, materialVerticalLayoutTester, };
|
|
8
|
+
export * from './ArrayToolbar';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const UnwrappedLayouts: {
|
|
3
|
+
ExpandPanelRenderer: import("react").MemoExoticComponent<(props: import("./ExpandPanelRenderer").ExpandPanelProps) => JSX.Element>;
|
|
4
|
+
MaterialArrayLayout: ({ visible, addItem, ...props }: import("@jsonforms/core").ArrayLayoutProps) => JSX.Element;
|
|
5
|
+
MaterialCategorizationLayout: (props: import("./MaterialCategorizationLayout").MaterialCategorizationLayoutRendererProps) => JSX.Element;
|
|
6
|
+
MaterialGroupLayout: ({ uischema, schema, path, visible, enabled, renderers, cells, direction, label, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
|
|
7
|
+
MaterialHorizontalLayout: ({ uischema, renderers, cells, schema, path, enabled, visible, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
|
|
8
|
+
MaterialVerticalLayout: ({ uischema, schema, path, enabled, visible, renderers, cells, }: import("@jsonforms/core").LayoutProps) => JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export * from './ArrayToolbar';
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname } from '@jsonforms/core';
|
|
3
|
-
|
|
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,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname } from '@jsonforms/core';
|
|
3
|
-
export declare const MuiInputInteger: React.
|
|
3
|
+
export declare const MuiInputInteger: React.NamedExoticComponent<CellProps & WithClassname>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname } from '@jsonforms/core';
|
|
3
|
-
export declare const MuiInputNumber: React.
|
|
3
|
+
export declare const MuiInputNumber: React.NamedExoticComponent<CellProps & WithClassname>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, Formatted, WithClassname } from '@jsonforms/core';
|
|
3
|
-
export declare const MuiInputNumberFormat: React.
|
|
3
|
+
export declare const MuiInputNumberFormat: React.NamedExoticComponent<CellProps & WithClassname & Formatted<number>>;
|
|
@@ -5,5 +5,5 @@ interface MuiTextInputProps {
|
|
|
5
5
|
muiInputProps?: InputProps['inputProps'];
|
|
6
6
|
inputComponent?: InputProps['inputComponent'];
|
|
7
7
|
}
|
|
8
|
-
export declare const MuiInputText: React.
|
|
8
|
+
export declare const MuiInputText: React.NamedExoticComponent<CellProps & WithClassname & MuiTextInputProps>;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname } from '@jsonforms/core';
|
|
3
|
-
export declare const MuiInputTime: React.
|
|
3
|
+
export declare const MuiInputTime: React.NamedExoticComponent<CellProps & WithClassname>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EnumCellProps, WithClassname } from '@jsonforms/core';
|
|
3
3
|
import { TranslateProps } from '@jsonforms/react';
|
|
4
|
-
export declare const MuiSelect: React.
|
|
4
|
+
export declare const MuiSelect: React.NamedExoticComponent<EnumCellProps & WithClassname & TranslateProps>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps, WithClassname } from '@jsonforms/core';
|
|
3
|
-
|
|
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,7 +1,9 @@
|
|
|
1
|
+
export * from './MuiAutocomplete';
|
|
1
2
|
export * from './MuiCheckbox';
|
|
2
|
-
export * from './MuiSelect';
|
|
3
3
|
export * from './MuiInputInteger';
|
|
4
4
|
export * from './MuiInputNumber';
|
|
5
5
|
export * from './MuiInputNumberFormat';
|
|
6
6
|
export * from './MuiInputText';
|
|
7
7
|
export * from './MuiInputTime';
|
|
8
|
+
export * from './MuiSelect';
|
|
9
|
+
export * from './MuiToggle';
|
package/lib/util/layout.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
3
2
|
import Ajv from 'ajv';
|
|
4
3
|
import type { UISchemaElement } from '@jsonforms/core';
|
|
5
4
|
import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, OwnPropsOfRenderer } from '@jsonforms/core';
|
|
@@ -8,7 +7,7 @@ export interface MaterialLayoutRendererProps extends OwnPropsOfRenderer {
|
|
|
8
7
|
elements: UISchemaElement[];
|
|
9
8
|
direction: 'row' | 'column';
|
|
10
9
|
}
|
|
11
|
-
export declare const MaterialLayoutRenderer: React.MemoExoticComponent<({ visible, elements, schema, path, enabled, direction, renderers, cells }: MaterialLayoutRendererProps) => JSX.Element>;
|
|
10
|
+
export declare const MaterialLayoutRenderer: React.MemoExoticComponent<({ visible, elements, schema, path, enabled, direction, renderers, cells, }: MaterialLayoutRendererProps) => JSX.Element>;
|
|
12
11
|
export interface AjvProps {
|
|
13
12
|
ajv: Ajv;
|
|
14
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsonforms/material-renderers",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.2",
|
|
4
4
|
"description": "Material Renderer Set for JSON Forms",
|
|
5
5
|
"repository": "https://github.com/eclipsesource/jsonforms",
|
|
6
6
|
"bugs": "https://github.com/eclipsesource/jsonforms/issues",
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"src": "src",
|
|
12
12
|
"webpack": "webpack"
|
|
13
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"lib",
|
|
16
|
+
"src"
|
|
17
|
+
],
|
|
14
18
|
"keywords": [
|
|
15
19
|
"material",
|
|
16
20
|
"renderer",
|
|
@@ -33,9 +37,11 @@
|
|
|
33
37
|
"typings": "lib/index.d.ts",
|
|
34
38
|
"scripts": {
|
|
35
39
|
"build": "rollup -c rollup.config.js",
|
|
40
|
+
"build:examples-app": "rollup -c rollup.example.config.js",
|
|
36
41
|
"dev": "webpack --config webpack/webpack.dev.js && webpack-dev-server --config webpack/webpack.dev.js --env=dev --inline",
|
|
37
|
-
"clean": "rimraf lib coverage dist .nyc_output 2> /dev/null",
|
|
38
|
-
"lint": "
|
|
42
|
+
"clean": "rimraf lib coverage dist .nyc_output example/dist 2> /dev/null",
|
|
43
|
+
"lint": "eslint .",
|
|
44
|
+
"lint:fix": "eslint --fix .",
|
|
39
45
|
"test": "jest --no-cache",
|
|
40
46
|
"test-cov": "jest --no-cache --coverage",
|
|
41
47
|
"report": "nyc report --reporter=html",
|
|
@@ -76,43 +82,55 @@
|
|
|
76
82
|
"peerDependencies": {
|
|
77
83
|
"@emotion/react": "^11.4.1",
|
|
78
84
|
"@emotion/styled": "^11.3.0",
|
|
79
|
-
"@jsonforms/core": "3.1.0-alpha.
|
|
80
|
-
"@jsonforms/react": "3.1.0-alpha.
|
|
81
|
-
"@mui/icons-material": "
|
|
82
|
-
"@mui/material": "
|
|
85
|
+
"@jsonforms/core": "3.1.0-alpha.2",
|
|
86
|
+
"@jsonforms/react": "3.1.0-alpha.2",
|
|
87
|
+
"@mui/icons-material": "~5.2.2",
|
|
88
|
+
"@mui/material": "~5.2.2",
|
|
83
89
|
"@mui/x-date-pickers": "^5.0.0-beta.5"
|
|
84
90
|
},
|
|
85
91
|
"devDependencies": {
|
|
86
92
|
"@emotion/react": "^11.5.0",
|
|
87
93
|
"@emotion/styled": "^11.3.0",
|
|
88
|
-
"@jsonforms/core": "^3.1.0-alpha.
|
|
89
|
-
"@jsonforms/react": "^3.1.0-alpha.
|
|
90
|
-
"@mui/icons-material": "
|
|
91
|
-
"@mui/material": "
|
|
94
|
+
"@jsonforms/core": "^3.1.0-alpha.2",
|
|
95
|
+
"@jsonforms/react": "^3.1.0-alpha.2",
|
|
96
|
+
"@mui/icons-material": "~5.2.0",
|
|
97
|
+
"@mui/material": "~5.2.2",
|
|
92
98
|
"@mui/x-date-pickers": "^5.0.0-beta.5",
|
|
99
|
+
"@rollup/plugin-commonjs": "^23.0.3",
|
|
100
|
+
"@rollup/plugin-json": "^5.0.2",
|
|
101
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
102
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
93
103
|
"@types/enzyme": "^3.10.3",
|
|
94
104
|
"@types/react-dom": "^17.0.9",
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
106
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
95
107
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
|
|
96
108
|
"copy-webpack-plugin": "^5.0.5",
|
|
97
109
|
"enzyme": "^3.10.0",
|
|
110
|
+
"eslint": "^7.32.0",
|
|
111
|
+
"eslint-config-prettier": "^8.7.0",
|
|
112
|
+
"eslint-plugin-import": "^2.27.5",
|
|
113
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
114
|
+
"eslint-plugin-react": "^7.32.2",
|
|
98
115
|
"jest": "^26.6.3",
|
|
99
116
|
"nyc": "^15.1.0",
|
|
117
|
+
"prettier": "^2.8.4",
|
|
100
118
|
"react-dom": "^17.0.2",
|
|
101
119
|
"rimraf": "^3.0.2",
|
|
102
|
-
"rollup": "^2.
|
|
120
|
+
"rollup": "^2.78.0",
|
|
103
121
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
122
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
123
|
+
"rollup-plugin-import-css": "^3.1.0",
|
|
104
124
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
105
125
|
"rollup-plugin-visualizer": "^5.4.1",
|
|
106
126
|
"source-map-loader": "^0.2.4",
|
|
107
127
|
"ts-jest": "^26.4.4",
|
|
108
128
|
"ts-loader": "^6.2.1",
|
|
109
|
-
"tslint": "^5.20.1",
|
|
110
|
-
"tslint-loader": "^3.5.4",
|
|
111
129
|
"typedoc": "^0.19.2",
|
|
112
130
|
"typescript": "4.2.3",
|
|
113
131
|
"webpack": "^4.41.2",
|
|
114
132
|
"webpack-cli": "^3.2.1",
|
|
115
133
|
"webpack-dev-server": "^3.9.0"
|
|
116
134
|
},
|
|
117
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "1e1ccad5f7ebfaf80412c8af3e422faebb12d0d5"
|
|
118
136
|
}
|
|
@@ -22,37 +22,45 @@
|
|
|
22
22
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
import { StatePropsOfMasterItem } from '@jsonforms/core';
|
|
25
|
+
import type { StatePropsOfMasterItem } from '@jsonforms/core';
|
|
26
26
|
import { withJsonFormsMasterListItemProps } from '@jsonforms/react';
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
Avatar,
|
|
29
|
+
IconButton,
|
|
30
|
+
ListItem,
|
|
31
|
+
ListItemAvatar,
|
|
32
|
+
ListItemSecondaryAction,
|
|
33
|
+
ListItemText,
|
|
34
34
|
} from '@mui/material';
|
|
35
35
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
36
36
|
import React from 'react';
|
|
37
37
|
|
|
38
|
-
const ListWithDetailMasterItem = ({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
export const ListWithDetailMasterItem = ({
|
|
39
|
+
index,
|
|
40
|
+
childLabel,
|
|
41
|
+
selected,
|
|
42
|
+
handleSelect,
|
|
43
|
+
removeItem,
|
|
44
|
+
path,
|
|
45
|
+
translations,
|
|
46
|
+
}: StatePropsOfMasterItem) => {
|
|
47
|
+
return (
|
|
48
|
+
<ListItem button selected={selected} onClick={handleSelect(index)}>
|
|
49
|
+
<ListItemAvatar>
|
|
50
|
+
<Avatar aria-label='Index'>{index + 1}</Avatar>
|
|
51
|
+
</ListItemAvatar>
|
|
52
|
+
<ListItemText primary={childLabel} />
|
|
53
|
+
<ListItemSecondaryAction>
|
|
54
|
+
<IconButton
|
|
55
|
+
aria-label={translations.removeAriaLabel}
|
|
56
|
+
onClick={removeItem(path, index)}
|
|
57
|
+
size='large'
|
|
44
58
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<IconButton aria-label='Delete' onClick={removeItem(path, index)} size='large'>
|
|
51
|
-
<DeleteIcon />
|
|
52
|
-
</IconButton>
|
|
53
|
-
</ListItemSecondaryAction>
|
|
54
|
-
</ListItem>
|
|
55
|
-
);
|
|
59
|
+
<DeleteIcon />
|
|
60
|
+
</IconButton>
|
|
61
|
+
</ListItemSecondaryAction>
|
|
62
|
+
</ListItem>
|
|
63
|
+
);
|
|
56
64
|
};
|
|
57
65
|
|
|
58
66
|
export default withJsonFormsMasterListItemProps(ListWithDetailMasterItem);
|
|
@@ -23,33 +23,26 @@
|
|
|
23
23
|
THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
import React from 'react';
|
|
26
|
-
import {
|
|
27
|
-
LabelProps,
|
|
28
|
-
RankedTester,
|
|
29
|
-
rankWith,
|
|
30
|
-
uiTypeIs,
|
|
31
|
-
} from '@jsonforms/core';
|
|
26
|
+
import { LabelProps, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core';
|
|
32
27
|
import { withJsonFormsLabelProps } from '@jsonforms/react';
|
|
33
|
-
import {
|
|
34
|
-
Hidden,
|
|
35
|
-
Typography
|
|
36
|
-
} from '@mui/material';
|
|
28
|
+
import { Hidden, Typography } from '@mui/material';
|
|
37
29
|
|
|
38
30
|
/**
|
|
39
31
|
* Default tester for a label.
|
|
40
32
|
* @type {RankedTester}
|
|
41
33
|
*/
|
|
42
|
-
export const materialLabelRendererTester: RankedTester = rankWith(
|
|
34
|
+
export const materialLabelRendererTester: RankedTester = rankWith(
|
|
35
|
+
1,
|
|
36
|
+
uiTypeIs('Label')
|
|
37
|
+
);
|
|
43
38
|
|
|
44
39
|
/**
|
|
45
40
|
* Default renderer for a label.
|
|
46
41
|
*/
|
|
47
|
-
export const MaterialLabelRenderer = ({ text, visible }: LabelProps
|
|
42
|
+
export const MaterialLabelRenderer = ({ text, visible }: LabelProps) => {
|
|
48
43
|
return (
|
|
49
44
|
<Hidden xsUp={!visible}>
|
|
50
|
-
<Typography variant='h6'>
|
|
51
|
-
{text}
|
|
52
|
-
</Typography>
|
|
45
|
+
<Typography variant='h6'>{text}</Typography>
|
|
53
46
|
</Hidden>
|
|
54
47
|
);
|
|
55
48
|
};
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
isObjectArray,
|
|
33
33
|
RankedTester,
|
|
34
34
|
rankWith,
|
|
35
|
-
uiTypeIs
|
|
35
|
+
uiTypeIs,
|
|
36
36
|
} from '@jsonforms/core';
|
|
37
37
|
import {
|
|
38
38
|
JsonFormsDispatch,
|
|
39
|
-
withJsonFormsArrayLayoutProps
|
|
39
|
+
withJsonFormsArrayLayoutProps,
|
|
40
40
|
} from '@jsonforms/react';
|
|
41
41
|
import { Grid, Hidden, List, Typography } from '@mui/material';
|
|
42
42
|
import map from 'lodash/map';
|
|
@@ -61,7 +61,8 @@ export const MaterialListWithDetailRenderer = ({
|
|
|
61
61
|
renderers,
|
|
62
62
|
cells,
|
|
63
63
|
config,
|
|
64
|
-
rootSchema
|
|
64
|
+
rootSchema,
|
|
65
|
+
translations,
|
|
65
66
|
}: ArrayLayoutProps) => {
|
|
66
67
|
const [selectedIndex, setSelectedIndex] = useState(undefined);
|
|
67
68
|
const handleRemoveItem = useCallback(
|
|
@@ -105,6 +106,7 @@ export const MaterialListWithDetailRenderer = ({
|
|
|
105
106
|
return (
|
|
106
107
|
<Hidden xsUp={!visible}>
|
|
107
108
|
<ArrayLayoutToolbar
|
|
109
|
+
translations={translations}
|
|
108
110
|
label={computeLabel(
|
|
109
111
|
label,
|
|
110
112
|
required,
|
|
@@ -119,7 +121,7 @@ export const MaterialListWithDetailRenderer = ({
|
|
|
119
121
|
<Grid item xs={3}>
|
|
120
122
|
<List>
|
|
121
123
|
{data > 0 ? (
|
|
122
|
-
map(range(data), index => (
|
|
124
|
+
map(range(data), (index) => (
|
|
123
125
|
<ListWithDetailMasterItem
|
|
124
126
|
index={index}
|
|
125
127
|
path={path}
|
|
@@ -128,6 +130,7 @@ export const MaterialListWithDetailRenderer = ({
|
|
|
128
130
|
removeItem={handleRemoveItem}
|
|
129
131
|
selected={selectedIndex === index}
|
|
130
132
|
key={index}
|
|
133
|
+
translations={translations}
|
|
131
134
|
/>
|
|
132
135
|
))
|
|
133
136
|
) : (
|
|
@@ -146,7 +149,7 @@ export const MaterialListWithDetailRenderer = ({
|
|
|
146
149
|
path={composePaths(path, `${selectedIndex}`)}
|
|
147
150
|
/>
|
|
148
151
|
) : (
|
|
149
|
-
<Typography variant='h6'>
|
|
152
|
+
<Typography variant='h6'>{translations.noSelection}</Typography>
|
|
150
153
|
)}
|
|
151
154
|
</Grid>
|
|
152
155
|
</Grid>
|
package/src/additional/index.ts
CHANGED
|
@@ -23,10 +23,18 @@
|
|
|
23
23
|
THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
import MaterialLabelRenderer, {
|
|
26
|
-
materialLabelRendererTester
|
|
26
|
+
materialLabelRendererTester,
|
|
27
27
|
} from './MaterialLabelRenderer';
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
import MaterialListWithDetailRenderer, {
|
|
30
|
-
materialListWithDetailTester
|
|
30
|
+
materialListWithDetailTester,
|
|
31
31
|
} from './MaterialListWithDetailRenderer';
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
MaterialLabelRenderer,
|
|
35
|
+
materialLabelRendererTester,
|
|
36
|
+
MaterialListWithDetailRenderer,
|
|
37
|
+
materialListWithDetailTester,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export * from './ListWithDetailMasterItem';
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
23
|
THE SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
-
import {
|
|
26
|
-
import { materialRenderers, materialCells } from '../src';
|
|
25
|
+
import { MaterialLabelRenderer } from './MaterialLabelRenderer';
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
import { MaterialListWithDetailRenderer } from './MaterialListWithDetailRenderer';
|
|
28
|
+
|
|
29
|
+
export const UnwrappedAdditional = {
|
|
30
|
+
MaterialLabelRenderer,
|
|
31
|
+
MaterialListWithDetailRenderer,
|
|
32
|
+
};
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
optionIs,
|
|
31
31
|
RankedTester,
|
|
32
32
|
rankWith,
|
|
33
|
-
WithClassname
|
|
33
|
+
WithClassname,
|
|
34
34
|
} from '@jsonforms/core';
|
|
35
35
|
import { withJsonFormsCellProps } from '@jsonforms/react';
|
|
36
36
|
import { MuiToggle } from '../mui-controls/MuiToggle';
|
|
@@ -42,6 +42,6 @@ export const MaterialBooleanToggleCell = (props: CellProps & WithClassname) => {
|
|
|
42
42
|
export const materialBooleanToggleCellTester: RankedTester = rankWith(
|
|
43
43
|
3,
|
|
44
44
|
and(isBooleanControl, optionIs('toggle', true))
|
|
45
|
-
)
|
|
45
|
+
);
|
|
46
46
|
|
|
47
47
|
export default withJsonFormsCellProps(MaterialBooleanToggleCell);
|
|
@@ -28,23 +28,15 @@ import {
|
|
|
28
28
|
isDateControl,
|
|
29
29
|
RankedTester,
|
|
30
30
|
rankWith,
|
|
31
|
-
WithClassname
|
|
31
|
+
WithClassname,
|
|
32
32
|
} from '@jsonforms/core';
|
|
33
33
|
import { withJsonFormsCellProps } from '@jsonforms/react';
|
|
34
34
|
import Input from '@mui/material/Input';
|
|
35
35
|
import merge from 'lodash/merge';
|
|
36
36
|
|
|
37
37
|
export const MaterialDateCell = (props: CellProps & WithClassname) => {
|
|
38
|
-
const {
|
|
39
|
-
|
|
40
|
-
className,
|
|
41
|
-
id,
|
|
42
|
-
enabled,
|
|
43
|
-
uischema,
|
|
44
|
-
path,
|
|
45
|
-
handleChange,
|
|
46
|
-
config
|
|
47
|
-
} = props;
|
|
38
|
+
const { data, className, id, enabled, uischema, path, handleChange, config } =
|
|
39
|
+
props;
|
|
48
40
|
|
|
49
41
|
const appliedUiSchemaOptions = merge({}, config, uischema.options);
|
|
50
42
|
|
|
@@ -52,7 +44,7 @@ export const MaterialDateCell = (props: CellProps & WithClassname) => {
|
|
|
52
44
|
<Input
|
|
53
45
|
type='date'
|
|
54
46
|
value={data || ''}
|
|
55
|
-
onChange={ev => handleChange(path, ev.target.value)}
|
|
47
|
+
onChange={(ev) => handleChange(path, ev.target.value)}
|
|
56
48
|
className={className}
|
|
57
49
|
id={id}
|
|
58
50
|
disabled={!enabled}
|
|
@@ -28,14 +28,18 @@ import {
|
|
|
28
28
|
isEnumControl,
|
|
29
29
|
RankedTester,
|
|
30
30
|
rankWith,
|
|
31
|
-
WithClassname
|
|
31
|
+
WithClassname,
|
|
32
32
|
} from '@jsonforms/core';
|
|
33
|
-
import {
|
|
33
|
+
import {
|
|
34
|
+
TranslateProps,
|
|
35
|
+
withJsonFormsEnumCellProps,
|
|
36
|
+
withTranslateProps,
|
|
37
|
+
} from '@jsonforms/react';
|
|
34
38
|
import { MuiSelect } from '../mui-controls/MuiSelect';
|
|
35
39
|
|
|
36
|
-
export const MaterialEnumCell = (
|
|
37
|
-
|
|
38
|
-
)
|
|
40
|
+
export const MaterialEnumCell = (
|
|
41
|
+
props: EnumCellProps & WithClassname & TranslateProps
|
|
42
|
+
) => <MuiSelect {...props} />;
|
|
39
43
|
|
|
40
44
|
/**
|
|
41
45
|
* Default tester for enum controls.
|
|
@@ -44,4 +48,7 @@ export const MaterialEnumCell = (props: EnumCellProps & WithClassname & Translat
|
|
|
44
48
|
export const materialEnumCellTester: RankedTester = rankWith(2, isEnumControl);
|
|
45
49
|
|
|
46
50
|
// HOC order can be reversed with https://github.com/eclipsesource/jsonforms/issues/1987
|
|
47
|
-
export default withJsonFormsEnumCellProps(
|
|
51
|
+
export default withJsonFormsEnumCellProps(
|
|
52
|
+
withTranslateProps(React.memo(MaterialEnumCell)),
|
|
53
|
+
false
|
|
54
|
+
);
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
isNumberFormatControl,
|
|
30
30
|
RankedTester,
|
|
31
31
|
rankWith,
|
|
32
|
-
WithClassname
|
|
32
|
+
WithClassname,
|
|
33
33
|
} from '@jsonforms/core';
|
|
34
34
|
import { withJsonFormsCellProps } from '@jsonforms/react';
|
|
35
35
|
import { MuiInputNumberFormat } from '../mui-controls/MuiInputNumberFormat';
|