diff --git a/projects/common/models/compound-elements/likert-element-row.ts b/projects/common/models/compound-elements/likert-element-row.ts index 70e6323daf81ca0e0727c675cbcfd06624551f0f..de57211a89d958d70059f5429728811965812f8d 100644 --- a/projects/common/models/compound-elements/likert-element-row.ts +++ b/projects/common/models/compound-elements/likert-element-row.ts @@ -1,6 +1,7 @@ import { InputElement, UIElement } from '../uI-element'; +import { LikertRow } from '../../interfaces/UIElementInterfaces'; -export class LikertElementRow extends InputElement { +export class LikertElementRow extends InputElement implements LikertRow { text: string = ''; columnCount: number = 0; diff --git a/projects/editor/src/app/dialog.service.ts b/projects/editor/src/app/dialog.service.ts index 571a7a8699f8f958ddcacba33ebbd64df8aec15d..5b7ee0e0cb860768eb580ea8312da3b7ef2369b1 100644 --- a/projects/editor/src/app/dialog.service.ts +++ b/projects/editor/src/app/dialog.service.ts @@ -2,9 +2,9 @@ import { Component, Inject, Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { MAT_DIALOG_DATA, MatDialog } from '@angular/material/dialog'; -import { AnswerOption } from '../../../common/models/uI-element'; import { FileService } from '../../../common/file.service'; import { LikertElementRow } from '../../../common/models/compound-elements/likert-element-row'; +import { AnswerOption } from '../../../common/interfaces/UIElementInterfaces'; @Injectable({ providedIn: 'root' diff --git a/projects/editor/src/app/unit.service.ts b/projects/editor/src/app/unit.service.ts index 34ea72d84a203d645adbce3806aa5403ace43a09..9ea76759e3c1027a245d328f960e9cc5d6a4b845 100644 --- a/projects/editor/src/app/unit.service.ts +++ b/projects/editor/src/app/unit.service.ts @@ -13,7 +13,7 @@ import { InputElement, UIElement } from '../../../common/models/uI-element'; import { TextElement } from '../../../common/models/text-element'; import { LikertElement } from '../../../common/models/compound-elements/likert-element'; import { LikertElementRow } from '../../../common/models/compound-elements/likert-element-row'; -import { AnswerOption } from '../../../common/interfaces/UIElementInterfaces'; +import { AnswerOption, LikertRow } from '../../../common/interfaces/UIElementInterfaces'; @Injectable({ providedIn: 'root' @@ -167,7 +167,7 @@ export class UnitService { updateElementProperty(elements: UIElement[], property: string, value: string | number | boolean | string[] | - AnswerOption[] | LikertElementRow[] | null): boolean { + AnswerOption[] | LikertRow[] | null): boolean { for (const element of elements) { if (property === 'id') { if (!IdService.getInstance().isIdAvailable((value as string))) { // prohibit existing IDs