chore(deps): set debug resolution and refresh lock

This commit is contained in:
Benjamin Canac
2024-12-13 15:08:07 +01:00
parent 2fc43d66d5
commit babfcdcb02
5 changed files with 1012 additions and 1572 deletions

View File

@@ -43,9 +43,9 @@ const code = computed(() => {
const slotsTemplate = props.themeSlots const slotsTemplate = props.themeSlots
? genPropValue(Object.keys(props.themeSlots).filter(key => key !== 'base').reduce((acc, key) => { ? genPropValue(Object.keys(props.themeSlots).filter(key => key !== 'base').reduce((acc, key) => {
acc[key] = genPropValue(props.themeSlots?.[key]) acc[key] = genPropValue(props.themeSlots?.[key])
return acc return acc
}, {} as Record<string, string>)) }, {} as Record<string, string>))
: undefined : undefined
const extraTemplate = [ const extraTemplate = [

View File

@@ -144,18 +144,18 @@ const options = computed(() => {
const propItems = get(props.items, key, []) const propItems = get(props.items, key, [])
const items = propItems.length const items = propItems.length
? propItems.map((item: any) => ({ ? propItems.map((item: any) => ({
value: item, value: item,
label: String(item) label: String(item)
})) }))
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined' : prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
? [{ value: true, label: 'true' }, { value: false, label: 'false' }] ? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
: Object.keys(componentTheme?.variants?.[key] || {}).filter((variant) => { : Object.keys(componentTheme?.variants?.[key] || {}).filter((variant) => {
return variant !== 'true' && variant !== 'false' return variant !== 'true' && variant !== 'false'
}).map(variant => ({ }).map(variant => ({
value: variant, value: variant,
label: variant, label: variant,
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
})) }))
return { return {
name: key, name: key,

View File

@@ -146,6 +146,7 @@
"resolutions": { "resolutions": {
"@nuxt/ui": "workspace:*", "@nuxt/ui": "workspace:*",
"chokidar": "3.6.0", "chokidar": "3.6.0",
"debug": "4.3.7",
"happy-dom": "14.12.3", "happy-dom": "14.12.3",
"rollup": "^4.24.0", "rollup": "^4.24.0",
"typescript": "5.6.3", "typescript": "5.6.3",

2545
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -125,13 +125,13 @@ async function _validate(opts: { name?: string | string[], silent?: boolean, nes
const nestedValidatePromises = !names && opts.nested const nestedValidatePromises = !names && opts.nested
? Array.from(nestedForms.value.values()).map( ? Array.from(nestedForms.value.values()).map(
({ validate }) => validate().then(() => undefined).catch((error: Error) => { ({ validate }) => validate().then(() => undefined).catch((error: Error) => {
if (!(error instanceof FormValidationException)) { if (!(error instanceof FormValidationException)) {
throw error throw error
} }
return error return error
}) })
) )
: [] : []
if (names) { if (names) {