Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ui-editor): Remove LikertItem component #14108

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/language/src/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,6 @@
"ux_editor.component_title.InstanceInformation": "Informasjon om eksemplaret",
"ux_editor.component_title.InstantiationButton": "Start eksemplar",
"ux_editor.component_title.Likert": "Likert-skala",
"ux_editor.component_title.LikertItem": "Likertelement",
"ux_editor.component_title.Link": "Lenke",
"ux_editor.component_title.List": "Liste",
"ux_editor.component_title.Map": "Stedfeste i kart",
Expand Down
6 changes: 0 additions & 6 deletions frontend/packages/shared/src/types/ComponentSpecificConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,6 @@ export type ComponentSpecificConfig<T extends ComponentType = ComponentType> = {
dataModelBindings: DataModelBindingsLikert;
filter?: { key: 'start' | 'stop'; value: string | number };
};
[ComponentType.LikertItem]: FormComponentProps &
SummarizableComponentProps &
SelectionComponentFull & {
dataModelBindings: DataModelBindingsOptionsSimple;
layout?: LayoutStyle;
};
[ComponentType.Link]: {
style: 'primary' | 'secondary' | 'link';
openInNewTab?: boolean;
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/shared/src/types/ComponentType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export enum ComponentType {
InstanceInformation = 'InstanceInformation',
InstantiationButton = 'InstantiationButton',
Likert = 'Likert',
LikertItem = 'LikertItem',
Link = 'Link',
List = 'List',
Map = 'Map',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const expressionPropertiesOnFormItem = <T extends ComponentType>(
case ComponentType.FileUploadWithTag:
case ComponentType.Input:
case ComponentType.Likert:
case ComponentType.LikertItem:
case ComponentType.List:
case ComponentType.Map:
case ComponentType.MultipleSelect:
Expand Down
12 changes: 0 additions & 12 deletions frontend/packages/ux-editor/src/data/formItemConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,6 @@ export const formItemConfigs: FormItemConfigs = {
propertyPath: 'definitions/radioAndCheckboxComponents',
icon: LikertIcon,
},
[ComponentType.LikertItem]: {
name: ComponentType.LikertItem,
itemType: LayoutItemType.Component,
defaultProperties: {
dataModelBindings: {
simpleBinding: '',
},
},
propertyPath: 'definitions/radioAndCheckboxComponents',
icon: LikertIcon,
},
[ComponentType.Link]: {
name: ComponentType.Link,
itemType: LayoutItemType.Component,
Expand Down Expand Up @@ -533,7 +522,6 @@ export const schemaComponents: FormItemConfigs[ComponentType][] = [
formItemConfigs[ComponentType.Dropdown],
formItemConfigs[ComponentType.MultipleSelect],
formItemConfigs[ComponentType.Likert],
formItemConfigs[ComponentType.LikertItem],
formItemConfigs[ComponentType.Datepicker],
formItemConfigs[ComponentType.FileUpload],
formItemConfigs[ComponentType.FileUploadWithTag],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import InputSchema from './schemas/json/component/Input.schema.v1.json';
import InstanceInformationSchema from './schemas/json/component/InstanceInformation.schema.v1.json';
import InstantiationButtonSchema from './schemas/json/component/InstantiationButton.schema.v1.json';
import LikertSchema from './schemas/json/component/Likert.schema.v1.json';
import LikertItemSchema from './schemas/json/component/LikertItem.schema.v1.json';
import LinkSchema from './schemas/json/component/Link.schema.v1.json';
import ListSchema from './schemas/json/component/List.schema.v1.json';
import MapSchema from './schemas/json/component/Map.schema.v1.json';
Expand Down Expand Up @@ -68,7 +67,6 @@ export const componentSchemaMocks: Record<ComponentType, JsonSchema> = {
[ComponentType.InstanceInformation]: InstanceInformationSchema,
[ComponentType.InstantiationButton]: InstantiationButtonSchema,
[ComponentType.Likert]: LikertSchema,
[ComponentType.LikertItem]: LikertItemSchema,
[ComponentType.Link]: LinkSchema,
[ComponentType.List]: ListSchema,
[ComponentType.Map]: MapSchema,
Expand Down

This file was deleted.

Loading