Skip to content

Commit

Permalink
Merge pull request #279 from digitalservicebund/add_new_option_sugges…
Browse files Browse the repository at this point in the history
…t_input

Refactor: add new option auto suggest input
  • Loading branch information
aaschlote authored Jun 13, 2024
2 parents a036478 + b72f028 commit dc0d99f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/components/form-elements/auto-suggest-input.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"collectionName": "components_form_elements_auto_suggest_inputs",
"info": {
"displayName": "AutoSuggestInput"
"displayName": "AutoSuggestInput",
"description": ""
},
"options": {},
"attributes": {
Expand Down Expand Up @@ -35,7 +36,8 @@
"dataList": {
"type": "enumeration",
"enum": [
"airports"
"airports",
"airlines"
]
},
"noSuggestionMessage": {
Expand Down
12 changes: 7 additions & 5 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export interface FormElementsAutoSuggestInput extends Schema.Component {
collectionName: 'components_form_elements_auto_suggest_inputs';
info: {
displayName: 'AutoSuggestInput';
description: '';
};
attributes: {
name: Attribute.String;
Expand All @@ -100,7 +101,7 @@ export interface FormElementsAutoSuggestInput extends Schema.Component {
'characters54'
]
>;
dataList: Attribute.Enumeration<['airports']>;
dataList: Attribute.Enumeration<['airports', 'airlines']>;
noSuggestionMessage: Attribute.String;
};
}
Expand Down Expand Up @@ -342,7 +343,7 @@ export interface FormHelperTile extends Schema.Component {
title: Attribute.String & Attribute.Required;
description: Attribute.RichText;
value: Attribute.String & Attribute.Required;
image: Attribute.Media;
image: Attribute.Media<'images'>;
tagDescription: Attribute.String;
};
}
Expand Down Expand Up @@ -464,7 +465,8 @@ export interface PageBoxWithImage extends Schema.Component {
identifier: Attribute.String;
heading: Attribute.Component<'basic.heading'>;
content: Attribute.RichText;
image: Attribute.Media & Attribute.Required;
image: Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
Attribute.Required;
container: Attribute.Component<'meta.container'> & Attribute.Required;
outerBackground: Attribute.Component<'meta.background'>;
imageLabel: Attribute.String;
Expand Down Expand Up @@ -524,7 +526,7 @@ export interface PageInfoBoxItem extends Schema.Component {
attributes: {
identifier: Attribute.String;
label: Attribute.Component<'basic.heading'>;
image: Attribute.Media;
image: Attribute.Media<'images'>;
content: Attribute.RichText;
headline: Attribute.Component<'basic.heading'>;
buttons: Attribute.Component<'form-elements.button', true>;
Expand Down Expand Up @@ -597,7 +599,7 @@ export interface PageListItem extends Schema.Component {
attributes: {
identifier: Attribute.String;
label: Attribute.Component<'basic.heading'>;
image: Attribute.Media;
image: Attribute.Media<'images'>;
content: Attribute.RichText;
headline: Attribute.Component<'basic.heading'>;
buttons: Attribute.Component<'form-elements.button', true>;
Expand Down
2 changes: 1 addition & 1 deletion types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ export interface ApiFooterFooter extends Schema.SingleType {
};
};
attributes: {
image: Attribute.Media &
image: Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
Expand Down

0 comments on commit dc0d99f

Please sign in to comment.