Skip to content

Commit 8767e55

Browse files
authored
Merge pull request #1035 from navikt/cleanup-custom-components
Remove values not necessary
2 parents 6773d6a + f40880b commit 8767e55

File tree

69 files changed

+1
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1
-171
lines changed

Diff for: packages/shared-components/src/formio/components/base/editForm/api/editFormKey.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormKey = (): Component => {
44
return {
55
type: 'textfield',
6-
input: true,
76
key: 'key',
87
label: 'Nøkkel',
98
validate: {

Diff for: packages/shared-components/src/formio/components/base/editForm/api/editFormProperties.ts

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const editFormProperties = (): Component => {
1111
type: 'textfield',
1212
key: 'value',
1313
label: 'Verdi',
14-
input: true,
1514
},
1615
};
1716
};

Diff for: packages/shared-components/src/formio/components/base/editForm/conditional/editFormSimpleConditional.ts

-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const editFormSimpleConditional = (): Component => {
1212
components: [
1313
{
1414
type: 'select',
15-
input: true,
1615
label: 'Denne komponenten skal vises:',
1716
key: 'conditional.show',
1817
dataSrc: 'values',
@@ -25,7 +24,6 @@ const editFormSimpleConditional = (): Component => {
2524
},
2625
{
2726
type: 'select',
28-
input: true,
2927
label: 'Når følgende komponent:',
3028
key: 'conditional.when',
3129
dataSrc: 'custom',
@@ -38,7 +36,6 @@ const editFormSimpleConditional = (): Component => {
3836
},
3937
{
4038
type: 'textfield',
41-
input: true,
4239
label: 'Har verdien:',
4340
key: 'conditional.eq',
4441
},

Diff for: packages/shared-components/src/formio/components/base/editForm/data/editFormClearOnHide.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const editFormClearOnHide = (): Component => {
66
label: 'Nullstill verdi når feltet skjules',
77
key: 'clearOnHide',
88
defaultValue: true,
9-
input: true,
109
};
1110
};
1211

Diff for: packages/shared-components/src/formio/components/base/editForm/data/editFormDefaultValue.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const defaultValue = (type: string): Component => {
55
type,
66
label: 'Standard verdi',
77
key: 'defaultValue',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/data/editFormPrefill.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component, PrefillType } from '@navikt/skjemadigitalisering-shared-doma
33
const editFormPrefill = (): Component => {
44
return {
55
type: 'select',
6-
input: true,
76
label: 'Preutfylling',
87
key: 'prefill',
98
dataSrc: 'values',

Diff for: packages/shared-components/src/formio/components/base/editForm/data/editFormReadOnly.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const editFormReadOnly = (): Component => {
66
label: 'Skrivebeskyttet',
77
key: 'readOnly',
88
defaultValue: false,
9-
input: true,
109
};
1110
};
1211

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormAddAnother.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormAddAnother = (): Component => {
55
type: 'textfield',
66
label: 'Ledetekst på legg til knapp',
77
key: 'addAnother',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormAdditionalDescription.ts

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const editFormAdditionalDescription = (): Component => {
2727
custom:
2828
'valid = (!input && data.additionalDescriptionText) ? "Lenketekst er påkrevd, når man har utvidet beskrivelse" : true;',
2929
},
30-
input: true,
3130
},
3231
],
3332
};

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormAlertType.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormAlertType = (): Component => {
55
label: 'Type',
66
type: 'radiopanel',
77
key: 'alerttype',
8-
input: true,
98
values: [
109
{
1110
value: 'info',

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormAutoComplete.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormLabel = (): Component => {
44
return {
55
type: 'textfield',
6-
input: true,
76
key: 'autocomplete',
87
label: 'Autofullfør',
98
description:

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormAutoExpand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormAutoExpand = (): Component => {
44
return {
55
type: 'checkbox',
6-
input: true,
76
key: 'autoExpand',
87
label: 'Utvid automatisk',
98
conditional: {

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormButtonText.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const editFormButtonText = (): Component => {
88
validate: {
99
required: true,
1010
},
11-
input: true,
1211
};
1312
};
1413

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormContentForPdf.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const editFormContentForPdf = (): Component => {
77
'Denne skal ikke lengre brukes og innholdet bør fjernes. Bruk funksjonaliteten om hvor innhold skal vises istedenfor',
88
type: 'textfield',
99
key: 'contentForPdf',
10-
input: true,
1110
};
1211
};
1312

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormDisabled.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormDisabled = (): Component => {
55
type: 'checkbox',
66
label: 'Deaktivert',
77
key: 'disabled',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormFieldSize.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const editFormFieldSizeField = (): Component => {
1616
{ label: 'XS', value: 'input--xs' },
1717
],
1818
},
19-
input: true,
2019
};
2120
};
2221

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormHideLabel.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormHideLabel = (): Component => {
55
type: 'checkbox',
66
label: 'Skjul ledetekst',
77
key: 'hideLabel',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormIsInline.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormInline = (): Component => {
55
label: 'Inline',
66
type: 'navCheckbox',
77
key: 'isInline',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormLabel.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const editFormLabel = (): Component => {
88
validate: {
99
required: true,
1010
},
11-
input: true,
1211
};
1312
};
1413

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormLegend.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const editFormLegend = (): Component => {
88
validate: {
99
required: true,
1010
},
11-
input: true,
1211
};
1312
};
1413

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormRemoveAnother.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormRemoveAnother = (): Component => {
55
type: 'textfield',
66
label: 'Ledetekst på fjern knapp',
77
key: 'removeAnother',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormRowTitle.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormRowTitle = (): Component => {
55
type: 'textfield',
66
label: 'Ledetekst per rad',
77
key: 'rowTitle',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormRows.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormRows = (): Component => {
44
return {
55
type: 'number',
6-
input: true,
76
key: 'rows',
87
label: 'Antall rader',
98
};

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormSpellCheck.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormSpellCheck = (): Component => {
44
return {
55
type: 'checkbox',
6-
input: true,
76
key: 'spellcheck',
87
defaultValue: true,
98
label: 'Tillat stavekontroll',

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormTextDisplay.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
22

33
const editFormTextDisplay = (): Component => ({
44
type: 'radiopanel',
5-
input: true,
65
key: 'textDisplay',
76
defaultValue: 'form',
87
label: 'Hvor skal innholdet vises',

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editFormTitle.ts

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const editFormTitle = (): Component => {
88
validate: {
99
required: true,
1010
},
11-
input: true,
1211
};
1312
};
1413

Diff for: packages/shared-components/src/formio/components/base/editForm/display/editShowYearPicker.ts

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
22

33
const editShowYearPicker = (): Component => ({
44
type: 'checkbox',
5-
input: true,
65
key: 'visArvelger',
76
defaultValue: true,
87
label: 'Vis årvelger i kalender',

Diff for: packages/shared-components/src/formio/components/base/editForm/display/image/editFormAltText.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormAltText = (): Component => {
55
type: 'textfield',
66
label: 'Alternativ tekst',
77
key: 'altText',
8-
input: true,
98
validate: {
109
required: true,
1110
},

Diff for: packages/shared-components/src/formio/components/base/editForm/display/image/editFormImage.ts

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const editFormImage = (): Component => {
1010
image: true,
1111
filePattern: '.png, .jpg, .jpeg',
1212
webcam: false,
13-
input: true,
1413
multiple: false,
1514
validate: {
1615
required: true,

Diff for: packages/shared-components/src/formio/components/base/editForm/display/image/editFormShowInPdf.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const editFormShowInPdf = (): Component => {
66
label: 'Inkludér bilde i pdf',
77
key: 'showInPdf',
88
customDefaultValue: 'value=true',
9-
input: true,
109
};
1110
};
1211

Diff for: packages/shared-components/src/formio/components/base/editForm/display/image/editFormWidthPercentt.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const editFormWidthPercent = (): Component => {
1212
defaultValue: 100,
1313
key: 'widthPercent',
1414
type: 'number',
15-
input: true,
1615
};
1716
};
1817

Diff for: packages/shared-components/src/formio/components/base/editForm/shared/editFormAceEditor.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const editFormAceEditor = (type: 'html' | 'javascript' | 'json'): Component => {
1414
indentedSoftWrap: false,
1515
},
1616
as: type,
17-
input: true,
1817
};
1918
};
2019

Diff for: packages/shared-components/src/formio/components/base/editForm/shared/editFormValuesGrid.ts

-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { Component } from '@navikt/skjemadigitalisering-shared-domain';
33
const editFormValuesGrid = (): Component => ({
44
key: '',
55
type: 'datagrid',
6-
input: true,
76
label: 'Dataverdier',
87
reorder: true,
98
components: [
109
{
1110
label: 'Ledetekst',
1211
key: 'label',
13-
input: true,
1412
type: 'textfield',
1513
hideLabel: true,
1614
validate: {
@@ -20,7 +18,6 @@ const editFormValuesGrid = (): Component => ({
2018
{
2119
label: 'Dataverdi',
2220
key: 'value',
23-
input: true,
2421
type: 'textfield',
2522
hideLabel: true,
2623
allowCalculateOverride: true,

Diff for: packages/shared-components/src/formio/components/base/editForm/shared/editFormWysiwygEditor.ts

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const editFormWysiwygEditor = (heading: boolean = true): Component => {
1717
wysiwyg: {
1818
toolbar,
1919
},
20-
input: true,
2120
};
2221
};
2322

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/date/editFormFromDate.ts

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const editFormFromDate = (): Component => ({
1010
components: [
1111
{
1212
type: 'select',
13-
input: true,
1413
label: 'Datofelt for fra-dato',
1514
key: 'beforeDateInputKey',
1615
dataSrc: 'custom',
@@ -26,7 +25,6 @@ const editFormFromDate = (): Component => ({
2625
label: 'Kan være lik',
2726
key: 'mayBeEqual',
2827
defaultValue: false,
29-
input: true,
3028
},
3129
],
3230
});

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/date/editFormLimitRelativelyToToday.ts

-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ const editFormLimitRelativelyToToday = (): Component => ({
1010
type: 'number',
1111
label: 'Tidligst tillatt dato (antall dager fram/bak i tid)',
1212
key: 'earliestAllowedDate',
13-
input: true,
1413
},
1514
{
1615
type: 'number',
1716
label: 'Senest tillatt dato (antall dager fram/bak i tid)',
1817
key: 'latestAllowedDate',
19-
input: true,
2018
},
2119
{
2220
label: '',

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/date/editFormLimitToEarliestLatest.ts

-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ const editFormLimitToEarliestLatest = (): Component => ({
1010
type: 'navDatepicker',
1111
label: 'Tidligst tillatt dato',
1212
key: 'specificEarliestAllowedDate',
13-
input: true,
1413
},
1514
{
1615
type: 'navDatepicker',
1716
label: 'Senest tillatt dato',
1817
key: 'specificLatestAllowedDate',
19-
input: true,
2018
},
2119
],
2220
});

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/editFormCustomMessage.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormCustomMessage = (): Component => {
55
key: 'validate.customMessage',
66
label: 'Egen feilmelding',
77
type: 'textfield',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/editFormMaxLength.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormMaxLength = (): Component => {
55
type: 'number',
66
label: 'Maksimumslengde',
77
key: 'validate.maxLength',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/editFormMinLength.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormMinLength = (): Component => {
55
type: 'number',
66
label: 'Minimumslengde',
77
key: 'validate.minLength',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/base/editForm/validation/editFormRequired.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const editFormRequired = (): Component => {
55
type: 'checkbox',
66
label: 'Påkrevd',
77
key: 'validate.required',
8-
input: true,
98
};
109
};
1110

Diff for: packages/shared-components/src/formio/components/core/activities/Activities.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class Activities extends BaseComponent {
2323
label: 'Velg hvilken aktivitet du vil søke om stønad for',
2424
type: 'activities',
2525
key: 'aktivitet',
26-
input: true,
2726
hideLabel: true,
2827
});
2928
}

Diff for: packages/shared-components/src/formio/components/core/checkbox/Checkbox.ts

-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ class Checkbox extends FormioCheckbox {
88
label: 'Avkryssingsboks',
99
type: 'navCheckbox',
1010
key: 'Avkryssingsboks',
11-
input: true,
1211
hideLabel: false,
13-
clearOnHide: true,
14-
dataGridLabel: true,
1512
});
1613
}
1714

0 commit comments

Comments
 (0)