@ederzeel/nuxt-schema-form-nightly 0.1.0-28997068.dca840d → 0.1.0-28997933.16d731c
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/dist/module.cjs +5 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.d.ts +13 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +28 -0
- package/dist/runtime/types/utils.d.ts +27 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +18 -9
- package/.github/semantic.yml +0 -15
- package/.github/workflows/ci.yml +0 -79
- package/.github/workflows/release.yml +0 -62
- package/eslint.config.mjs +0 -73
- package/playground/app.vue +0 -5
- package/playground/assets/schema-custom.json +0 -111
- package/playground/assets/schema-easy.json +0 -16
- package/playground/assets/schema.json +0 -116
- package/playground/components/ColorMode.vue +0 -26
- package/playground/components/CustomInput.vue +0 -7
- package/playground/components/Editor.vue +0 -44
- package/playground/components/MultiStage.vue +0 -164
- package/playground/components/Stepper.vue +0 -63
- package/playground/components/TestForm.vue +0 -24
- package/playground/nuxt.config.ts +0 -13
- package/playground/package.json +0 -10
- package/playground/pages/index.vue +0 -22
- package/playground/plugins/monaco-editor.js +0 -19
- package/playground/tailwind.config.js +0 -1
- package/playground/tsconfig.json +0 -4
- package/pnpm-workspace.yaml +0 -2
- package/prettier.config.mjs +0 -8
- package/scripts/bump-nightly.ts +0 -25
- package/scripts/release-nightly.sh +0 -24
- package/scripts/release.sh +0 -21
- package/src/defaults.ts +0 -3
- package/src/module.ts +0 -35
- package/src/plugins/app-config.ts +0 -24
- package/src/plugins/components.ts +0 -68
- package/src/plugins/nuxt-environment.ts +0 -40
- package/src/runtime/types/utils.ts +0 -44
- package/src/unplugin.ts +0 -46
- package/tsconfig.json +0 -9
- /package/{src → dist}/runtime/components/SComponent.vue +0 -0
- /package/{src → dist}/runtime/components/SForm.vue +0 -0
- /package/{src → dist}/runtime/components/SInputField.vue +0 -0
- /package/{src → dist}/runtime/components/SObject.vue +0 -0
- /package/{src → dist}/runtime/components/SSelect.vue +0 -0
- /package/{src → dist}/runtime/components/STextarea.vue +0 -0
- /package/{src → dist}/runtime/components/SToggle.vue +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue'
|
|
2
|
-
|
|
3
|
-
export interface TightMap<O = any> {
|
|
4
|
-
[key: string]: TightMap | O
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type DeepPartial<T, O = any> = {
|
|
8
|
-
[P in keyof T]?: T[P] extends Array<string> ? string : T[P] extends object ? DeepPartial<T[P], O> : T[P]
|
|
9
|
-
} & {
|
|
10
|
-
[key: string]: O | TightMap<O>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type DynamicSlots<T extends { slot?: string }, SlotProps, Slot = T['slot']> = Record<string, SlotProps> &
|
|
14
|
-
(Slot extends string ? Record<Slot, SlotProps> : Record<string, never>)
|
|
15
|
-
|
|
16
|
-
export type GetObjectField<MaybeObject, Key extends string> =
|
|
17
|
-
MaybeObject extends Record<string, any> ? MaybeObject[Key] : never
|
|
18
|
-
|
|
19
|
-
export type PartialString<T> = {
|
|
20
|
-
[K in keyof T]?: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type MaybeArrayOfArray<T> = T[] | T[][]
|
|
24
|
-
export type MaybeArrayOfArrayItem<I> = I extends Array<infer T> ? (T extends Array<infer U> ? U : T) : never
|
|
25
|
-
|
|
26
|
-
export type SelectModelValue<T, V, M extends boolean = false, DV = T> = (
|
|
27
|
-
T extends Record<string, any> ? (V extends keyof T ? T[V] : DV) : T
|
|
28
|
-
) extends infer U
|
|
29
|
-
? M extends true
|
|
30
|
-
? U[]
|
|
31
|
-
: U
|
|
32
|
-
: never
|
|
33
|
-
|
|
34
|
-
export type SelectItemKey<T> = T extends Record<string, any> ? keyof T : string
|
|
35
|
-
|
|
36
|
-
export type SelectModelValueEmits<T, V, M extends boolean = false, DV = T> = {
|
|
37
|
-
'update:modelValue': [payload: SelectModelValue<T, V, M, DV>]
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type StringOrVNode = string | VNode | (() => VNode)
|
|
41
|
-
|
|
42
|
-
export type EmitsToProps<T> = {
|
|
43
|
-
[K in keyof T as `on${Capitalize<string & K>}`]: T[K] extends [...args: infer Args] ? (...args: Args) => void : never
|
|
44
|
-
}
|
package/src/unplugin.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url'
|
|
2
|
-
|
|
3
|
-
import { join, normalize } from 'pathe'
|
|
4
|
-
import { createUnplugin } from 'unplugin'
|
|
5
|
-
import AutoImport from 'unplugin-auto-import'
|
|
6
|
-
import { defu } from 'defu'
|
|
7
|
-
// import tailwind from '@tailwindcss/vite'
|
|
8
|
-
// import type colors from 'tailwindcss/colors'
|
|
9
|
-
|
|
10
|
-
// import type * as ui from '#build/ui'
|
|
11
|
-
|
|
12
|
-
import { defaultOptions } from './defaults'
|
|
13
|
-
import type { ModuleOptions } from './module'
|
|
14
|
-
|
|
15
|
-
// import TemplatePlugin from './plugins/templates'
|
|
16
|
-
// import PluginsPlugin from './plugins/plugins'
|
|
17
|
-
import AppConfigPlugin from './plugins/app-config'
|
|
18
|
-
import ComponentImportPlugin from './plugins/components'
|
|
19
|
-
import NuxtEnvironmentPlugin from './plugins/nuxt-environment'
|
|
20
|
-
|
|
21
|
-
// import type { DeepPartial } from './runtime/types/utils'
|
|
22
|
-
|
|
23
|
-
// type AppConfigUI = DeepPartial<typeof ui>
|
|
24
|
-
|
|
25
|
-
export interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'> {
|
|
26
|
-
ui?: object
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const runtimeDir = normalize(fileURLToPath(new URL('./runtime', import.meta.url)))
|
|
30
|
-
|
|
31
|
-
export const NuxtUIPlugin = createUnplugin<NuxtUIOptions | undefined>((_options = {}, meta) => {
|
|
32
|
-
const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions)
|
|
33
|
-
|
|
34
|
-
const appConfig = { ui: options.ui }
|
|
35
|
-
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
37
|
-
return [
|
|
38
|
-
NuxtEnvironmentPlugin(),
|
|
39
|
-
...ComponentImportPlugin(meta.framework, options),
|
|
40
|
-
AutoImport[meta.framework]({ dts: true, dirs: [join(runtimeDir, 'composables')] }),
|
|
41
|
-
// tailwind(),
|
|
42
|
-
// PluginsPlugin(options),
|
|
43
|
-
// TemplatePlugin(options, appConfig),
|
|
44
|
-
AppConfigPlugin(options, appConfig)
|
|
45
|
-
]
|
|
46
|
-
})
|
package/tsconfig.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|