-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bcce5f
commit fa44e5f
Showing
13 changed files
with
18 additions
and
28 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/Liquid-Core.package/LQPollDraft.class/instance/isValid.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
accessing | ||
isValid | ||
|
||
self questionList notEmpty ifFalse: [^ false]. | ||
self questionList do: [:question | (question title isEmptyOrNil not and: [question choiceList notEmpty or: [question isFreeTextQuestion]]) ifFalse: [^ false]]. | ||
self questionList ifEmpty: [^ false]. | ||
(self questionList contains: [:question | (question title isEmptyOrNil not and: [question choiceList notEmpty or: [question isFreeTextQuestion]]) not]) ifTrue: [^ false]. | ||
^ true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/Liquid-UI.package/LQPollDraftBuilder.class/class/newWithPollDraft..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
instance creation | ||
newWithPollDraft: aLQPollDraft | ||
|
||
| aPollDraftBuilder | | ||
| aPollDraftBuilder questionBuilders | | ||
aPollDraftBuilder := self new. | ||
aPollDraftBuilder pollDraft: aLQPollDraft. | ||
aPollDraftBuilder questionBuilders removeAll. | ||
aLQPollDraft questionList do: [:currentQuestion | | questionBuilder | | ||
questionBuilders := aLQPollDraft questionList collect: [:currentQuestion | | questionBuilder | | ||
currentQuestion isMultiChoiceQuestion ifTrue: [questionBuilder := LQMultiChoiceQuestionBuilder new]. | ||
currentQuestion isPriorityQuestion ifTrue: [questionBuilder := LQPriorityQuestionBuilder new]. | ||
currentQuestion isFreeTextQuestion ifTrue: [questionBuilder := LQFreeTextQuestionBuilder new]. | ||
questionBuilder question: currentQuestion. | ||
aPollDraftBuilder questionBuilders add: questionBuilder]. | ||
questionBuilder]. | ||
aPollDraftBuilder questionBuilders addAll: questionBuilders. | ||
^ aPollDraftBuilder |
4 changes: 0 additions & 4 deletions
4
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/host.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/Liquid-UI.package/LQPollDraftBuilder.class/instance/removeQuestion.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/Liquid-UI.package/LQSelectionAnswerPanel.class/instance/isEveryChoiceRanked.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
validation | ||
isEveryChoiceRanked | ||
|
||
^ self question isPriorityQuestion ==> (self selectedChoices size = self question maxNumberOfChoices) | ||
^ self question isPriorityQuestion ==> (self selectedChoices size = self question maxNumberOfChoices) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters