-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work for surveyjs/survey-creator#4780 - Support Vue 3 in SurveyJS Cre…
…ator - implemented element wrapper (#7238) * Work for surveyjs/survey-creator#4780 - Support Vue 3 in SurveyJS Creator - implemented element wrapper * Small refactor * Fix warnings in Toolbox * Fix composite question * Fix question adorner model is created multiple times * Fix matrix detail panel * Fix action bar warning * Implement content wrapper + fix potential warnings * Implement buttongroup question * Implement matrix cell wrapper * Fix panel doesnt render skeleton component * Refactor action bar item * Implement wrapper for logo component * small refactor * Implement wrapper for panel inside paneldynamic * Implement wrapper for row component * Fix matrix cell warnings * Add watch command * Fix panel tries to load all elements if collapsed before mount * Fix action bar's handle click is not working * Implement wrapper for detail panel * Fix d&d for matrix rows * Fix panel's focusin doesnt work * Fix d&d is not working from list * Fix disableTabStop is not working * Implement wrappers for ranking/radiogroup/checkbox/imagepicker items values * Fix vue3 responsivity doesnt work when reseting item min/max dimensions * Implement wrappers for matrix single choice * Fix lazy rendering breaks when row changed * Fix warnings * Fix vue f test * Fix handleClick is false by default (need true) * Fix advanced header component * Fix recursive updates in multipletext --------- Co-authored-by: tsv2013 <tsv2013@noreply.github.com> Co-authored-by: Dmitry Kuzin <dk981234@gmail.com>
- Loading branch information
1 parent
1161afe
commit b8003fb
Showing
59 changed files
with
1,028 additions
and
599 deletions.
There are no files selected for viewing
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
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,89 +1,13 @@ | ||
<template> | ||
<fieldset | ||
:class="question.getSelectBaseRootCss()" | ||
ref="root" | ||
:role="question.a11y_input_ariaRole" | ||
:aria-required="question.a11y_input_ariaRequired" | ||
:aria-label="question.a11y_input_ariaLabel" | ||
:aria-labelledby="question.a11y_input_ariaLabelledBy" | ||
:aria-invalid="question.a11y_input_ariaInvalid" | ||
:aria-describedby="question.a11y_input_ariaDescribedBy" | ||
> | ||
<legend class="sv-hidden">{{question.locTitle.renderedHtml}}</legend> | ||
<template v-if="question.hasHeadItems"> | ||
<survey-checkbox-item | ||
v-for="(item, index) in question.headItems" | ||
:key="item.value" | ||
:class="question.getItemClass(item)" | ||
:question="question" | ||
:item="item" | ||
:index="'' + index" | ||
></survey-checkbox-item> | ||
</template> | ||
<template v-if="!question.hasColumns && !question.blockedRow"> | ||
<survey-checkbox-item | ||
v-for="(item, index) in question.bodyItems" | ||
:key="item.value" | ||
:class="question.getItemClass(item)" | ||
:question="question" | ||
:item="item" | ||
:index="index" | ||
></survey-checkbox-item> | ||
</template> | ||
<div :class="question.cssClasses.rootRow" v-if="question.blockedRow"> | ||
<template v-if="!question.hasColumns && question.blockedRow"> | ||
<survey-checkbox-item | ||
v-for="(item, index) in question.dataChoices" | ||
:key="item.value" | ||
:class="question.getItemClass(item)" | ||
:question="question" | ||
:item="item" | ||
:index="index" | ||
></survey-checkbox-item> | ||
</template> | ||
</div> | ||
<div | ||
v-if="question.hasColumns" | ||
:class="question.cssClasses.rootMultiColumn" | ||
> | ||
<div | ||
v-for="(column, colIndex) in question.columns" | ||
:key="colIndex" | ||
:class="question.getColumnClass()" | ||
role="presentation" | ||
> | ||
<survey-checkbox-item | ||
v-for="(item, index) in column" | ||
:key="item.value" | ||
:class="question.getItemClass(item)" | ||
:question="question" | ||
:item="item" | ||
:index="'' + colIndex + index" | ||
></survey-checkbox-item> | ||
</div> | ||
</div> | ||
<template v-if="question.hasFootItems"> | ||
<survey-checkbox-item | ||
v-for="(item, index) in question.footItems" | ||
:key="item.value" | ||
:class="question.getItemClass(item)" | ||
:question="question" | ||
:item="item" | ||
:index="'' + index" | ||
></survey-checkbox-item> | ||
</template> | ||
<survey-other-choice | ||
v-if="question.renderedValue && question.isOtherSelected" | ||
:question="question" | ||
/> | ||
</fieldset> | ||
<SelectBase | ||
:question="question" | ||
:input-type="'checkbox'" | ||
:show-legend="true" | ||
></SelectBase> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import type { QuestionCheckboxModel } from "survey-core"; | ||
import { useQuestion } from "./base"; | ||
import { ref } from "vue"; | ||
const props = defineProps<{ question: QuestionCheckboxModel }>(); | ||
const root = ref(null); | ||
useQuestion(props, root); | ||
import SelectBase from "./SelectBase.vue"; | ||
defineOptions({ inheritAttrs: false }); | ||
defineProps<{ question: QuestionCheckboxModel }>(); | ||
</script> |
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
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
Oops, something went wrong.