Skip to content

Commit

Permalink
chore: Remove deprecated controls (#28)
Browse files Browse the repository at this point in the history
* Remove deprecated controls

* Remove test schemas
  • Loading branch information
NathanFarmer committed Mar 8, 2024
1 parent 37cf52b commit 5c321c4
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 566 deletions.
163 changes: 0 additions & 163 deletions src/controls/NumberControl.test.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/controls/NumberControl.tsx

This file was deleted.

55 changes: 0 additions & 55 deletions src/controls/NumericControl.test.tsx

This file was deleted.

122 changes: 0 additions & 122 deletions src/controls/NumericControl.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/renderers.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { JsonFormsRendererRegistryEntry,JsonFormsCellRendererRegistryEntry, isBooleanControl, isNumberControl, isStringControl, rankWith, uiTypeIs } from "@jsonforms/core";
import { JsonFormsRendererRegistryEntry,JsonFormsCellRendererRegistryEntry, isBooleanControl, isStringControl, rankWith, uiTypeIs } from "@jsonforms/core";
import { withJsonFormsControlProps, withJsonFormsLabelProps, withJsonFormsCellProps, withJsonFormsLayoutProps } from "@jsonforms/react";

import { BooleanControl } from "./controls/BooleanControl";
import { AlertControl } from "./controls/AlertControl";
import { TextControl } from "./controls/TextControl";
import { UnknownControl } from "./controls/UnknownControl";
import { VerticalLayoutRenderer } from "./layouts/VerticalLayout";
import { NumberControl } from "./controls/NumberControl";


// Ordered from lowest rank to highest rank. Higher rank renderers will be preferred over lower rank renderers.
Expand All @@ -16,7 +15,6 @@ export const rendererRegistryEntries: JsonFormsRendererRegistryEntry[] = [
{ tester: rankWith(2, isBooleanControl), renderer: withJsonFormsControlProps(BooleanControl) },
{ tester: rankWith(2, isStringControl), renderer: withJsonFormsControlProps(TextControl) },
{ tester: rankWith(2, uiTypeIs("Label")), renderer: withJsonFormsLabelProps(AlertControl) },
{ tester: rankWith(2, isNumberControl), renderer: withJsonFormsControlProps(NumberControl) },
];

export const cellRegistryEntries: JsonFormsCellRendererRegistryEntry[] = [
Expand Down
Loading

0 comments on commit 5c321c4

Please sign in to comment.