Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Apr 30, 2024
2 parents 1cc6881 + 3a90a91 commit bd09589
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 19 deletions.
16 changes: 16 additions & 0 deletions packages/docs/src/data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@
"work": "COO @ Vuetify",
"joined": "Nov 2019"
},
"alexandriajackson": {
"avatar": "https://cdn.vuetifyjs.com/docs/images/team/alexandria.jpg",
"discord": "alexandriajackson_",
"focus": [
"vuetifyjs/*"
],
"languages": [
"English"
],
"location": "Dallas, TX, USA",
"name": "Alexandria Jackson",
"team": "company",
"twitter": "AlexxJackson96",
"work": "Marketing Coordinator @ Vuetify",
"joined": "Sept 2023"
},
"KaelWD": {
"discord": "kaelwd",
"focus": [
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/examples/v-text-field/prop-dense.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-card
class="mx-auto"
color="grey-lighten-3"
color="surface-light"
max-width="400"
>
<v-card-text>
Expand Down
8 changes: 4 additions & 4 deletions packages/vuetify/src/components/VDatePicker/VDatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ export const VDatePicker = genericComponent<new <
}

watch(model, (val, oldVal) => {
const before = adapter.date(wrapInArray(val)[0])
const after = adapter.date(wrapInArray(oldVal)[0])
const newMonth = adapter.getMonth(before)
const newYear = adapter.getYear(before)
const before = adapter.date(wrapInArray(oldVal)[oldVal.length - 1])
const after = adapter.date(wrapInArray(val)[val.length - 1])
const newMonth = adapter.getMonth(after)
const newYear = adapter.getYear(after)

if (newMonth !== month.value) {
month.value = newMonth
Expand Down
17 changes: 14 additions & 3 deletions packages/vuetify/src/components/VSnackbar/VSnackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ import { VProgressLinear } from '@/components/VProgressLinear'
// Composables
import { useLayout } from '@/composables'
import { forwardRefs } from '@/composables/forwardRefs'
import { VuetifyLayoutKey } from '@/composables/layout'
import { makeLocationProps } from '@/composables/location'
import { makePositionProps, usePosition } from '@/composables/position'
import { useProxiedModel } from '@/composables/proxiedModel'
import { makeRoundedProps, useRounded } from '@/composables/rounded'
import { useScopeId } from '@/composables/scopeId'
import { makeThemeProps, provideTheme } from '@/composables/theme'
import { useToggleScope } from '@/composables/toggleScope'
import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant'

// Utilities
import { computed, mergeProps, nextTick, onMounted, onScopeDispose, ref, shallowRef, watch } from 'vue'
import { computed, inject, mergeProps, nextTick, onMounted, onScopeDispose, ref, shallowRef, watch, watchEffect } from 'vue'
import { genericComponent, omit, propsFactory, refElement, useRender } from '@/util'

// Types
Expand Down Expand Up @@ -99,7 +101,6 @@ export const VSnackbar = genericComponent<VSnackbarSlots>()({

setup (props, { slots }) {
const isActive = useProxiedModel(props, 'modelValue')
const { mainStyles } = useLayout()
const { positionClasses } = usePosition(props)
const { scopeId } = useScopeId()
const { themeClasses } = provideTheme(props)
Expand All @@ -111,6 +112,16 @@ export const VSnackbar = genericComponent<VSnackbarSlots>()({
const timerRef = ref<VProgressLinear>()
const isHovering = shallowRef(false)
const startY = shallowRef(0)
const mainStyles = ref()
const hasLayout = inject(VuetifyLayoutKey, undefined)

useToggleScope(() => !!hasLayout, () => {
const layout = useLayout()

watchEffect(() => {
mainStyles.value = layout.mainStyles.value
})
})

watch(isActive, startTimeout)
watch(() => props.timeout, startTimeout)
Expand Down Expand Up @@ -213,7 +224,7 @@ export const VSnackbar = genericComponent<VSnackbarSlots>()({
scrim={ false }
scrollStrategy="none"
_disableGlobalStack
onTouchstart={ onTouchstart }
onTouchstartPassive={ onTouchstart }
onTouchend={ onTouchend }
{ ...scopeId }
v-slots={{ activator: slots.activator }}
Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/composables/directiveComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function useDirectiveComponent (
function mountComponent (component: ConcreteComponent, props?: Record<string, any> | ((binding: DirectiveBinding) => Record<string, any>)) {
return function (el: HTMLElement, binding: DirectiveBinding, vnode: VNode) {
const _props = typeof props === 'function' ? props(binding) : props
const text = binding.value?.text ?? binding.value
const text = binding.value?.text ?? binding.value ?? _props?.text
const value = isObject(binding.value) ? binding.value : {}

// Get the children from the props or directive value, or the element's children
Expand All @@ -78,7 +78,7 @@ function mountComponent (component: ConcreteComponent, props?: Record<string, an
? findComponentParent(vnode, binding.instance!.$)?.provides
: vnode.ctx?.provides) ?? binding.instance!.$.provides

const node = h(component, mergeProps(_props, value), children)
const node = h(component, mergeProps(_props, value), { default: () => children })
node.appContext = Object.assign(
Object.create(null),
(binding.instance as ComponentPublicInstance).$.appContext,
Expand Down
1 change: 0 additions & 1 deletion packages/vuetify/src/labs/VSpeedDial/VSpeedDial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export const VSpeedDial = genericComponent<OverlaySlots>()({
appear
group
transition={ props.transition }
mode="out-in"
>
{ slots.default?.(slotProps) }
</MaybeTransition>
Expand Down
16 changes: 8 additions & 8 deletions packages/vuetify/src/locale/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default {
},
calendar: {
moreEvents: '{0} 더보기',
today: 'Today',
today: '였늘',
},
input: {
clear: 'Clear {0}',
Expand All @@ -72,29 +72,29 @@ export default {
timePicker: {
am: 'μ˜€μ „',
pm: 'μ˜€ν›„',
title: 'Select Time',
title: 'μ‹œκ°„μ„ μ„ νƒν•˜μ„Έμš”.',
},
pagination: {
ariaLabel: {
root: 'Pagination Navigation',
next: 'λ‹€μŒ νŽ˜μ΄μ§€',
previous: '이전 νŽ˜μ΄μ§€',
page: 'κ³ ν†  νŽ˜μ΄μ§€ {0}',
page: '{0} νŽ˜μ΄μ§€λ‘œ 이동',
currentPage: 'ν˜„μž¬ νŽ˜μ΄μ§€, νŽ˜μ΄μ§€ {0}',
first: 'First page',
last: 'Last page',
first: '첫 νŽ˜μ΄μ§€',
last: 'λ§ˆμ§€λ§‰ νŽ˜μ΄μ§€',
},
},
stepper: {
next: 'Next',
prev: 'Previous',
next: 'λ‹€μŒ',
prev: '이전',
},
rating: {
ariaLabel: {
item: 'Rating {0} of {1}',
},
},
loading: 'Loading...',
loading: 'λΆˆλŸ¬μ˜€λŠ” 쀑...',
infiniteScroll: {
loadMore: 'Load more',
empty: 'No more',
Expand Down

0 comments on commit bd09589

Please sign in to comment.