mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(deps): set debug resolution and refresh lock
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
2545
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user