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 10, 2024
2 parents dd929f5 + 3feeb77 commit b51fc39
Show file tree
Hide file tree
Showing 25 changed files with 123 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
}
},
"npmClient": "yarn",
"version": "3.5.14",
"version": "3.5.15",
"useWorkspaces": true
}
4 changes: 2 additions & 2 deletions packages/api-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vuetify/api-generator",
"version": "3.5.14",
"version": "3.5.15",
"private": true,
"description": "",
"scripts": {
Expand All @@ -17,7 +17,7 @@
"ts-morph": "^20.0.0",
"tsx": "^4.6.2",
"vue": "^3.4.19",
"vuetify": "^3.5.14"
"vuetify": "^3.5.15"
},
"devDependencies": {
"@types/stringify-object": "^4.0.5"
Expand Down
3 changes: 2 additions & 1 deletion packages/api-generator/src/locale/en/VOverlay.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"zIndex": "The z-index used for the component."
},
"events": {
"click:outside": "Event that fires when clicking outside an active overlay."
"click:outside": "Event that fires when clicking outside an active overlay.",
"afterLeave": "Event that fires after the overlay has finished transitioning out."
}
}
8 changes: 4 additions & 4 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A Vue.js project",
"private": true,
"author": "John Leider <[email protected]>",
"version": "3.5.14",
"version": "3.5.15",
"repository": {
"type": "git",
"url": "git+https://github.com/vuetifyjs/vuetify.git",
Expand All @@ -24,7 +24,7 @@
"@vercel/analytics": "^1.2.2",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vuetify/one": "^1.5.4",
"@vuetify/one": "^1.5.5",
"algoliasearch": "^4.20.0",
"fflate": "^0.8.1",
"isomorphic-fetch": "^3.0.0",
Expand All @@ -39,7 +39,7 @@
"vue-i18n": "^9.7.1",
"vue-instantsearch": "^4.12.1",
"vue-prism-component": "^2.0.0",
"vuetify": "^3.5.14"
"vuetify": "^3.5.15"
},
"devDependencies": {
"@emailjs/browser": "^3.11.0",
Expand All @@ -51,7 +51,7 @@
"@vitejs/plugin-basic-ssl": "^1.0.2",
"@vitejs/plugin-vue": "^4.5.2",
"@vue/compiler-sfc": "^3.4.19",
"@vuetify/api-generator": "^3.5.14",
"@vuetify/api-generator": "^3.5.15",
"ajv": "^8.12.0",
"async-es": "^3.2.5",
"date-fns": "^2.30.0",
Expand Down
22 changes: 11 additions & 11 deletions packages/docs/src/components/app/bar/Bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@

<template #append>
<template v-if="mdAndUp">
<app-bar-learn-menu />
<AppBarLearnMenu />

<app-bar-support-menu />
<AppBarSupportMenu />

<app-bar-ecosystem-menu />
<AppBarEcosystemMenu />

<app-bar-team-link v-if="lgAndUp" />
<AppBarTeamLink v-if="lgAndUp" />

<app-bar-playground-link v-if="lgAndUp" />
<AppBarPlaygroundLink v-if="lgAndUp" />

<app-bar-enterprise-link />
<AppBarEnterpriseLink />
</template>

<app-vertical-divider v-if="smAndUp" class="ms-3 me-2" />
<AppVerticalDivider v-if="smAndUp" class="ms-3 me-2" />

<app-bar-store-link v-if="smAndUp" />
<AppBarStoreLink v-if="smAndUp" />

<app-bar-jobs-link v-if="smAndUp" />
<AppBarJobsLink v-if="smAndUp" />

<app-bar-language-menu v-if="smAndUp" />
<AppBarLanguageMenu v-if="smAndUp" />

<app-bar-settings-toggle />
<AppBarSettingsToggle />
</template>
</VoAppBar>
</template>
Expand Down
3 changes: 1 addition & 2 deletions packages/docs/src/components/app/bar/EnterpriseLink.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<template>
<AppBtn
:text="t('enterprise')"
:to="rpath('/introduction/enterprise-support/')"
class="ms-1"
color="primary"
text="enterprise"
variant="outlined"
@click="gtagClick('app-bar', 'enterprise', name)"
/>
</template>

<script setup>
const { t } = useI18n()
const { name } = useRoute()
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</v-expansion-panel>

<v-expansion-panel>
<v-expansion-panel-title v-slot="{ open }">
<v-expansion-panel-title v-slot="{ expanded }">
<v-row no-gutters>
<v-col class="d-flex justify-start" cols="4">
Location
Expand All @@ -50,7 +50,7 @@
>
<v-fade-transition leave-absolute>
<span
v-if="open"
v-if="expanded"
key="0"
>
Select trip destination
Expand Down Expand Up @@ -109,7 +109,7 @@
</v-expansion-panel>

<v-expansion-panel>
<v-expansion-panel-title v-slot="{ open }">
<v-expansion-panel-title v-slot="{ expanded }">
<v-row no-gutters>
<v-col class="d-flex justify-start" cols="4">
Start and end dates
Expand All @@ -119,7 +119,7 @@
cols="8"
>
<v-fade-transition leave-absolute>
<span v-if="open">When do you want to travel?</span>
<span v-if="expanded">When do you want to travel?</span>
<v-row
v-else
style="width: 100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ headers = [

See [Data and display](/components/data-tables/data-and-display).

#### Customisation
#### Customization

Other options are available for setting **width**, **align**, **fixed**, or pass custom props to the header element with **headerProps** and row cells with **cellProps**.

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/pages/en/features/sass-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Only put variables, mixins, and functions in the settings file, styles should be

### Build performance

Vuetify loads precompiled CSS by default, enabling variable customisation will switch to the base SASS files instead which must be recompiled with your project.
Vuetify loads precompiled CSS by default, enabling variable customization will switch to the base SASS files instead which must be recompiled with your project.
This can be a performance hit if you're using more than a few vuetify components, and also forces you to use the same SASS compiler version as us.

### Symlinks
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/pages/en/styles/borders.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Setting the **border** property to true applies a component specific border clas

<ExamplesExample file="border/card" />

### SASS variables
## SASS variables

You can also use the following SASS variables to customize the border color and width:

Expand Down
48 changes: 32 additions & 16 deletions packages/docs/src/pages/en/styles/cursor.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ related:
- /styles/content/
- /styles/spacing/
- /styles/text-and-typography/
features:
report: true
---

# Cursor
Expand All @@ -16,30 +18,44 @@ Utilities for controlling the cursor styling when hovering over elements.

<PageFeatures />

| Class | Properties | |
| - | - | - |
| **cursor-auto** | cursor: auto; |
| **cursor-default** | cursor: default; |
| **cursor-grab** | cursor: grab; |
| **cursor-grabbing** | cursor: grabbing; |
| **cursor-help** | cursor: help; |
| **cursor-move** | cursor: move; |
| **cursor-none** | cursor: none; |
| **cursor-not-allowed** | cursor: not-allowed; |
| **cursor-pointer** | cursor: pointer; |
| **cursor-progress** | cursor: progress; |
| **cursor-text** | cursor: text; |
| **cursor-wait** | cursor: wait; { style="max-height: 420px;" fixed-header } |

<PromotedEntry />

## Usage

Apply custom cursor styling to a component or element.

<ExamplesExample file="cursor/usage" />

| Class | Properties | |
| - | - | - |
| **cursor-auto** | cursor: auto; | |
| **cursor-default** | cursor: default; | |
| **cursor-grab** | cursor: grab; | |
| **cursor-grabbing** | cursor: grabbing; | |
| **cursor-help** | cursor: help; | |
| **cursor-move** | cursor: move; | |
| **cursor-none** | cursor: none; | |
| **cursor-not-allowed** | cursor: not-allowed; | |
| **cursor-pointer** | cursor: pointer; | |
| **cursor-progress** | cursor: progress; | |
| **cursor-text** | cursor: text; | |
| **cursor-wait** | cursor: wait; | |
## SASS variables

<PromotedEntry />
You can also use the following SASS variables to customize the border color and width:

## Disable
```scss { resource="src/styles/settings.scss" }
@use 'vuetify/settings' with (
$utilities: (
"cursor": (
property: cursor,
class: cursor,
values: auto default pointer wait text move help not-allowed progress grab grabbing none
)
)
);
```

Disable the generation of **cursor** utility classes by overwriting the utilities value:

Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vuetify",
"description": "Vue Material Component Framework",
"version": "3.5.14",
"version": "3.5.15",
"author": {
"name": "John Leider",
"email": "[email protected]"
Expand Down
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VBtn/VBtn.sass
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@
top: 0
width: 100%

> .v-progress-circular
width: $button-loader-size
height: $button-loader-size

.v-btn__content,
.v-btn__prepend,
.v-btn__append
Expand Down
1 change: 0 additions & 1 deletion packages/vuetify/src/components/VBtn/VBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ export const VBtn = genericComponent<VBtnSlots>()({
<VProgressCircular
color={ typeof props.loading === 'boolean' ? undefined : props.loading }
indeterminate
size="23"
width="2"
/>
)}
Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VBtn/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $button-stacked-icon-margin: 4px !default;
$button-icon-border-radius: map.get(settings.$rounded, 'circle') !default;
$button-icon-font-size: 1rem !default;
$button-line-height: normal !default;
$button-loader-size: 1.5em !default;
$button-stacked-line-height: 1.25 !default;
$button-plain-opacity: .62 !default;
$button-padding-ratio: 2.25 !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useOptions ({
if (deepEqual(oldOptions, options.value)) return

// Reset page when searching
if (oldOptions?.search !== options.value.search) {
if (oldOptions && oldOptions.search !== options.value.search) {
page.value = 1
}

Expand Down
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VDialog/VDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const VDialog = genericComponent<OverlaySlots>()({
props: makeVDialogProps(),

emits: {
'click:outside': (e: MouseEvent) => true,
'update:modelValue': (value: boolean) => true,
afterLeave: () => true,
},

setup (props, { slots }) {
Expand Down
4 changes: 3 additions & 1 deletion packages/vuetify/src/components/VMenu/VMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export const VMenu = genericComponent<OverlaySlots>()({
function onKeydown (e: KeyboardEvent) {
if (props.disabled) return

if (e.key === 'Tab') {
if (e.key === 'Tab' || (e.key === 'Enter' && !props.closeOnContentClick)) {
if (e.key === 'Enter') e.preventDefault()

const nextElement = getNextElement(
focusableChildren(overlay.value?.contentEl as Element, false),
e.shiftKey ? 'prev' : 'next',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function useSelectionControl (
model.value &&
!props.error &&
!props.disabled
) ? props.color : undefined
) ? props.color : props.baseColor
}))
const icon = computed(() => model.value ? props.trueIcon : props.falseIcon)

Expand Down
9 changes: 5 additions & 4 deletions packages/vuetify/src/composables/__tests__/rounded.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ describe('rounded.ts', () => {
[{}, []],
[{ rounded: null }, []],
[{ rounded: 1 }, []],
// // Rounded only
// Rounded only
[{ rounded: true }, ['foo--rounded']],
[{ rounded: '' }, ['foo--rounded']],
// // Rounded with 0
// Rounded with 0
[{ rounded: '0' }, ['rounded-0']],
[{ rounded: 0 }, ['rounded-0']],
// // Rounded with a word
[{ rounded: false }, ['rounded-0']],
// Rounded with a word
[{ rounded: 'circle' }, ['rounded-circle']],
[{ rounded: 'shaped' }, ['rounded-shaped']],
[{ rounded: 'pill' }, ['rounded-pill']],
// // Corner and axis rounded
// Corner and axis rounded
[{ rounded: 'te-xl be-lg' }, ['rounded-te-xl', 'rounded-be-lg']],
] as RoundedProps[])('should return correct rounded classes', (props: RoundedProps, expected: any) => {
const { roundedClasses } = useRounded(props, 'foo')
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/rounded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function useRounded (
for (const value of String(rounded).split(' ')) {
classes.push(`rounded-${value}`)
}
} else if (tile) {
} else if (tile || rounded === false) {
classes.push('rounded-0')
}

Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/labs/VTimePicker/VTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ export const VTimePicker = genericComponent<VTimePickerSlots>()({
case 'hour':
emit('update:hour', value)
break
case 'minutes':
case 'minute':
emit('update:minute', value)
break
case 'seconds':
case 'second':
emit('update:second', value)
break
default:
Expand Down
Loading

0 comments on commit b51fc39

Please sign in to comment.