@bitrix24/b24ui-nuxt 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/b24ui/content/description-list.ts +2 -2
- package/.nuxt/b24ui/modal.ts +2 -2
- package/.nuxt/b24ui/radio-group.ts +1 -1
- package/.nuxt/b24ui/select-menu.ts +2 -1
- package/cli/package.json +1 -1
- package/dist/meta.cjs +76 -26
- package/dist/meta.d.cts +76 -26
- package/dist/meta.d.mts +76 -26
- package/dist/meta.d.ts +76 -26
- package/dist/meta.mjs +76 -26
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/DropdownMenu.vue +8 -0
- package/dist/runtime/components/DropdownMenuContent.vue +5 -3
- package/dist/runtime/components/InputNumber.vue +3 -2
- package/dist/runtime/components/SelectMenu.vue +72 -68
- package/dist/runtime/components/Textarea.vue +2 -1
- package/dist/runtime/vue/components/Link.vue +90 -18
- package/dist/shared/{b24ui-nuxt.V9TzyCqH.mjs → b24ui-nuxt.CAS1q3My.mjs} +14 -10
- package/dist/shared/{b24ui-nuxt.DGjopCKm.cjs → b24ui-nuxt.D-N3gDSr.cjs} +14 -10
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -23
|
@@ -73,7 +73,7 @@ export interface LinkProps extends NuxtLinkProps {
|
|
|
73
73
|
/** Will only be active if the current route is an exact match. */
|
|
74
74
|
exact?: boolean
|
|
75
75
|
/** Will only be active if the current route query is an exact match. */
|
|
76
|
-
exactQuery?: boolean
|
|
76
|
+
exactQuery?: boolean | 'partial'
|
|
77
77
|
/** Will only be active if the current route hash is an exact match. */
|
|
78
78
|
exactHash?: boolean
|
|
79
79
|
/** The class to apply when the link is inactive. */
|
|
@@ -92,8 +92,8 @@ export interface LinkSlots {
|
|
|
92
92
|
</script>
|
|
93
93
|
|
|
94
94
|
<script setup lang="ts">
|
|
95
|
-
import { computed } from 'vue'
|
|
96
|
-
import { isEqual } from 'ohash'
|
|
95
|
+
import { computed, getCurrentInstance } from 'vue'
|
|
96
|
+
import { isEqual, diff } from 'ohash'
|
|
97
97
|
import { useForwardProps } from 'reka-ui'
|
|
98
98
|
import { reactiveOmit } from '@vueuse/core'
|
|
99
99
|
import { hasProtocol } from 'ufo'
|
|
@@ -113,7 +113,22 @@ const props = withDefaults(defineProps<LinkProps>(), {
|
|
|
113
113
|
})
|
|
114
114
|
defineSlots<LinkSlots>()
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
// Check if vue-router is available by checking for the injection key
|
|
117
|
+
const hasRouter = computed(() => {
|
|
118
|
+
const app = getCurrentInstance()?.appContext.app
|
|
119
|
+
return !!(app?.config?.globalProperties?.$router)
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
// Only try to get route if router exists
|
|
123
|
+
const route = computed(() => {
|
|
124
|
+
if (!hasRouter.value) return null
|
|
125
|
+
try {
|
|
126
|
+
return useRoute()
|
|
127
|
+
} catch {
|
|
128
|
+
return null
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
|
|
117
132
|
const routerLinkProps = useForwardProps(reactiveOmit(props, 'as', 'type', 'disabled', 'active', 'exact', 'exactQuery', 'exactHash', 'activeClass', 'inactiveClass', 'to', 'raw', 'class'))
|
|
118
133
|
|
|
119
134
|
const ui = computed(() => tv({
|
|
@@ -126,21 +141,37 @@ const ui = computed(() => tv({
|
|
|
126
141
|
}
|
|
127
142
|
}))
|
|
128
143
|
|
|
129
|
-
|
|
144
|
+
function isPartiallyEqual(item1: any, item2: any) {
|
|
145
|
+
const diffedKeys = diff(item1, item2).reduce((filtered, q) => {
|
|
146
|
+
if (q.type === 'added') {
|
|
147
|
+
filtered.push(q.key)
|
|
148
|
+
}
|
|
149
|
+
return filtered
|
|
150
|
+
}, [] as string[])
|
|
151
|
+
return isEqual(item1, item2, { excludeKeys: key => diffedKeys.includes(key) })
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const isExternal = computed(() => {
|
|
155
|
+
if (!props.to) return false
|
|
156
|
+
return typeof props.to === 'string' && hasProtocol(props.to, { acceptRelative: true })
|
|
157
|
+
})
|
|
130
158
|
|
|
131
159
|
function isLinkActive({ route: linkRoute, isActive, isExactActive }: any) {
|
|
132
160
|
if (props.active !== undefined) {
|
|
133
161
|
return props.active
|
|
134
162
|
}
|
|
135
163
|
|
|
136
|
-
if (!props.to) {
|
|
164
|
+
if (!props.to || !route.value) {
|
|
137
165
|
return false
|
|
138
166
|
}
|
|
139
167
|
|
|
140
|
-
if (props.exactQuery
|
|
141
|
-
return false
|
|
168
|
+
if (props.exactQuery === 'partial') {
|
|
169
|
+
if (!isPartiallyEqual(linkRoute.query, route.value.query)) return false
|
|
170
|
+
} else if (props.exactQuery === true) {
|
|
171
|
+
if (!isEqual(linkRoute.query, route.value.query)) return false
|
|
142
172
|
}
|
|
143
|
-
|
|
173
|
+
|
|
174
|
+
if (props.exactHash && linkRoute.hash !== route.value.hash) {
|
|
144
175
|
return false
|
|
145
176
|
}
|
|
146
177
|
|
|
@@ -169,10 +200,52 @@ function resolveLinkClass({ route, isActive, isExactActive }: any) {
|
|
|
169
200
|
isAction: Boolean(props.isAction)
|
|
170
201
|
})
|
|
171
202
|
}
|
|
203
|
+
|
|
204
|
+
// Handle navigation without vue-router
|
|
205
|
+
const handleNavigation = (href: string) => {
|
|
206
|
+
if (isExternal.value) {
|
|
207
|
+
window.location.href = href
|
|
208
|
+
} else {
|
|
209
|
+
window.location.pathname = href
|
|
210
|
+
}
|
|
211
|
+
}
|
|
172
212
|
</script>
|
|
173
213
|
|
|
174
214
|
<template>
|
|
175
|
-
<
|
|
215
|
+
<template v-if="hasRouter">
|
|
216
|
+
<RouterLink v-slot="{ href, navigate, route: linkRoute, isActive, isExactActive }" v-bind="routerLinkProps" :to="to || '#'" custom>
|
|
217
|
+
<template v-if="custom">
|
|
218
|
+
<slot
|
|
219
|
+
v-bind="{
|
|
220
|
+
...$attrs,
|
|
221
|
+
as,
|
|
222
|
+
type,
|
|
223
|
+
disabled,
|
|
224
|
+
target: props.target ? props.target : undefined,
|
|
225
|
+
href: to ? (isExternal ? to as string : href) : undefined,
|
|
226
|
+
navigate,
|
|
227
|
+
active: isLinkActive({ route: linkRoute, isActive, isExactActive })
|
|
228
|
+
}"
|
|
229
|
+
/>
|
|
230
|
+
</template>
|
|
231
|
+
<B24LinkBase
|
|
232
|
+
v-else
|
|
233
|
+
v-bind="{
|
|
234
|
+
...$attrs,
|
|
235
|
+
as,
|
|
236
|
+
type,
|
|
237
|
+
disabled,
|
|
238
|
+
href: to ? (isExternal ? to as string : href) : undefined,
|
|
239
|
+
navigate
|
|
240
|
+
}"
|
|
241
|
+
:class="resolveLinkClass({ route: linkRoute, isActive: isActive, isExactActive: isExactActive })"
|
|
242
|
+
>
|
|
243
|
+
<slot :active="isLinkActive({ route: linkRoute, isActive, isExactActive })" />
|
|
244
|
+
</B24LinkBase>
|
|
245
|
+
</RouterLink>
|
|
246
|
+
</template>
|
|
247
|
+
|
|
248
|
+
<template v-else>
|
|
176
249
|
<template v-if="custom">
|
|
177
250
|
<slot
|
|
178
251
|
v-bind="{
|
|
@@ -180,10 +253,9 @@ function resolveLinkClass({ route, isActive, isExactActive }: any) {
|
|
|
180
253
|
as,
|
|
181
254
|
type,
|
|
182
255
|
disabled,
|
|
183
|
-
target: props.target ? props.target : undefined,
|
|
184
256
|
href: to ? (isExternal ? to as string : href) : undefined,
|
|
185
|
-
navigate,
|
|
186
|
-
active:
|
|
257
|
+
navigate: () => to && handleNavigation(to as string),
|
|
258
|
+
active: false
|
|
187
259
|
}"
|
|
188
260
|
/>
|
|
189
261
|
</template>
|
|
@@ -194,12 +266,12 @@ function resolveLinkClass({ route, isActive, isExactActive }: any) {
|
|
|
194
266
|
as,
|
|
195
267
|
type,
|
|
196
268
|
disabled,
|
|
197
|
-
href: to ? (isExternal ? to as string : href) : undefined
|
|
198
|
-
navigate
|
|
269
|
+
href: to ? (isExternal ? to as string : href as string) : undefined
|
|
199
270
|
}"
|
|
200
|
-
:class="
|
|
271
|
+
:class="ui({ class: props.class, disabled })"
|
|
272
|
+
@click="to && handleNavigation(to as string)"
|
|
201
273
|
>
|
|
202
|
-
<slot :active="
|
|
274
|
+
<slot :active="false" />
|
|
203
275
|
</B24LinkBase>
|
|
204
|
-
</
|
|
276
|
+
</template>
|
|
205
277
|
</template>
|
|
@@ -3156,7 +3156,7 @@ const modal = {
|
|
|
3156
3156
|
overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
3157
3157
|
content: [
|
|
3158
3158
|
"py-md2 px-5",
|
|
3159
|
-
"fixed
|
|
3159
|
+
"fixed bg-white dark:bg-base-950",
|
|
3160
3160
|
// 'divide-y divide-base-900/10 dark:divide-white/20',
|
|
3161
3161
|
"flex flex-col focus:outline-none"
|
|
3162
3162
|
].join(" "),
|
|
@@ -3180,11 +3180,10 @@ const modal = {
|
|
|
3180
3180
|
},
|
|
3181
3181
|
false: {
|
|
3182
3182
|
content: [
|
|
3183
|
-
"top-
|
|
3184
|
-
"sm:
|
|
3185
|
-
"
|
|
3186
|
-
"
|
|
3187
|
-
"sm:ring ring-base-300 dark:ring-base-800"
|
|
3183
|
+
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
3184
|
+
"w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
|
|
3185
|
+
"rounded-md shadow-lg",
|
|
3186
|
+
"ring ring-base-300 dark:ring-base-800"
|
|
3188
3187
|
].join(" ")
|
|
3189
3188
|
}
|
|
3190
3189
|
}
|
|
@@ -3469,7 +3468,7 @@ const radioGroup = {
|
|
|
3469
3468
|
slots: {
|
|
3470
3469
|
root: "relative",
|
|
3471
3470
|
fieldset: "flex",
|
|
3472
|
-
legend: "mb-1.5 block
|
|
3471
|
+
legend: "mb-1.5 block text-base-900 dark:text-base-400",
|
|
3473
3472
|
item: "flex items-start",
|
|
3474
3473
|
base: [
|
|
3475
3474
|
"cursor-pointer rounded-full",
|
|
@@ -3841,7 +3840,8 @@ const select = () => {
|
|
|
3841
3840
|
const selectMenu = () => {
|
|
3842
3841
|
return defu({
|
|
3843
3842
|
slots: {
|
|
3844
|
-
input: "border-b border-base-300 dark:dark:border-base-800"
|
|
3843
|
+
input: "border-b border-base-300 dark:dark:border-base-800",
|
|
3844
|
+
focusScope: "flex flex-col min-h-0"
|
|
3845
3845
|
},
|
|
3846
3846
|
variants: {
|
|
3847
3847
|
addNew: {
|
|
@@ -4992,8 +4992,12 @@ const descriptionList = {
|
|
|
4992
4992
|
avatar: "shrink-0",
|
|
4993
4993
|
avatarSize: "",
|
|
4994
4994
|
label: "",
|
|
4995
|
-
descriptionWrapper:
|
|
4996
|
-
|
|
4995
|
+
descriptionWrapper: [
|
|
4996
|
+
"sm:border-t sm:[&:nth-child(2)]:border-none",
|
|
4997
|
+
"text-base-900 sm:border-base-950/5",
|
|
4998
|
+
"dark:text-base-150 dark:sm:border-white/5"
|
|
4999
|
+
].join(" "),
|
|
5000
|
+
description: "",
|
|
4997
5001
|
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
4998
5002
|
footer: "border-t border-base-950/5 dark:border-white/5"
|
|
4999
5003
|
},
|
|
@@ -3158,7 +3158,7 @@ const modal = {
|
|
|
3158
3158
|
overlay: "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
3159
3159
|
content: [
|
|
3160
3160
|
"py-md2 px-5",
|
|
3161
|
-
"fixed
|
|
3161
|
+
"fixed bg-white dark:bg-base-950",
|
|
3162
3162
|
// 'divide-y divide-base-900/10 dark:divide-white/20',
|
|
3163
3163
|
"flex flex-col focus:outline-none"
|
|
3164
3164
|
].join(" "),
|
|
@@ -3182,11 +3182,10 @@ const modal = {
|
|
|
3182
3182
|
},
|
|
3183
3183
|
false: {
|
|
3184
3184
|
content: [
|
|
3185
|
-
"top-
|
|
3186
|
-
"sm:
|
|
3187
|
-
"
|
|
3188
|
-
"
|
|
3189
|
-
"sm:ring ring-base-300 dark:ring-base-800"
|
|
3185
|
+
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
3186
|
+
"w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100vh-2rem)] sm:max-h-[calc(100vh-4rem)]",
|
|
3187
|
+
"rounded-md shadow-lg",
|
|
3188
|
+
"ring ring-base-300 dark:ring-base-800"
|
|
3190
3189
|
].join(" ")
|
|
3191
3190
|
}
|
|
3192
3191
|
}
|
|
@@ -3471,7 +3470,7 @@ const radioGroup = {
|
|
|
3471
3470
|
slots: {
|
|
3472
3471
|
root: "relative",
|
|
3473
3472
|
fieldset: "flex",
|
|
3474
|
-
legend: "mb-1.5 block
|
|
3473
|
+
legend: "mb-1.5 block text-base-900 dark:text-base-400",
|
|
3475
3474
|
item: "flex items-start",
|
|
3476
3475
|
base: [
|
|
3477
3476
|
"cursor-pointer rounded-full",
|
|
@@ -3843,7 +3842,8 @@ const select = () => {
|
|
|
3843
3842
|
const selectMenu = () => {
|
|
3844
3843
|
return defu.defu({
|
|
3845
3844
|
slots: {
|
|
3846
|
-
input: "border-b border-base-300 dark:dark:border-base-800"
|
|
3845
|
+
input: "border-b border-base-300 dark:dark:border-base-800",
|
|
3846
|
+
focusScope: "flex flex-col min-h-0"
|
|
3847
3847
|
},
|
|
3848
3848
|
variants: {
|
|
3849
3849
|
addNew: {
|
|
@@ -4994,8 +4994,12 @@ const descriptionList = {
|
|
|
4994
4994
|
avatar: "shrink-0",
|
|
4995
4995
|
avatarSize: "",
|
|
4996
4996
|
label: "",
|
|
4997
|
-
descriptionWrapper:
|
|
4998
|
-
|
|
4997
|
+
descriptionWrapper: [
|
|
4998
|
+
"sm:border-t sm:[&:nth-child(2)]:border-none",
|
|
4999
|
+
"text-base-900 sm:border-base-950/5",
|
|
5000
|
+
"dark:text-base-150 dark:sm:border-white/5"
|
|
5001
|
+
].join(" "),
|
|
5002
|
+
description: "",
|
|
4999
5003
|
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
5000
5004
|
footer: "border-t border-base-950/5 dark:border-white/5"
|
|
5001
5005
|
},
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
8
|
+
const templates = require('./shared/b24ui-nuxt.D-N3gDSr.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CAS1q3My.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.6",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"@nuxt/kit": "^3.15.4",
|
|
72
72
|
"@nuxt/schema": "^3.15.4",
|
|
73
73
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
74
|
-
"@tailwindcss/postcss": "^4.0.
|
|
75
|
-
"@tailwindcss/vite": "^4.0.
|
|
76
|
-
"@tanstack/vue-table": "^8.
|
|
77
|
-
"@unhead/vue": "^1.11.
|
|
78
|
-
"@vueuse/core": "^12.
|
|
79
|
-
"@vueuse/integrations": "^12.
|
|
74
|
+
"@tailwindcss/postcss": "^4.0.6",
|
|
75
|
+
"@tailwindcss/vite": "^4.0.6",
|
|
76
|
+
"@tanstack/vue-table": "^8.21.2",
|
|
77
|
+
"@unhead/vue": "^1.11.19",
|
|
78
|
+
"@vueuse/core": "^12.6.1",
|
|
79
|
+
"@vueuse/integrations": "^12.6.1",
|
|
80
80
|
"colortranslator": "^4.1.0",
|
|
81
81
|
"consola": "^3.4.0",
|
|
82
82
|
"defu": "^6.1.4",
|
|
@@ -92,26 +92,26 @@
|
|
|
92
92
|
"magic-string": "^0.30.17",
|
|
93
93
|
"mlly": "^1.7.4",
|
|
94
94
|
"ohash": "^1.1.4",
|
|
95
|
-
"pathe": "^2.0.
|
|
96
|
-
"reka-ui": "1.0.0-alpha.
|
|
95
|
+
"pathe": "^2.0.3",
|
|
96
|
+
"reka-ui": "1.0.0-alpha.10",
|
|
97
97
|
"scule": "^1.3.0",
|
|
98
98
|
"tailwind-variants": "^0.3.1",
|
|
99
|
-
"tailwindcss": "^4.0.
|
|
99
|
+
"tailwindcss": "^4.0.6",
|
|
100
100
|
"tinyglobby": "^0.2.10",
|
|
101
|
-
"unplugin": "^2.
|
|
101
|
+
"unplugin": "^2.2.0",
|
|
102
102
|
"unplugin-auto-import": "^19.0.0",
|
|
103
103
|
"unplugin-vue-components": "^28.0.0",
|
|
104
104
|
"vaul-vue": "^0.2.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@nuxt/eslint-config": "^1.0.
|
|
107
|
+
"@nuxt/eslint-config": "^1.0.1",
|
|
108
108
|
"@nuxt/module-builder": "^0.8.4",
|
|
109
109
|
"@nuxt/test-utils": "^3.15.4",
|
|
110
110
|
"@standard-schema/spec": "^1.0.0",
|
|
111
111
|
"@vue/test-utils": "^2.4.6",
|
|
112
112
|
"embla-carousel": "^8.5.2",
|
|
113
|
-
"eslint": "^9.
|
|
114
|
-
"happy-dom": "
|
|
113
|
+
"eslint": "^9.20.1",
|
|
114
|
+
"happy-dom": "^17.1.0",
|
|
115
115
|
"joi": "^17.13.3",
|
|
116
116
|
"knitwork": "^1.2.0",
|
|
117
117
|
"nuxt": "^3.15.4",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"vitest-environment-nuxt": "^1.0.1",
|
|
124
124
|
"vue-tsc": "^2.2.0",
|
|
125
125
|
"yup": "^1.6.1",
|
|
126
|
-
"zod": "^3.24.
|
|
126
|
+
"zod": "^3.24.2"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"typescript": "^5.6.3"
|
|
@@ -132,13 +132,12 @@
|
|
|
132
132
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
133
133
|
"chokidar": "3.6.0",
|
|
134
134
|
"debug": "4.3.7",
|
|
135
|
-
"happy-dom": "14.12.3",
|
|
136
135
|
"rollup": "^4.24.0",
|
|
137
136
|
"typescript": "5.6.3",
|
|
138
137
|
"unimport": "3.14.5",
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
138
|
+
"unplugin": "^2.2.0",
|
|
139
|
+
"vite": "^6.0.11",
|
|
140
|
+
"vue-tsc": "2.2.0"
|
|
142
141
|
},
|
|
143
142
|
"keywords": [
|
|
144
143
|
"bitrix24-ui",
|
|
@@ -158,15 +157,17 @@
|
|
|
158
157
|
"ui-framework"
|
|
159
158
|
],
|
|
160
159
|
"scripts": {
|
|
161
|
-
"dev:prepare-short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue",
|
|
162
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxt-component-meta playground --outputDir ../src/.component-meta/",
|
|
160
|
+
"dev:prepare-short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxi prepare demo",
|
|
161
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxi prepare demo && nuxt-component-meta playground --outputDir ../src/.component-meta/",
|
|
163
162
|
"build": "nuxt-module-build build",
|
|
164
163
|
"dev": "DEV=true nuxi dev playground",
|
|
165
|
-
"dev-window": "set DEV=true && nuxi dev playground",
|
|
166
164
|
"dev:build": "nuxi build playground",
|
|
167
165
|
"dev:generate": "nuxt generate playground",
|
|
166
|
+
"dev:preview": "nuxt preview playground",
|
|
168
167
|
"dev:vue": "DEV=true vite playground-vue",
|
|
169
|
-
"dev
|
|
168
|
+
"demo:dev": "DEV=true nuxi dev demo",
|
|
169
|
+
"demo:generate": "nuxt generate demo",
|
|
170
|
+
"demo:preview": "nuxt preview demo",
|
|
170
171
|
"docs:full:dev": "pnpm build && vitepress dev docs",
|
|
171
172
|
"docs:full:build": "pnpm build && vitepress build docs",
|
|
172
173
|
"docs:dev": "vitepress dev docs",
|