-
Notifications
You must be signed in to change notification settings - Fork 295
[Remove Vuetify from Studio] Checkboxes and chips in the library side panel #5703
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
base: unstable
Are you sure you want to change the base?
Changes from all commits
3cca8e3
0b4e9ed
1529da2
3bbf0ed
25f17ac
a2bf33e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,23 +23,23 @@ | |
| lazy | ||
| > | ||
| <template #activator="{ on }"> | ||
| <VChip | ||
| <StudioChip | ||
| class="ma-1" | ||
| v-on="on" | ||
| > | ||
| <div class="text-truncate"> | ||
| {{ item.name }} | ||
| </div> | ||
| </VChip> | ||
| </StudioChip> | ||
| </template> | ||
| <span>{{ item.name }}</span> | ||
| </VTooltip> | ||
| </template> | ||
| <template #item="{ item }"> | ||
| <Checkbox | ||
| <KCheckbox | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that this Checkbox here is just presentational (it isn't in charge of emitting the events), could you please set the |
||
| :key="item.id" | ||
| :ref="'checkbox-' + item.id" | ||
| v-model="languages" | ||
| :checked="languages.includes(item.id)" | ||
| :value="item.id" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
| class="mb-0 mt-1 scroll-margin" | ||
| :labelDir="null" | ||
|
|
@@ -59,7 +59,7 @@ | |
| </template> | ||
| <span>{{ item.name }}</span> | ||
| </VTooltip> | ||
| </Checkbox> | ||
| </KCheckbox> | ||
| </template> | ||
| </VAutocomplete> | ||
|
|
||
|
|
@@ -68,8 +68,8 @@ | |
|
|
||
| <script> | ||
|
|
||
| import Checkbox from 'shared/views/form/Checkbox'; | ||
| import LanguagesMap, { LanguagesList } from 'shared/leUtils/Languages'; | ||
| import StudioChip from 'shared/views/StudioChip.vue'; | ||
|
|
||
| const publicLanguages = Object.entries(window.publicLanguages || {}).map(([langId, count]) => { | ||
| const baseLanguage = LanguagesMap.get(langId); | ||
|
|
@@ -86,7 +86,7 @@ | |
| export default { | ||
| name: 'LanguageFilter', | ||
| components: { | ||
| Checkbox, | ||
| StudioChip, | ||
| }, | ||
| props: { | ||
| value: { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,14 +17,14 @@ | |
| @blur="resetScroll" | ||
| > | ||
| <template #selection="{ item }"> | ||
| <VChip :class="{ notranslate }"> | ||
| <StudioChip :class="{ notranslate }"> | ||
| {{ item.text }} | ||
| </VChip> | ||
| </StudioChip> | ||
| </template> | ||
| <template #item="{ item }"> | ||
| <Checkbox | ||
| <KCheckbox | ||
| :ref="'checkbox-' + item.value" | ||
| v-model="selections" | ||
| :checked="selections.includes(item.value)" | ||
| :value="item.value" | ||
| class="scroll-margin" | ||
| > | ||
|
Comment on lines
+25
to
30
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idem, we can use |
||
|
|
@@ -35,7 +35,7 @@ | |
| > | ||
| {{ item.text }} | ||
| </span> | ||
| </Checkbox> | ||
| </KCheckbox> | ||
| </template> | ||
| </VSelect> | ||
| </template> | ||
|
|
@@ -46,12 +46,12 @@ | |
|
|
||
| <script> | ||
|
|
||
| import Checkbox from './Checkbox'; | ||
| import StudioChip from '../StudioChip.vue'; | ||
| import DropdownWrapper from './DropdownWrapper'; | ||
|
|
||
| export default { | ||
| name: 'MultiSelect', | ||
| components: { Checkbox, DropdownWrapper }, | ||
| components: { DropdownWrapper, StudioChip }, | ||
| // $attrs are rebound to a descendent component | ||
| inheritAttrs: false, | ||
| props: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we don't need this
v-on="on"now, right? Because the only thing theStudioChipemits is@close, but that is only if we set thecloseprop to true.