Skip to content

Commit a48389e

Browse files
authored
Merge pull request #182 from data-driven-forms/remove-tag-control
fix(renderer): remove tag control component.
2 parents 690e0d0 + d5453dd commit a48389e

File tree

17 files changed

+0
-469
lines changed

17 files changed

+0
-469
lines changed

packages/mui-component-mapper/demo/demo-schemas/sandbox.js

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -425,56 +425,6 @@ const output = {
425425
],
426426
component: components.TAB_ITEM,
427427
},
428-
{
429-
title: 'Tab 5',
430-
description: 'New tab 4',
431-
key: '557',
432-
fields: [
433-
{
434-
title: 'Tag control',
435-
key: '644',
436-
fields: [
437-
{
438-
name: 'tag_control_1',
439-
label: 'Tag Control',
440-
title: 'Tag Control',
441-
dataType: 'string',
442-
component: components.TAG_CONTROL,
443-
},
444-
{
445-
name: 'tag_control_2',
446-
label: 'Tag Control single value',
447-
title: 'Tag Control single value',
448-
dataType: 'string',
449-
component: components.TAG_CONTROL,
450-
},
451-
{
452-
name: 'tag_control_3',
453-
label: 'Tag Control category',
454-
title: 'Tag Control category',
455-
dataType: 'string',
456-
component: components.TAG_CONTROL,
457-
options: [
458-
{
459-
460-
},
461-
{
462-
463-
},
464-
{
465-
466-
},
467-
{
468-
469-
},
470-
],
471-
},
472-
],
473-
component: components.SUB_FORM,
474-
},
475-
],
476-
component: components.TAB_ITEM,
477-
},
478428
{
479429
title: 'Mixed',
480430
description: '',

packages/mui-component-mapper/src/form-fields/component-mapper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const mapper = {
2424
[componentTypes.TABS]: Tabs,
2525
[componentTypes.DATE_PICKER]: DatePickerField,
2626
[componentTypes.TIME_PICKER]: TimePickerField,
27-
[componentTypes.TAG_CONTROL]: props => <div>tag control</div>,
2827
[componentTypes.SWITCH]: SwitchField,
2928
[componentTypes.PLAIN_TEXT]: PlainTextField,
3029
};

packages/pf3-component-mapper/demo/demo-schemas/sandbox.js

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -456,56 +456,6 @@ const output = {
456456
],
457457
component: components.TAB_ITEM,
458458
},
459-
{
460-
title: 'Tab 5',
461-
description: 'New tab 4',
462-
key: '557',
463-
fields: [
464-
{
465-
title: 'Tag control',
466-
key: '644',
467-
fields: [
468-
{
469-
name: 'tag_control_1',
470-
label: 'Tag Control',
471-
title: 'Tag Control',
472-
dataType: 'string',
473-
component: components.TAG_CONTROL,
474-
},
475-
{
476-
name: 'tag_control_2',
477-
label: 'Tag Control single value',
478-
title: 'Tag Control single value',
479-
dataType: 'string',
480-
component: components.TAG_CONTROL,
481-
},
482-
{
483-
name: 'tag_control_3',
484-
label: 'Tag Control category',
485-
title: 'Tag Control category',
486-
dataType: 'string',
487-
component: components.TAG_CONTROL,
488-
options: [
489-
{
490-
491-
},
492-
{
493-
494-
},
495-
{
496-
497-
},
498-
{
499-
500-
},
501-
],
502-
},
503-
],
504-
component: components.SUB_FORM,
505-
},
506-
],
507-
component: components.TAB_ITEM,
508-
},
509459
{
510460
title: 'Mixed',
511461
description: '',

packages/pf3-component-mapper/src/form-fields/component-mapper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const mapper = {
2525
[componentTypes.TABS]: Tabs,
2626
[componentTypes.DATE_PICKER]: DatePickerField,
2727
[componentTypes.TIME_PICKER]: props => <div>time picker</div>,
28-
[componentTypes.TAG_CONTROL]: props => <div>tag control</div>,
2928
[componentTypes.SWITCH]: SwitchField,
3029
[componentTypes.WIZARD]: Wizard,
3130
[componentTypes.PLAIN_TEXT]: PlainTextField,

packages/pf4-component-mapper/demo/demo-schemas/sandbox.js

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -455,56 +455,6 @@ const output = {
455455
],
456456
component: components.TAB_ITEM,
457457
},
458-
{
459-
title: 'Tab 5',
460-
description: 'New tab 4',
461-
key: '557',
462-
fields: [
463-
{
464-
title: 'Tag control',
465-
key: '644',
466-
fields: [
467-
{
468-
name: 'tag_control_1',
469-
label: 'Tag Control',
470-
title: 'Tag Control',
471-
dataType: 'string',
472-
component: components.TAG_CONTROL,
473-
},
474-
{
475-
name: 'tag_control_2',
476-
label: 'Tag Control single value',
477-
title: 'Tag Control single value',
478-
dataType: 'string',
479-
component: components.TAG_CONTROL,
480-
},
481-
{
482-
name: 'tag_control_3',
483-
label: 'Tag Control category',
484-
title: 'Tag Control category',
485-
dataType: 'string',
486-
component: components.TAG_CONTROL,
487-
options: [
488-
{
489-
490-
},
491-
{
492-
493-
},
494-
{
495-
496-
},
497-
{
498-
499-
},
500-
],
501-
},
502-
],
503-
component: components.SUB_FORM,
504-
},
505-
],
506-
component: components.TAB_ITEM,
507-
},
508458
{
509459
title: 'Mixed',
510460
description: '',

packages/pf4-component-mapper/src/form-fields/component-mapper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const mapper = {
2727
[componentTypes.TABS]: Tabs,
2828
[componentTypes.DATE_PICKER]: DatePickerField,
2929
[componentTypes.TIME_PICKER]: TimePickerField,
30-
[componentTypes.TAG_CONTROL]: props => <div>Unsupported tag control</div>,
3130
[componentTypes.WIZARD]: Wizard,
3231
[componentTypes.SWITCH]: SwitchField,
3332
[componentTypes.PLAIN_TEXT]: PlainTextField,

packages/pf4-component-mapper/src/tests/field-array/__snapshots__/field-array.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ exports[`FieldArray should render array field correctly 1`] = `
3636
"sub-form": [Function],
3737
"switch-field": [Function],
3838
"tabs": [Function],
39-
"tag-control": [Function],
4039
"text-field": [Function],
4140
"textarea-field": [Function],
4241
"time-picker": [Function],

packages/react-form-renderer/demo/form-fields-mapper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const mapper = {
3030
[components.TAB_ITEM]: props => <div>tab item</div>,
3131
[components.DATE_PICKER]: props => <div>date picker</div>,
3232
[components.TIME_PICKER]: props => <div>time picker</div>,
33-
[components.TAG_CONTROL]: props => <div>tag control</div>,
3433
};
3534

3635
export default mapper;

packages/react-form-renderer/src/constants/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const components = {
1010
TAB_ITEM: 'tab-item',
1111
DATE_PICKER: 'date-picker',
1212
TIME_PICKER: 'time-picker',
13-
TAG_CONTROL: 'tag-control',
1413
WIZARD: 'wizard',
1514
SWITCH: 'switch-field',
1615
TEXTAREA: 'textarea-field',

0 commit comments

Comments
 (0)