abckit 0.0.23 → 0.0.25
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.d.mts +8 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +111 -12
- package/dist/runtime/components/app/AppImage.d.vue.ts +6 -1
- package/dist/runtime/components/app/AppImage.vue.d.ts +6 -1
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/auto-form/AutoForm.d.vue.ts +9 -7
- package/dist/runtime/components/ui/auto-form/AutoForm.vue.d.ts +9 -7
- package/dist/runtime/components/ui/auto-form/AutoFormField.d.vue.ts +5 -3
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue.d.ts +5 -3
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue.d.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.d.vue.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.d.vue.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.d.vue.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.d.vue.ts +34 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue.d.ts +34 -0
- package/dist/runtime/components/ui/auto-form/dependencies.d.ts +25 -1
- package/dist/runtime/components/ui/auto-form/utils.d.ts +1 -1
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.d.vue.ts +3 -1
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button/Button.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button/Button.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupText.d.vue.ts +3 -1
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue.d.ts +3 -1
- package/dist/runtime/components/ui/calendar/Calendar.d.vue.ts +4 -1
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +4 -1
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/carousel/Carousel.d.vue.ts +37 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +37 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.d.vue.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.d.vue.ts +4 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +4 -1
- package/dist/runtime/components/ui/chart/ChartContainer.d.vue.ts +2 -2
- package/dist/runtime/components/ui/chart/ChartContainer.vue.d.ts +2 -2
- package/dist/runtime/components/ui/chart/ChartLegendContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/chart/ChartLegendContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/chart/ChartTooltipContent.d.vue.ts +5 -1
- package/dist/runtime/components/ui/chart/ChartTooltipContent.vue.d.ts +5 -1
- package/dist/runtime/components/ui/combobox/ComboboxInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue.d.ts +2 -2
- package/dist/runtime/components/ui/combobox/ComboboxList.d.vue.ts +5 -1
- package/dist/runtime/components/ui/combobox/ComboboxList.vue.d.ts +5 -1
- package/dist/runtime/components/ui/command/Command.d.vue.ts +3 -1
- package/dist/runtime/components/ui/command/Command.vue.d.ts +3 -1
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +6 -3
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +6 -3
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/country-select/CountrySelect.d.vue.ts +6 -1
- package/dist/runtime/components/ui/country-select/CountrySelect.vue.d.ts +6 -1
- package/dist/runtime/components/ui/currency-select/CurrencySelect.d.vue.ts +6 -1
- package/dist/runtime/components/ui/currency-select/CurrencySelect.vue.d.ts +6 -1
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/drawer/Drawer.d.vue.ts +4 -4
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/field/FieldSeparator.d.vue.ts +2 -2
- package/dist/runtime/components/ui/field/FieldSeparator.vue.d.ts +2 -2
- package/dist/runtime/components/ui/file/FileEmptyState.d.vue.ts +4 -1
- package/dist/runtime/components/ui/file/FileEmptyState.vue.d.ts +4 -1
- package/dist/runtime/components/ui/file/FileGrid.d.vue.ts +3 -1
- package/dist/runtime/components/ui/file/FileGrid.vue.d.ts +3 -1
- package/dist/runtime/components/ui/file/FileTable.d.vue.ts +5 -1
- package/dist/runtime/components/ui/file/FileTable.vue.d.ts +5 -1
- package/dist/runtime/components/ui/file/FolderTree.d.vue.ts +3 -1
- package/dist/runtime/components/ui/file/FolderTree.vue.d.ts +3 -1
- package/dist/runtime/components/ui/hover-card/HoverCardContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupAddon.d.vue.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue.d.ts +3 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +4 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +4 -1
- package/dist/runtime/components/ui/item/Item.d.vue.ts +3 -1
- package/dist/runtime/components/ui/item/Item.vue.d.ts +3 -1
- package/dist/runtime/components/ui/language-select/LanguageSelect.d.vue.ts +7 -1
- package/dist/runtime/components/ui/language-select/LanguageSelect.vue.d.ts +7 -1
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarContent.d.vue.ts +5 -1
- package/dist/runtime/components/ui/menubar/MenubarContent.vue.d.ts +5 -1
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.d.vue.ts +3 -1
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +3 -1
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +3 -1
- package/dist/runtime/components/ui/pin-input/PinInput.d.vue.ts +5 -3
- package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +5 -3
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -1
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -1
- package/dist/runtime/components/ui/progress/Progress.d.vue.ts +3 -1
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +3 -1
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/scroll-area/ScrollBar.d.vue.ts +3 -1
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +3 -1
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +5 -3
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +5 -3
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +3 -1
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +3 -1
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +4 -1
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +4 -1
- package/dist/runtime/components/ui/sheet/InnerSheetContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sheet/InnerSheetContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sidebar/Sidebar.d.vue.ts +8 -4
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.d.vue.ts +3 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +3 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.d.vue.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +8 -4
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.d.vue.ts +5 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +5 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.d.vue.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarProvider.d.vue.ts +4 -1
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.d.vue.ts +9 -1
- package/dist/runtime/components/ui/storage/StorageActionBar.vue.d.ts +9 -1
- package/dist/runtime/components/ui/storage/StorageDialogs.d.vue.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageDialogs.vue.d.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageEmptyState.d.vue.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageEmptyState.vue.d.ts +4 -1
- package/dist/runtime/components/ui/storage/StorageGrid.d.vue.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageGrid.vue.d.ts +6 -3
- package/dist/runtime/components/ui/storage/StorageSelectionBar.d.vue.ts +3 -1
- package/dist/runtime/components/ui/storage/StorageSelectionBar.vue.d.ts +3 -1
- package/dist/runtime/components/ui/storage/StorageTable.d.vue.ts +7 -3
- package/dist/runtime/components/ui/storage/StorageTable.vue.d.ts +7 -3
- package/dist/runtime/components/ui/storage/StorageUploadZone.d.vue.ts +6 -1
- package/dist/runtime/components/ui/storage/StorageUploadZone.vue.d.ts +6 -1
- package/dist/runtime/components/ui/table/TableEmpty.d.vue.ts +5 -3
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +5 -3
- package/dist/runtime/components/ui/timezone-select/TimezoneSelect.d.vue.ts +5 -1
- package/dist/runtime/components/ui/timezone-select/TimezoneSelect.vue.d.ts +5 -1
- package/dist/runtime/components/ui/toggle/Toggle.d.vue.ts +5 -1
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +5 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.d.vue.ts +3 -1
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipContent.d.vue.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipProvider.d.vue.ts +3 -1
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +3 -1
- package/dist/runtime/composables/useAuth.d.ts +89 -89
- package/dist/runtime/middleware/auth.d.ts +1 -1
- package/dist/runtime/server/plugins/s3-storage.d.ts +1 -1
- package/package.json +33 -15
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { BreadcrumbItemProps } from '../dist/runtime/composables/useBreadcrumbItems.js';
|
|
3
3
|
|
|
4
4
|
interface BreadcrumbsConfig {
|
|
@@ -56,8 +56,12 @@ interface ModuleOptions {
|
|
|
56
56
|
* Better Auth client configuration
|
|
57
57
|
*/
|
|
58
58
|
auth?: AuthClientOptions;
|
|
59
|
+
/**
|
|
60
|
+
Set to true when installed via npm package, dont used project.
|
|
61
|
+
*/
|
|
62
|
+
npm?: boolean;
|
|
59
63
|
}
|
|
60
|
-
declare module 'nuxt/schema' {
|
|
64
|
+
declare module '@nuxt/schema' {
|
|
61
65
|
interface AppConfig extends BreadcrumbsConfig, SetupConfig {
|
|
62
66
|
}
|
|
63
67
|
interface RuntimeConfig {
|
|
@@ -93,6 +97,7 @@ declare module 'nuxt/schema' {
|
|
|
93
97
|
}
|
|
94
98
|
interface PublicRuntimeConfig {
|
|
95
99
|
siteUrl: string;
|
|
100
|
+
isMobile: boolean;
|
|
96
101
|
debug: boolean;
|
|
97
102
|
imgproxy: {
|
|
98
103
|
storageUrl: string;
|
|
@@ -108,7 +113,7 @@ declare module 'nuxt/schema' {
|
|
|
108
113
|
};
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
|
-
declare const _default:
|
|
116
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
112
117
|
|
|
113
118
|
export { _default as default };
|
|
114
119
|
export type { AuthClientOptions, BreadcrumbsConfig, ModuleOptions, SetupConfig };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
2
|
import { defineNuxtModule, createResolver, addTypeTemplate, addServerScanDir, addRouteMiddleware } from '@nuxt/kit';
|
|
3
3
|
import { defu } from 'defu';
|
|
4
|
+
import { networkInterfaces } from 'node:os';
|
|
5
|
+
|
|
6
|
+
const isMobileBuild = process.env.MOBILE_BUILD === "true" || process.env.NUXT_PUBLIC_MOBILE_DEV === "true";
|
|
7
|
+
const isMobileDev = process.env.MOBILE_DEV === "true" || process.env.NUXT_PUBLIC_MOBILE_DEV === "true";
|
|
8
|
+
function getLocalIP() {
|
|
9
|
+
const nets = networkInterfaces();
|
|
10
|
+
for (const name of Object.keys(nets)) {
|
|
11
|
+
for (const net of nets[name] || []) {
|
|
12
|
+
if (net.family === "IPv4" && !net.internal) {
|
|
13
|
+
return net.address;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return "localhost";
|
|
18
|
+
}
|
|
19
|
+
const localIP = isMobileDev ? getLocalIP() : null;
|
|
20
|
+
const mobileBaseURL = isMobileDev ? `http://${localIP}:3000` : "https://e.sayfa.app";
|
|
4
21
|
|
|
5
22
|
const module$1 = defineNuxtModule({
|
|
6
23
|
meta: {
|
|
@@ -11,10 +28,11 @@ const module$1 = defineNuxtModule({
|
|
|
11
28
|
defaults: {
|
|
12
29
|
sentry: false,
|
|
13
30
|
auth: {
|
|
14
|
-
baseURL: void 0,
|
|
31
|
+
baseURL: isMobileBuild ? mobileBaseURL : void 0,
|
|
15
32
|
basePath: "/api/auth",
|
|
16
|
-
capacitor:
|
|
17
|
-
}
|
|
33
|
+
capacitor: isMobileBuild
|
|
34
|
+
},
|
|
35
|
+
npm: false
|
|
18
36
|
},
|
|
19
37
|
moduleDependencies: (nuxt) => ({
|
|
20
38
|
"@nuxtjs/tailwindcss": {},
|
|
@@ -27,18 +45,23 @@ const module$1 = defineNuxtModule({
|
|
|
27
45
|
"@vee-validate/nuxt": {},
|
|
28
46
|
"nitro-graphql/nuxt": {},
|
|
29
47
|
"pinia-plugin-persistedstate/nuxt": {},
|
|
48
|
+
"@nuxtjs/ionic": {},
|
|
49
|
+
"@nuxt/scripts": {},
|
|
30
50
|
"@sentry/nuxt/module": {
|
|
31
51
|
optional: nuxt.options.dev
|
|
32
52
|
}
|
|
33
53
|
}),
|
|
34
54
|
async setup(options, nuxt) {
|
|
35
55
|
const { resolve } = createResolver(import.meta.url);
|
|
56
|
+
nuxt.options.devtools = defu(nuxt.options.devtools, {
|
|
57
|
+
enabled: false
|
|
58
|
+
});
|
|
36
59
|
nuxt.options.runtimeConfig.public.abckit = {
|
|
37
60
|
sentry: nuxt.options.runtimeConfig.public.abckit?.sentry ?? options.sentry ?? false,
|
|
38
61
|
auth: {
|
|
39
|
-
baseURL: nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL,
|
|
62
|
+
baseURL: isMobileBuild ? mobileBaseURL : nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL,
|
|
40
63
|
basePath: nuxt.options.runtimeConfig.public.abckit?.auth?.basePath ?? options.auth?.basePath,
|
|
41
|
-
capacitor:
|
|
64
|
+
capacitor: isMobileBuild
|
|
42
65
|
}
|
|
43
66
|
};
|
|
44
67
|
nuxt.options.runtimeConfig.dragonfly = defu(nuxt.options.runtimeConfig.dragonfly, {
|
|
@@ -71,13 +94,42 @@ const module$1 = defineNuxtModule({
|
|
|
71
94
|
disk: false
|
|
72
95
|
});
|
|
73
96
|
nuxt.options.runtimeConfig.public = defu(nuxt.options.runtimeConfig.public, {
|
|
74
|
-
siteUrl: "http://localhost:3000",
|
|
97
|
+
siteUrl: isMobileBuild ? mobileBaseURL : "http://localhost:3000",
|
|
98
|
+
isMobile: isMobileBuild,
|
|
75
99
|
debug: nuxt.options.dev,
|
|
76
100
|
imgproxy: {
|
|
77
101
|
storageUrl: "",
|
|
78
102
|
cdnDomains: []
|
|
79
103
|
}
|
|
80
104
|
});
|
|
105
|
+
const siteUrl = nuxt.options.runtimeConfig.public.siteUrl;
|
|
106
|
+
const appName = nuxt.options.app.head?.title || "abckit";
|
|
107
|
+
nuxt.options.app.head = defu(nuxt.options.app.head, {
|
|
108
|
+
meta: [
|
|
109
|
+
{ charset: "utf-8" },
|
|
110
|
+
{ name: "viewport", content: "viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" },
|
|
111
|
+
{ name: "author", content: appName },
|
|
112
|
+
{ name: "robots", content: "index, follow" },
|
|
113
|
+
// Open Graph
|
|
114
|
+
{ property: "og:type", content: "website" },
|
|
115
|
+
{ property: "og:site_name", content: appName },
|
|
116
|
+
{ property: "og:image", content: `${siteUrl}/og-image.png` },
|
|
117
|
+
{ property: "og:url", content: siteUrl },
|
|
118
|
+
// Twitter
|
|
119
|
+
{ name: "twitter:card", content: "summary_large_image" },
|
|
120
|
+
{ name: "twitter:image", content: `${siteUrl}/og-image.png` },
|
|
121
|
+
// Apple
|
|
122
|
+
{ name: "apple-mobile-web-app-title", content: appName }
|
|
123
|
+
],
|
|
124
|
+
link: [
|
|
125
|
+
{ rel: "icon", type: "image/png", href: "/favicon-96x96.png", sizes: "96x96" },
|
|
126
|
+
{ rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
|
|
127
|
+
{ rel: "shortcut icon", href: "/favicon.ico" },
|
|
128
|
+
{ rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png" },
|
|
129
|
+
// Manifest only for web, not needed in native apps
|
|
130
|
+
...isMobileBuild ? [] : [{ rel: "manifest", href: "/site.webmanifest" }]
|
|
131
|
+
]
|
|
132
|
+
});
|
|
81
133
|
addTypeTemplate({
|
|
82
134
|
filename: "types/nuxt-shared-h3.d.ts",
|
|
83
135
|
getContents: () => `
|
|
@@ -184,6 +236,19 @@ export {}
|
|
|
184
236
|
},
|
|
185
237
|
scaffold: false
|
|
186
238
|
});
|
|
239
|
+
nuxt.options.ionic = defu(nuxt.options.ionic, {
|
|
240
|
+
integrations: {
|
|
241
|
+
icons: false
|
|
242
|
+
},
|
|
243
|
+
css: {
|
|
244
|
+
basic: false,
|
|
245
|
+
// Tailwind ile çakışan normalize/typography kapalı
|
|
246
|
+
core: true,
|
|
247
|
+
// IonPage, IonHeader stilleri açık
|
|
248
|
+
utilities: false
|
|
249
|
+
// ion-padding vs. kapalı
|
|
250
|
+
}
|
|
251
|
+
});
|
|
187
252
|
nuxt.options.nitro.publicAssets = nuxt.options.nitro.publicAssets || [];
|
|
188
253
|
nuxt.options.nitro.publicAssets.push({
|
|
189
254
|
dir: resolve("./runtime/public"),
|
|
@@ -212,6 +277,9 @@ export {}
|
|
|
212
277
|
nuxt.options.alias["abckit/utils"] = resolve("./runtime/utils");
|
|
213
278
|
nuxt.options.alias["abckit/types/client"] = resolve("./runtime/types/nitro-graphql-client");
|
|
214
279
|
nuxt.options.alias["abckit/shared"] = resolve("./runtime/shared");
|
|
280
|
+
nuxt.options.vite.define = defu(nuxt.options.vite.define, {
|
|
281
|
+
"import.meta.env.VITE_MOBILE_BUILD": JSON.stringify(isMobileBuild ? "true" : "false")
|
|
282
|
+
});
|
|
215
283
|
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
216
284
|
nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
|
|
217
285
|
const excludeSet = new Set(nuxt.options.vite.optimizeDeps.exclude);
|
|
@@ -229,26 +297,57 @@ export {}
|
|
|
229
297
|
excludeSet.add("tailwind-merge");
|
|
230
298
|
excludeSet.add("@sindresorhus/slugify");
|
|
231
299
|
excludeSet.add("better-auth");
|
|
300
|
+
excludeSet.add("leaflet");
|
|
301
|
+
excludeSet.add("@capgo/capacitor-social-login");
|
|
302
|
+
excludeSet.add("ionicons/icons");
|
|
303
|
+
excludeSet.add("@ionic/vue");
|
|
304
|
+
excludeSet.add("@capacitor/core");
|
|
305
|
+
excludeSet.add("@capacitor/status-bar");
|
|
306
|
+
excludeSet.add("@capacitor/splash-screen");
|
|
307
|
+
excludeSet.add("@capacitor/preferences");
|
|
308
|
+
excludeSet.add("@capacitor/geolocation");
|
|
309
|
+
excludeSet.add("@capacitor/network");
|
|
310
|
+
excludeSet.add("@capacitor/push-notifications");
|
|
311
|
+
excludeSet.add("@capacitor/device");
|
|
312
|
+
excludeSet.add("capacitor-native-settings");
|
|
313
|
+
excludeSet.add("@capacitor/haptics");
|
|
314
|
+
excludeSet.add("@unovis/vue");
|
|
232
315
|
nuxt.options.vite.optimizeDeps.exclude = Array.from(excludeSet);
|
|
233
316
|
nuxt.options.typescript = defu(nuxt.options.typescript, {
|
|
234
317
|
tsConfig: {
|
|
235
318
|
compilerOptions: {
|
|
236
|
-
allowArbitraryExtensions: true
|
|
319
|
+
allowArbitraryExtensions: true,
|
|
320
|
+
types: ["@pinia/colada-plugin-auto-refetch"]
|
|
237
321
|
}
|
|
238
322
|
}
|
|
239
323
|
});
|
|
240
|
-
nuxt.options.colorMode = {
|
|
324
|
+
nuxt.options.colorMode = defu(nuxt.options.colorMode, {
|
|
241
325
|
classSuffix: "",
|
|
242
326
|
fallback: "light",
|
|
243
|
-
storageKey: "
|
|
244
|
-
preference: "light"
|
|
245
|
-
|
|
246
|
-
};
|
|
327
|
+
storageKey: "color-mode",
|
|
328
|
+
preference: "light"
|
|
329
|
+
});
|
|
247
330
|
addServerScanDir(resolve("./runtime/server"));
|
|
248
331
|
addRouteMiddleware({
|
|
249
332
|
name: "auth",
|
|
250
333
|
path: resolve("./runtime/middleware/auth")
|
|
251
334
|
});
|
|
335
|
+
nuxt.options.routeRules = nuxt.options.routeRules || {};
|
|
336
|
+
nuxt.options.routeRules["/**"] = defu(nuxt.options.routeRules["/**"] || {}, {
|
|
337
|
+
ssr: false
|
|
338
|
+
});
|
|
339
|
+
nuxt.options.routeRules["/"] = defu(nuxt.options.routeRules["/"] || {}, {
|
|
340
|
+
ssr: true
|
|
341
|
+
});
|
|
342
|
+
if (nuxt.options.abckit.npm) {
|
|
343
|
+
nuxt.options.typescript.tsConfig.compilerOptions ??= {};
|
|
344
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths ??= {};
|
|
345
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/components"] = ["./node_modules/abckit/runtime/components/ui"];
|
|
346
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/composables"] = ["./node_modules/abckit/runtime/composables"];
|
|
347
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/utils"] = ["./node_modules/abckit/runtime/utils"];
|
|
348
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/shadcn"] = ["./node_modules/abckit/runtime/components/ui"];
|
|
349
|
+
nuxt.options.typescript.tsConfig.compilerOptions.paths["abckit/lib"] = ["./node_modules/abckit/runtime/utils"];
|
|
350
|
+
}
|
|
252
351
|
}
|
|
253
352
|
});
|
|
254
353
|
|
|
@@ -6,6 +6,11 @@ interface Props {
|
|
|
6
6
|
fallback?: string;
|
|
7
7
|
size?: ImageSize;
|
|
8
8
|
}
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
size: ImageSize;
|
|
11
|
+
class: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
15
|
declare const _default: typeof __VLS_export;
|
|
11
16
|
export default _default;
|
|
@@ -6,6 +6,11 @@ interface Props {
|
|
|
6
6
|
fallback?: string;
|
|
7
7
|
size?: ImageSize;
|
|
8
8
|
}
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
10
|
+
size: ImageSize;
|
|
11
|
+
class: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
15
|
declare const _default: typeof __VLS_export;
|
|
11
16
|
export default _default;
|
|
@@ -3,9 +3,9 @@ import type { HTMLAttributes } from "vue";
|
|
|
3
3
|
type __VLS_Props = AlertDialogContentProps & {
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_19: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -3,9 +3,9 @@ import type { HTMLAttributes } from "vue";
|
|
|
3
3
|
type __VLS_Props = AlertDialogContentProps & {
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
|
-
declare var
|
|
6
|
+
declare var __VLS_19: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
@@ -2,7 +2,7 @@ import type { FormContext, GenericObject } from 'vee-validate';
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
import type { Config, ConfigItem, Dependency, Shape } from './interface.js';
|
|
4
4
|
import { type ZodObjectOrWrapped } from './utils.js';
|
|
5
|
-
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
5
|
+
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<{
|
|
7
7
|
schema: T;
|
|
8
8
|
form?: FormContext<GenericObject>;
|
|
@@ -10,19 +10,19 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
10
10
|
dependencies?: Dependency<z.infer<T>>[];
|
|
11
11
|
initialValues?: Partial<z.infer<T>>;
|
|
12
12
|
} & {
|
|
13
|
-
onSubmit?: ((event: z.
|
|
13
|
+
onSubmit?: ((event: z.TypeOf<T>) => any) | undefined;
|
|
14
14
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
16
|
} ? P : {});
|
|
17
17
|
expose: (exposed: {}) => void;
|
|
18
18
|
attrs: any;
|
|
19
|
-
slots: { [K in NonNullable<keyof z.
|
|
19
|
+
slots: { [K in NonNullable<keyof z.TypeOf<T>>]?: ((props: {
|
|
20
20
|
shape: { [key in keyof T]: Shape; }[keyof T];
|
|
21
21
|
fieldName: string;
|
|
22
22
|
config: ConfigItem;
|
|
23
23
|
}) => any) | undefined; } & {
|
|
24
24
|
customAutoForm?: (props: {
|
|
25
|
-
fields: { [key in keyof z.
|
|
25
|
+
fields: { [key in keyof z.TypeOf<T>]: {
|
|
26
26
|
shape: Shape;
|
|
27
27
|
fieldName: string;
|
|
28
28
|
config: ConfigItem;
|
|
@@ -33,12 +33,14 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
33
33
|
shapes: { [key in keyof T]: Shape; };
|
|
34
34
|
}) => any;
|
|
35
35
|
};
|
|
36
|
-
emit: (evt: "submit", event: z.
|
|
36
|
+
emit: (evt: "submit", event: z.TypeOf<T>) => void;
|
|
37
37
|
}>) => import("vue").VNode & {
|
|
38
38
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
39
|
};
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
41
41
|
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
43
45
|
[K in keyof T as K]: T[K];
|
|
44
|
-
} & {};
|
|
46
|
+
}) & {};
|
|
@@ -2,7 +2,7 @@ import type { FormContext, GenericObject } from 'vee-validate';
|
|
|
2
2
|
import type { z } from 'zod';
|
|
3
3
|
import type { Config, ConfigItem, Dependency, Shape } from './interface.js';
|
|
4
4
|
import { type ZodObjectOrWrapped } from './utils.js';
|
|
5
|
-
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
5
|
+
declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<{
|
|
7
7
|
schema: T;
|
|
8
8
|
form?: FormContext<GenericObject>;
|
|
@@ -10,19 +10,19 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
10
10
|
dependencies?: Dependency<z.infer<T>>[];
|
|
11
11
|
initialValues?: Partial<z.infer<T>>;
|
|
12
12
|
} & {
|
|
13
|
-
onSubmit?: ((event: z.
|
|
13
|
+
onSubmit?: ((event: z.TypeOf<T>) => any) | undefined;
|
|
14
14
|
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
15
15
|
__VLS_PROPS_FALLBACK: infer P;
|
|
16
16
|
} ? P : {});
|
|
17
17
|
expose: (exposed: {}) => void;
|
|
18
18
|
attrs: any;
|
|
19
|
-
slots: { [K in NonNullable<keyof z.
|
|
19
|
+
slots: { [K in NonNullable<keyof z.TypeOf<T>>]?: ((props: {
|
|
20
20
|
shape: { [key in keyof T]: Shape; }[keyof T];
|
|
21
21
|
fieldName: string;
|
|
22
22
|
config: ConfigItem;
|
|
23
23
|
}) => any) | undefined; } & {
|
|
24
24
|
customAutoForm?: (props: {
|
|
25
|
-
fields: { [key in keyof z.
|
|
25
|
+
fields: { [key in keyof z.TypeOf<T>]: {
|
|
26
26
|
shape: Shape;
|
|
27
27
|
fieldName: string;
|
|
28
28
|
config: ConfigItem;
|
|
@@ -33,12 +33,14 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
|
|
|
33
33
|
shapes: { [key in keyof T]: Shape; };
|
|
34
34
|
}) => any;
|
|
35
35
|
};
|
|
36
|
-
emit: (evt: "submit", event: z.
|
|
36
|
+
emit: (evt: "submit", event: z.TypeOf<T>) => void;
|
|
37
37
|
}>) => import("vue").VNode & {
|
|
38
38
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
39
|
};
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
41
41
|
export default _default;
|
|
42
|
-
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
43
|
+
[K in keyof T]: T[K];
|
|
44
|
+
} : {
|
|
43
45
|
[K in keyof T as K]: T[K];
|
|
44
|
-
} & {};
|
|
46
|
+
}) & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ZodAny } from 'zod';
|
|
2
2
|
import type { Config, ConfigItem, Shape } from './interface.js';
|
|
3
|
-
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
3
|
+
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<{
|
|
5
5
|
fieldName: string;
|
|
6
6
|
shape: Shape;
|
|
@@ -26,6 +26,8 @@ declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<
|
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
|
-
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
30
32
|
[K in keyof T as K]: T[K];
|
|
31
|
-
} & {};
|
|
33
|
+
}) & {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ZodAny } from 'zod';
|
|
2
2
|
import type { Config, ConfigItem, Shape } from './interface.js';
|
|
3
|
-
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
3
|
+
declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<{
|
|
5
5
|
fieldName: string;
|
|
6
6
|
shape: Shape;
|
|
@@ -26,6 +26,8 @@ declare const __VLS_export: <U extends ZodAny>(__VLS_props: NonNullable<Awaited<
|
|
|
26
26
|
};
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
|
-
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} : {
|
|
30
32
|
[K in keyof T as K]: T[K];
|
|
31
|
-
} & {};
|
|
33
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | ([Config<T> | undefined] extends [boolean | undefined] ? "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Config } from './interface.js';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const __VLS_export: <T extends z.ZodAny>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<{
|
|
5
|
+
fieldName: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
config?: Config<T>;
|
|
8
|
+
schema?: z.ZodArray<T>;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}> & import("vue").PublicProps & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: {
|
|
16
|
+
default?: (props: import("vue").DefineProps<import("@vue/shared").LooseRequired<{
|
|
17
|
+
fieldName: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
config?: Config<T>;
|
|
20
|
+
schema?: z.ZodArray<T>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}>, "required" | "disabled" | ([Config<T> | undefined] extends [boolean | undefined] ? "config" : never)>) => any;
|
|
23
|
+
};
|
|
24
|
+
emit: {};
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} : {
|
|
33
|
+
[K in keyof T as K]: T[K];
|
|
34
|
+
}) & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_20: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_20) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_20: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_20) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_26: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_26) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from './interface.js';
|
|
2
|
+
declare var __VLS_26: {
|
|
3
|
+
field: import("vee-validate").FieldBindingObject<any>;
|
|
4
|
+
componentField: import("vee-validate").ComponentFieldBindingObject<any>;
|
|
5
|
+
value: any;
|
|
6
|
+
meta: import("vee-validate").FieldMeta<any>;
|
|
7
|
+
errors: string[];
|
|
8
|
+
errorMessage: string | undefined;
|
|
9
|
+
handleInput: import("vee-validate").FieldContext["handleChange"];
|
|
10
|
+
validate: import("vee-validate").FieldValidator<unknown>;
|
|
11
|
+
resetField: (state?: Partial<import("vee-validate").FieldState<unknown>> | undefined) => void;
|
|
12
|
+
handleReset: () => void;
|
|
13
|
+
handleChange: (e: Event | unknown, shouldValidate?: boolean) => void;
|
|
14
|
+
handleBlur: (e?: Event, shouldValidate?: boolean) => void;
|
|
15
|
+
setTouched: (isTouched: boolean) => void;
|
|
16
|
+
setErrors: (message: string | string[]) => void;
|
|
17
|
+
setValue: (value: unknown, shouldValidate?: boolean) => void;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_26) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<FieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|