File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed
Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -148,3 +148,4 @@ export * from './runtime';
148148export * from './Formatted' ;
149149export * from './ids' ;
150150export * from './validator' ;
151+ export * from './combinators' ;
Original file line number Diff line number Diff line change 2222 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323 THE SOFTWARE.
2424*/
25+ import get from 'lodash/get' ;
2526import { ControlElement , UISchemaElement } from '../models/uischema' ;
26- import {
27- composeWithUi ,
28- createLabelDescriptionFrom ,
29- formatErrorMessage ,
30- isEnabled ,
31- isVisible ,
32- Resolve
33- } from '../util' ;
3427import union from 'lodash/union' ;
3528import RefParser from 'json-schema-ref-parser' ;
3629import {
@@ -42,19 +35,27 @@ import {
4235 getSchema ,
4336 getSubErrorsAt ,
4437 getUiSchema ,
45- UISchemaTester
38+ UISchemaTester ,
4639} from '../reducers' ;
4740import { RankedTester } from '../testers' ;
4841import { JsonSchema } from '../models/jsonSchema' ;
49- import get from 'lodash/get' ;
42+ import {
43+ CombinatorKeyword ,
44+ composeWithUi ,
45+ createLabelDescriptionFrom ,
46+ formatErrorMessage ,
47+ isEnabled ,
48+ isVisible ,
49+ Resolve ,
50+ resolveSubSchemas
51+ } from '../util' ;
5052import has from 'lodash/has' ;
5153import { update } from '../actions' ;
5254import { ErrorObject } from 'ajv' ;
5355import { generateDefaultUISchema } from '../generators' ;
5456import { JsonFormsState } from '../store' ;
5557import { AnyAction , Dispatch } from 'redux' ;
5658import { JsonFormsRendererRegistryEntry } from '../reducers/renderers' ;
57- import { CombinatorKeyword , resolveSubSchemas } from './combinators' ;
5859
5960export { JsonFormsRendererRegistryEntry } ;
6061
Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ import { connect } from 'react-redux';
2727import { Hidden } from '@material-ui/core' ;
2828
2929import {
30+ createCombinatorRenderInfos ,
3031 isAllOfControl ,
3132 JsonSchema ,
3233 mapStateToAllOfProps ,
3334 RankedTester ,
3435 rankWith ,
36+ resolveSubSchemas ,
3537 StatePropsOfCombinator
3638} from '@jsonforms/core' ;
3739import { ResolvedJsonForms } from '@jsonforms/react' ;
38- import { createCombinatorRenderInfos , resolveSubSchemas } from '@jsonforms/core/src/util/combinators' ;
3940
4041class MaterialAllOfRenderer extends React . Component < StatePropsOfCombinator , any > {
4142
Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ import React from 'react';
2626import { connect } from 'react-redux' ;
2727
2828import {
29+ createCombinatorRenderInfos ,
2930 isAnyOfControl ,
3031 JsonSchema ,
3132 mapStateToAnyOfProps ,
3233 RankedTester ,
3334 rankWith ,
35+ resolveSubSchemas ,
3436 StatePropsOfCombinator
3537} from '@jsonforms/core' ;
3638import { ResolvedJsonForms } from '@jsonforms/react' ;
3739import CombinatorProperties from './CombinatorProperties' ;
38- import { createCombinatorRenderInfos , resolveSubSchemas } from '@jsonforms/core/src/util/combinators' ;
3940import { Hidden , Tab , Tabs } from '@material-ui/core' ;
4041
4142interface MaterialAnyOfState {
Original file line number Diff line number Diff line change @@ -26,13 +26,15 @@ import React from 'react';
2626
2727import {
2828 CombinatorRendererProps ,
29+ createCombinatorRenderInfos ,
2930 createDefaultValue ,
3031 isOneOfControl ,
3132 JsonSchema ,
3233 mapDispatchToControlProps ,
3334 mapStateToOneOfProps ,
3435 RankedTester ,
35- rankWith
36+ rankWith ,
37+ resolveSubSchemas
3638} from '@jsonforms/core' ;
3739import {
3840 Button ,
@@ -47,7 +49,6 @@ import {
4749} from '@material-ui/core' ;
4850import { connect } from 'react-redux' ;
4951import { ResolvedJsonForms } from '@jsonforms/react' ;
50- import { createCombinatorRenderInfos , resolveSubSchemas } from '@jsonforms/core/src/util/combinators' ;
5152import CombinatorProperties from './CombinatorProperties' ;
5253
5354interface MaterialOneOfState {
You can’t perform that action at this time.
0 commit comments